<!-- BEGIN {$smarty.template} -->
{include file="delete_user.tpl.js"}

<form action="{$FORM_ACTION}" method="POST">

<table class="searchtable" cellspacing="0">
  <tr>
    <th colspan="2"> {t}Search users{/t} </th>
  </tr>
  <tr>
    <td>{t}Login{/t}: </td>
    <td>
      <input type="text" class="tinput" name="usr_login" value="{$s_userInfo.usr_login|wash}" size="15" maxlength="15">
      {t}Last name{/t}:
      <input type="text" class="tinput" name="pe_lastname" value="{$s_userInfo.pe_lastname|wash}" size="20" maxlength="50">
      <input type="submit" name="submit" value="{t}Search{/t}">
    </td>
  </tr>
</table>

</form>

<table class="stdtable" cellspacing="0">
  <tr>
    <td class="header"> {t}Users{/t} </td>
    <td class="headeraction" colspan="2"> [ <a href="add_user.php">{t}Add user{/t}</a> ] </td>
  </tr>
  <tr>
    <th> {t}Login{/t} </th>
    <th> {t}Name{/t} </th>
    <th> {t}Actions{/t} </th>
  </tr>

  {section name=users loop=$rows}
  <tr class="{cycle values="odd,even"}">
    <td> <a href="user.php?id={$rows[users].usr_id}">{$rows[users].usr_login|wash}</a> </td>
    <td> <a href="person.php?id={$rows[users].pe_id}">{$rows[users].pe_name|wash}</a> </td>
    <td class="actions">
      <a href="user.php?id={$rows[users].usr_id}"><img src="img/phpaga/edit.png" height="16" width="16" border="0" alt="{t}Edit{/t}" title="{t}Edit{/t}"></a>
      <a class="ptr" onclick="confirm_delete_user({$rows[users].usr_id}, '{$rows[users].usr_login|phpaga_popup_sanitizestr}');"><img src="img/phpaga/delete.png" height="16" width="16" border="0" alt="{t}Delete{/t}" title="{t}Delete{/t}"></a>
    </td>
  </tr>
  {/section}

</table>

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