fix all non relative to the site root links.
[platal.git] / templates / logger-view.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2006 Polytechnique.org                             *}
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
23
24 <h1>
25   Parcours des logs du site
26 </h1>
27
28
29 {if $smarty.request.logsess}
30
31 <table class="bicol">
32 <tr>
33   <th colspan="2">{$msg_session_properties}</th>
34 </tr>
35 <tr class="impair">
36   <td class="titre">{$msg_user}</td>
37   <td>{$session.username} {if $session.suer}(suid by {$session.suer}){/if}
38   [<a href="{$smarty.request.PHP_SELF}?logauth={$session.auth}&amp;loguser={$session.username}">user's log</a>]</td>
39 </tr>
40 <tr class="pair">
41   <td class="titre">{$msg_host}</td>
42   <td><em>{$session.host}</em> <tt>IP: {$session.ip}</tt></td>
43 </tr>
44 <tr class="impair">
45   <td class="titre">{$msg_browser}</td>
46   <td>{$session.browser}</td>
47 </tr>
48 </table>
49
50 <br />
51
52 <table class="bicol">
53 <tr>
54   <th>{$msg_date}</th>
55   <th>{$msg_action}</th>
56   <th>{$msg_data}</th>
57 </tr>
58 {foreach from=$events item=myevent}
59 <tr class="{cycle values="impair,pair"}">
60   <td style="font-size:90%;">{$myevent.stamp|date_format:"%x %X"}</td>
61   <td><strong>{$myevent.text}</strong></td>
62   <td>{$myevent.data}</td>
63 </tr>
64 {/foreach}
65 </table>
66
67 {else}
68
69 <form method="post" action="{$smarty.server.PHP_SELF}">
70 <table class="bicol">
71 <tr>
72   <th colspan="2">{$msg_filter_by}</th>
73 </tr>
74 <tr>
75   <td><strong>{$msg_date}</strong></td>
76   <td>
77     {$msg_year}
78     <select name="year" onchange="this.form.submit()">
79       {html_options options=$years selected=$year}
80     </select>
81     &nbsp;{$msg_month}
82     <select name="month" onchange="this.form.submit()">
83       {html_options options=$months selected=$month}
84     </select>
85     &nbsp;{$msg_day}
86     <select name="day" onchange="this.form.submit()">
87       {html_options options=$days selected=$day}
88     </select>
89   </td>
90 </tr>
91 <tr>
92   <td><strong>{$msg_user}</strong></td>
93   <td>
94     <input type="text" name="loguser" value="{$loguser}" />
95     {html_options name="logauth" options=$auths selected=$logauth}
96     <input type="submit" value="{$msg_submit}" />
97   </td>
98 </tr>
99 </table>
100
101 </form>
102
103 <br />
104
105 <table class="bicol" style="font-size: 90%">
106   <tr>
107     <th>{$msg_start}</th>
108     <th>{$msg_user}</th>
109     <th>{$msg_summary}</th>
110     <th>{$msg_actions}</th>
111   </tr>
112 {foreach from=$sessions item=mysess}
113   <tr class="{cycle values="impair,pair"}">
114     <td>{$mysess.start|date_format:"%x %X"}</td>
115     <td><strong>{$mysess.username}</strong> <span class="smaller">({$mysess.lauth})</span></td>
116     <td>
117       {foreach from=$mysess.events item=myevent}{$myevent}<br />{/foreach}
118     </td>
119     <td class="action">
120 {foreach from=$mysess.actions item=myaction}
121       {a lnk=$myaction}
122 {/foreach}
123     </td>
124   </tr>
125   {/foreach}
126 {if $msg_nofilters}
127 <tr>
128   <td>{$msg_nofilters}</td>
129 </tr>
130 {/if}
131 </table>
132 {/if}
133
134
135 {* vim:set et sw=2 sts=2 sws=2: *}