| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?php include 'header.php' ?>
- <section id="smallslider">
- <div class="subpage-head agent-head">
- <h1>Találatok</h1>
- </div>
- </section>
- <section id="content">
- <div class="text-wrap">
- <div class="breadcrumb"><a href="/">Home</a> » <a href="/search/index/?keyword=<?=$keyword?>">Találatok</a></div>
- <div class="menu-block">
- <ul>
- <?php if (!empty($properties)) : ?><li <?php if ($section=='properties') : ?>class="active-submenu-item"<?php endif; ?>><a href="/search/index/properties/?keyword=<?=$keyword?>">Ingatlanok</a></li><?php endif; ?>
- <?php if (!empty($offices)) : ?><li <?php if ($section=='offices') : ?>class="active-submenu-item"<?php endif; ?>><a href="/search/index/offices/?keyword=<?=$keyword?>">Irodák</a></li><?php endif; ?>
- <?php if (!empty($agents)) : ?><li <?php if ($section=='agents') : ?>class="active-submenu-item"<?php endif; ?>><a href="/search/index/agents/?keyword=<?=$keyword?>">Értékesítők</a></li><?php endif; ?>
- <?php if (!empty($pages)) : ?><li <?php if ($section=='pages') : ?>class="active-submenu-item"<?php endif; ?>><a href="/search/index/pages/?keyword=<?=$keyword?>">Tartalmak</a></li><?php endif; ?>
- </ul>
- <br><br>
- </div>
- <div class="text-block">
- <?php if (empty($properties) && empty($offices) && empty($agents) && empty($pages) && $section=='') : ?>
- <p>Nincs találat a keresett kifejezésre...</p>
- <?php endif; ?>
- <?php if (!empty($properties) && ($section=='' || $section=='properties')) : ?>
- <h2>Ingatlanok</h2>
- <p>
- <?php foreach ($properties as $property) : ?>
- <?php $min = strtolower($keyword); $max = strtoupper($keyword); $property->iranyitoszam = str_replace($keyword,"<span style='color: lightgreen; font-weight: bold;'>".$keyword."</span>",$property->iranyitoszam); $property->iranyitoszam = str_replace($min,"<span style='color: lightgreen; font-weight: bold;'>".$min."</span>",$property->iranyitoszam); $property->iranyitoszam = str_replace($max,"<span style='color: lightgreen; font-weight: bold;'>".$max."</span>",$property->iranyitoszam); ?>
- <?php $min = strtolower($keyword); $max = strtoupper($keyword); $property->telepules = str_replace($keyword,"<span style='color: lightgreen; font-weight: bold;'>".$keyword."</span>",$property->telepules); $property->telepules = str_replace($min,"<span style='color: lightgreen; font-weight: bold;'>".$min."</span>",$property->telepules); $property->telepules = str_replace($max,"<span style='color: lightgreen; font-weight: bold;'>".$max."</span>",$property->telepules); ?>
- <?php $min = strtolower($keyword); $max = strtoupper($keyword); $property->utcanev = str_replace($keyword,"<span style='color: lightgreen; font-weight: bold;'>".$keyword."</span>",$property->utcanev); $property->utcanev = str_replace($min,"<span style='color: lightgreen; font-weight: bold;'>".$min."</span>",$property->utcanev); $property->utcanev = str_replace($max,"<span style='color: lightgreen; font-weight: bold;'>".$max."</span>",$property->utcanev); ?>
- <?php $min = strtolower($keyword); $max = strtoupper($keyword); $property->hazszam = str_replace($keyword,"<span style='color: lightgreen; font-weight: bold;'>".$keyword."</span>",$property->hazszam); $property->hazszam = str_replace($min,"<span style='color: lightgreen; font-weight: bold;'>".$min."</span>",$property->hazszam); $property->hazszam = str_replace($max,"<span style='color: lightgreen; font-weight: bold;'>".$max."</span>",$property->hazszam); ?>
- <?php $min = strtolower($keyword); $max = strtoupper($keyword); $property->regszam = str_replace($keyword,"<span style='color: lightgreen; font-weight: bold;'>".$keyword."</span>",$property->regszam); $property->regszam = str_replace($min,"<span style='color: lightgreen; font-weight: bold;'>".$min."</span>",$property->regszam); $property->regszam = str_replace($max,"<span style='color: lightgreen; font-weight: bold;'>".$max."</span>",$property->regszam); ?>
- <?php $min = strtolower($keyword); $max = strtoupper($keyword); $property->korzet = str_replace($keyword,"<span style='color: lightgreen; font-weight: bold;'>".$keyword."</span>",$property->korzet); $property->korzet = str_replace($min,"<span style='color: lightgreen; font-weight: bold;'>".$min."</span>",$property->korzet); $property->korzet = str_replace($max,"<span style='color: lightgreen; font-weight: bold;'>".$max."</span>",$property->korzet); ?>
- <a href="/property/show/<?=$property->id?>" title="Hirdetés megtekintése"><?=$property->iranyitoszam?> <?=$property->telepules?> (<?=$property->korzet?>), <?=$property->utcanev?> <?=$property->hazszam?>. (<?=$property->regszam?>)</a><br>
- <?php endforeach; ?>
- </p>
- <?php elseif (empty($properties) && $section=='properties') : ?>
- <p>Nincs találat a keresett kifejezésre...</p>
- <?php endif; ?>
- <?php if (!empty($offices) && ($section=='' || $section=='offices')) : ?>
- <h2>Irodák</h2>
- <p>
- <?php foreach ($offices as $office) : ?>
- <?php $min = strtolower($keyword); $max = strtoupper($keyword); $office->nev = preg_replace("/($keyword)/i","<span style='color: lightgreen; font-weight: bold;'>".$keyword."</span>",$office->nev); $office->nev = preg_replace("/($min)/i","<span style='color: lightgreen; font-weight: bold;'>".$keyword."</span>",$office->nev); $office->nev = preg_replace("/($max)/i","<span style='color: lightgreen; font-weight: bold;'>".$keyword."</span>",$office->nev); ?>
- <a href="/offices/show/<?=$office->id?>" title="Iroda megtekintése"><?=$office->nev?> - <?=$office->iranyitoszam?> <?=$office->varos?>. <?=$office->utca_hazszam?></a><br>
- <?php endforeach; ?>
- </p>
- <?php elseif (empty($offices) && $section=='offices') : ?>
- <p>Nincs találat a keresett kifejezésre...</p>
- <?php endif; ?>
- <?php if (!empty($agents) && ($section=='' || $section=='agents')) : ?>
- <h2>Értékesítők</h2>
- <p>
- <?php foreach ($agents as $agent) : ?>
- <?php $min = strtolower($keyword); $max = strtoupper($keyword); $agent->nev = preg_replace("/($keyword)/i","<span style='color: lightgreen; font-weight: bold;'>".$keyword."</span>",$agent->nev); $agent->nev = preg_replace("/($min)/i","<span style='color: lightgreen; font-weight: bold;'>".$keyword."</span>",$agent->nev); $agent->nev = preg_replace("/($max)/i","<span style='color: lightgreen; font-weight: bold;'>".$keyword."</span>",$agent->nev); ?>
- <a href="/agents/show/<?=$agent->id?>" title="Értékesítő megtekintése"><?=$agent->nev?></a><br>
- <?php endforeach; ?>
- </p>
- <?php elseif (empty($agents) && $section=='agents') : ?>
- <p>Nincs találat a keresett kifejezésre...</p>
- <?php endif; ?>
- <?php if (!empty($pages) && ($section=='' || $section=='pages')) : ?>
- <h2>Tartalmak</h2>
- <p>
- <?php foreach ($pages as $page) : ?>
- <?php $min = strtolower($keyword); $max = strtoupper($keyword); $page->page_title = str_replace($keyword,"<span style='color: lightgreen; font-weight: bold;'>".$keyword."</span>",$page->page_title); $page->page_title = str_replace($min,"<span style='color: lightgreen; font-weight: bold;'>".$min."</span>",$page->page_title); $page->page_title = str_replace($max,"<span style='color: lightgreen; font-weight: bold;'>".$max."</span>",$page->page_title); ?>
- <a href="pages/show/<?=$page->page_slug?>" title="Oldal megtekintése"><?=$page->page_title?></a><br>
- <?php endforeach; ?>
- </p>
- <?php elseif (empty($pages) && $section=='pages') : ?>
- <p>Nincs találat a keresett kifejezésre...</p>
- <?php endif; ?>
- </div>
- <div class="clear"></div>
- </div>
- </section>
- <?php include 'footer.php' ?>
|