⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adminedit.asp

📁 完美政府版,正版网站解决方案
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="ConnUser.asp"-->
<!--#include file="char.inc"-->
<!--#include file="config.asp"-->
<!--#include file="chkuser.asp" -->
<!--#include file="ChkManage.asp" -->
<!--#include file="ChkURL.asp" -->
<%
IF not(request.cookies(Forcast_SN)("ManageKEY")="super" or request.cookies(Forcast_SN)("ManageKEY")="typemaster" or request.cookies(Forcast_SN)("ManageKEY")="bigmaster") then
	Show_Err("对不起,您的后台管理权限不够操作!")
	response.end
else
    if request.cookies(Forcast_SN)("purview")="99999" and request.cookies(Forcast_SN)("KEY")="super" then
	%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href=site.css rel=stylesheet>
<title><%=copyright%><%=version%>&nbsp;<%=ver%> - 修改资料&#23436;&#32654;&#35774;&#35745;&#32593;&#32476;&#31185;&#25216;&#26377;&#38480;&#20844;&#21496;&#32;&#23436;&#32654;&#25919;&#24220;&#32593;&#31449;&#31649;&#29702;&#31995;&#32479;&#32;&#104;&#116;&#116;&#112;&#58;&#47;&#47;&#119;&#119;&#119;&#46;&#119;&#109;&#103;&#111;&#118;&#46;&#99;&#110;</title>
<script LANGUAGE="javascript">
<!--
function FrmAddLink_onsubmit() {
 if (document.FrmAddLink.password.value=="")
	{
	  alert("对不起,请您输入密码!")
	  document.FrmAddLink.password.focus()
	  return false
	 }
else if (document.FrmAddLink.password.value.length < 4)
	{
	  alert("为了安全,您的密码应该长一点!")
	  document.FrmAddLink.password.focus()
	  return false
	 }
else if (document.FrmAddLink.password.value.length > 16)
	{
	  alert("您的密码太长了吧!")
	  document.FrmAddLink.password.focus()
	  return false
	 }
else if (document.FrmAddLink.name.value==document.FrmAddLink.password.value)
	{
	  alert("为了安全,用户名与密码不应该相同!")
	  document.FrmAddLink.password.focus()
	  return false
	 }
else if (document.FrmAddLink.passwd2.value=="")
	{
	  alert("对不起,请您输入验证密码!")
	  document.FrmAddLink.passwd2.focus()
	  return false
	 }
else if (document.FrmAddLink.passwd2.value !== document.FrmAddLink.password.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
	 }
}

//-->
</script>
</head>
<style type=text/css>
body  { background:#555555; margin:0px; font-family: Verdana, Arial, sans-serif, 宋体; font-size: 9pt; text-decoration: none; color:#555555;
SCROLLBAR-FACE-COLOR: #55919A;
SCROLLBAR-HIGHLIGHT-COLOR: #cccccc;
SCROLLBAR-SHADOW-COLOR: #cccccc;
SCROLLBAR-3DLIGHT-COLOR: #cccccc;
SCROLLBAR-ARROW-COLOR: #555555;
SCROLLBAR-TRACK-COLOR: #555555;
SCROLLBAR-DARKSHADOW-COLOR: #cccccc;}
table  { border:0px; }
td  { font:normal 12px; }
img  { vertical-align:bottom; border:0px; }
a  { font:normal 12px; color:#555555; text-decoration:none; }
a:hover  { color:#ff6600;text-decoration:underline; }
.sec_menu  { border-left:1px solid white; border-right:1px solid white; border-bottom:1px solid white; overflow:hidden; background:#eeeeee; }
.menu_title  { }
.menu_title span  { position:relative; top:2px; left:8px; color:#555555; font-weight:bold; }
.menu_title2  { }
.menu_title2 span  { position:relative; top:2px; left:8px; color:#ff6600; font-weight:bold; }
</style>

<body topmargin="0">
<%
	dim sql
	dim rs
	sql="select * from "& db_Manage_Table &" where "& db_ManageUser_ID &"="&ChkRequest(request("id"),1)	'防注入
	set rs=server.createobject("adodb.recordset")
	rs.open sql,Conn,1,1
	if request.cookies(Forcast_SN)("ManageKEY")="super" or rs("oskey")=request.cookies(Forcast_SN)("ManageKEY") then
		%>
<!--#include file=Admin_Top.asp-->
<table border="1" width="100%" cellspacing="0" cellpadding="0" bgcolor="#ffffff" style="border-collapse: collapse" bordercolor="<%=border%>" align=center>
<form method="POST" name="FrmAddLink" LANGUAGE="javascript" onSubmit="return FrmAddLink_onsubmit()"   action="SaveAdminEdit.asp?id=<%=ChkRequest(request("id"),1)%>">
<tr>
	<td width="100%" height=32 colspan="2" class="TDtop">
	<p align="center" >┊ <strong>管理用户资料修改</strong> ┊
	</td>
</tr>
<tr>
	<td width="46%" height="32" align="right" valign="middle">
		<div align="center"><span class="smallFont">管理用户名:</span></div>
	</td>
	<td width="54%" height="32">
		<div align="left">
			<input name="name" size="20" value="<%=rs(db_ManageUser_Name)%>" <%if (rs(db_ManageUser_Name)<>request.cookies(Forcast_SN)("ManageUserName")  and request.cookies(Forcast_SN)("purview")="99999") or request.cookies(Forcast_SN)("purview")<>"99999" then%>readonly<%end if%> class="smallInput" maxlength="30" style="font-size: 9pt;  color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'">
		</div>
	</td>
</tr>
<tr>
	<td width="46%" height="32" align="right">
		<div align="center"><span class="smallFont">密&nbsp;&nbsp;&nbsp;码:</span></div>
	</td>
	<td width="54%" height="32">
		<div align="left">
			<input name="password" type="password" size="20" value="<%=rs(db_ManageUser_Password)%>" class="smallInput" maxlength="50" style="font-size: 9pt;  color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'">
		</div>
	</td>
</tr>
<tr>
	<td width="46%" height="32" align="right">
		<div align="center"><span class="smallFont">验证密码:</span></div>
	</td>
	<td width="54%" height="32">
		<div align="left">
			<input name="passwd2" type="password" size="20" value="<%=rs(db_ManageUser_Password)%>" class="smallInput" maxlength="50" style="font-size: 9pt;  color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'">
		</div>
	</td>
</tr>
<tr>
	<td width="46%" height="32" align="right">
		<div align="center"><span class="smallFont">真实姓名:</span></div>
	</td>
	<td width="54%" height="32">
		<div align="left">
			<input name="fullname" size="20" value="<%=rs("fullname")%>" class="smallInput" maxlength="50" style="font-size: 9pt;  color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'">
		</div>
	</td>
</tr>
<tr>
	<td width="46%" height="32" align="right">
		<div align="center"><span class="smallFont">对应前台普通发文用户:</span></div>
	</td>
	<td width="54%" height="32">
		<div align="left">
			<input name="adder" size="20" value="<%=rs("adder")%>" class="smallInput" maxlength="50" style="font-size: 9pt;  color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'">(填错将使本超管用户无法登陆)
		</div>
	</td>
</tr>
<tr>
	<td width="46%" height="32" align="right">
		<div align="center"><span class="smallFont">工作单位:</span></div>
	</td>
	<td width="54%" height="32">
		<%
		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'">
		<%do while not rstype.EOF%>
		<option value="<%=rstype("id")%>" <%if rs("depid")=Cint(rstype("id")) then%>selected<%end if%> ><%=rstype("depname")%>==<%=rstype("deptype")%></option>
			<%
			rstype.MoveNext
		loop
		set rstype=nothing
		%>
		</select>
	</td>
</tr>
<tr>
	<td width="46%" height="32" align="right"><div align="center">管理用户权限:</div></td>
	<td width="54%" height="32">
		<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 <%if rs("purview")=99999 then%> selected <%end if%>value=99999>超级管理员</option>
		<option <%if rs("purview")=1 then%> selected <%end if%>value=1>系统管理员</option>
		
		</select>
	</td>
</tr>
<tr>
	<td width="100%" colspan="2" height=32>
		<p align="center">
		<input type="button" value="返 回" onClick="javascript:history.go(-1)" class="buttonface" style="font-size: 9pt;  color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'">&nbsp;
		<input type="submit" value="修 改" name="cmdok" class="buttonface" style="font-size: 9pt;  color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'">&nbsp;
		<input type="reset" value="重 置" name="cmdcancel" class="buttonface" style="font-size: 9pt;  color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'">
	</td>
</tr>
		<%if rs(db_ManageUser_Name)=request.cookies(Forcast_SN)("ManageUserName")  and request.cookies(Forcast_SN)("ManagePurview")="99999" then%>
<tr>
	<td width="100%" height=32 colspan="2" align=center><font color=red>超级管理员 <%=request.cookies(Forcast_SN)("ManageUserName")%> 您好,如果您更改了自己的用户名,请在更改后退出系统以新用户名重新登录,以保证系统功能正常运行。</font></td>
</tr>
		<%end if
		rs.close
		set rs=nothing
		conn.close
		set conn=nothing
		%>
</form>
</table>
</body>
</html>
<!--#include file=Admin_Bottom.asp-->
	<%else
			Show_Err("对不起,你无权修改该用户信息!<br><br><a href='javascript:history.back()'>返回</a>")
		response.end
	end if
	else
		Show_Err("对不起,您的后台用户管理权限不够操作!")
		response.end
	end if
end if
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -