Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <body>
- <?php
- topbar();
- headerbar();
- ?>
- <div class="ramlal mr0a">
- <?php advanse_search(); ?>
- <div class="wrapper_left">
- <div class="by_category">
- <div class="heading_main_cat_header">Browse by</div>
- <div class="heading_main_cat"><strong>Categories</strong>
- <div class="view_more_less_cat ">
- <img src="image/minus.png" />
- </div>
- </div>
- <div class="cbt"></div>
- <div class="main_category_toogle">
- <ul class=" by_class main_cat_up">
- <?php
- $similarCat = $database->query("SELECT * from subCategory where categoryType= ?", array($_GET['cat']));
- $k = 1;
- if ($db->num_rows($similarCat) > 0) {
- while ($similarCategory = $db->fetch_array($similarCat)) {
- if ($k == 6) {
- echo '</ul> <ul class="main_cat_down by_class">';
- }
- echo '<li><a href=' . root . "postsearch.php?cat=" . $cat . "&subcat=" . $similarCategory['categoryId'] . '>' . $similarCategory['categoryName'] . '</a></li>';
- $k++;
- }
- } else {
- echo 'no similar category';
- }
- ?>
- </ul>
- <?php if ($k > 6) { ?>
- <div class="featurebutton">
- <button class="main_cat_button btn btn-small" type="button" id="featurebutton" value="ViewAll" >View All</button>
- </div>
- <?php } ?>
- </div>
- </div>
- <form action="postsearch.php" method="get">
- <input type="hidden" name="cat" value="<?php echo htmlspecialchars($cat, ENT_QUOTES); ?>" />
- <div class="by_others">
- <div class="heading_main_cat"><strong>Location</strong>
- <div class="view_more_less ">
- <img src="image/minus.png" />
- </div>
- </div>
- <div>
- <div class="cbt"></div>
- <div class="location_field">
- <input type="text" name="location" placeholder="Please enter the location">
- </div>
- </div>
- <div class="heading_main_cat"><strong>Price</strong>
- <div class="view_more_less ">
- <img src="image/minus.png" />
- </div>
- </div>
- <div>
- <div class="cbt"></div>
- <br/>
- <div class="price_container">
- <input style="width: 55px;" name="priceMin" type="text" placeholder="Min"> To
- <input style="width: 55px;" name="priceMax" type="text" placeholder="Max">
- </div>
- </div>
- <div class="heading_main_cat"><strong>Area</strong>
- <div class="view_more_less ">
- <img src="image/minus.png" />
- </div>
- </div>
- <div>
- <div class="cbt"></div>
- <br/>
- <div class="price_container">
- <input style="width: 45px;" name="areaMin" type="text" placeholder="Min"> To
- <input style="width: 45px;" name="areaMax"type="text" placeholder="Max">
- <div class="post_area_div">
- <select name="areaMeasurement" id="pricemin" style="width: 90px;" name="pricemin">
- <option value="sqFt">Sq.Ft.</option>
- <option value="sqYards">Sq. Yards </option>
- <option value="sqMeter">Sq. Meter </option>
- <option value="bigha">Bigha </option>
- <option value="hectares">Hectares</option>
- </select>
- </div>
- <span>* 1 bigha =165*165 feet </span>
- </div>
- </div>
- <?php if ($cat == 4) { ?>
- <div class="heading_main_cat"><strong>BedRoom</strong>
- <div class="view_more_less ">
- <img src="image/minus.png" />
- </div>
- </div>
- <div>
- <div class="cbt"></div>
- <div class=" mtb5">
- <ul class="by_class">
- <li>
- <label class="checkbox text_caplize">
- <input name="bed[]" value="12" type="checkbox">1 - 2
- </label>
- </li>
- <li>
- <label class="checkbox text_caplize">
- <input name="bed[]" value="34" type="checkbox">3 -4
- </label>
- </li>
- <li>
- <label class="checkbox text_caplize">
- <input name="bed[]" value="56" type="checkbox">5 - 6
- </label>
- </li>
- <li>
- <label class="checkbox text_caplize">
- <input name="bed[]" value="78" type="checkbox">7 - 8
- </label>
- </li>
- <li>
- <label class="checkbox text_caplize">
- <input name="bed[]" value="9" type="checkbox" >9 and >>9
- </label>
- </li>
- </ul>
- </div>
- </div>
- <?php
- $resfeatureQuery = $db->columnName("DESCRIBE resfeatures", PDO::FETCH_COLUMN);
- if ($resfeatureQuery && $db->num_rows($resfeatureQuery) > 0) {
- ?>
- <div class="heading_main_cat"><strong>Features</strong>
- <div class="view_more_less ">
- <img src="image/minus.png" />
- </div>
- </div>
- <div>
- <div class="cbt"></div>
- <div class="mtb5 allfeatures">
- <ul class="allfeature_top by_class">
- <?php
- $resfeature = $resfeatureQuery->fetchAll(PDO::FETCH_COLUMN);
- for ($i = 2; $i < count($resfeature); $i++) {
- $Words = preg_replace('/(?<!\ )[A-Z]/', ' $0', $resfeature[$i]);
- ?>
- <li>
- <label class="checkbox text_caplize">
- <input name="resFeature[]" value="<?php echo $resfeature[$i]; ?>" type="checkbox"><?php echo $Words; ?>
- </label>
- </li>
- <?php
- if ($i == 6)
- echo'</ul><ul class="allfeature_bottom by_class">';
- }
- ?>
- </ul>
- <div class="featurebutton">
- <button class="allfeaturebutton btn btn-small" type="button" id="featurebutton" value="ViewAll" >View All</button>
- </div>
- </div>
- </div>
- <?php
- }
- }
- if ($cat == 4) {
- ?>
- <div class="heading_main_cat"><strong>Construction Age</strong>
- <div class="view_more_less ">
- <img src="image/minus.png" />
- </div>
- </div>
- <div>
- <div class="cbt"></div>
- <ul class="by_class mtb5">
- <li>
- <label class="checkbox text_caplize">
- <input name="newCon" type="checkbox">New Construction
- </label>
- </li>
- <li>
- <label class="checkbox text_caplize">
- <input name="lessThan5" type="checkbox">Less than 5 years
- </label>
- </li>
- <li>
- <label class="checkbox text_caplize">
- <input name="10to15" type="checkbox">10 to 15 years
- </label>
- </li>
- <li>
- <label class="checkbox text_caplize">
- <input name=15to20"" type="checkbox">15 to 20 years
- </label>
- </li>
- <li>
- <label class="checkbox text_caplize">
- <input name="above20" type="checkbox">Above 20 years
- </label>
- </li>
- </ul>
- </div>
- <?php }if ($cat == 4) { ?>
- <div class="heading_main_cat"><strong>Furnished</strong>
- <div class="view_more_less ">
- <img src="image/minus.png" />
- </div>
- </div>
- <div>
- <div class="cbt"></div>
- <ul class="by_class mtb5">
- <li>
- <label class="checkbox text_caplize">
- <input name="furnished[]" value="furnished" type="checkbox">Furnished
- </label>
- </li>
- <li>
- <label class="checkbox text_caplize">
- <input name="furnished[]" value="semiFurnished" type="checkbox">Semi Furnished
- </label>
- </li>
- <li>
- <label class="checkbox text_caplize">
- <input name="furnished[]" value="nonFurnished" type="checkbox">Non Furnished
- </label>
- </li>
- </ul>
- </div>
- <?php } ?>
- <div style="float:right; margin:10px; ">
- <button type="submit" name="filterSubmit" calue="filtersubmit" class="btn btn-info">Submit</button>
- </div>
- <div class="cbt"></div>
- </div>
- </form>
- </div>
- <div class="wrapper_right" style="width:750px;">
- <div class="search_result_container">
- <div class="thumb_content post_search_thumb">
- <div class="thumb_content_inner post_search_thumb_inner">
- <a href="http://mysweethome.info/postopen.php?house=4" class="thumb_content_inner_image">
- <img width="140" height="140" onerror="img_onerror(this);" data-logit="true" data-pid="MOBD7BN6MWQR7CRP" data-imagesize="thumb" data-error-url="javascript:void(0);" src="img/thumb140_3fe9b048ea20993bea235033917cce372d210d5a6aa6be0127d1fe5c3fddc2422531d32fbbfd0fd83d2b7215dd2b11cbea571acbd31d6595d41ad6e35bd233eb_1.png" alt="sweet home" title="kakk">
- </a>
- <a title="kakk" href="http://mysweethome.info/postopen.php?house=4" class="thumb_content_a"> kakk</a>
- <ul class="thumb_content_ul">
- <li><span class="itm">Corner plot</span></li><li><span class="itm">park facing</span></li><li><span class="itm">100ft road</span></li>
- </ul>
- <div class="rate_outer">
- <span class="pricerate">Rs.65000</span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php require_once 'includes/footer.php'; ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement