{assign var=title value="Admin Actions Log"}
{include file="admin/header.inc.html"}
<center>
<br /><h3>{$title}</h3>

<form method=get>
<table class=vedit align=center><tr><th>
<input type=text name=q size=30 value="{$smarty.request.q|escape}" style='font-size: 8pt;'>
<select name='q_where' size=1 style='font-size: 8pt;'>
{html_options options=$q_where_options selected=$smarty.request.q_where}
</select>
<input type=submit value="Filter by string" style='font-size: 8pt;'>
</tr></th></table>
</form>
<br/>

<table class=hedit width=70%>
<tr>
    <th>Time</th>
    <th>Admin</th>
	{if !$config.demo}
    <th>IP Address</th>
	{/if}
    <th>Action</th>
    <th>Subject (record)</th>
</tr>
{foreach from=$list item=p}
<tr class={cycle values="xx,odd"}>
    <td> {$p.dattm|date_format:$config.time_format} </td>
    <td> {$p.admin_login|escape}</td>
	{if !$config.demo}
    <td> {$p.ip|escape} </td>
	{/if}
    <td> {$p.message|escape} </td>
    <td> 
    {if $p.record_link }
        <a target=_blank href="{$p.record_link}">{$p.tablename|escape}:{$p.record_id|escape}</a> 
    {elseif $p.record_id }
        {$p.tablename|escape}:{$p.record_id|escape} 
    {/if}
    </td>
</tr>
{/foreach}
</table>

{span count=$count}

{include file="admin/footer.inc.html"}
