<!--#include file="../conn.asp"-->
<!-- #include file="../admin/check_master.asp" -->
<!--#include file="../inc/md5.asp" -->
<%
if Request.Form("act")="y" then
   if Request.Form("adminqs")="" then
      adminqs="0,0,0"
   else
      adminqs=Request.Form("adminqs")
   end if
   sql="insert into ftbbs_admin (admin_user,admin_pwd,lasttime,qs,adminqs) values('"&Request.Form("admin_user")&"','"&md5(Request.Form("admin_pwd"))&"','"&Ftbbs_Time&"','"&Request.Form("qs")&"','"&adminqs&"')"
   conn.Execute(sql)
   response.redirect "ftbbs_admin.asp"
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加管理用户</title>
<link href="../css/xmwuye.css" rel="stylesheet" type="text/css">
</head>

<body>
  <br>
  <br>
  <br>
  <br>
  <table width="71%" border="0" align="center">
  <form name="form1" method="post" action="">
    <tr bgcolor="f8f8f8"> 
      <td height="30" colspan="2"> 
        <div align="center">添加管理员</div></td>
    </tr>
    <tr bgcolor="f8f8f8"> 
      <td width="24%" height="30"> 
        <div align="right">用户名：</div></td>
      <td width="76%" height="30"> 
        <input name="admin_user" type="text" size="27"></td>
    </tr>
    <tr bgcolor="f8f8f8"> 
      <td height="30"> 
        <div align="right">密&nbsp;&nbsp;码：</div></td>
      <td height="30"> 
        <input name="admin_pwd" type="password" size="27"></td>
    </tr>
    <tr bgcolor="f8f8f8"> 
      <td height="30"> 
        <div align="right">用户身份：</div></td>
      <td height="30"><input type="radio" name="qs" value="2">
        超级管理员 
        <input name="qs" type="radio" value="1" checked>
        普通管理员</td>
    </tr>
    <tr bgcolor="f8f8f8"> 
      <td height="30"> 
        <div align="right">操作权限：</div></td>
      <td height="30"><input name="adminqs" type="checkbox" id="adminqs" value="1">
        添加 
        <input name="adminqs" type="checkbox" id="adminqs" value="2">
        修改 
        <input name="adminqs" type="checkbox" id="adminqs" value="3">
        删除</td>
    </tr>
    <tr bgcolor="f8f8f8"> 
      <td height="30">&nbsp;</td>
      <td height="30"><input type="submit" name="Submit" value="确定" <%if session("qs")<>2 then%>disabled<%end if%>>
        <input name="act" type="hidden" id="act" value="y"></td>
    </tr>
	</form>
  </table>
</body>
</html>
