Advertisement
annya

preview page

Mar 9th, 2015
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.67 KB | None | 0 0
  1. <?php
  2. include 'includes/MysqlConnect.php';
  3. $con = MysqlConnect::getInstance();
  4. mysql_query("set names 'utf8'",$dbLink);
  5. $a=$_GET['pageid'];
  6. $pdetail=$con->select("select * from plan_list where plan_id=".MysqlConnect::dbEscape($a));
  7. $related=$con->select("select pid from plan_list where plan_id=".MysqlConnect::dbEscape($a));
  8. $related_id=$related['pid'];
  9. $related_property=$con->select("select * from plan_list where pid=".MysqlConnect::dbEscape($related_id)."ORDER BY RAND() LIMIT 3",true);
  10. $featured=$con->select("select * from plan_list order by plan_id desc limit 3",true);
  11. $add=$con->select("select * from advertisement where addid=1");
  12. $gadd=$con->select("select * from google_advertisement where gid=1");
  13. ?>
  14. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  15. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  16. <html class="no-js">
  17.  
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  20. <!-- Basic Page Needs
  21. ================================================== -->
  22. <title>Detail Page</title>
  23. <meta name="description" content="">
  24. <meta name="keywords" content="">
  25. <meta name="author" content="">
  26. <!-- Mobile Specific Metas
  27. ================================================== -->
  28. <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
  29. <meta name="format-detection" content="telephone=no">
  30. <!-- CSS
  31. ================================================== -->
  32. <link href="css/bootstrap.css" rel="stylesheet" type="text/css">
  33. <link href="css/style.css" rel="stylesheet" type="text/css">
  34. <link href="css/prettyPhoto.css" rel="stylesheet" type="text/css">
  35. <link href="css/owl.carousel.css" rel="stylesheet" type="text/css">
  36. <link href="css/owl.theme.css" rel="stylesheet" type="text/css">
  37. <!--[if lte IE 9]><link rel="stylesheet" type="text/css" href="css/ie.css" media="screen" /><![endif]-->
  38. <!-- Color Style -->
  39. <link href="css/color1.css" rel="stylesheet" type="text/css">
  40. <!-- SCRIPTS
  41. ================================================== -->
  42. <script src="js/modernizr.js"></script><!-- Modernizr -->
  43.  
  44. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
  45.  
  46. <script src="//www.google.com/js/google.js"></script>
  47. <link href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&amp;lang=ml" rel=
  48. "stylesheet">
  49.  
  50. </head>
  51. <body class="home">
  52. <div class="body">
  53. <!-- Start Site Header -->
  54. <?php include 'includes/header.php';?>
  55.  
  56. <!-- End Site Header -->
  57. <!-- Site Showcase -->
  58. <div class="site-showcase">
  59. </div>
  60. <!-- Start Content -->
  61. <div class="main" role="main">
  62. <div id="content" class="content full">
  63. <div class="container">
  64. <div class="row">
  65. <div class="col-md-9">
  66. <div class="single-property">
  67. <h2 class="page-title"><?php echo $pdetail['title'];?> <br>
  68. </h2><br>
  69.  
  70. <div class="property-amenities clearfix"> <span class="area"><strong><?php echo $pdetail['area'];?>&nbsp;<?php echo $pdetail['covered_area'];?></strong>Area</span> <span class="baths"><strong><?php echo $pdetail['bedroom'];?></strong>Beds</span><span class="area"><strong><?php echo $pdetail['bathroom'];?></strong>Baths</span> <span class="location"><?php echo $pdetail['location'];?></span> <span class="parking"><strong>ID</strong><?php echo $pdetail['random_id'];?></span> </div>
  71. <div class="property-slider">
  72. <div id="property-images">
  73. <ul class="slides">
  74. <li class="item"> <img src="public/plans/<?php echo $pdetail['imgname'];?>" alt="" > </li>
  75.  
  76. </ul>
  77. </div>
  78.  
  79. </div>
  80. <div class="tabs">
  81. <ul class="nav nav-tabs">
  82. <li class="active"> <a data-toggle="tab" href="#description"> Description </a> </li>
  83.  
  84. </ul>
  85. <div class="tab-content">
  86. <div id="description" class="tab-pane active">
  87. <p><?php echo $pdetail['description'];?></p>
  88. </div>
  89.  
  90. </div>
  91. </div>
  92.  
  93.  
  94. </div>
  95. <!-- Start Related Properties -->
  96. <h3>Related Plans</h3>
  97. <div class="property-grid">
  98. <ul class="grid-holder col-3">
  99. <?php foreach($related_property as $row){?>
  100. <li class="grid-item type-rent">
  101. <div class="property-block"> <a href="plan_detail.php?pageid=<?php echo $row['plan_id']?>" > <img src="public/plans/thumb/<?php echo $row['imgname'];?>" alt=""> </a>
  102. <div class="property-info">
  103. <h4><a href="#"><?php echo $row['title'];?></a></h4>
  104. <span class="location"><?php echo $row['location'];?></span>
  105. <div class="price"><strong>ID</strong><span><?php echo $row['random_id'];?></span></div>
  106. </div>
  107. <div class="property-amenities clearfix"> <span class="area"><strong><?php echo $row['area'];?></strong> <?php echo $row['covered_area'];?> Area</span> <span class="beds"><strong><?php echo $row['bedroom'];?></strong>Beds</span> <span class="baths"><strong><?php echo $row['bathroom'];?></strong>Baths</span><span class="parking"><a href="plan_detail.php?pageid=<?php echo $row['plan_id']?>" class="btn btn-primary btn-xs pull-right">view</a></span> </div>
  108. </div>
  109. </li><?php } ?>
  110.  
  111.  
  112.  
  113. </ul>
  114. </div>
  115. </div>
  116. <!-- Start Sidebar -->
  117. <div class="sidebar right-sidebar col-md-3">
  118. <div class="widget sidebar-widget">
  119. <h3 class="widgettitle">Advertisement</h3>
  120. <!-- <div class="full-search-form">
  121. <form action="#">
  122. <select name="propery type" class="form-control input-lg selectpicker">
  123. <option selected>Type</option>
  124. <option>Villa</option>
  125. <option>Family House</option>
  126. <option>Single Home</option>
  127. <option>Cottage</option>
  128. <option>Apartment</option>
  129. </select>
  130. <select name="propery contract type" class="form-control input-lg selectpicker">
  131. <option selected>Contract</option>
  132. <option>Rent</option>
  133. <option>Buy</option>
  134. </select>
  135. <select name="propery location" class="form-control input-lg selectpicker">
  136. <option selected>Location</option>
  137. <option>New York</option>
  138. </select>
  139. <button type="submit" class="btn btn-primary btn-block"><i class="fa fa-search"></i> Search</button>
  140. </form>
  141. </div>-->
  142. <img src="public/advertisement/<?php echo $add['image'];?>"><br><br>
  143. </div>
  144. <div class="widget sidebar-widget featured-properties-widget">
  145. <h3 class="widgettitle">Featured Plans</h3>
  146. <ul class="owl-carousel owl-alt-controls1 single-carousel" data-columns="1" data-autoplay="no" data-pagination="no" data-arrows="yes" data-single-item="yes">
  147. <?php foreach($featured as $row){?>
  148. <li class="item property-block"> <a href="plan_detail.php?pageid=<?php echo $row['plan_id']?>" > <img src="public/plans/thumb/<?php echo $row['imgname'];?>" alt=""> </a>
  149. <div class="property-info">
  150. <h4><a href="plan_detail.php?pageid=<?php echo $row['plan_id']?>"><?php $string=$row['title'];
  151. $string = strip_tags($string);
  152.  
  153. if (strlen($string) > 20) {
  154.  
  155. // truncate string
  156. $stringCut = substr($string, 0, 20);
  157.  
  158. // make sure it ends in a word so assassinate doesn't become ass...
  159. $string = substr($stringCut, 0, strrpos($stringCut, ' '));
  160. }
  161. echo $string;?></a></h4>
  162. <span class="location"><?php echo $row['location'];?></span>
  163. <div class="price"><strong>ID</strong><span><?php echo $row['random_id'];?></span></div>
  164. </div>
  165. </li>
  166. <?php } ?>
  167.  
  168.  
  169.  
  170. </ul>
  171. </div>
  172. <?php echo $gadd['code'];?>
  173. <br><br>
  174.  
  175. <img src="public/advertisement/<?php echo $add['image'];?>">
  176. </div>
  177. </div>
  178. </div>
  179. </div>
  180. </div>
  181. <!-- Start Site Footer -->
  182. <?php include 'includes/footer.php';?>
  183.  
  184. <!-- End Site Footer -->
  185. <a id="back-to-top"><i class="fa fa-angle-double-up"></i></a></div>
  186. <script src="js/jquery-2.0.0.min.js"></script> <!-- Jquery Library Call -->
  187. <script src="js/prettyphoto.js"></script> <!-- PrettyPhoto Plugin -->
  188. <script src="js/owl.carousel.min.js"></script> <!-- Owl Carousel -->
  189. <script src="js/jquery.flexslider.js"></script> <!-- FlexSlider -->
  190. <script src="js/helper-plugins.js"></script> <!-- Plugins -->
  191. <script src="js/bootstrap.js"></script> <!-- UI -->
  192. <script src="js/waypoints.js"></script> <!-- Waypoints -->
  193. <script src="js/init.js"></script> <!-- All Scripts -->
  194. <!--[if lte IE 9]><script src="js/script_ie.js"></script><![endif]-->
  195.  
  196. </body>
  197. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement