Show login name on the login screen
[squasher.git] / templates / udmin.tpl
1 {literal}<!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 <title>Squasher</title>
6 <style>
7
8 body{
9 background-color:#E2EBD8;
10 text-align:center;
11 min-width:1000px;
12 }
13
14 .wrapper{
15 width: 1000px;
16 margin: 10px auto;
17 }
18
19 .container{
20 border:5px solid;
21 border-color:#FFFFFF;
22 color:#003300;
23 left:50%;
24 background: #FFFFFF;
25 }
26
27 .control{
28 float:right;
29 text-align:right;
30 }
31
32 .menucontainer{
33 background-color:#FFFFFF;
34 }
35
36 .menu{
37 text-align:center;
38 }
39
40 .menuhead{
41 float:left;
42 background-color:#66CC00;
43 color:#003300;
44 margin:1px;
45 border:1px solid;
46 border-color:#66CC00;
47 }
48
49 .menuitem{
50 float:left;
51 background-color:#C7F09E;
52 color:#003300;
53 margin:1px;
54 border:1px solid;
55 border-color:#E2EBD8;
56 }
57
58 .menuitem:hover{
59 background-color:#339900;
60 color:#FFFFFF;
61 }
62
63 .content{
64 float:left;
65 padding-right:5px;
66 width:600px;
67 }
68
69 .item, .status1, .status2, .status3{
70 position:relative;
71 color:#003300;
72 width:400px;
73 height:36px;
74 border:2px solid;
75 border-color:#FFFFFF;
76 font-size:12px;
77 }
78
79 .item{
80 background-color:#E2EBD8;
81 }
82 .status1{
83 background-color:#FFCCCC;
84 }
85 .status2{
86 background-color:#FFFFCC;
87 }
88 .status3{
89 background-color:#CCFFCC;
90 }
91
92 .name{
93 position:absolute;
94 left:1px;
95 top:1px;
96 padding-left:1px;
97 }
98
99 .center{
100 float:left;
101 height:inherit;
102 padding-left:1px;
103 }
104
105 .chunks{
106 position:absolute;
107 left:1px;
108 bottom:1px;
109 padding-left:1px;
110 }
111
112 .size{
113 position:absolute;
114 left:100px;
115 bottom:1px;
116 padding-left:1px;
117 }
118
119 .status{
120 position:absolute;
121 right:2px;
122 top:1px;
123 padding-left:1px;
124 }
125
126 .stream{
127 position:absolute;
128 float:right;
129 bottom:1px;
130 padding-left:1px;
131 }
132
133 .download{
134 position:absolute;
135 right:2px;
136 bottom:1px;
137 padding-left:1px;
138 }
139
140 .clear{
141 clear:both;
142 height:1px;
143 }
144
145 .spacer{
146 clear:both;
147 height:10px;
148 }
149
150 .videoframe{
151 float:left;
152 width:500px;
153 height:400px;
154 padding-left:25px;
155 }
156
157 .banner{
158 background-color:#66CC00;
159 text-align:center;
160 width:100%;
161 height:45px;
162 background:#66CC00 url(img/squash.gif) no-repeat 30px 50%;
163 }
164
165 .titel{
166 background-color:#66CC00;
167 text-align:center;
168 }
169
170 .footer{
171 background-color:#66CC00;
172 text-align:center;
173 background:#66CC00 url(img/gplogobottomright.gif) no-repeat 100%;
174 }
175
176 .bottomimage{
177 background: #FFFFFF url(img/gp1.gif) no-repeat 95% 95%;
178 float:right;
179 width:300px;
180 height:146px;
181 }
182
183 a{
184 color:#003300;
185 }
186
187 a:hover{
188 color:#FF6600;
189 }
190
191 .white_border{
192 float:left;
193 border-top:0px solid #FFFFFF;
194 border-bottom:0px solid #FFFFFF;
195 }
196
197 .check_all, .check_allow, .check_deny{
198 float:right;
199 height:20px;
200 }
201 .sample_all, .sample_allow, .sample_deny{
202 float:left;
203 height:20px;
204 }
205 .check_all, .sample_all{
206 background-color:#AAEEAA;
207 }
208 .check_allow, .sample_allow{
209 background-color:#EEEEAA;
210 }
211 .check_deny, .sample_deny{
212 background-color:#EEAAAA;
213 }
214 {/literal}
215
216 {foreach item=style_row from=$style}{$style_row}
217 {/foreach}
218
219 </style>
220 <script>
221 function confirm_delete(formID) {ldelim}
222         if (confirm("Are you sure you want to delete this user?")) {ldelim}
223         document.getElementById(formID).submit();
224         {rdelim}
225 {rdelim}
226 </script>
227 </head>
228 <body align="center" style="min-width:1000px;">
229 <div class="wrapper">
230 <div class="container">
231
232         <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>
233
234         <div class="spacer"></div>
235
236         <div class="menucontainer">
237
238         <div class="menu">
239
240         {*<div class="menuhead">users</div>
241
242         {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}
243
244         </div>*}
245
246         <div class="clear"></div>
247
248         <div class="menu">
249 {*      
250         <div class="menuhead">subfolders</div>
251         
252         {foreach item=folder key=folderpath from=$subfolders}<div class="menuitem" onClick="location.href='?path={$folderpath}'" style="cursor:pointer" >{$folder}</div>{/foreach}
253 *}      
254         </div>
255         
256         <div class="clear"></div>
257         
258         </div>
259         
260         <div class="spacer"></div>
261
262         <div class="content">
263
264 {foreach item=user key=user_id from=$users}
265 <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>
266 <div class="clear"></div>
267 {/foreach}
268 <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>
269 <div class="clear"></div>
270
271         </div>
272
273         <div class="bottomimage"></div>
274         
275         <div class="clear"></div>
276
277         <div class="spacer"></div>
278
279         <div class="footer">&nbsp;</div>
280
281 </div>
282 </div>
283 {if $debug}{debug}{/if}
284 </body>
285 </html>