2 function chLocation(newLocation) { document.location = newLocation; }
5 <table cellspacing="0" cellpadding="7" border="0" width="720">
8 {if $user->can('manage_users')}
9 <table cellspacing="1" cellpadding="3" border="0" width="100%">
11 <tr><td class="sectionHeaderNoBorder">{$i18n.form.users.active_users}</td></tr>
14 <td width="30%" class="tableHeader">{$i18n.label.person_name}</td>
15 <td width="30%" class="tableHeader">{$i18n.label.login}</td>
16 <td width="20%" class="tableHeader">{$i18n.form.users.role}</td>
17 <td width="10%" class="tableHeader">{$i18n.label.edit}</td>
18 <td width="10%" class="tableHeader">{$i18n.label.delete}</td>
21 {foreach $active_users as $u}
22 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
24 {if $user->uncompleted_indicators}
25 <span class="uncompleted-entry{if $u.has_uncompleted_entry} active{/if}"{if $u.has_uncompleted_entry} title="{$i18n.form.users.uncompleted_entry}"{/if}></span>
29 <td>{$u.login|escape}</td>
30 <td>{$u.role_name|escape}</td>
31 {if $u.rank < $user->rank || ($u.rank == $user->rank && $u.id == $user->id)}
32 <td><a href="user_edit.php?id={$u.id}">{$i18n.label.edit}</a></td>
33 {if $u.id != $user->id}<td><a href="user_delete.php?id={$u.id}">{$i18n.label.delete}</a></td>{else}<td></td>{/if}
45 <td align="center"><br>
46 <form><input type="button" onclick="chLocation('user_add.php');" value="{$i18n.button.add}"></form>
52 <table cellspacing="1" cellpadding="3" border="0" width="100%">
53 <tr><td class="sectionHeaderNoBorder">{$i18n.form.users.inactive_users}</td></tr>
55 <td width="30%" class="tableHeader">{$i18n.label.person_name}</td>
56 <td width="30%" class="tableHeader">{$i18n.label.login}</td>
57 <td width="20%" class="tableHeader">{$i18n.form.users.role}</td>
58 <td width="10%" class="tableHeader">{$i18n.label.edit}</td>
59 <td width="10%" class="tableHeader">{$i18n.label.delete}</td>
61 {foreach $inactive_users as $u}
62 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
63 <td>{$u.name|escape}</td>
64 <td>{$u.login|escape}</td>
65 <td>{$u.role_name|escape}</td>
66 {if $u.rank < $user->rank}
67 <td><a href="user_edit.php?id={$u.id}">{$i18n.label.edit}</a></td>
68 <td><a href="user_delete.php?id={$u.id}">{$i18n.label.delete}</a></td>
80 <td align="center" height="50">
81 <form><input type="button" onclick="chLocation('user_add.php');" value="{$i18n.button.add}"></form>
87 <table cellspacing="1" cellpadding="3" border="0" width="100%">
89 <td width="35%" class="tableHeader">{$i18n.label.person_name}</td>
90 <td width="35%" class="tableHeader">{$i18n.label.login}</td>
91 <td class="tableHeader">{$i18n.form.users.role}</td>
93 {foreach $active_users as $u}
94 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
95 <td>{$u.name|escape}</td>
96 <td>{$u.login|escape}</td>
97 <td>{$u.role_name|escape}</td>