{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2007 Polytechnique.org *}
+{* Copyright (C) 2003-2010 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
<table class="bicol">
<tr>
- <th colspan="2">Propriétés de la session</th>
+ <th colspan="2">Propriétés de la session</th>
</tr>
<tr class="impair">
<td class="titre">utilisateur</td>
</tr>
{if $session.forward_ip}
<tr class="pair">
- <td class="titre">Hôte</td>
- <td><em>{$session.forward_host}</em> <tt>IP: {$session.forward_ip}</tt></td>
+ <td class="titre">Hôte</td>
+ <td><em>{$session.forward_host}</em> <tt>IP: {$session.forward_ip|uint_to_ip}</tt></td>
</tr>
<tr class="pair">
<td class="titre">Proxy</td>
- <td><em>{$session.host}</em> <tt>IP: {$session.ip}</tt></td>
+ <td><em>{$session.host}</em> <tt>IP: {$session.ip|uint_to_ip}</tt></td>
</tr>
{else}
<tr class="pair">
- <td class="titre">{if $session.flags}Proxy{else}Hôte{/if}</td>
- <td><em>{$session.host}</em> <tt>IP: {$session.ip}</tt></td>
+ <td class="titre">{if $session.flags}Proxy{else}Hôte{/if}</td>
+ <td><em>{$session.host}</em> <tt>IP: {$session.ip|uint_to_ip}</tt></td>
</tr>
{/if}
<tr class="impair">
<tr>
<th>date</th>
<th>action</th>
- <th>donnée</th>
+ <th>donnée</th>
</tr>
{foreach from=$events item=myevent}
<tr class="{cycle values="impair,pair"}">
<tr>
<td><strong>Date</strong></td>
<td>
- Année
+ Année
<select name="year" onchange="this.form.submit()">
{html_options options=$years selected=$year}
</select>
<table class="bicol" style="font-size: 90%">
<tr>
- <th>début</th>
+ <th>début</th>
<th>utilisateur</th>
- <th>résumé</th>
+ <th>résumé</th>
<th>actions</th>
</tr>
{foreach from=$sessions item=mysess}
</td>
<td class="action">
<a href="admin/logger/session/{$mysess.id}">session</a>
+ {if !$loguser || ($loguser neq $mysess.username) || $year || $month || $day}
<a href="admin/logger/user/{$mysess.username}">user's log</a>
+ {/if}
</td>
</tr>
{/foreach}
{/if}
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}