{if $smarty.request.logsess}
{$msg_session_properties}
{$msg_user} {$session.username} {if $session.suer}(suid by {$session.suer}){/if} [user's log]
{$msg_host} {$session.host} / {$session.ip}
{$msg_browser} {$session.browser}

{foreach from=$events item=myevent} {/foreach}
{$msg_date} {$msg_action} {$msg_data}
{$myevent.stamp|date_format:"%Y-%m-%d %H:%M:%S"} {$myevent.text} {$myevent.data|escape}
{else}
{$msg_filter_by}
{$msg_date} {$msg_year}  {$msg_month}  {$msg_day}
{$msg_user} {html_options name="logauth" options=$auths selected=$logauth}

{counter start=0 assign=cnt print=0} {foreach from=$sessions item=mysess} {counter} {/foreach} {if $msg_nofilters} {/if}
{$msg_start} {$msg_user} {$msg_summary} {$msg_actions}
{$mysess.start|date_format:"%Y-%m-%d %H:%M:%S"} {$mysess.username} ({$mysess.lauth}) {foreach from=$mysess.events item=myevent}{$myevent} {/foreach} {foreach from=$mysess.actions item=myaction} {a class="action" lnk=$myaction} {/foreach}
{$msg_nofilters}
{/if}