Silnik strony + galerii zdjęć Suczawa 2009
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.2 KiB

  1. <?php
  2. /**
  3. * @package Galeria Suczawa 2009
  4. * @file admin/users_list.php
  5. * @version $Id$
  6. **/
  7. NaglowekPA('Lista administratorów');
  8. ?>
  9. <br />
  10. <br />
  11. <table width="900" border="1" style="border-color: gray; border-style: solid; border-collapse: collapse">
  12. <tr>
  13. <td colspan="6" bgcolor="yellow">Lista administratorów</td>
  14. </tr>
  15. <tr>
  16. <td class="b">Id</td>
  17. <td class="b">Nazwa użytkownika</td>
  18. <td class="b">Email</td>
  19. <td class="b">Ostatnie IP</td>
  20. <td colspan="2" class="b">Operacje</td>
  21. <?php
  22. $sql = "SELECT * FROM `admins`";
  23. if (!$result = $DB->query($sql))
  24. {
  25. blad('Nie mozna pobrac info o administratorach!');
  26. }
  27. while ($row = $result->fetch_assoc())
  28. {
  29. ?>
  30. <tr>
  31. <td><?php echo $row['id']; ?></td>
  32. <td><?php echo $row['nick']; ?></td>
  33. <td><?php echo $row['email']; ?></td>
  34. <td><?php echo $row['IP']; ?></td>
  35. <td><a href="index.php?mode=admin_users&amp;submode=edit&amp;id=<?php echo $row['id']; ?>">Edytuj</td>
  36. <td><a href="index.php?mode=admin_users&amp;submode=delete&amp;id=<?php echo $row['id']; ?>">Usuń</td>
  37. </tr>
  38. <?php } ?>
  39. </table>
  40. <div align="right"><a href="index.php?mode=admin_users&amp;submode=add">Dodaj nowe zdjęcie...</a></div>
  41. <?php StopkaPA(); ?>