{include file="head.html"}
<div id="maincontent">
  <div class="wrap"><br />
    <form action="__URL__/add" id="form" method="post">
      <div class="infobox">
        <h3>{lang='添加管理员'}</h3>
        <table class="form-table table_style">
          <tr>
            <td width="100">{lang='帐号'}：</td>
            <td><input class="regular-text" type='text' id="user" name="user" reg="^\w+$" tip="
              {lang='只允许英文数字和下划线'}" /></td>
          </tr>
          <tr>
            <td width="100">{lang='管理组'}：</td>
            <td><select name="gid" id="gid">
                <option value="" >{lang='请选择管理组'}</option>
                <?php if(is_array($list)) foreach($list as $vo){?>
                <option value="{$vo['id']}"  >{$vo['name']}</option>
                <?php }?>
              </select></td>
          </tr>
          <tr>
            <td width="100">{lang='姓名'}：</td>
            <td><input class="regular-text" type='text' id="name" name="name" /></td>
          </tr>
          <tr>
            <td width="100">{lang='密码'}：</td>
            <td><input class="regular-text" type='password' id="password" value="" name="password" /></td>
          </tr>
          <tr>
            <td width="100">{lang='重复密码'}：</td>
            <td><input class="regular-text" type='password' id="password2" value="" name="password2" /></td>
          </tr>
          <tr>
            <td  align="left" valign="middle">{lang='状态'}：</td>
            <td><input type="radio" name="status" value="0" checked/>
              {lang='正常'}
              <input type="radio" name="status" value="1">
              {lang='禁用'}
            </td>
          </tr>
        </table>
      </div>
      <div class="submit_body">
        <input name="psot_do" id="psot_do" type="hidden" value="yes" />
        <button class="regular-button" type="button" onclick="post()">{lang='添加'}</button>
      </div>
    </form>
  </div>
</div>
</body></html>