{include file="../head.tpl"}

<form action="userfields.php" method="post" name="uf" id="uf">
  <table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
    <tr>
      <td colspan="4" class="header">{$langadmin.navi_userfields}</td>
    </tr>
    <tr>
      <td colspan="4" class="firstrow"> {$langadmin.navi_userfields_text} </td>
    </tr>
    <tr>
      <td width="10%"> <strong>{$langadmin.name}</strong>      </td>
      <th width="10%"><div align="center">{$langadmin.pos}</div></th>
      <th width="20%">{$langadmin.active}</th>
      <th width="20%">{$langadmin.must_used}</th>
    </tr>
	{foreach from=$userfields item=uf}
    <tr  class="{cycle name='ufi' values='secondrow,firstrow'}">
      <td nowrap="nowrap">{$uf->field_lang}</td>
      <td><div align="center">
        <input name="posi[{$uf->id}]" type="text" id="posi[{$uf->id}]" value="{$uf->posi}" size="4" maxlength="3" />
      </div></td>
      <td><div align="center">
	  {if $uf->fieldname==pass || $uf->fieldname==pass2 || $uf->fieldname==uname || $uf->fieldname==email || $uf->fieldname==email2}
	  {$langadmin.yes}
	  {else}
        <input type="radio" name="active[{$uf->id}]" value="yes" {if $uf->active=='yes'}checked="checked"{/if} />{$langadmin.yes}
        &nbsp;&nbsp;<input type="radio" name="active[{$uf->id}]" value="no" {if $uf->active=='no'}checked="checked"{/if} />{$langadmin.no}
		{/if}
      </div></td>
      <td><div align="center">
	  {if $uf->fieldname==pass || $uf->fieldname==pass2 || $uf->fieldname==uname || $uf->fieldname==email || $uf->fieldname==email2}
	  {$langadmin.yes}
	  {else}
        <input type="radio" name="required[{$uf->id}]" value="yes" {if $uf->required=='yes'}checked="checked"{/if} />{$langadmin.yes}
        &nbsp;&nbsp;<input type="radio" name="required[{$uf->id}]" value="no" {if $uf->required=='no'}checked="checked"{/if} />{$langadmin.no}
	{/if}
</div></td>
    </tr>
	{/foreach}
    <tr>
      <td colspan="4" nowrap="nowrap" class="firstrow"><input name="Submit" type="submit" class="button" value="{$langadmin.save}" />
      <input name="action" type="hidden" id="action" value="save" /></td>
    </tr>
	
  </table>
</form>

{include file="../foot.tpl"}