0337d704 |
1 | {**************************************************************************} |
2 | {* *} |
50a40a33 |
3 | {* Copyright (C) 2003-2006 Polytechnique.org *} |
0337d704 |
4 | {* http://opensource.polytechnique.org/ *} |
5 | {* *} |
6 | {* This program is free software; you can redistribute it and/or modify *} |
7 | {* it under the terms of the GNU General Public License as published by *} |
8 | {* the Free Software Foundation; either version 2 of the License, or *} |
9 | {* (at your option) any later version. *} |
10 | {* *} |
11 | {* This program is distributed in the hope that it will be useful, *} |
12 | {* but WITHOUT ANY WARRANTY; without even the implied warranty of *} |
13 | {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} |
14 | {* GNU General Public License for more details. *} |
15 | {* *} |
16 | {* You should have received a copy of the GNU General Public License *} |
17 | {* along with this program; if not, write to the Free Software *} |
18 | {* Foundation, Inc., *} |
19 | {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} |
20 | {* *} |
21 | {**************************************************************************} |
22 | |
c4271d38 |
23 | <h1>Parcours des logs du site</h1> |
0337d704 |
24 | |
25 | {if $smarty.request.logsess} |
26 | |
27 | <table class="bicol"> |
28 | <tr> |
29 | <th colspan="2">{$msg_session_properties}</th> |
30 | </tr> |
31 | <tr class="impair"> |
32 | <td class="titre">{$msg_user}</td> |
1f7c3690 |
33 | <td>{$session.username} {if $session.suer}(suid by {$session.suer}){/if} |
648020d2 |
34 | [<a href="{$platal->ns}admin/logger?logauth={$session.auth}&loguser={$session.username}">user's log</a>]</td> |
0337d704 |
35 | </tr> |
36 | <tr class="pair"> |
37 | <td class="titre">{$msg_host}</td> |
38 | <td><em>{$session.host}</em> <tt>IP: {$session.ip}</tt></td> |
39 | </tr> |
40 | <tr class="impair"> |
41 | <td class="titre">{$msg_browser}</td> |
42 | <td>{$session.browser}</td> |
43 | </tr> |
44 | </table> |
45 | |
46 | <br /> |
47 | |
48 | <table class="bicol"> |
49 | <tr> |
50 | <th>{$msg_date}</th> |
51 | <th>{$msg_action}</th> |
52 | <th>{$msg_data}</th> |
53 | </tr> |
54 | {foreach from=$events item=myevent} |
55 | <tr class="{cycle values="impair,pair"}"> |
56 | <td style="font-size:90%;">{$myevent.stamp|date_format:"%x %X"}</td> |
57 | <td><strong>{$myevent.text}</strong></td> |
58 | <td>{$myevent.data}</td> |
59 | </tr> |
60 | {/foreach} |
61 | </table> |
62 | |
63 | {else} |
64 | |
648020d2 |
65 | <form method="post" action="{$platal->ns}admin/logger"> |
0337d704 |
66 | <table class="bicol"> |
67 | <tr> |
68 | <th colspan="2">{$msg_filter_by}</th> |
69 | </tr> |
70 | <tr> |
71 | <td><strong>{$msg_date}</strong></td> |
72 | <td> |
73 | {$msg_year} |
74 | <select name="year" onchange="this.form.submit()"> |
75 | {html_options options=$years selected=$year} |
76 | </select> |
77 | {$msg_month} |
78 | <select name="month" onchange="this.form.submit()"> |
79 | {html_options options=$months selected=$month} |
80 | </select> |
81 | {$msg_day} |
82 | <select name="day" onchange="this.form.submit()"> |
83 | {html_options options=$days selected=$day} |
84 | </select> |
85 | </td> |
86 | </tr> |
87 | <tr> |
88 | <td><strong>{$msg_user}</strong></td> |
89 | <td> |
90 | <input type="text" name="loguser" value="{$loguser}" /> |
91 | {html_options name="logauth" options=$auths selected=$logauth} |
92 | <input type="submit" value="{$msg_submit}" /> |
93 | </td> |
94 | </tr> |
95 | </table> |
96 | |
97 | </form> |
98 | |
99 | <br /> |
100 | |
101 | <table class="bicol" style="font-size: 90%"> |
102 | <tr> |
103 | <th>{$msg_start}</th> |
104 | <th>{$msg_user}</th> |
105 | <th>{$msg_summary}</th> |
106 | <th>{$msg_actions}</th> |
107 | </tr> |
108 | {foreach from=$sessions item=mysess} |
109 | <tr class="{cycle values="impair,pair"}"> |
110 | <td>{$mysess.start|date_format:"%x %X"}</td> |
111 | <td><strong>{$mysess.username}</strong> <span class="smaller">({$mysess.lauth})</span></td> |
112 | <td> |
113 | {foreach from=$mysess.events item=myevent}{$myevent}<br />{/foreach} |
114 | </td> |
115 | <td class="action"> |
116 | {foreach from=$mysess.actions item=myaction} |
117 | {a lnk=$myaction} |
118 | {/foreach} |
119 | </td> |
120 | </tr> |
121 | {/foreach} |
122 | {if $msg_nofilters} |
123 | <tr> |
124 | <td>{$msg_nofilters}</td> |
125 | </tr> |
126 | {/if} |
127 | </table> |
128 | {/if} |
129 | |
130 | |
131 | {* vim:set et sw=2 sts=2 sws=2: *} |