<!--#include file="error.ini"-->
<!--#include file="../inc/admin_conn.asp"-->
<!--#include file="Top.asp"-->
<html>
<%if session("flag")>1 then
    response.write "<script>alert('您的操作权限不够！');history.back();</script>"
    response.end
end if
%>
<HTML>
<HEAD>
<TITLE></TITLE>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="Images/Admin_Style.Css" rel="stylesheet" type="text/css">
<script language="javascript">

function check()

{
  if(document.form1.username.value=="")
    {
      alert("用户名为空");
      return false;
    }
    
  if(document.form1.newpin.value=="")
    {
      alert("密码不能为空");
      return false;
    }
    
  if((document.form1.newpin.value)!=(document.form1.re_newpin.value))
    {
      alert("密码不匹配");
      return false;
    }

}

</script>
</HEAD>

<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<DIV align="center"> 

  <form method="post" action="adminsave.asp" name="form1" onsubmit="javascript:return check();">
    <TABLE width="50%" border="0" cellspacing="1" cellpadding="0" class="border">
      <TR> 
        <TD height="22" colspan="2" class="title"> <div align="center"><strong>添加管理员</strong></div></TD>
      </TR>
      <TR> 
        <TD height="30" class="tdbg"> <DIV align="center">用 户 名：　 </DIV></TD>
        <TD class="tdbg">　
          <font size="2">
          <input type="text" name="username" size="19">
        </font></TD>
      </TR>
      <TR> 
        <TD height="30" class="tdbg"> <DIV align="center">初始密码：　 </DIV></TD>
        <TD height="30" class="tdbg">　
          <font size="2">
          <input type="password" name="newpin" size="20">
        </font></TD>
      </TR>
      <TR> 
        <TD height="30" class="tdbg"> <DIV align="center">确认密码：　 </DIV></TD>
        <TD height="30" class="tdbg">　
          <font size="2">
          <input type="password" name="re_newpin" size="20">
        </font></TD>
      </TR>
      <TR> 
        <TD height="30" colspan="2" class="tdbg"> <DIV align="center">权限设置 </DIV></TD>
      </TR>
      <TR> 
        <TD height="30" colspan="2" class="tdbg"> <DIV align="center"> 
            <select size="1" name="flag">
              <option selected value="4">====无管理权限====</option>
              <option value="3">====初级管理员====</option>
              <option value="2">====高级管理员====</option>
              <option value="1">====超级管理员====</option>
            </select>
        </DIV></TD>
      </TR>
    </TABLE>
    <P> 
      <INPUT type="submit" name="Submit" value="确定">
      　
      <input name="Cancel" type="button" id="Cancel" value="取消" onClick="window.location.href='addadmin.asp'" style="cursor:hand;">
    </P>
  </FORM>
  <P>　</P>
  <P align=center></P> </DIV>
</BODY>
</HTML>