{include file="pageheader.htm"}

<div class="main-div">
<form action="reg_fields.php" method="post" name="theForm" onsubmit="return validate()">
<table width="100%">
  <tr >
    <td class="label">{$lang.reg_field_name}: </td>
    <td><input type="text" name="reg_field_name" value="{$reg_field.reg_field_name}" maxlength="20" />{$lang.require_field}</td>
  </tr>
  <tr>
    <td></td>    
    <td align="left">
      <input type="hidden" name="act" value="{$form_action}" />
      <input type="hidden" name="id" value="{$reg_field.reg_field_id}" />
      <input type="submit" value="{$lang.button_submit}" class="button" />
      <input type="reset" value="{$lang.button_reset}" class="button" />
    </td>

  </tr>
</table>
</form>
</div>
{insert_scripts files="../js/utils.js,validator.js"}
{literal}
<script language="JavaScript">
<!--
document.forms['theForm'].elements['reg_field_name'].focus();

onload = function()
{
  // 开始检查订单
  startCheckOrder();
}

/**
 * 检查表单输入的数据
 */
function validate()
{
  validator = new Validator("theForm");
  validator.required('reg_field_name', field_name_empty);
  return validator.passed();
}
//-->
</script>
{/literal}
{include file="pagefooter.htm"}