<!-- BEGIN {$smarty.template} -->

<form action="{$smarty.const.PHPAGA_SELF}" method="get">

<table class="stdtable" cellspacing="0">
  <caption><em>{t}Application log{/t}</em></caption>
  <tr>
    <th> {t}Date{/t} </th>
    <th> {t}Ident{/t} </th>
    <th> {t}Priority{/t} </th>
    <th> {t}Message{/t} </th>
  </tr>

  <tr>
    <td> &nbsp; </td>
    <td>
      <select name="ident">
        {html_options options=$idents selected=$search.ident}
      </select>
    </td>
    <td>
      <select name="priority">
        {html_options options=$priorities selected=$search.priority}
      </select>
    </td>
    <td>
      <input type="text" class="tinput" name="message" value="{$search.message|wash}" />
      {t}Results{/t}:
      <select name="num">
        {html_options options=$num selected=$search.num}
      </select>

      <input type="submit" name="submit" value="{t}Search{/t}">
    </td>
  </tr>

  {section name=l loop=$entries}
  <tr class="{cycle values="odd,even"}">
    <td> {$entries[l].logtime|wash} </td>
    <td> {$entries[l].ident|wash} </td>
    <td> {$entries[l].priority|wash|phpaga_getlogprioritytxt} </td>
    <td class="datawrap"> {$entries[l].message|wash|nl2br} </td>
  </tr>
  {/section}

</table>

</form>

<!-- END {$smarty.template} -->
