|
|
- <?php
- /**
- * @package Galeria Suczawa 2009
- * @file admin/users_list.php
- * @version $Id$
- **/
-
- NaglowekPA('Lista administratorów');
- ?>
- <br />
- <br />
- <table width="900" border="1" style="border-color: gray; border-style: solid; border-collapse: collapse">
- <tr>
- <td colspan="6" bgcolor="yellow">Lista administratorów
- </tr>
- <tr>
- <td class="b">Id</td>
- <td class="b">Nazwa użytkownika</td>
- <td class="b">Email</td>
- <td class="b">Ostatnie IP</td>
- <td colspan="2" class="b">Operacje</td>
- <?php
- $sql = "SELECT * FROM `admins`";
- if (!$result = $DB->query($sql))
- {
- blad('Nie mozna pobrac info o administratorach!');
- }
-
- while ($row = $result->fetch_assoc())
- {
- ?>
- <tr>
- <td><?php echo $row['id']; ?></td>
- <td><?php echo $row['nick']; ?></td>
- <td><?php echo $row['email']; ?></td>
- <td><?php echo $row['IP']; ?></td>
- <td><a href="index.php?mode=admin_users&submode=edit&id=<?php echo $row['id']; ?>">Edytuj</td>
- <td><a href="index.php?mode=admin_users&submode=delete&id=<?php echo $row['id']; ?>">Usuń</td>
- </tr>
- <?php } ?>
- </table>
- <div align="right"><a href="index.php?mode=admin_users&submode=add">Dodaj nowego użytkownika...</a></div>
- <?php StopkaPA(); ?>
|