clarify use of mysql_fetch_array : we really want mysql_fetch_assoc
[diogenes.git] / templates / admin-users.tpl
... / ...
CommitLineData
1<h3>{$msg_users}</h3>
2
3<form method="post" action="{$post}">
4<table class="light">
5<tr>
6 <th>{$user}</th>
7 <th>{$action}</th>
8</tr>
9{foreach from=$users item=myuser}
10<tr>
11 <td>{$myuser[0]} <span class="auth">({$myuser[1]})</span></td>
12 <td>{a lnk=$myuser[2]}</td>
13</tr>
14{/foreach}
15<tr>
16 <td colspan="2">
17 <input type="text" name="username"/>
18 {html_options name="auth" options=$auths}
19 <input type="submit" name="action" value="add">
20 </td>
21</tr>
22</table>
23</form>
24
25<h3>{$msg_admins}</h3>
26
27<table class="light">
28<tr>
29 <th>{$user}</th>
30</tr>
31{foreach from=$admins item=myuser}
32<tr>
33 <td>{$myuser[0]} <span class="auth">({$myuser[1]})</span></td>
34</tr>
35{/foreach}
36</table>