Fix smarty warnings for version 3
[squasher.git] / templates / logs.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_selected{
59 float:left;
60 background-color:#339900;
61 color:#FFFFFF;
62 margin:1px;
63 border:1px solid;
64 border-color:#E2EBD8;
65 }
66
67 .menuitem:hover{
68 background-color:#339900;
69 color:#FFFFFF;
70 }
71
72 tr.logentry_download{
73 background-color:#C7F09E;
74 color:#003300;
75 margin:1px;
76 border:1px solid;
77 border-color:#C7F09E;
78 }
79
80 tr.logentry_download:hover{
81 background-color:#339900;
82 color:#FFFFFF;
83 }
84
85 tr.logentry_delete{
86 background-color:#C7F09E;
87 color:#003300;
88 margin:1px;
89 border:1px solid;
90 border-color:#C7F09E;
91 }
92
93 tr.logentry_delete:hover{
94 background-color:#339900;
95 color:#FFFFFF;
96 }
97
98 tr.logentry_login{
99 background-color:#C7F09E;
100 color:#003300;
101 margin:1px;
102 border:1px solid;
103 border-color:#C7F09E;
104 }
105
106 tr.logentry_login:hover{
107 background-color:#339900;
108 color:#FFFFFF;
109 }
110
111 tr.logentry_header{
112 background-color:#339900;
113 color:#FFFFFF;
114 border:1px solid;
115 border-color:#C7F09E;
116 }
117
118 .content{
119 float:left;
120 padding-right:5px;
121 width:600px;
122 }
123
124 .item, .status1, .status2, .status3{
125 position:relative;
126 color:#003300;
127 width:400px;
128 height:36px;
129 border:2px solid;
130 border-color:#FFFFFF;
131 font-size:12px;
132 }
133
134 .item{
135 background-color:#E2EBD8;
136 }
137
138 .status1{
139 background-color:#FFCCCC;
140 }
141
142 .status2{
143 background-color:#FFFFCC;
144 }
145
146 .status3{
147 background-color:#CCFFCC;
148 }
149
150 .name{
151 position:absolute;
152 left:1px;
153 top:1px;
154 padding-left:1px;
155 }
156
157 .center{
158 float:left;
159 height:inherit;
160 padding-left:1px;
161 }
162
163 .chunks{
164 position:absolute;
165 left:1px;
166 bottom:1px;
167 padding-left:1px;
168 }
169
170 .size{
171 position:absolute;
172 left:100px;
173 bottom:1px;
174 padding-left:1px;
175 }
176
177 .status{
178 position:absolute;
179 right:2px;
180 top:1px;
181 padding-left:1px;
182 }
183
184 .stream{
185 position:absolute;
186 float:right;
187 bottom:1px;
188 padding-left:1px;
189 }
190
191 .download{
192 position:absolute;
193 right:2px;
194 bottom:1px;
195 padding-left:1px;
196 }
197
198 .clear{
199 clear:both;
200 height:1px;
201 }
202
203 .spacer{
204 clear:both;
205 height:10px;
206 }
207
208 .videoframe{
209 float:left;
210 width:500px;
211 height:400px;
212 padding-left:25px;
213 }
214
215 .banner{
216 background-color:#66CC00;
217 text-align:center;
218 width:100%;
219 height:45px;
220 background:#66CC00 url(img/squash.gif) no-repeat 30px 50%;
221 }
222
223 .titel{
224 background-color:#66CC00;
225 text-align:center;
226 }
227
228 .footer{
229 background-color:#66CC00;
230 text-align:center;
231 background:#66CC00 url(img/gplogobottomright.gif) no-repeat 100%;
232 }
233
234 .bottomimage{
235 background: #FFFFFF url(img/gp1.gif) no-repeat 95% 95%;
236 float:right;
237 width:300px;
238 height:146px;
239 }
240
241 a{
242 color:#003300;
243 }
244
245 a:hover{
246 color:#FF6600;
247 }
248
249 .white_border{
250 float:left;
251 border-top:0px solid #FFFFFF;
252 border-bottom:0px solid #FFFFFF;
253 }
254
255 .check_all, .check_allow, .check_deny{
256 float:right;
257 height:20px;
258 }
259
260 .sample_all, .sample_allow, .sample_deny{
261 float:left;
262 height:20px;
263 }
264
265 .check_all, .sample_all{
266 background-color:#AAEEAA;
267 }
268
269 .check_allow, .sample_allow{
270 background-color:#EEEEAA;
271 }
272
273 .check_deny, .sample_deny{
274 background-color:#EEAAAA;
275 }
276 {/literal}
277 </style>
278 </head>
279 <body align="center" style="min-width:1000px;">
280 <div class="wrapper">
281 <div class="container">
282
283         <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>
284
285         <div class="spacer"></div>
286
287         <div class="menucontainer">
288
289         <div class="menu">
290
291         <div class="menuhead">&nbsp;logs&nbsp;</div>
292
293         <div {if $logtype eq "all"     }class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=all'"      style="cursor:pointer" >&nbsp;all&nbsp;</div>
294         <div {if $logtype eq "delete"  }class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=delete'"   style="cursor:pointer" >&nbsp;delete&nbsp;</div>
295         <div {if $logtype eq "download"}class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=download'" style="cursor:pointer" >&nbsp;download&nbsp;</div>
296         <div {if $logtype eq "login"   }class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=login'"    style="cursor:pointer" >&nbsp;login&nbsp;</div>
297         <div {if $logtype eq "debug"   }class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=debug'"    style="cursor:pointer" >&nbsp;squasher&nbsp;</div>
298
299         </div>
300
301         <div class="clear"></div>
302
303         <div class="menu"></div>
304
305         <div class="clear"></div>
306
307         </div>
308
309         <div class="spacer"></div>
310
311 <div class="content">
312   <table style="border-spacing:0;spacing:0;padding:0;width:990px;background-color:#C7F09E;">
313
314    <tr class="logentry_header" align="center">
315     <td width='*' colspan="5">Today</td>
316    </tr>
317
318 {foreach item=entry from=$logs.today key=id}
319    <tr class="logentry_{$entry.action}" align="left">
320     <td width='160px'>&nbsp;{$entry.date}</td>
321     <td width='40px' >&nbsp;{$entry.user_name}</td>
322     <td width='120px' title="{$entry.users_from_ip}">&nbsp;{$entry.ip}</td>
323     <td width='80px' >&nbsp;{$entry.action}</td>
324     <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>
325    </tr>
326 {foreachelse}
327    <tr style="background-color:#C7F09E;" align="center">
328     <td width='*' colspan="3"><hr></td>
329     <td width='120px'>Log is empty</td>
330     <td width='*'><hr></td>
331    </tr>
332 {/foreach}
333
334    <tr class="logentry_header" align="center">
335     <td width='*' colspan="5">Yesterday</td>
336    </tr>
337
338 {foreach item=entry from=$logs.yesterday key=id}   <tr class="logentry_{$entry.action}" align="left">
339     <td width='160px'>&nbsp;{$entry.date}</td>
340     <td width='40px' >&nbsp;{$entry.user_name}</td>
341     <td width='120px' title="{$entry.users_from_ip}">&nbsp;{$entry.ip}</td>
342     <td width='80px'>&nbsp;{$entry.action}</td>
343     <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>
344    </tr>
345 {foreachelse}
346    <tr style="background-color:#C7F09E;" align="center">
347     <td width='*' colspan="3"><hr></td>
348     <td width='120px'>Log is empty</td>
349     <td width='*'><hr></td>
350    </tr>
351 {/foreach}
352
353    <tr class="logentry_header" align="center">
354     <td width='*' colspan="5">Last week</td>
355    </tr>
356
357 {foreach item=entry from=$logs.lastweek key=id}
358    <tr class="logentry_{$entry.action}" align="left">
359     <td width='160px'>&nbsp;{$entry.date}</td>
360     <td width='40px' >&nbsp;{$entry.user_name}</td>
361     <td width='120px' title="{$entry.users_from_ip}">&nbsp;{$entry.ip}</td>
362     <td width='80px'>&nbsp;{$entry.action}</td>
363     <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>
364    </tr>
365 {foreachelse}
366    <tr style="background-color:#C7F09E;" align="center">
367     <td width='*' colspan="3"><hr></td>
368     <td width='120px'>Log is empty</td>
369     <td width='*'><hr></td>
370    </tr>
371 {/foreach}
372
373    <tr class="logentry_header" align="center">
374     <td width='*' colspan="5">Older</td>
375    </tr>
376
377 {foreach item=entry from=$logs.older key=id}
378    <tr class="logentry_{$entry.action}" align="left">
379     <td width='160px'>&nbsp;{$entry.date}</td>
380     <td width='40px' >&nbsp;{$entry.user_name}</td>
381     <td width='120px' title="{$entry.users_from_ip}">&nbsp;{$entry.ip}</td>
382     <td width='80px'>&nbsp;{$entry.action}</td>
383     <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>
384    </tr>
385 {foreachelse}
386    <tr style="background-color:#C7F09E;" align="center">
387     <td width='*' colspan="3"><hr></td>
388     <td width='120px'>Log is empty</td>
389     <td width='*'><hr></td>
390    </tr>
391 {/foreach}
392   </table>
393 </div>
394
395         <div class="spacer"></div>
396
397         <div class="bottomimage"></div>
398
399         <div class="clear"></div>
400
401         <div class="spacer"></div>
402
403         <div class="footer">&nbsp;</div>
404 </div>
405 </div>
406 {if $debug}{debug}{/if}
407 </body>
408 </html>