<h1>Feedbacks list:</h1>
{if:eq(sendStatus,#send_ok#)}
<B>Reply was sent to user</B>
<br>
{end:}
{if:eq(sendStatus,#send_error#)}
<font color="red"><B>Reply was not sent to user. Check your server settings.</B></font>
<br>
{end:}
<flexy:component name="feedback_pager" class="pager" source="feedback.FeedbackList" param="page" order="id DESC">

<TABLE border=0>
<TR>
    <TD class=caption width=1% align=center>#</TD>
    <TD class=caption>Time</TD>
    <TD class=caption>User email</TD>
    <TD class=caption>Message</TD>
    <TD class=caption width=1%>&nbsp;</TD>
</TR>
{if:feedback_pager.data}
    <form action="admin.php" method=POST>
    <input type=hidden name=action value=delete>
    <flexy:component name="ff" class="fill_hidden" exclude="page">

    {foreach:feedback_pager.data,n}
    <TR>
        <TD><input type=checkbox name="ids[{n[id]}]" flexy:ignore></TD>
        <TD width=1%><nobr>{n[addtime]}&nbsp;&nbsp;</nobr></TD>
        <TD>{if:n[email]}{n[email]}{else:}Anonym{end:}</TD>
        <TD>
          {if:eq(n[full],0)}<a href="admin.php?target=feedback&page={page}&mode=view&id={n[id]}">{end:}
            {n[title]}
          {if:eq(n[full],0)}</a>{end:}
        </TD>
        <TD><a href="admin.php?target=feedback&page={page}&mode=view&id={n[id]}">View</a></TD>
    </TR>
    {end:}

    <TR>
        <TD colspan=5 class=caption>
        <input type=submit value=" Delete selected ">
        </TD>
    </TR>

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