<h2>Mail logs</h2>
<flexy:component name="sendmail_pager" class="pager" source="sendmail.MessagesList" param="page" order="sendtime DESC">

<TABLE border=0 width=100%>
<TR>
    <TD class=caption>&nbsp;#&nbsp;</TD>
    <TD class=caption width=60%>subject:</TD>
    <TD class=caption width=40%>time:</TD>
</TR>
{if:sendmail_pager.data}
    <form action="admin.php" method=POST>
    <input type=hidden name=action value=delete>
    {foreach:sendmail_pager.data,n}
    <TR>
        <TD>&nbsp;{n[id]}.&nbsp;</TD>
        <TD>
           <a href="admin.php?target=sendmail&mode=view&page={page}&id={n[id]}">
             {n[subj]}
           </a>
        </TD>
        <TD>
            &nbsp;{n[sendtime]}&nbsp;
        </TD>
    </TR>
    {end:}

    </form>
{else:}
    <TR>
        <TD colspan=5>Empty list</TD>
{end:}
</TR>
</TABLE>
