Today {foreach item=entry from=$logs.today key=id}
 {$entry.date|escape}  {$entry.user_name|escape}  {$entry.ip|escape}  {$entry.action|escape}  {$entry.file|substr:10:64|escape} {foreachelse}

Log is empty
{/foreach}
Yesterday {foreach item=entry from=$logs.yesterday key=id}
 {$entry.date|escape}  {$entry.user_name|escape}  {$entry.ip|escape}  {$entry.action|escape}  {$entry.file|substr:10:64|escape} {foreachelse}

Log is empty
{/foreach}
Last week {foreach item=entry from=$logs.lastweek key=id}
 {$entry.date|escape}  {$entry.user_name|escape}  {$entry.ip|escape}  {$entry.action|escape}  {$entry.file|substr:10:64|escape} {foreachelse}

Log is empty
{/foreach}
Older {foreach item=entry from=$logs.older key=id}
 {$entry.date|escape}  {$entry.user_name|escape}  {$entry.ip|escape}  {$entry.action|escape}  {$entry.file|substr:10:64|escape} {foreachelse}

Log is empty
{/foreach}
{if $debug}{debug}{/if} {* vim: set syntax=smarty ts=4 sw=4 sts=4 sr noet: *}