Login box style refresh
[squasher.git] / templates / udmin.tpl
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5 <link rel=stylesheet href="css/squasher.css">
6 <title>Squasher</title>
7 <script>{literal}
8    function confirm_delete(formID) {
9     if (confirm("Are you sure you want to delete this user?")) {
10      document.getElementById(formID).submit();
11     }
12    }
13    {/literal}</script>
14 </head>
15 <body>
16 <div class="wrappercontainer">
17
18         <div class="banner">&nbsp;<div class="control">{if $user_level > 99}<a href="?">home</a>&nbsp;|&nbsp;<a href="?tools=access">access</a>&nbsp;|&nbsp;<a href="?tools=users">users</a>&nbsp;|&nbsp;<a href="?tools=logs">logs</a>&nbsp;|{/if}&nbsp;<a href="index.php?tools=logout">logout({$user_name|escape})</a>&nbsp;</div></div>
19
20         <div class="content">
21
22 {foreach item=user key=user_id from=$users}
23 <div class="white_border"><form method='post' name='user_{$user.id|escape}' id='user_{$user.id|escape}'><input type='hidden' name='u[user_id]' id='user_id' value='{$user.id|escape}' /><input type='hidden' name='type' id='type' value='' /><input name='u[user_name]' id='user_name' value='{$user.name|escape}' readonly /> | {html_options name='u[user_level]' id='user_level' options=$user_levels selected=$user.level} | {if $user.enabled}<a onClick="document.user_{$user.id}.type.value='disable';document.user_{$user.id}.submit();" style="cursor:pointer" >remove password</a>{else}<input name='u[user_pass]' id='user_pass' /> {/if} | <a onClick="document.user_{$user.id}.type.value='delete';confirm_delete('user_{$user.id}');" style="cursor:pointer" >delete</a> | <a onClick="document.user_{$user.id}.type.value='update';document.user_{$user.id}.submit();" style="cursor:pointer" >update</a></form></div>
24 <div class="clear"></div>
25 {/foreach}
26 <div class="white_border"><form method='post' name='user_new' id='user_new'><input type='hidden' name='type' id='type' value='' /><input name='u[user_name]' value='' /> | {html_options name='u[user_level]' options=$user_levels } | <input name='u[user_pass]' /> | <a onClick="document.user_new.type.value='new';document.user_new.submit();" style="cursor:pointer" >add</a></form></div>
27 <div class="clear"></div>
28
29         </div>
30
31         <div class="bottomimage"></div>
32         <div class="footer">&nbsp;</div>
33
34 </div>
35 {if $debug}{debug}{/if}
36 </body>
37 </html>