office_view.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <?php include 'header.php' ?>
  2. <section id="smallslider">
  3. <div class="subpage-head office-head">
  4. <h1>Irodák</h1>
  5. </div>
  6. </section>
  7. <section id="content">
  8. <div class="text-wrap">
  9. <div class="breadcrumb"><a href="/">Főoldal</a> &raquo; <a href="/rockhome-irodak">Irodák</a> &raquo; <a href="#"><?=$office->nev?></a></div>
  10. <div class="agent-info office-info-wrap">
  11. <figure style="background-image: url('https://prod.rockhome.hu/pictures/iroda/<?=$office->azonosito?>.jpg');"></figure>
  12. <div class="namecard">
  13. <h2><?=$office->nev?></h2>
  14. <h4><?=$office->iranyitoszam?>. <?=$office->varos?>, <?=$office->utca_hazszam?></h4>
  15. <h5>Magyar, English</h5>
  16. <div class="socials">
  17. <?php if (!common::checkOfficeInFavorites($office->id)) : ?>
  18. <a href="javascript:;" id="addtofavorites" class="social" onclick="add_office_to_favorite('<?=$office->id?>')"><i class="fas fa-heart"></i> Kevencekhez</a>
  19. <?php else : ?>
  20. <a href="javascript:;" id="addtofavorites" class="social" style="color: #ff0000; cursor: initial;"><i class="fas fa-heart"></i> Hozzáadva</a>
  21. <?php endif; ?>
  22. <!--<a href="#share" class="social"><i class="fas fa-share-alt"></i> Megosztás</a>-->
  23. <a href="javascript:;" onclick="print_office('<?=$office->id?>')" class="social"><i class="fas fa-print"></i> Nyomtatás</a>
  24. </div>
  25. <hr>
  26. <span><strong>Telefon: </strong> <a href="call:<?=$office->telefon?>"><?=$office->telefon?></a></span>
  27. <span><strong>Mobil: </strong> <a href="call:<?=$office->mobil?>"><?=$office->mobil?></a></span>
  28. <hr>
  29. <button class="btn-submit" type="button" name="viewagents" id="viewagents" onclick="window.location='/rockhome-tanacsadok/iroda/<?=$office->azonosito?>';" style="width: 100%; margin-top: 15px;">Munkatársaink</button>
  30. <div class="locations">
  31. <strong>Területek: </strong>
  32. <?php foreach ($teruletek as $terulet) : ?>
  33. <a href="#"><?=$terulet->nev?></a>&nbsp;
  34. <?php endforeach; ?>
  35. </div>
  36. </div>
  37. <div class="clear"></div>
  38. <?php if ($bemutatkozas!='') : ?>
  39. <div class="office-details" style="padding-right: 30px;">
  40. <strong>Iroda bemutatása</strong>
  41. <p><?=$bemutatkozas?></p>
  42. </div>
  43. <?php endif; ?>
  44. <!--<div class="office-details">
  45. <strong>Díjak, elismerések</strong>
  46. <p>Located on Historic Freedom Trail Walking distance to Fanueil Hall and Downtown Boston Steps to Fleet Center and Historic Charles River Outstanding Harbor and City Views Traditional Brownstone Properties and Luxury Condominiums are offered.</p>
  47. </div>-->
  48. <div class="clear"></div>
  49. </div>
  50. <button class="btn-black kontakt-btn" name="kontakt" type="button" onclick="javascript: $('#contform').toggle(); $('.kontakt-btn').hide();">Lépjen velünk kapcsolatba!</button>
  51. <div class="contact-form agent-form">
  52. <div id="contform">
  53. <h2>Kérdésed van? Lépj velünk kapcsolatba!</h2>
  54. <div class="error-message" style="width: 96%;"></div>
  55. <div class="success-message" style="width: 96%;"></div>
  56. <div style="background-color: #f7f7f7; margin-top: -20px;">
  57. <div class="contact-type office-contact-mobile" style="padding-top: 15px;">
  58. <span>Kapcsolat típusa: </span>
  59. <input type="radio" name="contact_type" value="email"> Email
  60. <input type="radio" name="contact_type" value="phone" checked> Telefon
  61. <input type="radio" name="contact_type" value="both"> Mindkettő
  62. </div>
  63. <?php if ($_SESSION['userid']!='') $userdata = common::get_user_data($_SESSION['userid']); ?>
  64. <form class="contactFRM" id="contactFRM" action="/rockhome-irodak/sendcontact/<?=$office->id?>" method="post">
  65. <div class="row">
  66. <div class="col2"><input type="text" value="<?=$userdata->firstname?>" name="firstname" id="firstname" placeholder="Vezetéknév" class="textbox"></div>
  67. <div class="col2"><input type="text" value="<?=$userdata->lastname?>" name="lastname" id="lastname" placeholder="Keresztnév" class="textbox"></div>
  68. </div>
  69. <div class="row">
  70. <div class="col2"><input type="email" value="<?=$userdata->email?>" name="email" id="email" placeholder="Email címed" class="textbox"></div>
  71. <div class="col2"><input type="phone" value="<?=$userdata->phone?>" name="phone" id="phone" placeholder="Telefonszámod" class="textbox"></div>
  72. </div>
  73. <div class="row">
  74. <div class="col1">
  75. <textarea class="editor" name="message" id="message" placeholder="Szöveges üzenet..."></textarea>
  76. </div>
  77. </div>
  78. <div class="row">
  79. <div class="col1 center discenter">
  80. <button type="button" onclick="send_office_contact()" name="send" class="btn-submit mobpos office-contact-send" style="margin-bottom: 20px;">Elküldöm</button>
  81. </div>
  82. </div>
  83. </form>
  84. </div>
  85. </div>
  86. <h2 class="nomarg-mobile on-office-head"><?=$office->iranyitoszam?>. <?=$office->varos?>, <?=$office->utca_hazszam?></h2>
  87. <div id="propmap" class="on-office-mobile" style="width: 100%; height: 320px;" data-lat="<?=$office->latitude?>" data-lon="<?=$office->longitude?>" data-zoom="14"></div>
  88. <div class="clear"></div>
  89. <!--<iframe src="https://maps.google.com/maps?q=<?=$office->latitude?>,<?=$office->longitude?>&hl=es;z=14&amp;output=embed" width="680" height="320" frameborder="0" style="border:0; border-radius: 10px; width: 100%; margin-top: 30px;" allowfullscreen></iframe>-->
  90. </div>
  91. <div class="clear"></div>
  92. <div class="agent-listing only-office">
  93. <h2 style="max-width: 96.9%; margin-left: 3px;"><?=$office->nev?> ingatlanjai</h2>
  94. <div class="filter-bar" style="position: relative; text-align: left; padding-left: 0px; margin-top: 0px; width: 99.3%;">
  95. <div class="filter-input-wrap minus nopadding">
  96. <select name="ertekesites" id="ertekesites" class="sgSelect modal-input property-search-select" onchange="set_ertekesites_tipus($(this).val())">
  97. <option value="">Összes értékesítés típus</option>
  98. <?php foreach ($ertekesites as $item) : ?>
  99. <option value="<?=$item->ertekesites?>" <?php if ($_SESSION['search']['ertekesites']==$item->ertekesites) echo 'selected'; ?>><?=lang::_($item->ertekesites)?></option>
  100. <?php endforeach; ?>
  101. </select>
  102. </div>
  103. <div class="filter-input-wrap minus" style="margin-left: -5px; margin-right: 8px;">
  104. <select name="jelleg" id="jelleg" class="sgSelect modal-input property-search-select jelleg-on-mobile" onchange="setDetailedForm($(this),'grid')">
  105. <?php
  106. if ($_SESSION['search']['jelleg']=='lakoingatlan') {
  107. $check = 'Lakóingatlan - '.$_SESSION['search']['tipus'];
  108. }
  109. else {
  110. $check = $_SESSION['search']['jelleg'];
  111. }
  112. ?>
  113. <option value="">Összes ingatlan jelleg</option>
  114. <?php foreach ($jelleg as $item) : ?>
  115. <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>
  116. <?php endforeach; ?>
  117. </select>
  118. </div>
  119. <div class="filter-input-wrap selectize-wrap city-on-mobile">
  120. <select name="city[]" id="city" multiple="multiple">
  121. <option value="">Elhelyezkedés (megye vagy település)</option>
  122. <?php $actives = explode(",",$_SESSION['search']['city']); ?>
  123. <?php foreach ($city as $item) : ?>
  124. <option value="<?=$item->telepules?>" <?php if (in_array($item->telepules,$actives)) echo 'selected'; ?>><?=$item->telepules?></option>
  125. <?php endforeach; ?>
  126. </select>
  127. &nbsp;&nbsp;
  128. </div>
  129. <div class="sgPriceBox ar-on-mobile" onclick="sgSetEditable(this)">
  130. <small class="ar-label" style="<?php if ($_SESSION['search']['iranyar_min']!='' || $_SESSION['search']['iranyar_max']!='') echo 'display: none;'; ?> color: #ccc;">Ár</small>
  131. <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">
  132. <small class="currency-label">M Ft</small>
  133. </div>
  134. <div class="sgSizeBox ar-on-mobile" onclick="sgSetSizeEditable(this)">
  135. <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>
  136. <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">
  137. <small style="margin-top: 5px;">m<sup>2</sup></small>
  138. </div>
  139. <div class="sgRoomBox ar-on-mobile" onclick="sgSetSizeEditable(this)">
  140. <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']?>">
  141. <small style="margin-top: 5px;">szoba</small>
  142. </div>
  143. <button type="button" title="Keresés indítása" name="go" onclick="search_by_office('<?=$office->id?>')" class="btn-black quicksearch-green-btn office-search-on-mobile"><i class="fas fa-search"></i></button>
  144. </div>
  145. <div class="detailed-filter bottomed nobg" style="padding: 0px; padding-top: 20px;"></div>
  146. <!--<a href="javascript: void(0);" id="dsBtn" class="do-btn" name="dsBtn" onclick="showHideDetailSearch()">Részletes</a>-->
  147. <div class="result-list topmarged office-listed">
  148. <?php $i=0; ?>
  149. <?php foreach ($officeProperties as $property) : if ($property->tipus=='') $property->tipus=$property->jelleg; $i++; ?>
  150. <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) ?>';">
  151. <figure style="background-image: url('<?=common::get_image_url_mark($property->indexkep)?>');"></figure>
  152. <span class="gallery"><i class="fas fa-camera"></i> <small><?=common::getPropertyImagesCount($property->regszam)?></small></span>
  153. <pre class="price"><?=formatize::currency($property->iranyar)?> <span class="currency">FT</span></pre>
  154. <?php if ($property->meret_netto!='0') : ?><span class="size"><?=$property->meret_netto?> m<sup>2</sup></span><?php endif; ?>
  155. <?php if ($property->meret_telek!=='0') : ?>
  156. <span class="site"><?=$property->meret_telek?> m<sup>2</sup> telek</span>
  157. <?php endif; ?>
  158. <?php $szobasum = 0; $szobasum = $property->szoba_egesz+$property->szoba_fel; ?>
  159. <?php if ($szobasum!='0') : ?><span class="rooms"><?php echo $szobasum; ?> szoba</span><br><?php endif; ?>
  160. <?php if ($property->terkepesmegjelenes!='0') : ?>
  161. <span class="address"><?=$property->iranyitoszam?>. <?=$property->telepules?>, <?=$property->korzet?><?php if ($property->terkepesmegjelenes=='1') : ?>, <?=$property->utcanev?><?php endif; ?></span>
  162. <?php endif; ?>
  163. <!--<a class="tool-icon" href="javascript:;" onclick="window.location='/property/show/<?=$property->id?>';"><i class="fas fa-envelope"></i> Kapcsolat</a>-->
  164. </div>
  165. <?php endforeach; ?>
  166. </div>
  167. </div>
  168. <script>var redirectURL = window.location.href;</script>
  169. <div class="clear"></div>
  170. </div>
  171. </section>
  172. <?php include 'footer.php' ?>