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

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

  <fieldset class="search">
    <legend>{t}Search users{/t}</legend>

    <label for="usr_login">{t}Login{/t}:</label>
    <input type="text" class="tinput" id="usr_login" name="usr_login" value="{$s_userInfo.usr_login|wash}" size="15" maxlength="15">
    <br>

    <label for="pe_lastname">{t}Last name{/t}:</label>
    <input type="text" class="tinput" id="pe_lastname" name="pe_lastname" value="{$s_userInfo.pe_lastname|wash}" size="20" maxlength="50">
    <br>

    <input type="submit" name="submit" value="{t}Search{/t}">
  </fieldset>
</form>

<table class="stdtable" cellspacing="0">
  <caption><em>{t}Users{/t}</em>
  [ <a href="add_user.php">{t}Add user{/t}</a> ]
  </caption>
  <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} -->
