Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'includes/MysqlConnect.php';
- $con = MysqlConnect::getInstance();
- mysql_query("set names 'utf8'",$dbLink);
- $a=$_GET['pageid'];
- $pdetail=$con->select("select * from plan_list where plan_id=".MysqlConnect::dbEscape($a));
- $related=$con->select("select pid from plan_list where plan_id=".MysqlConnect::dbEscape($a));
- $related_id=$related['pid'];
- $related_property=$con->select("select * from plan_list where pid=".MysqlConnect::dbEscape($related_id)."ORDER BY RAND() LIMIT 3",true);
- $featured=$con->select("select * from plan_list order by plan_id desc limit 3",true);
- $add=$con->select("select * from advertisement where addid=1");
- $gadd=$con->select("select * from google_advertisement where gid=1");
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <html class="no-js">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <!-- Basic Page Needs
- ================================================== -->
- <title>Detail Page</title>
- <meta name="description" content="">
- <meta name="keywords" content="">
- <meta name="author" content="">
- <!-- Mobile Specific Metas
- ================================================== -->
- <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
- <meta name="format-detection" content="telephone=no">
- <!-- CSS
- ================================================== -->
- <link href="css/bootstrap.css" rel="stylesheet" type="text/css">
- <link href="css/style.css" rel="stylesheet" type="text/css">
- <link href="css/prettyPhoto.css" rel="stylesheet" type="text/css">
- <link href="css/owl.carousel.css" rel="stylesheet" type="text/css">
- <link href="css/owl.theme.css" rel="stylesheet" type="text/css">
- <!--[if lte IE 9]><link rel="stylesheet" type="text/css" href="css/ie.css" media="screen" /><![endif]-->
- <!-- Color Style -->
- <link href="css/color1.css" rel="stylesheet" type="text/css">
- <!-- SCRIPTS
- ================================================== -->
- <script src="js/modernizr.js"></script><!-- Modernizr -->
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
- <script src="//www.google.com/js/google.js"></script>
- <link href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&lang=ml" rel=
- "stylesheet">
- </head>
- <body class="home">
- <div class="body">
- <!-- Start Site Header -->
- <?php include 'includes/header.php';?>
- <!-- End Site Header -->
- <!-- Site Showcase -->
- <div class="site-showcase">
- </div>
- <!-- Start Content -->
- <div class="main" role="main">
- <div id="content" class="content full">
- <div class="container">
- <div class="row">
- <div class="col-md-9">
- <div class="single-property">
- <h2 class="page-title"><?php echo $pdetail['title'];?> <br>
- </h2><br>
- <div class="property-amenities clearfix"> <span class="area"><strong><?php echo $pdetail['area'];?> <?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>
- <div class="property-slider">
- <div id="property-images">
- <ul class="slides">
- <li class="item"> <img src="public/plans/<?php echo $pdetail['imgname'];?>" alt="" > </li>
- </ul>
- </div>
- </div>
- <div class="tabs">
- <ul class="nav nav-tabs">
- <li class="active"> <a data-toggle="tab" href="#description"> Description </a> </li>
- </ul>
- <div class="tab-content">
- <div id="description" class="tab-pane active">
- <p><?php echo $pdetail['description'];?></p>
- </div>
- </div>
- </div>
- </div>
- <!-- Start Related Properties -->
- <h3>Related Plans</h3>
- <div class="property-grid">
- <ul class="grid-holder col-3">
- <?php foreach($related_property as $row){?>
- <li class="grid-item type-rent">
- <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>
- <div class="property-info">
- <h4><a href="#"><?php echo $row['title'];?></a></h4>
- <span class="location"><?php echo $row['location'];?></span>
- <div class="price"><strong>ID</strong><span><?php echo $row['random_id'];?></span></div>
- </div>
- <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>
- </div>
- </li><?php } ?>
- </ul>
- </div>
- </div>
- <!-- Start Sidebar -->
- <div class="sidebar right-sidebar col-md-3">
- <div class="widget sidebar-widget">
- <h3 class="widgettitle">Advertisement</h3>
- <!-- <div class="full-search-form">
- <form action="#">
- <select name="propery type" class="form-control input-lg selectpicker">
- <option selected>Type</option>
- <option>Villa</option>
- <option>Family House</option>
- <option>Single Home</option>
- <option>Cottage</option>
- <option>Apartment</option>
- </select>
- <select name="propery contract type" class="form-control input-lg selectpicker">
- <option selected>Contract</option>
- <option>Rent</option>
- <option>Buy</option>
- </select>
- <select name="propery location" class="form-control input-lg selectpicker">
- <option selected>Location</option>
- <option>New York</option>
- </select>
- <button type="submit" class="btn btn-primary btn-block"><i class="fa fa-search"></i> Search</button>
- </form>
- </div>-->
- <img src="public/advertisement/<?php echo $add['image'];?>"><br><br>
- </div>
- <div class="widget sidebar-widget featured-properties-widget">
- <h3 class="widgettitle">Featured Plans</h3>
- <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">
- <?php foreach($featured as $row){?>
- <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>
- <div class="property-info">
- <h4><a href="plan_detail.php?pageid=<?php echo $row['plan_id']?>"><?php $string=$row['title'];
- $string = strip_tags($string);
- if (strlen($string) > 20) {
- // truncate string
- $stringCut = substr($string, 0, 20);
- // make sure it ends in a word so assassinate doesn't become ass...
- $string = substr($stringCut, 0, strrpos($stringCut, ' '));
- }
- echo $string;?></a></h4>
- <span class="location"><?php echo $row['location'];?></span>
- <div class="price"><strong>ID</strong><span><?php echo $row['random_id'];?></span></div>
- </div>
- </li>
- <?php } ?>
- </ul>
- </div>
- <?php echo $gadd['code'];?>
- <br><br>
- <img src="public/advertisement/<?php echo $add['image'];?>">
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- Start Site Footer -->
- <?php include 'includes/footer.php';?>
- <!-- End Site Footer -->
- <a id="back-to-top"><i class="fa fa-angle-double-up"></i></a></div>
- <script src="js/jquery-2.0.0.min.js"></script> <!-- Jquery Library Call -->
- <script src="js/prettyphoto.js"></script> <!-- PrettyPhoto Plugin -->
- <script src="js/owl.carousel.min.js"></script> <!-- Owl Carousel -->
- <script src="js/jquery.flexslider.js"></script> <!-- FlexSlider -->
- <script src="js/helper-plugins.js"></script> <!-- Plugins -->
- <script src="js/bootstrap.js"></script> <!-- UI -->
- <script src="js/waypoints.js"></script> <!-- Waypoints -->
- <script src="js/init.js"></script> <!-- All Scripts -->
- <!--[if lte IE 9]><script src="js/script_ie.js"></script><![endif]-->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement