<{if $actionForm->hasError()}>
<ul>
  <{foreach item=message from=$actionForm->getErrorMessages()}>
  <li><{$message}></li>
  <{/foreach}>
</ul>
<{/if}>

<form action="index.php?action=UserRegister" method="post">
<{xoops_token form=$actionForm}>
<table class="outer" width="100%">
  <tr>
    <th colspan="2" style="text-align:center;"><{$smarty.const._US_USERREG}></th>
  </tr>
  <tr>
    <td class="head"><{$smarty.const._US_NICKNAME}></td>
    <td class="<{cycle values="odd,even"}>"><{xoops_input maxlength=25 name=uname value=$actionForm->get('uname')}></td>
  </tr>
  <tr>
    <td class="head"><{$smarty.const._US_EMAIL}></td>
    <td class="<{cycle values="odd,even"}>">
      <{xoops_input name=email size=30 maxlength=60 value=$actionForm->get('email')}><br />
      <{xoops_input type=checkbox name=user_viewemail value=1 default=$actionForm->get('user_viewemail')}>
      <{$smarty.const._US_ALLOWVIEWEMAIL}>
    </td>
  </tr>
  <tr>
    <td class="head"><{$smarty.const._US_WEBSITE}></td>
    <td class="<{cycle values="odd,even"}>"><{xoops_input name=url size=30 maxlength=100 value=$actionForm->get('url')}></td>
  </tr>
  <tr>
    <td class="head"><{$smarty.const._MD_USER_LANG_TIMEZONE_OFFSET}></td>
    <td class="<{cycle values="odd,even"}>">
      <select name="timezone_offset">
        <{foreach item=timezone from=$timezones}>
          <option value="<{$timezone->getVar('offset')}>" <{if $actionForm->get('timezone_offset')==$timezone->getVar('offset')}>selected<{/if}>><{$timezone->getVar('zone_name')}></option>
        <{/foreach}>
      </select>
    </td>
  </tr>
  <tr>
    <td class="head"><{$smarty.const._US_PASSWORD}></td>
    <td class="<{cycle values="odd,even"}>">
      <{xoops_input type=password name=pass value=$actionForm->get('pass') size=10 maxlength=32}>
    </td>
  </tr>
  <tr>
    <td class="head"><{$smarty.const._US_VERIFYPASS}></td>
    <td class="<{cycle values="odd,even"}>">
      <{xoops_input type=password name=vpass value=$actionForm->get('vpass') size=10 maxlength=32}>
    </td>
  </tr>
  <{if $enableAgree}>
  <tr>
    <td class="head"><{$smarty.const._US_DISCLAIMER}></td>
    <td class="<{cycle values="odd,even"}>">
      <{xoops_textarea name=disclaimer rows=8 cols=50 readonly=true value=$disclaimer}><br />
      <{xoops_input type=checkbox name=agree value=1 default=$actionForm->get('agree')}>
      <{$smarty.const._US_IAGREE}>
    </td>
  </tr>
  <{/if}>
  <tr>
    <td colsapn="2" class="foot" style="text-align:center;">
      <input type="submit" value="<{$smarty.const._US_SUBMIT}>" />
    </td>
  </tr>
</table>
</form>
