Arrange templates by module
[platal.git] / templates / admin / logger-view.tpl
CommitLineData
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
441e9e98 25{if $events}
0337d704 26
27<table class="bicol">
28<tr>
099b92fc 29 <th colspan="2">Propriétés de la session</th>
0337d704 30</tr>
31<tr class="impair">
099b92fc 32 <td class="titre">utilisateur</td>
1f7c3690 33 <td>{$session.username} {if $session.suer}(suid by {$session.suer}){/if}
441e9e98 34 [<a href="{$platal->ns}admin/logger/user/{$session.username}">user's log</a>]</td>
0337d704 35</tr>
36<tr class="pair">
099b92fc 37 <td class="titre">Hôte</td>
0337d704 38 <td><em>{$session.host}</em> <tt>IP: {$session.ip}</tt></td>
39</tr>
40<tr class="impair">
099b92fc 41 <td class="titre">Navigateur</td>
0337d704 42 <td>{$session.browser}</td>
43</tr>
44</table>
45
46<br />
47
48<table class="bicol">
49<tr>
099b92fc 50 <th>date</th>
51 <th>action</th>
52 <th>donnée</th>
0337d704 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>
c2ef7ba6 68 <td><strong>Date</strong></td>
0337d704 69 <td>
099b92fc 70 Année
0337d704 71 <select name="year" onchange="this.form.submit()">
72 {html_options options=$years selected=$year}
73 </select>
099b92fc 74 &nbsp;Mois
0337d704 75 <select name="month" onchange="this.form.submit()">
76 {html_options options=$months selected=$month}
77 </select>
099b92fc 78 &nbsp;Jour
0337d704 79 <select name="day" onchange="this.form.submit()">
80 {html_options options=$days selected=$day}
81 </select>
82 </td>
83</tr>
84<tr>
099b92fc 85 <td><strong>Utilisateur</strong></td>
0337d704 86 <td>
87 <input type="text" name="loguser" value="{$loguser}" />
099b92fc 88 <input type="submit" />
0337d704 89 </td>
90</tr>
91</table>
92
93</form>
94
95<br />
96
97<table class="bicol" style="font-size: 90%">
98 <tr>
099b92fc 99 <th>début</th>
100 <th>utilisateur</th>
101 <th>résumé</th>
102 <th>actions</th>
0337d704 103 </tr>
104{foreach from=$sessions item=mysess}
105 <tr class="{cycle values="impair,pair"}">
106 <td>{$mysess.start|date_format:"%x %X"}</td>
c2ef7ba6 107 <td><strong>{$mysess.username}</strong></td>
0337d704 108 <td>
109 {foreach from=$mysess.events item=myevent}{$myevent}<br />{/foreach}
110 </td>
111 <td class="action">
441e9e98 112 <a href="admin/logger/session/{$mysess.id}">session</a>
113 <a href="admin/logger/user/{$mysess.username}">user's log</a>
0337d704 114 </td>
115 </tr>
116 {/foreach}
117{if $msg_nofilters}
118<tr>
119 <td>{$msg_nofilters}</td>
120</tr>
121{/if}
122</table>
123{/if}
124
125
126{* vim:set et sw=2 sts=2 sws=2: *}