{include file="head.html"}
<div id="maincontent">
  <div class="wrap"><br />
    <form action="__URL__/edit" id="form" method="post">
      <div class="infobox">
        <h3>{lang='修改管理员'}</h3>
        <table class="form-table table_style">
          <tr>
            <td width="100">{lang='帐号'}：</td>
            <td><input name="user" type='text' class="regular-text" id="user" value="{$info['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){?>
                <?php if($vo['id']==$info['gid']) { ?>
                <option value="{$vo['id']}"   selected="selected"  >{$vo['name']}</option>
                <?php } else { ?>
                <option value="{$vo['id']}"  >{$vo['name']}</option>
                <?php }?>
                <?php }?>
              </select></td>
          </tr>
          <tr>
            <td width="100">{lang='姓名'}：</td>
            <td><input class="regular-text" type='text' id="name" value="{$info['name']}" name="name" /></td>
          </tr>
          <tr>
            <td width="100">{lang='密码'}：</td>
            <td><input class="regular-text" type='password' id="password" value="" name="password" /><br />
              {lang='不修改密码请留空'}！</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><?php if($info['status']==0){ ?>
              <input type="radio" name="status" value="0" checked/>
              {lang='正常'}
              <input type="radio" name="status" value="1">
              {lang='禁用'}
              <?php }else{ ?>
              <input type="radio" name="status" value="0">
              {lang='正常'}
              <input type="radio" name="status" value="1" checked/>
              {lang='禁用'}
              <?php } ?></td>
          </tr>
        </table>
      </div>
      <div class="submit_body">
        <input name="psot_do" id="psot_do" type="hidden" value="yes" />
        <input name="id" id="id" type="hidden" value="{$info['id']}" />
        <button class="regular-button" type="button" onclick="post()">{lang='修改'}</button>
      </div>
    </form>
  </div>
</div>
</body></html>