profile_agents_view.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php include 'header.php' ?>
  2. <section id="smallslider">
  3. <div class="subpage-head profile-head">
  4. <h1>Profilom</h1>
  5. </div>
  6. </section>
  7. <section id="content">
  8. <div class="text-wrap">
  9. <div class="breadcrumb"><a href="/">Home</a> &raquo; <a href="/profile/settings">Profilom</a> &raquo; <a href="#">Kedvenc tanácsadóim</a></div>
  10. <div class="menu-block">
  11. <?php include 'profile_menu.php'; ?>
  12. </div>
  13. <div class="text-block-alt">
  14. <h2 class="head overload">Kedvenc tanácsadóim</h2>
  15. <div class="results-block" style="padding-top: 0px; width: 100%;">
  16. <div class="result-list half">
  17. <?php foreach ($agents as $agent) : ?>
  18. <div class="agent-item" onclick="window.location='/agents/show/<?=$agent->id?>';">
  19. <figure style="background-image: url('https://prod.rockhome.hu/pictures/munkatars/<?=$agent->felhasznalonev?>.jpg');"></figure>
  20. <div class="namecard">
  21. <h4><?=$agent->nev?></h4>
  22. <small><?=common::getOfficeName($agent->iroda)?></small>
  23. <?php if ($agent->mobil==NULL && $agent->telefon!=NULL) $agent->mobil = $agent->telefon; ?>
  24. <?php if ($agent->mobil!==NULL) : ?>
  25. <span><strong>Mobil: </strong> <a href="call:<?=$agent->mobil?>"><?=$agent->mobil?></a></span>
  26. <?php else : ?>
  27. <span>&nbsp;</span>
  28. <?php endif; ?>
  29. <div class="contact-panel">
  30. <a class="tool-icon" href="/profile/agents/delete/?id=<?=$agent->id?>"><i class="fas fa-trash"></i> Eltávolítás</a>
  31. </div>
  32. </div>
  33. </div>
  34. <?php endforeach; ?>
  35. <div class="clear"></div>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="clear"></div>
  40. </div>
  41. </section>
  42. <?php include 'footer.php' ?>