| 1 | {*
|
| 2 | Copyright (C) 2009, All Rights Reserved.
|
| 3 |
|
| 4 | This file is part of RPInventory.
|
| 5 |
|
| 6 | RPInventory is free software: you can redistribute it and/or modify
|
| 7 | it under the terms of the GNU General Public License as published by
|
| 8 | the Free Software Foundation, either version 3 of the License, or
|
| 9 | (at your option) any later version.
|
| 10 |
|
| 11 | RPInventory is distributed in the hope that it will be useful,
|
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 14 | GNU General Public License for more details.
|
| 15 |
|
| 16 | You should have received a copy of the GNU General Public License
|
| 17 | along with RPInventory. If not, see <http://www.gnu.org/licenses/>.
|
| 18 |
|
| 19 | *}
|
| 20 | <div id="controlsTop" class="ui-widget-smaller ui-widget-content ui-corner-all controls">
|
| 21 | <div class="left">
|
| 22 | <h3>Search:</h3>
|
| 23 | <input type="text" id="searchField" class="searchField" />
|
| 24 | </div>
|
| 25 | <div class="right">
|
| 26 | <a id="addUser" class="ui-state-default ui-corner-all button" href="addUser.php">
|
| 27 | <span class="ui-icon ui-icon-circle-plus"><!-- --></span>
|
| 28 | <span class="buttonText">Add new user</span>
|
| 29 | </a>
|
| 30 | </div>
|
| 31 | </div>
|
| 32 |
|
| 33 | <table width="700" border="0" class="itemsTable sortable searchable ui-widget ui-corner-all" cellspacing="0">
|
| 34 | <thead class="ui-widget-header">
|
| 35 | <tr>
|
| 36 | <th width="100">Username</th>
|
| 37 | <th width="100">Access</th>
|
| 38 | <th width="150">Email</th>
|
| 39 | <th width="150">Actions</th>
|
| 40 | </tr>
|
| 41 | </thead>
|
| 42 | <tbody class="ui-widget-content">
|
| 43 | {section name=userLoop loop=$users}
|
| 44 | <tr{cycle values=" class=\"alt\","}>
|
| 45 | <td align="center">{$users[userLoop]->username}</td>
|
| 46 | <td align="center">
|
| 47 | {if $users[userLoop]->access_level == 3}
|
| 48 | Administrator
|
| 49 | {elseif $users[userLoop]->access_level == 2}
|
| 50 | Manager
|
| 51 | {elseif $users[userLoop]->access_level == 1}
|
| 52 | User
|
| 53 | {/if}
|
| 54 |
|
| 55 | </td>
|
| 56 |
|
| 57 | <td align="center"><a href="mailto:{$users[userLoop]->email}">{$users[userLoop]->email}</a></td>
|
| 58 |
|
| 59 | <td align="center">
|
| 60 | <a href="editUser.php?id={$users[userLoop]->user_id}" class="ui-state-default ui-corner-all button">
|
| 61 | <span class="ui-icon ui-icon-circle-arrow-w"></span>
|
| 62 | <span class="buttonText">Edit</span>
|
| 63 | </a>
|
| 64 |
|
| 65 | <a class="ui-state-default ui-corner-all button" onclick="confirmation('Are you sure you want to delete user {$users[userLoop]->username} ?','deleteUser.php?id={$users[userLoop]->user_id}')">
|
| 66 | <span class="ui-icon ui-icon-circle-close"></span>
|
| 67 | <span class="buttonText">Delete</span>
|
| 68 | </a>
|
| 69 | </td>
|
| 70 | </tr>
|
| 71 | {/section}
|
| 72 | </tbody>
|
| 73 | </table>
|