📄 adminadd1.asp
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--#include file="conn.asp"-->
<!--#include file="ConnUser.asp"-->
<!--#include file="char.inc"-->
<!--#include file="config.asp"-->
<!--#include file="chkuser.asp" -->
<!--#include file="ChkURL.asp" -->
<!--#include file="ChkManage.asp" -->
<%
if not(request.cookies(eChuang)("ManageKEY")="super" and request.cookies(eChuang)("ManagePurview")="99999") then
Show_Err("对不起,您的后台管理权限不够操作!")
response.end
else
%>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=copyright%><%=version%> <%=ver%> - 添加管理用户_建站铺修正版_bbs.jzpu.com</title>
<script type="text/javascript">
<!--
function FrmAddLink_onsubmit() {
if (document.FrmAddLink.username.value=="")
{
alert("对不起,请输入管理用户名!")
document.FrmAddLink.username.focus()
return false
}
else if (document.FrmAddLink.username.value.length < 2)
{
alert("管理用户名能不能长一点!")
document.FrmAddLink.username.focus()
return false
}
else if (document.FrmAddLink.username.value.length > 30)
{
alert("管理用户名太长了吧!")
document.FrmAddLink.username.focus()
return false
}
else if (document.FrmAddLink.passwd.value=="")
{
alert("对不起,请输入密码!")
document.FrmAddLink.passwd.focus()
return false
}
else if (document.FrmAddLink.passwd.value.length < 4)
{
alert("为了安全,密码应该长一点!")
document.FrmAddLink.passwd.focus()
return false
}
else if (document.FrmAddLink.passwd.value.length > 16)
{
alert("密码太长了吧!")
document.FrmAddLink.passwd.focus()
return false
}
else if (document.FrmAddLink.username.value==document.FrmAddLink.passwd.value)
{
alert("为了安全,管理用户名与密码不应该相同!")
document.FrmAddLink.passwd.focus()
return false
}
else if (document.FrmAddLink.passwd2.value=="")
{
alert("对不起,请您输入验证密码!")
document.FrmAddLink.passwd2.focus()
return false
}
else if (document.FrmAddLink.passwd2.value !== document.FrmAddLink.passwd.value)
{
alert("对不起,您两次输入的密码不一致!")
document.FrmAddLink.passwd2.focus()
return false
}
else if (document.FrmAddLink.fullname.value=="")
{
alert("对不起,请输入该管理用户的真实姓名!")
document.FrmAddLink.fullname.focus()
return false
}
else if (document.FrmAddLink.adder.value=="")
{
alert("对不起,请输入对应前台普通发文用户!")
document.FrmAddLink.adder.focus()
return false
}
else if (document.FrmAddLink.depid.value=="")
{
alert("对不起,请选择该管理用户的工作单位!")
document.FrmAddLink.depid.focus()
return false
}
else if (document.FrmAddLink.purview.value=="")
{
alert("对不起,请选择该管理用户的权限!")
document.FrmAddLink.purview.focus()
return false
}
}
//-->
</script>
<link href="css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!--#include file=Admin_Top.asp-->
<fieldset class="wide_400 align_center">
<legend><h2>┊ 添 加 新 管 理 用 户┊</h2></legend>
<form action="AdminAdd2.asp" method="post" id="FrmAddLink" onsubmit="return FrmAddLink_onsubmit()" align="center" language="javascript">
<div><span>管 理 用 户 名:</span> <input name="username" size="26" maxlength="30" /></div>
<div><span>密 码:</span><input name="passwd" size="26" maxlength="15" type="password"></div>
<div><span>验证密码:</span><input name="passwd2" size="26" maxlength="15" type="password"> </div>
<div><span>真实姓名:</span><input name="fullname" size="26" maxlength="10"></div>
<div><span>对应前台普通发文用户:</span><input name="adder" size="26" maxlength="10">(填错将使本超管用户无法登陆)</div>
<div><span>工作单位:</span><%
set rstype=createobject("adodb.recordset")
sql="select * from "& db_Dep_Table &" order by id"
rstype.Open sql,conn,1,3
%>
<select name="depid" style="font-size: 9pt; color: #000000; background-color: #EAEAF4; solid #EAEAF4" onmouseover ="this.style.backgroundColor='#ffffff'" onmouseout ="this.style.backgroundColor='#EAEAF4'">
<option value="">请选择工作单位</option>
<%do while not rstype.EOF%>
<option value="<%=rstype("id")%>"><%=rstype("depname")%>==<%=rstype("deptype")%></option>
<%
rstype.MoveNext
loop
set rstype=nothing
%>
</select></div>
<div><span>管理用户权限:</span><select name="purview" style="font-size: 9pt; color: #000000; background-color: #EAEAF4; solid #EAEAF4" onmouseover ="this.style.backgroundColor='#ffffff'" onmouseout ="this.style.backgroundColor='#EAEAF4'">
<option selected="selected" value="">请选择用户权限</option>
<option value="99999" selected="selected">超级管理员</option>
<option value="1">系统管理员</option>
</select></div>
<div>
<input name="shenhe" type="hidden" value="0" />
<input name="oskey" type="hidden" value="super" />
<input type="button" value=" 返 回 " onclick="javascript:history.go(-1)" />
<input type="submit" value=" 确 定 " name="cmdOk" />
<input type="reset" value=" 重 填 " name="cmdReset"/>
</div></form>
</fieldset>
</body>
</html>
<!--#include file=Admin_Bottom.asp-->
<%END IF%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -