clients.php 972 B

123456789101112131415161718192021222324252627282930
  1. <div class="launchcollumn">
  2. <a>Clients</a><br>
  3. <?php
  4. $getcltqry = mysqli_query($link, "select * from clients where active=1 ORDER BY full_name ASC");
  5. while($row = mysqli_fetch_array($getcltqry)){
  6. echo "<a href='?a=clients&clt=".$row['id']."' class='collumnbutton'>".$row['full_name']."</a>";
  7. }
  8. ?>
  9. </div>
  10. <?php
  11. if(isset($cltid)){
  12. echo "<div class='launchcollumn'>";
  13. echo "<a>Infos</a>";
  14. $getreqqry = mysqli_query($link, "SELECT * from clients where id = $cltid");
  15. while($row = mysqli_fetch_array($getreqqry)){
  16. echo "<a class='collumnbutton'>Nom complet: ".$row['full_name']."</a>";
  17. echo "<a class='collumnbutton'>Préfix: ".$row['prefix']."</a>";
  18. echo "<a class='collumnbutton'>Identifiant CRM: ".$row['num']."</a>";
  19. }
  20. echo "<a class='button button-left'>Sauvegarder</a>";
  21. echo "<a class='button button-left'>Désactiver</a>";
  22. echo "</div>";
  23. }
  24. ?>