2 function chLocation(newLocation) { document.location = newLocation; }
5 <table cellspacing="0" cellpadding="7" border="0" width="720">
8 {if $user->can('manage_users')}
10 {$forms.usersForm.open} {* usersForm consists only of one dropdown group control *}
13 <td align="center">{$i18n.label.group}: {$forms.usersForm.group.control}</td>
16 {$forms.usersForm.close}
19 <table cellspacing="1" cellpadding="3" border="0" width="100%">
21 <tr><td class="sectionHeaderNoBorder">{$i18n.form.users.active_users}</td></tr>
24 <td width="30%" class="tableHeader">{$i18n.label.person_name}</td>
25 <td width="30%" class="tableHeader">{$i18n.label.login}</td>
26 <td width="20%" class="tableHeader">{$i18n.form.users.role}</td>
27 <td width="10%" class="tableHeader">{$i18n.label.edit}</td>
28 <td width="10%" class="tableHeader">{$i18n.label.delete}</td>
31 {foreach $active_users as $u}
32 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
34 {if $uncompleted_indicators}
35 <span class="uncompleted-entry{if $u.has_uncompleted_entry} active{/if}"{if $u.has_uncompleted_entry} title="{$i18n.form.users.uncompleted_entry}"{/if}></span>
39 <td>{$u.login|escape}</td>
40 <td>{$u.role_name|escape}</td>
41 {if $u.group_id != $user->group_id || $u.rank < $user->rank || ($u.rank == $user->rank && $u.id == $user->id)}
42 <td><a href="user_edit.php?id={$u.id}">{$i18n.label.edit}</a></td>
43 {if $u.id != $user->id}<td><a href="user_delete.php?id={$u.id}">{$i18n.label.delete}</a></td>{else}<td></td>{/if}
55 <td align="center"><br>
56 <form><input type="button" onclick="chLocation('user_add.php');" value="{$i18n.button.add}"></form>
62 <table cellspacing="1" cellpadding="3" border="0" width="100%">
63 <tr><td class="sectionHeaderNoBorder">{$i18n.form.users.inactive_users}</td></tr>
65 <td width="30%" class="tableHeader">{$i18n.label.person_name}</td>
66 <td width="30%" class="tableHeader">{$i18n.label.login}</td>
67 <td width="20%" class="tableHeader">{$i18n.form.users.role}</td>
68 <td width="10%" class="tableHeader">{$i18n.label.edit}</td>
69 <td width="10%" class="tableHeader">{$i18n.label.delete}</td>
71 {foreach $inactive_users as $u}
72 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
73 <td>{$u.name|escape}</td>
74 <td>{$u.login|escape}</td>
75 <td>{$u.role_name|escape}</td>
76 {if $u.group_id != $user->group_id || $u.rank < $user->rank}
77 <td><a href="user_edit.php?id={$u.id}">{$i18n.label.edit}</a></td>
78 <td><a href="user_delete.php?id={$u.id}">{$i18n.label.delete}</a></td>
90 <td align="center" height="50">
91 <form><input type="button" onclick="chLocation('user_add.php');" value="{$i18n.button.add}"></form>
97 <table cellspacing="1" cellpadding="3" border="0" width="100%">
99 <td width="35%" class="tableHeader">{$i18n.label.person_name}</td>
100 <td width="35%" class="tableHeader">{$i18n.label.login}</td>
101 <td class="tableHeader">{$i18n.form.users.role}</td>
103 {foreach $active_users as $u}
104 <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
105 <td>{$u.name|escape}</td>
106 <td>{$u.login|escape}</td>
107 <td>{$u.role_name|escape}</td>