New page to add users in the database
[platal.git] / templates / logger-view.tpl
index 8c15713..2cc8315 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2004 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2006 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 {*                                                                        *}
 {**************************************************************************}
 
+<h1>Parcours des logs du site</h1>
 
-<h1>
-  Parcours des logs du site
-</h1>
-
-
-{if $smarty.request.logsess}
+{if $events}
 
 <table class="bicol">
 <tr>
-  <th colspan="2">{$msg_session_properties}</th>
+  <th colspan="2">Propriétés de la session</th>
 </tr>
 <tr class="impair">
-  <td class="titre">{$msg_user}</td>
-  <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>
+  <td class="titre">utilisateur</td>
+  <td>{$session.username} {if $session.suer}(suid by {$session.suer}){/if}
+  [<a href="{$platal->ns}admin/logger/user/{$session.username}">user's log</a>]</td>
 </tr>
 <tr class="pair">
-  <td class="titre">{$msg_host}</td>
+  <td class="titre">Hôte</td>
   <td><em>{$session.host}</em> <tt>IP: {$session.ip}</tt></td>
 </tr>
 <tr class="impair">
-  <td class="titre">{$msg_browser}</td>
+  <td class="titre">Navigateur</td>
   <td>{$session.browser}</td>
 </tr>
 </table>
@@ -50,9 +47,9 @@
 
 <table class="bicol">
 <tr>
-  <th>{$msg_date}</th>
-  <th>{$msg_action}</th>
-  <th>{$msg_data}</th>
+  <th>date</th>
+  <th>action</th>
+  <th>donnée</th>
 </tr>
 {foreach from=$events item=myevent}
 <tr class="{cycle values="impair,pair"}">
 
 {else}
 
-<form method="post" action="{$smarty.server.PHP_SELF}">
+<form method="post" action="{$platal->ns}admin/logger">
 <table class="bicol">
 <tr>
-  <th colspan="2">{$msg_filter_by}</th>
-</tr>
-<tr>
-  <td><strong>{$msg_date}</strong></td>
+  <td><strong>Date</strong></td>
   <td>
-    {$msg_year}
+    Année
     <select name="year" onchange="this.form.submit()">
       {html_options options=$years selected=$year}
     </select>
-    &nbsp;{$msg_month}
+    &nbsp;Mois
     <select name="month" onchange="this.form.submit()">
       {html_options options=$months selected=$month}
     </select>
-    &nbsp;{$msg_day}
+    &nbsp;Jour
     <select name="day" onchange="this.form.submit()">
       {html_options options=$days selected=$day}
     </select>
   </td>
 </tr>
 <tr>
-  <td><strong>{$msg_user}</strong></td>
+  <td><strong>Utilisateur</strong></td>
   <td>
     <input type="text" name="loguser" value="{$loguser}" />
-    {html_options name="logauth" options=$auths selected=$logauth}
-    <input type="submit" value="{$msg_submit}" />
+    <input type="submit" />
   </td>
 </tr>
 </table>
 
 <table class="bicol" style="font-size: 90%">
   <tr>
-    <th>{$msg_start}</th>
-    <th>{$msg_user}</th>
-    <th>{$msg_summary}</th>
-    <th>{$msg_actions}</th>
+    <th>début</th>
+    <th>utilisateur</th>
+    <th>résumé</th>
+    <th>actions</th>
   </tr>
 {foreach from=$sessions item=mysess}
   <tr class="{cycle values="impair,pair"}">
     <td>{$mysess.start|date_format:"%x %X"}</td>
-    <td><strong>{$mysess.username}</strong> <span class="smaller">({$mysess.lauth})</span></td>
+    <td><strong>{$mysess.username}</strong></td>
     <td>
       {foreach from=$mysess.events item=myevent}{$myevent}<br />{/foreach}
     </td>
     <td class="action">
-{foreach from=$mysess.actions item=myaction}
-      {a lnk=$myaction}
-{/foreach}
+      <a href="admin/logger/session/{$mysess.id}">session</a>
+      <a href="admin/logger/user/{$mysess.username}">user's log</a>
     </td>
   </tr>
   {/foreach}