📄 adduser.asp
字号:
<!--#include file="md5.asp"-->
<%
if session("admin")="" then
response.redirect "admin.asp"
else
if session("flag")>1 then
response.write "<br><p align=center>您没有操作的权限</p>"
response.end
end if
end if
%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="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 background="image/bg.gif" leftmargin="0" topmargin="0">
<p> </p>
<table border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#FFFFFF" class="table" >
<form method="post" action="saveuser1.asp" name="form1" onsubmit="javascript:return check();">
<tr align="center" class="title">
<td colspan="2"><font color="#333333"><strong>新增管理员</strong></font></td>
</tr>
<tr bgcolor="#F6F6F6">
<td><font color="#333333">用 户 名: </font></td>
<td> <font color="#333333">
<input name="username" type="text" class="input">
</font></td>
</tr>
<tr bgcolor="#F6F6F6">
<td><font color="#333333">初始密码: </font></td>
<td> <font color="#333333">
<input name="newpin" type="password" class="input">
</font></td>
</tr>
<tr bgcolor="#F6F6F6">
<td><font color="#333333">确认密码: </font></td>
<td> <font color="#333333">
<input name="re_newpin" type="password" class="input">
</font></td>
</tr>
<tr bgcolor="#F6F6F6">
<td><font color="#333333">权限设置:</font></td>
<td> <font color="#333333">
<input type="radio" name="right_class" value="3">
用户
<input type="radio" name="right_class" value="2" checked>
普通管理员
<input type="radio" name="right_class" value="1">
超级用户</font></td>
</tr>
<tr align="center" bgcolor="#F6F6F6">
<td colspan="2"> <font color="#333333">
<input class="button" type="submit" name="Submit" value="确定">
</font></td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -