<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

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

<title>{t}phpaga: Installation{/t}</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="robots" content="noarchive,nofollow,noindex" />
<style type="text/css" title="{$userskin}">@import "styles/{$smarty.const.PHPAGA_DEFAULT_SKIN}.css";</style>
</head>
<body>

<div id="install">

<h1>phpaga | {t}Create admin user{/t}</h1>

<p>{t}Fill out and submit the following form in order to create your first user. This user will have all available permissions, incuding the right to create and manage other users.{/t}</p>
<p>{t}Once you are logged in you will be able to change and extend any of your personal information.{/t}</p>

{if $errmsg}{$errmsg}{/if}

<form action="{$SELF}" method="post">
<div>

<input type="hidden" name="action" value="{$smarty.const.ACTION_ADD}" />

<table class="stdtable" cellspacing="0">
  <tr>
    <td class="header" colspan="2"> {t}Personal information{/t} </td>
  </tr>
  <tr>
    <td class="label"> {t}First name{/t}: </td>
    <td class="data">
      <input type="text" class="tinput" name="pe_firstname" value="{$userdata.pe_firstname|wash}" size="10" maxlength="50" />
      {t}Last name{/t}:
      <input type="text" class="tinput" name="pe_lastname" value="{$userdata.pe_lastname|wash}" size="30" maxlength="100" />
    </td>
  </tr>
  <tr>
    <td class="label"> {t}Country{/t}: </td>
    <td class="data">
      <select name="ctr_id">
        {html_options options=$select_ctr selected=$userdata.ctr_id}
      </select>
    </td>
  </tr>

  <tr>
    <td class="section" colspan="2"> {t}Company{/t} </td>
  </tr>

  <tr>
    <td class="label"> {t}Company{/t}: </td>
    <td class="data"><input type="text" class="tinput" name="cpn_name" value="{$userdata.cpn_name|wash}" size="50" maxlength="100" /></td>
  </tr>
  <tr>
    <td class="label"> {t}Category{/t}: </td>
    <td class="data">
      <select name="ccat_id">
        {html_options options=$select_ccat selected=$userdata.ccat_id}
      </select>
    </td>
  </tr>

  <tr>
    <td class="section" colspan="2"> {t}User{/t} </td>
  </tr>

  <tr>
    <td class="label">{t}Language{/t}: </td>
    <td class="data">
      <select name="lng_id">
        {html_options options=$languages selected=$userdata.lng_id}
      </select>
    </td>
  </tr>

  <tr>
    <td class="label">{t}Login{/t}: </td>
    <td class="data"> <input type="text" class="tinput" name="usr_login" value="{$userdata.usr_login|wash}" size="10" maxlength="20" /> </td>
  </tr>
  <tr>
    <td class="label">{t}Password{/t}: </td>
    <td class="data"> <input type="password" class="tinput" name="usr_pwd_new" value="{$userdata.usr_pwd_new}" 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="{$userdata.usr_pwd_confirm}" size="10" maxlength="15" /> </td>
  </tr>

  <tr>
    <td colspan="2"><input type="submit" name="submit" value="{t}Submit{/t}" /></td>
  </tr>
</table>

</div>
</form>

<div class="footer"><a href="http://phpaga.net/" title="phpaga.net">phpaga.net</a></div>

</div>
</body>
</html>

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