d2534a2a3527dee3d3c1a3fc58235962062f2347
[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 align="center" style="min-width:1000px;">
16 <div class="wrapper">
17 <div class="container">
18
19         <div class="banner">&nbsp;<div class="control">{if $user_level > 99}<a href="?">home</a>&nbsp;|&nbsp;<a href="?tools=access">access</a>&nbsp;|{/if}{if $user_level > 99}&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})</a>&nbsp;</div></div>
20
21         <div class="spacer"></div>
22
23         <div class="menucontainer">
24
25         <div class="menu">
26
27         {*<div class="menuhead">users</div>
28
29         {foreach item=user key=user_id from=$users}<div class="menuitem" onClick="location.href='?tools=access&user={$user.id}'" style="cursor:pointer" >{$user.name}</div>{/foreach}
30
31         </div>*}
32
33         <div class="clear"></div>
34
35         <div class="menu">
36 {*      
37         <div class="menuhead">subfolders</div>
38         
39         {foreach item=folder key=folderpath from=$subfolders}<div class="menuitem" onClick="location.href='?path={$folderpath}'" style="cursor:pointer" >{$folder}</div>{/foreach}
40 *}      
41         </div>
42         
43         <div class="clear"></div>
44         
45         </div>
46         
47         <div class="spacer"></div>
48
49         <div class="content">
50
51 {foreach item=user key=user_id from=$users}
52 <div class="white_border"><form method='post' name='user_{$user.id}' id='user_{$user.id}'><input type='hidden' name='u[user_id]' id='user_id' value='{$user.id}' /><input type='hidden' name='type' id='type' value='' /><input name='u[user_name]' id='user_name' value='{$user.name}' 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>
53 <div class="clear"></div>
54 {/foreach}
55 <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>
56 <div class="clear"></div>
57
58         </div>
59
60         <div class="bottomimage"></div>
61         
62         <div class="clear"></div>
63
64         <div class="spacer"></div>
65
66         <div class="footer">&nbsp;</div>
67
68 </div>
69 </div>
70 {if $debug}{debug}{/if}
71 </body>
72 </html>