632483f72b0ce4f01a405e5802a742a10dc238e5
[squasher.git] / templates / logs.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 </head>
8 <body align="center" style="min-width:1000px;">
9 <div class="wrapper">
10 <div class="container">
11
12         <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>
13
14         <div class="spacer"></div>
15
16         <div class="menucontainer">
17
18         <div class="menu">
19
20         <div class="menuhead">&nbsp;logs&nbsp;</div>
21
22         <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>
23         <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>
24         <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>
25         <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>
26         <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>
27
28         </div>
29
30         <div class="clear"></div>
31
32         <div class="menu"></div>
33
34         <div class="clear"></div>
35
36         </div>
37
38         <div class="spacer"></div>
39
40 <div class="content">
41   <table style="border-spacing:0;spacing:0;padding:0;width:990px;background-color:#C7F09E;">
42
43    <tr class="logentry_header" align="center">
44     <td width='*' colspan="5">Today</td>
45    </tr>
46
47 {foreach item=entry from=$logs.today key=id}
48    <tr class="logentry_{$entry.action}" align="left">
49     <td width='160px'>&nbsp;{$entry.date}</td>
50     <td width='40px' >&nbsp;{$entry.user_name}</td>
51     <td width='120px' title="{$entry.users_from_ip}">&nbsp;{$entry.ip}</td>
52     <td width='80px' >&nbsp;{$entry.action}</td>
53     <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>
54    </tr>
55 {foreachelse}
56    <tr style="background-color:#C7F09E;" align="center">
57     <td width='*' colspan="3"><hr></td>
58     <td width='120px'>Log is empty</td>
59     <td width='*'><hr></td>
60    </tr>
61 {/foreach}
62
63    <tr class="logentry_header" align="center">
64     <td width='*' colspan="5">Yesterday</td>
65    </tr>
66
67 {foreach item=entry from=$logs.yesterday key=id}   <tr class="logentry_{$entry.action}" align="left">
68     <td width='160px'>&nbsp;{$entry.date}</td>
69     <td width='40px' >&nbsp;{$entry.user_name}</td>
70     <td width='120px' title="{$entry.users_from_ip}">&nbsp;{$entry.ip}</td>
71     <td width='80px'>&nbsp;{$entry.action}</td>
72     <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>
73    </tr>
74 {foreachelse}
75    <tr style="background-color:#C7F09E;" align="center">
76     <td width='*' colspan="3"><hr></td>
77     <td width='120px'>Log is empty</td>
78     <td width='*'><hr></td>
79    </tr>
80 {/foreach}
81
82    <tr class="logentry_header" align="center">
83     <td width='*' colspan="5">Last week</td>
84    </tr>
85
86 {foreach item=entry from=$logs.lastweek key=id}
87    <tr class="logentry_{$entry.action}" align="left">
88     <td width='160px'>&nbsp;{$entry.date}</td>
89     <td width='40px' >&nbsp;{$entry.user_name}</td>
90     <td width='120px' title="{$entry.users_from_ip}">&nbsp;{$entry.ip}</td>
91     <td width='80px'>&nbsp;{$entry.action}</td>
92     <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>
93    </tr>
94 {foreachelse}
95    <tr style="background-color:#C7F09E;" align="center">
96     <td width='*' colspan="3"><hr></td>
97     <td width='120px'>Log is empty</td>
98     <td width='*'><hr></td>
99    </tr>
100 {/foreach}
101
102    <tr class="logentry_header" align="center">
103     <td width='*' colspan="5">Older</td>
104    </tr>
105
106 {foreach item=entry from=$logs.older key=id}
107    <tr class="logentry_{$entry.action}" align="left">
108     <td width='160px'>&nbsp;{$entry.date}</td>
109     <td width='40px' >&nbsp;{$entry.user_name}</td>
110     <td width='120px' title="{$entry.users_from_ip}">&nbsp;{$entry.ip}</td>
111     <td width='80px'>&nbsp;{$entry.action}</td>
112     <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>
113    </tr>
114 {foreachelse}
115    <tr style="background-color:#C7F09E;" align="center">
116     <td width='*' colspan="3"><hr></td>
117     <td width='120px'>Log is empty</td>
118     <td width='*'><hr></td>
119    </tr>
120 {/foreach}
121   </table>
122 </div>
123
124         <div class="spacer"></div>
125
126         <div class="bottomimage"></div>
127
128         <div class="clear"></div>
129
130         <div class="spacer"></div>
131
132         <div class="footer">&nbsp;</div>
133 </div>
134 </div>
135 {if $debug}{debug}{/if}
136 </body>
137 </html>