| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- <?php if ($ajax!=='load') include 'header.php'; ?>
- <section id="content">
- <div class="filter-bar">
- <div class="filter-input-wrap minus">
- <select name="ertekesites" id="ertekesites" class="modal-input property-search-select" onchange="set_ertekesites_tipus($(this).val())">
- <option value="">Összes értékesítés típus</option>
- <?php foreach ($ertekesites as $item) : ?>
- <option value="<?=$item->ertekesites?>" <?php if ($_SESSION['search']['ertekesites']==$item->ertekesites) echo 'selected'; ?>><?=lang::_($item->ertekesites)?></option>
- <?php endforeach; ?>
- </select>
- </div>
- <div class="filter-input-wrap minus">
- <select name="jelleg" id="jelleg" class="modal-input property-search-select" onchange="setDetailedForm($(this),'grid')">
- <?php
- if ($_SESSION['search']['jelleg']=='lakoingatlan') {
- $check = 'Lakóingatlan - '.$_SESSION['search']['tipus'];
- }
- elseif ($_SESSION['search']['tipus']=='nyaralo') {
- $check = 'nyaralo';
- }
- else {
- $check = $_SESSION['search']['jelleg'];
- }
- ?>
- <option value="">Összes ingatlan jelleg</option>
- <?php foreach ($jelleg as $item) : $item->jelleg = str_replace('tanya','Tanya',$item->jelleg); $item->jelleg = str_replace('beruhazasi','Beruházást igénylő',$item->jelleg); ?>
- <option value="<?=$item->jelleg?>" <?php if ($check==$item->jelleg) echo 'selected'; ?>><?php $nev = lang::_(str_replace("Lakóingatlan - ","",$item->jelleg)); if ($nev=='Társasházi') { echo 'Lakás'; } elseif ($nev=='onalloepulet') { echo 'Önálló épület'; } elseif ($nev=='sorhaz') { echo 'Sorház'; } else { echo $nev; } ?></option>
- <?php endforeach; ?>
- <option value="nyaralo" <?php if ($check=='nyaralo') echo 'selected'; ?>>Nyaraló</option>
- </select>
- </div>
- <div class="filter-input-wrap selectize-wrap">
- <select name="city[]" id="city" multiple="multiple">
- <option value="">Hol keresel?</option>
- <?php $actives = explode(",",$_SESSION['search']['city']); ?>
- <option value="Budapest" <?php if (in_array('Budapest',$actives)) echo 'selected'; ?>>Budapest</option>
- <?php foreach ($city as $item) : ?>
- <option value="<?=$item->telepules?>" <?php if (in_array($item->telepules,$actives)) echo 'selected'; ?>><?=$item->telepules?></option>
- <?php endforeach; ?>
- <?php foreach ($actives as $active) : ?>
- <?php if (stristr($active," (")) : ?>
- <option value="<?=$active?>" selected><?=$active?></option>
- <?php endif; ?>
- <?php endforeach; ?>
- </select>
-
- </div>
- <div class="sgPriceBox" onclick="sgSetEditable(this)" style="margin-left: 0px;">
- <small class="ar-label" style="<?php if ($_SESSION['search']['iranyar_min']!='' || $_SESSION['search']['iranyar_max']!='') echo 'display: none;'; ?> color: #ccc;">Ár</small>
- <input <?php if ($_SESSION['search']['iranyar_min']=='') echo 'style="display: none;"'; ?> type="text" name="armin" id="iranyar_min" class="arbox" value="<?=$_SESSION['search']['iranyar_min']?>" placeholder="min" onfocus="this.placeholder = ''" onblur="this.placeholder = 'min'"><span <?php if ($_SESSION['search']['iranyar_min']=='') echo 'style="display: none;"'; ?>>-</span><input <?php if ($_SESSION['search']['iranyar_max']=='') echo 'style="display: none;"'; ?> type="text" name="armax" id="iranyar_max" class="arbox" value="<?=$_SESSION['search']['iranyar_max']?>" placeholder="max" onfocus="this.placeholder = ''" onblur="this.placeholder = 'min'">
- <?php if ($_SESSION['search']['ertekesites']=='elado') : ?>
- <small class="currency-label">MFt</small>
- <?php else : ?>
- <small class="currency-label">eFt</small>
- <?php endif; ?>
- </div>
- <div class="sgSizeBox" onclick="sgSetSizeEditable(this)">
- <small class="size-label" style="<?php if ($_SESSION['search']['meret_netto_min']!='' || $_SESSION['search']['meret_netto_max']!='') echo 'display: none;'; ?> color: #ccc;">Terület</small>
- <input <?php if ($_SESSION['search']['meret_netto_min']=='') echo 'style="display: none;"'; ?> type="text" name="nmmin" id="meret_netto_min" class="sizebox" value="<?=$_SESSION['search']['meret_netto_min']?>" placeholder="min" onfocus="this.placeholder = ''" onblur="this.placeholder = 'min'"><span <?php if ($_SESSION['search']['meret_netto_min']=='') echo 'style="display: none;"'; ?>>-</span><input <?php if ($_SESSION['search']['meret_netto_max']=='') echo 'style="display: none;"'; ?> type="text" name="nmmax" id="meret_netto_max" class="sizebox" value="<?=$_SESSION['search']['meret_netto_max']?>" placeholder="max" onfocus="this.placeholder = ''" onblur="this.placeholder = 'max'">
- <small style="margin-top: 5px; float: right;">m<sup>2</sup></small>
- </div>
- <!--<div class="filter-input-wrap minus only-mobile">
- <input class="modal-input property-search-text first-property-searc-text" type="text" name="szoba_min" id="szoba_min" value="<?=$_SESSION['search']['szoba_min']?>" placeholder="Szobák (min)">
- <input class="modal-input property-search-text" type="text" name="szoba_max" id="szoba_max" value="<?=$_SESSION['search']['szoba_max']?>" placeholder="Szobák (max)">
- </div>-->
- <br class="only-mobile"><br class="only-mobile"><br class="only-mobile">
- <button type="button" id="gogogo" name="go" onclick="search('/property/search/filter/')" class="btn-black mini"><i class="fas fa-search"></i></button>
- <a href="javascript: void(0);" id="showhideDetailSearch" name="dsBtn" class="detailed-search-btn" onclick="showHideDetailSearch()">Részletes keresés</a>
- <a href="#" onclick="showGridView()" class="set-view view-list" style="display: none;"><i class="fas fa-list"></i>Lista</a>
- <a href="#" onclick="showMapView()" class="set-view view-map" style="display: none;"><i class="fas fa-th"></i>Térkép</a>
- </div>
- <a href="javascript: void(0);" id="nsBtn" class="ns-btn" name="nsBtn" onclick="showHideSearch()">Keresés</a>
- <div class="detailed-filter"></div>
- <div class="results-block mobile-block">
- <?php if (sizeof($properties)>0) : ?>
- <button type="button" id="showhideDetailSearch" name="nsBtn" class="btn-black hide-on-desktop showhideDetailSearch" style="width: 95.5%; margin-left: 8px; margin-top: -10px;" onclick="showHideSearch($(this))">Részletes keresés</button>
- <a href="javascript:;" id="showhideDetailClose" class="hide-on-desktop close-detail-search" style="display: none;" onclick="showHideSearch()"><i class="fas fa-times"></i> Részletes keresés bezárása</a>
- <!--<h3 style="padding-top: 10px; padding-bottom: 0px; margin-bottom: 15px; display: inline-block; font-weight: bold;"><strong style="font-weight: bold;"><?=$searchResultsCount?></strong> találat</h3>-->
- <h3 style="padding-top: 10px; padding-bottom: 0px; margin-bottom: 15px; display: inline-block; font-weight: bold;"><?=$keresesi_szoveg?></h3>
-
- <!--<div class="sorter-mobile">
- <?php $active_order = $_SESSION['storedOrderField']."_".$_SESSION['storedOrderDirection']; ?>
- <select name="sorting" onchange="setListOrderReloader($(this).val())">
- <option value="letrehozva_DESC" <?php if ($active_order=='letrehozva_DESC') echo 'selected'; ?>>Dátum szerint csökkenő</option>
- <option value="letrehozva_ASC" <?php if ($active_order=='letrehozva_ASC') echo 'selected'; ?>>Dátum szerint növekvő</option>
- <option value="iranyar_ASC" <?php if ($active_order=='iranyar_ASC') echo 'selected'; ?>>Ár szerint növekvő</option>
- <option value="iranyar_DESC" <?php if ($active_order=='iranyar_DESC') echo 'selected'; ?>>Ár szerint csökkenő</option>
- </select>
- </div>-->
- <!--<h4 id="keresesi_szoveg" style="margin-top: -15px; font-size: 14px;"><?=$keresesi_szoveg?></h4>-->
- <?php else : ?>
- <div class="error-message mobile-top" style="display: block;"><h2>Nincs találat : (</h2> <p style="padding-right: 20px;">Jelenleg nincs a megadott keresési feltételeknek megfelelő ingatlan az adatbázisunkban.<br>Kérjük adjon meg más keresési paramétereket!</p></div>
- <?php endif; ?>
- <div class="result-list-thin justmobile">
- <?php foreach ($properties as $property) : if ($property->tipus=='') $property->tipus=$property->jelleg; ?>
- <div class="result-item horizontal-item" onclick="window.location='/<?=$property->ertekesites?>/<?=$property->tipus?>/<?=common::generateSlug($property->telepules)?>/<?=$property->id?>-<?=$property->ertekesites?>-<?=$property->tipus?>-<?=common::generateSlug($property->iranyitoszam)?>-<?=common::generateSlug($property->telepules)?><?php if ($property->terkepesmegjelenes=='1') echo '-'.common::generateSlug($property->utcanev) ?>';">
- <figure class="result-details" style="background-image: url('<?=common::get_image_url_mark($property->indexkep)?>'); width: 200px;"></figure>
- <div class="result-details">
- <pre class="price"><?=formatize::currency($property->iranyar)?> <span class="currency">FT</span></pre>
- <?php if ($property->meret_netto!='0') : ?><span class="size"><?=$property->meret_netto?> m<sup>2</sup></span><?php endif; ?>
- <?php if ($property->meret_telek!=='0') : ?>
- <span class="site"><?=$property->meret_telek?> m<sup>2</sup> telek</span>
- <?php endif; ?>
- <?php $szobasum = 0; $szobasum = $property->szoba_egesz+$property->szoba_fel; ?>
- <?php if ($szobasum!='0') : ?><span class="rooms"><?php echo $szobasum; ?> szoba</span><br><?php endif; ?>
- <?php if ($property->terkepesmegjelenes!='0') : ?>
- <span class="address"><?=$property->iranyitoszam?>. <?=$property->telepules?>, <?=$property->korzet?><?php if ($property->terkepesmegjelenes=='1') : ?>, <?=$property->utcanev?><?php endif; ?></span>
- <?php endif; ?>
- </div>
- </div>
- <?php endforeach; ?>
- </div>
- <div class="result-list justdesktop">
- <?php foreach ($properties as $property) : if ($property->tipus=='') $property->tipus=$property->jelleg; ?>
- <div class="result-item" onclick="window.location='/<?=$property->ertekesites?>/<?=$property->tipus?>/<?=common::generateSlug($property->telepules)?>/<?=$property->id?>-<?=$property->ertekesites?>-<?=$property->tipus?>-<?=common::generateSlug($property->iranyitoszam)?>-<?=common::generateSlug($property->telepules)?><?php if ($property->terkepesmegjelenes=='1') echo '-'.common::generateSlug($property->utcanev) ?>';">
- <figure style="background-image: url('<?=common::get_image_url_mark($property->indexkep)?>');"></figure>
- <span class="gallery"><i class="fas fa-camera"></i> <small><?=common::getPropertyImagesCount($property->regszam)?></small></span>
- <pre class="price"><?=formatize::currency($property->iranyar)?> <span class="currency">FT</span></pre>
- <?php if ($property->meret_netto!='0') : ?><span class="size"><?=$property->meret_netto?> m<sup>2</sup></span><?php endif; ?>
- <?php if ($property->meret_telek!=='0') : ?>
- <span class="site"><?=$property->meret_telek?> m<sup>2</sup> telek</span>
- <?php endif; ?>
- <?php $szobasum = 0; $szobasum = $property->szoba_egesz+$property->szoba_fel; ?>
- <?php if ($szobasum!='0') : ?><span class="rooms"><?php echo $szobasum; ?> szoba</span><br><?php endif; ?>
- <?php if ($property->terkepesmegjelenes!='0') : ?>
- <span class="address"><?=$property->iranyitoszam?>. <?=$property->telepules?>, <?=$property->korzet?><?php if ($property->terkepesmegjelenes=='1') : ?>, <?=$property->utcanev?><?php endif; ?></span>
- <?php endif; ?>
- <!--<a class="tool-icon" href="javascript:;" onclick="window.location='/property/show/<?=$property->id?>';"><i class="fas fa-envelope"></i> Kapcsolat</a>-->
- </div>
- <?php endforeach; ?>
- </div>
- <div class="clear"></div>
- <?php if ($_SESSION['statusz_switch']!='arcsokkent') : ?>
- <?=$loaderBtn?>
- <?php endif; ?>
- <br><br>
- </div>
- </section>
- <?php if ($ajax!=='load') include 'footer.php'; ?>
|