adduser.asp
资源名称:qnmov30.rar [点击查看]
上传用户:qyswxdl
上传日期:2013-06-01
资源大小:1373k
文件大小:3k
源码类别:
家庭/个人应用
开发平台:
ASP/ASPX
- <!--#include file="../checkpost.asp"-->
- <!--#include file="security.asp"-->
- <%if session("flag")>1 then
- response.write "<br><p align=center>您的操作权限不够!</p>"
- response.end
- end if
- %>
- <HTML>
- <HEAD>
- <TITLE></TITLE>
- <META http-equiv="Content-Type" content="text/html; charset=gb2312">
- <LINK href="inc/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">
- <!--#include file="top1.asp"-->
- <form method="post" action="saveuser1.asp" name="form1" onsubmit="javascript:return check();">
- <TABLE width="50%" border="0" cellspacing="1" cellpadding="0" class="border">
- <TR>
- <TD height="25" colspan="2" bgcolor="#429AEF"> <DIV align="center"><strong><font color="#FFFFFF">新增管理员</font></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="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="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='adminuser.asp'" style="cursor:hand;">
- </P>
- </FORM>
- <P> </P>
- <P align=center></P> </DIV>
- </BODY>
- </HTML>