card.example.contact.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <div class="contact-card">
  2. <div class="top-part">
  3. <div class="header-top">
  4. <div class="icon">
  5. <img class="avatar-rounded" src="<?php echo $contact->picture(); ?>" alt="Image de profil">
  6. <!-- <i class="<?php echo $contact->icon; ?>"></i> -->
  7. </div>
  8. <div>
  9. <h3 class="label"><a href="index.php?module=example&page=sheet&id=<?php echo $contact->id; ?>" target="_blank"><?php echo $contact->label; ?></a></h3>
  10. <small class="mail text-muted"><?php echo $contact->creator; ?></small>
  11. </div>
  12. </div>
  13. <div class="content-block">
  14. <div>
  15. <div class="label-box">Anniversaire : </div>
  16. <div class="text-box"><span class="reference"><?php echo date('d/m/Y',$contact->birth); ?></span></div>
  17. </div>
  18. <div>
  19. <div class="label-box">Téléphone : </div>
  20. <div class="text-box"><span class="phone"><?php echo $contact->phone; ?></span></div>
  21. </div>
  22. <div>
  23. <div class="label-box">Adresse : </div>
  24. <div class="text-box"><span class="fax"><?php echo $contact->address; ?></span></div>
  25. </div>
  26. <div class="clear"></div>
  27. </div>
  28. </div>
  29. <hr>
  30. <div class="bottom-part row">
  31. <a class="btn btn-primary btn-sm ml-auto" href="index.php?module=example&page=sheet.contact&id=<?php echo $contact->id; ?>" target="_blank" title="Voir la fiche"><i class="fas fa-search"></i></a>
  32. <a href="mailto:<?php echo $contact->mail; ?>" class="btn btn-info btn-sm" title="Contacter par mail"><i class="fas fa-envelope"></i></a>
  33. </div>
  34. </div>