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

<form action="{$SELF}" method="post">
<input type="hidden" name="id" value="{$user.usr_id}">
<input type="hidden" name="action" value="{$smarty.const.ACTION_UPDATE}">

<table class="stdtable" cellspacing="0">
  <caption><em>{$user.usr_login}</em></caption>
  <tr>
    <td class="label"> {t}Login{/t}: </td>
    <td class="data"> {$user.usr_login|wash} </td>
  </tr>
  <tr>
    <td class="label"> {t}Name{/t}: </td>
    <td class="data"> <a href="person.php?id={$user.pe_id}">{$user.usr_name|wash}</a> </td>
  </tr>
  <tr>
    <td class="label"> {t}Language{/t}: </td>
    <td class="data">
      <select name="lng_id">
        {html_options options=$languages selected=$user.lng_id}
      </select>
    </td>
  </tr>
  <tr>
    <td class="label"> {t}Theme{/t}: </td>
    <td class="data">
      <select name="usr_skin">
        {html_options options=$skins selected=$user.skin}
      </select>
    </td>
  </tr>
  <tr><td class="label"> {t}Password{/t} </td><td class="label">&nbsp;</td></tr>
  <tr>
    <td class="label"> {t}Old{/t}: </td>
    <td class="data"> <input type="password" class="tinput" name="usr_pwd_old" value="" size="10" maxlength="15"> * </td>
  </tr>
  <tr>
    <td class="label"> {t}New{/t}: </td>
    <td class="data"> <input type="password" class="tinput" name="usr_pwd_new" value="" size="10" maxlength="15"> * </td>
  </tr>
  <tr>
    <td class="label"> {t}Confirm{/t}: </td>
    <td class="data"> <input type="password" class="tinput" name="usr_pwd_confirm" value="" size="10" maxlength="15"> * </td>
  </tr>
  <tr><td class="label" colspan="2">* {t}Leave these empty to keep the current password.{/t}</td></tr>
  <tr>
    <td class="last nrb" colspan="2"> <input type="submit" value="{t}Submit{/t}"> <input type="reset" value="{t}Cancel{/t}"> </td>
  </tr>
</table>

{if $privmanage}
<table class="stdtable" cellspacing="0">
  <caption><em>{t}Permissions{/t}</em></caption>
  <tr>
    <td class="label">{$perm[$smarty.const.PHPAGA_PERM_VIEW_FINANCE]}</td>
    <td class="data"><input type="checkbox" class="cbox" name="perm[]" value="{$smarty.const.PHPAGA_PERM_VIEW_FINANCE}" {$permchecked[$smarty.const.PHPAGA_PERM_VIEW_FINANCE]}> </td>
    <td class="label">{$perm[$smarty.const.PHPAGA_PERM_VIEW_INVOICES]}</td>
    <td class="data lr"><input type="checkbox" class="cbox" name="perm[]" value="{$smarty.const.PHPAGA_PERM_VIEW_INVOICES}" {$permchecked[$smarty.const.PHPAGA_PERM_VIEW_INVOICES]}> </td>
  </tr>
  <tr>
    <td class="label">{$perm[$smarty.const.PHPAGA_PERM_VIEW_QUOTATIONS]}</td>
    <td class="data"><input type="checkbox" class="cbox" name="perm[]" value="{$smarty.const.PHPAGA_PERM_VIEW_QUOTATIONS}" {$permchecked[$smarty.const.PHPAGA_PERM_VIEW_QUOTATIONS]}> </td>
    <td class="label">{$perm[$smarty.const.PHPAGA_PERM_MANAGE_INVOICES]}</td>
    <td class="data lr"><input type="checkbox" class="cbox" name="perm[]" value="{$smarty.const.PHPAGA_PERM_MANAGE_INVOICES}" {$permchecked[$smarty.const.PHPAGA_PERM_MANAGE_INVOICES]}> </td>
  </tr>
  <tr>
    <td class="label">{$perm[$smarty.const.PHPAGA_PERM_MANAGE_QUOTATIONS]}</td>
    <td class="data"><input type="checkbox" class="cbox" name="perm[]" value="{$smarty.const.PHPAGA_PERM_MANAGE_QUOTATIONS}" {$permchecked[$smarty.const.PHPAGA_PERM_MANAGE_QUOTATIONS]}> </td>
    <td class="label">{$perm[$smarty.const.PHPAGA_PERM_VIEW_OTHERPROJECTS]}</td>
    <td class="data lr"><input type="checkbox" class="cbox" name="perm[]" value="{$smarty.const.PHPAGA_PERM_VIEW_OTHERPROJECTS}" {$permchecked[$smarty.const.PHPAGA_PERM_VIEW_OTHERPROJECTS]}> </td>
  </tr>
  <tr>
    <td class="label">{$perm[$smarty.const.PHPAGA_PERM_MANAGE_PROJECTS]}</td>
    <td class="data"><input type="checkbox" class="cbox" name="perm[]" value="{$smarty.const.PHPAGA_PERM_MANAGE_PROJECTS}" {$permchecked[$smarty.const.PHPAGA_PERM_MANAGE_PROJECTS]}> </td>
    <td class="label">{$perm[$smarty.const.PHPAGA_PERM_MANAGE_OTHERPROJECTS]}</td>
    <td class="data lr"><input type="checkbox" class="cbox" name="perm[]" value="{$smarty.const.PHPAGA_PERM_MANAGE_OTHERPROJECTS}" {$permchecked[$smarty.const.PHPAGA_PERM_MANAGE_OTHERPROJECTS]}> </td>
  </tr>
  <tr>
    <td class="label">{$perm[$smarty.const.PHPAGA_PERM_MANAGE_ALLTASKS]}</td>
    <td class="data lr"><input type="checkbox" class="cbox" name="perm[]" value="{$smarty.const.PHPAGA_PERM_MANAGE_ALLTASKS}" {$permchecked[$smarty.const.PHPAGA_PERM_MANAGE_ALLTASKS]}> </td>
    <td class="label">{$perm[$smarty.const.PHPAGA_PERM_MANAGE_OTHERPERSONS]}</td>
    <td class="data lr"><input type="checkbox" class="cbox" name="perm[]" value="{$smarty.const.PHPAGA_PERM_MANAGE_OTHERPERSONS}" {$permchecked[$smarty.const.PHPAGA_PERM_MANAGE_OTHERPERSONS]}> </td>
  </tr>
  <tr>
    <td class="label">{$perm[$smarty.const.PHPAGA_PERM_VIEW_ALLTASKS]}</td>
    <td class="data"><input type="checkbox" class="cbox" name="perm[]" value="{$smarty.const.PHPAGA_PERM_VIEW_ALLTASKS}" {$permchecked[$smarty.const.PHPAGA_PERM_VIEW_ALLTASKS]}> </td>
    <td class="label">{$perm[$smarty.const.PHPAGA_PERM_MANAGE_OTHERCOMPANIES]}</td>
    <td class="data lr"><input type="checkbox" class="cbox" name="perm[]" value="{$smarty.const.PHPAGA_PERM_MANAGE_OTHERCOMPANIES}" {$permchecked[$smarty.const.PHPAGA_PERM_MANAGE_OTHERCOMPANIES]}> </td>
  </tr>
  <tr>
    <td class="last label">{$perm[$smarty.const.PHPAGA_PERM_VIEW_OTHERMEMTASKS]}</td>
    <td class="last data"><input type="checkbox" class="cbox" name="perm[]" value="{$smarty.const.PHPAGA_PERM_VIEW_OTHERMEMTASKS}" {$permchecked[$smarty.const.PHPAGA_PERM_VIEW_OTHERMEMTASKS]}> </td>
    <td class="last label">{$perm[$smarty.const.PHPAGA_PERM_MANAGE_SYSSETTINGS]}</td>
    <td class="last data lr"><input type="checkbox" class="cbox" name="perm[]" value="{$smarty.const.PHPAGA_PERM_MANAGE_SYSSETTINGS}" {$permchecked[$smarty.const.PHPAGA_PERM_MANAGE_SYSSETTINGS]}> </td>
  </tr>
</table>
{/if}

</form>

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