| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- <?php include 'header.php' ?>
- <!--<section id="smallslider">
- <div class="subpage-head agent-head">
- <h1>Tanácsadók</h1>
- </div>
- </section>-->
- <section id="content">
- <div class="text-wrap agent-wrapper">
- <div class="breadcrumb"><a href="/">Főoldal</a> » <a href="/rockhome-tanacsadok">Tanácsadók</a> » <a href="#"><?=$agent->nev?></a></div>
- <div class="agent-info">
- <figure style="background-image: url('https://prod.rockhome.hu/pictures/munkatars/<?=$agent->felhasznalonev?>.jpg');"></figure>
- <div class="namecard">
- <h2><?=$agent->nev?></h2>
- <h4><?=$agent->titulus_tipus?></h4>
- <h5><?=$languages?></h5>
- <div class="socials">
- <?php if (!common::checkAgentInFavorites($agent->id)) : ?>
- <a href="javascript:;" onclick="add_agent_to_favorite('<?=$agent->id?>',$(this))" class="social"><i class="fas fa-heart"></i> Kedvencekhez</a>
- <?php else : ?>
- <a href="javascript:;" class="social" style="color: #ff0000; cursor: initial;"><i class="fas fa-heart"></i> Hozzáadva</a>
- <?php endif; ?>
- <!--<a href="#share" class="social"><i class="fas fa-share-alt"></i> Megosztás</a>-->
- <!--<a href="#print" onclick="javascript: print_agent('<?=$agent->id?>');" class="social"><i class="fas fa-print"></i> Nyomtatás</a>-->
- </div>
- <hr>
- <?php if ($agent->mobil==NULL && $agent->telefon!=NULL) $agent->mobil = $agent->telefon; ?>
- <?php if ($agent->mobil!==NULL) : ?>
- <span><strong>Telefonszám: </strong> <a href="call:<?=$agent->mobil?>"><?=$agent->mobil?></a></span>
- <?php else : ?>
- <span> </span>
- <?php endif; ?>
- <?php if ($agent->email!==NULL) : ?>
- <span><strong>Email: </strong> <a href="mailto: <?=$agent->email?>"><?=$agent->email?></a></span>
- <?php else : ?>
- <span> </span>
- <?php endif; ?>
- <hr>
- <button type="button" name="send" onclick="window.location='/rockhome-tanacsadok/vcard/<?=$agent->id?>'" class="btn-submit office-contact-vcard" style="margin-top: 7px; width: 100%; background-color: #393939;">Névjegy mentése</button>
- <!--<div class="locations">
- <strong>Területek: </strong>
- <a href="#budapest">Budapest</a>
- <a href="#budapest">Salgótarján</a>
- <br>
- <a href="#budapest">Nyíregyháza</a>
- <a href="#budapest">Balassagyarmat</a>
- </div>-->
- </div>
- </div>
-
- <button class="btn-black kontakt-btn" name="kontakt" type="button" onclick="javascript: $('#contform').toggle(); $('.kontakt-btn').hide();">Lépjen velünk kapcsolatba!</button>
- <div id="contform" class="contact-form agent-form">
- <h2>Kérdésed van? Lépj velem kapcsolatba!</h2>
- <div class="error-message" style="width: 96%;"></div>
- <div class="success-message" style="width: 96%;"></div>
- <div style="background-color: #f7f7f7; margin-top: -20px;">
- <div class="contact-type" style="padding-top: 15px;">
- <span>Kapcsolat típusa: </span>
- <input type="radio" name="contact_type" value="email"> Email
- <input type="radio" name="contact_type" value="phone" checked> Telefon
- <input type="radio" name="contact_type" value="both"> Mindkettő
- </div>
- <?php if ($_SESSION['userid']!='') $userdata = common::get_user_data($_SESSION['userid']); ?>
- <form class="contactFRM" id="contactFRM" action="/rockhome-tanacsadok/sendcontact/<?=$agent->id?>" method="post">
- <div class="row">
- <div class="col2"><input type="text" value="<?=$userdata->firstname?>" name="firstname" id="firstname" placeholder="Vezetéknév" class="textbox"></div>
- <div class="col2"><input type="text" value="<?=$userdata->lastname?>" name="lastname" id="lastname" placeholder="Keresztnév" class="textbox"></div>
- </div>
- <div class="row">
- <div class="col2"><input type="email" value="<?=$userdata->email?>" name="email" id="email" placeholder="Email címed" class="textbox"></div>
- <div class="col2"><input type="phone" value="<?=$userdata->phone?>" name="phone" id="phone" placeholder="Telefonszámod" class="textbox"></div>
- </div>
- <div class="row">
- <div class="col1">
- <textarea class="editor" name="message" id="message" placeholder="Szöveges üzenet..."></textarea>
- </div>
- </div>
- <div class="row">
- <div class="col1">
- <button type="button" name="send" onclick="send_agent_message()" class="btn-submit office-contact-send" style="margin-bottom: 20px;">Elküldöm</button>
- </div>
- </div>
- </form>
- </div>
- </div>
-
- <div class="clear"></div>
- <?php if ($referens->ratings_avg>0.0 || $referens->ratings>0 || count(array_filter($comments,'strlen'))>0) : ?>
- <div class="agent-review">
- <h2>Értékelés és vélemények</h2>
- <?php if ($referens->ratings_avg!=0.0 && $referens->ratings!=0) : ?>
- <div class="stars">
- <strong style="font-weight: bold;">Értékelés: </strong>
- <?php if ($referens->ratings_avg>=0.3 && $referens->ratings_avg<=0.7) : ?>
- <i style="color: #ffd500;" class="fas fa-star-half"></i>
- <?php elseif ($referens->ratings_avg>0.8 && $referens->ratings_avg<=1.2) : ?>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <?php elseif ($referens->ratings_avg>=1.3 && $referens->ratings_avg<=1.7) : ?>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star-half"></i>
- <?php elseif ($referens->ratings_avg>=1.8 && $referens->ratings_avg<=2.2) : ?>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <?php elseif ($referens->ratings_avg>=2.3 && $referens->ratings_avg<=2.7) : ?>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star-half"></i>
- <?php elseif ($referens->ratings_avg>=2.8 && $referens->ratings_avg<=3.2) : ?>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <?php elseif ($referens->ratings_avg>=3.3 && $referens->ratings_avg<=3.7) : ?>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star-half"></i>
- <?php elseif ($referens->ratings_avg>=3.8 && $referens->ratings_avg<=4.2) : ?>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <?php elseif ($referens->ratings_avg>=4.3 && $referens->ratings_avg<=4.7) : ?>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star-half"></i>
- <?php elseif ($referens->ratings_avg>=4.7) : ?>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <i style="color: #ffd500;" class="fas fa-star"></i>
- <?php endif; ?>
-
- <?=$referens->ratings?> értékelés alapján</a>
- </div>
- <?php endif; ?>
- <?php foreach ($comments as $comment) : ?>
- <div class="review">
- <strong style="font-weight: bold;"><?=$comment->name?></strong>
- <p><?=$comment->description?></p>
- </div>
- <?php endforeach; ?>
- </div>
- <?php else : ?>
- <br><br>
- <?php endif; ?>
-
- <div class="clear"></div>
-
- <div class="agent-listing only-office">
- <h2 style="max-width: 96.9%; margin-left: 3px;"><?=$agent->nev?> ingatlanjai (<?php if (is_array($properties)) { echo count($properties); } else { echo 0; } ?>)</h2>
- <div class="filter-bar" style="position: relative; text-align: left; padding-left: 0px; margin-top: 0px; width: 99.3%;">
- <div class="filter-input-wrap minus nopadding">
- <select name="ertekesites" id="ertekesites" class="sgSelect modal-input property-search-select overlap-mobile" 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" style="margin-left: -5px; margin-right: 8px;">
- <select name="jelleg" id="jelleg" class="sgSelect modal-input property-search-select overlap-mobile" onchange="setDetailedForm($(this),'grid')">
- <?php
- if ($_SESSION['search']['jelleg']=='lakoingatlan') {
- $check = 'Lakóingatlan - '.$_SESSION['search']['tipus'];
- }
- else {
- $check = $_SESSION['search']['jelleg'];
- }
- ?>
- <option value="">Összes ingatlan jelleg</option>
- <?php foreach ($jelleg as $item) : ?>
- <option value="<?=$item->jelleg?>" <?php if ($check==$item->jelleg) echo 'selected'; ?>><?=lang::_(str_replace("Lakóingatlan - ","",$item->jelleg))?></option>
- <?php endforeach; ?>
- </select>
- </div>
- <div class="filter-input-wrap selectize-wrap">
- <select name="city[]" id="city" multiple="multiple" class="overlap-mobile">
- <option value="">Elhelyezkedés (megye vagy település)</option>
- <?php $actives = explode(",",$_SESSION['search']['city']); ?>
- <?php foreach ($city as $item) : ?>
- <option value="<?=$item->telepules?>" <?php if (in_array($item->telepules,$actives)) echo 'selected'; ?>><?=$item->telepules?></option>
- <?php endforeach; ?>
- </select>
-
- </div>
- <div class="sgPriceBox overlap-mobile" onclick="sgSetEditable(this)">
- <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"><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">
- <small class="currency-label">millió Ft</small>
- </div>
- <div class="sgSizeBox overlap-mobile" 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"><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">
- <small style="margin-top: 5px;">m<sup>2</sup></small>
- </div>
- <div class="sgRoomBox overlap-mobile" onclick="sgSetSizeEditable(this)">
- <input type="text" name="szoba_min" id="szoba_min" class="szobabox" value="<?=$_SESSION['search']['szoba_min']?>"><span>-</span><input type="text" name="szoba_max" id="szoba_max" class="szobabox" value="<?=$_SESSION['search']['szoba_max']?>">
- <small style="margin-top: 5px;">szoba</small>
- </div>
- <button type="button" title="Keresés indítása" name="go" onclick="search_by_agent('<?=$agent->id?>')" class="btn-black quicksearch-green-btn"><i class="fas fa-search"></i></button>
- </div>
- <div class="result-list topmarged">
- <?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; ?>
- </div>
- <?php endforeach; ?>
- <div class="clear"></div>
- </div>
- </div>
-
- <div class="clear"></div>
- </div>
- </section>
- <script>var redirectURL = window.location.href;</script>
-
- <?php include 'footer.php' ?>
|