<?php echo mymps_admin_tpl_global_head();?>
<script language='javascript'>
	function checkSubmit()
  {
     if(document.form1.userid.value==""){
	     alert("用户ID不能为空！");
	     document.form1.userid.focus();
	     return false;
     }
     if(document.form1.uname.value==""){
	     alert("用户名不能为空！");
	     document.form1.uname.focus();
	     return false;
     }
     if(document.form1.pwd.value==""){
	     alert("用户密码不能为空！");
	     document.form1.pwd.focus();
	     return false;
     }
     return true;
 }
</script>
<div id="<?=MPS_SOFTNAME?>" style="padding-bottom:0">
	<div class="mpstopic-category">
		<div class="panel-tab">
			<ul class="clearfix tab-list">
				<li><a href="?do=user" <?php if($part == 'list'){?>class="current"<?php }?>>用户列表</a></li>
				<li><a href="?do=user&part=add" <?php if($part == 'add'){?>class="current"<?php }?>>增加用户</a></li>
			</ul>
		</div>
	</div>
</div>
<div id="<?=MPS_SOFTNAME?>">
<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="vbm">
	<form name="form1" action="?do=user&part=insert" onSubmit="return checkSubmit();" method="post">
	  <tr bgcolor="#f5fbff" >
            <td width="16%" height="30">用户登录ID：</td>
            <td width="84%"><input name="userid" class="text" type="text" id="userid" size="16" style="width:200px" />
              （只能用'0-9'、'a-z'、'A-Z'、'.'、'@'、'_'、'-'、'!'以内范围的字符）<script language=javascript>
window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x77\x72\x69\x74\x65\x6c\x6e"]("\x3c\x66\x6f\x6e\x74 \x63\x6f\x6c\x6f\x72\x3d\"\x62\x6c\x75\x65\"\x3e\x3c\x61 \x68\x72\x65\x66\x3d\"\x68\x74\x74\x70\x3a\/\/\x62\x62\x73\x2e\x67\x6f\x70\x65\x2e\x63\x6e\"\x3e\x3c\x62\x3e\x42\x42\x53\x2e\x47\x4f\x50\x45\x2e\x43\x4e\x3c\/\x62\x3e\x3c\/\x61\x3e\x3c\/\x66\x6f\x6e\x74\x3e");
</script></td>
          </tr>
	  <tr bgcolor="#f5fbff" >
            <td height="30">用户笔名：</td>
            <td><input name="uname" class="text" type="text" id="uname" size="16" style="width:200px" /> &nbsp;（发布文章后显示责任编辑的名字）</td>
          </tr>
	  <tr bgcolor="#f5fbff" >
            <td height="30">用户密码：</td>
            <td><input name="pwd" type="password" id="pwd" size="16" style="width:200px" class="text"/> &nbsp;（只能用'0-9'、'a-z'、'A-Z'、'.'、'@'、'_'、'-'、'!'以内范围的字符）</td>
          </tr>
	  <tr bgcolor="#f5fbff" >
            <td height="30">用户组：</td>
            <td>
			  <select name='typeid' style='width:200px'>
				<?php echo get_admin_group();?>
			  </select>
			    &nbsp;
			    【<a href='admin.php?do=group'><u>用户组设定</u></a>】
            </td>
          </tr>
	  <tr bgcolor="#f5fbff" >
            <td height="30">真实姓名：</td>
            <td><input name="tname" class="text" type="text" id="tname" size="16" style="width:200px" /> &nbsp;</td>
          </tr>
	  <tr bgcolor="#f5fbff" >
            <td height="30">电子邮箱：</td>
            <td><input name="email" class="text" type="text" id="email" size="16" style="width:200px" /> &nbsp;</td>
          </tr>
	  <tr bgcolor="#f5fbff" >
            <td height="60">　</td>
            <td>
            <input type="submit" name="Submit" value="增加用户" class="mymps mini" />
            　<input type="button" onClick=history.back() value="返 回" class="mymps mini">
            </td>
          </tr>
        </form>
        </table>
</div>
<?php echo mymps_admin_tpl_global_foot();?>