rename to pod2diogenes
[diogenes.git] / include / diogenes / templates / logger-view.tpl
CommitLineData
6855525e
JL
1{if $smarty.request.logsess}
2
3<table class="light">
4<tr>
5 <th colspan="2">{$msg_session_properties}</th>
6</tr>
7<tr>
8 <td><strong>{$msg_user}</strong></td>
9 <td>{$session.username} {if $session.suer}(suid by {$session.suer}){/if} [<a href="?logauth={$session.auth}&amp;loguser={$session.username}">user's log</a>]</td>
10</tr>
11<tr>
12 <td><strong>{$msg_host}</strong></td>
13 <td>{$session.host} / {$session.ip}</td>
14</tr>
15<tr>
16 <td><strong>{$msg_browser}</strong></td>
17 <td>{$session.browser}</td>
18</tr>
19</table>
20
21<br />
22
23<table class="light">
24<tr>
25 <th>{$msg_date}</th>
26 <th>{$msg_action}</th>
27 <th>{$msg_data}</th>
28</tr>
29{foreach from=$events item=myevent}
30<tr>
31 <td class="logdate">{$myevent.stamp|date_format:"%Y-%m-%d %H:%M:%S"}</td>
32 <td class="logmain">{$myevent.text}</td>
33 <td>{$myevent.data|escape}</td>
34</tr>
35{/foreach}
36</table>
37
38
39{else}
40
41<form name="filter" method="post" action="{$smarty.server.PHP_SELF}">
42<table class="light">
43<tr>
44 <th colspan="2">{$msg_filter_by}</th>
45</tr>
46<tr>
47 <td><strong>{$msg_date}</strong></td>
48 <td>
49 {$msg_year}
50 <select name="year" onChange="this.form.submit()">
51 {html_options options=$years selected=$year}
52 </select>
53 &nbsp;{$msg_month}
54 <select name="month" onChange="this.form.submit()">
55 {html_options options=$months selected=$month}
56 </select>
57 &nbsp;{$msg_day}
58 <select name="day" onChange="this.form.submit()">
59 {html_options options=$days selected=$day}
60 </select>
61 </td>
62</tr>
63<tr>
64 <td><strong>{$msg_user}</strong></td>
65 <td>
66 <input type="text" name="loguser" value="{$loguser}" />
67 {html_options name="logauth" options=$auths selected=$logauth}
68 <input type="submit" value="{$msg_submit}" />
69 </td>
70</tr>
71</table>
72
73</form>
74
75<p/>
76
77<table class="light">
78<tr>
79 <th>{$msg_start}</th>
80 <th>{$msg_user}</th>
81 <th>{$msg_summary}</th>
82 <th>{$msg_actions}</th>
83</tr>
84{counter start=0 assign=cnt print=0}
85{foreach from=$sessions item=mysess}
86<tr{if $cnt % 2} class="odd"{/if}>
87 <td class="logdate">{$mysess.start|date_format:"%Y-%m-%d %H:%M:%S"}</td>
88 <td class="logmain">{$mysess.username} <span class="auth">({$mysess.lauth})</span></td>
89 <td class="logevents">
90 {foreach from=$mysess.events item=myevent}{$myevent} {/foreach}
91 </td>
92 <td>
93{foreach from=$mysess.actions item=myaction}
94 {a class="action" lnk=$myaction}
95{/foreach}
96 </td>
97</tr>
98{counter}
99{/foreach}
100{if $msg_nofilters}
101<tr>
102 <td>{$msg_nofilters}</td>
103</tr>
104{/if}
105</table>
106
107{/if}