📄 admin_adminu.asp
字号:
<!--#include file = "include.asp"-->
<!--#include file="Inc/function.asp"-->
<!--#include file = "admin_EnPas.asp"-->
<!--#include file = "admin_checkmana.asp"-->
<%
'=========================================================
'产品目录:风讯产品N系列
'软件名称:风讯图文信息系统
'当前版本:2004.I.0225
'=========================================================
'Copyright (C) 2002-2004 cooin.com. All rights reserved.
'网站: http://www.cooin.com
'程序制作:轻风云(QQ:655071) skeen@cooin.com,skeen@263.net,skeen@sohu.com
'论坛支持:风讯论坛(http://BBS.COOIN.COM)
'=========================================================
if EnoughPopedom("pass")=1 then
Response.write"<script>alert(""[操作失败]\n\n你的权限不足!\n\n你不允许修改密码!\n\n请与系统管理员联系获得足够的权限!"");location.href=""javascript:history.back()"";</script>"
Response.end
end if
%>
<%
if request("action")="modify" then
if request("Password")="" then
Response.write"<script>alert(""请填写完整!"");location.href=""javascript:history.back()"";</script>"
Response.end
end if
set CheckUser = server.createobject("adodb.recordset")
sql = "select * from admin where UserName='"&request("Name")&"' and userpass='"&PassWord&"'"
CheckUser.open sql,conn,1,3
CheckUser("userpass")=EnPas(replace(request.form("Password"),"'","''"))
CheckUser.update
Response.write"<script>alert(""密码修改成功!"");location.href=""javascript:history.back()"";</script>"
Response.end
end if
%>
<body>
<form name=form id="form" method=post action="?action=modify">
<table width="512" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#7ED3A7">
<tr bgcolor="#FFFFFF" valign="middle" align="center">
<td width="300%" height="2" colspan="3"> <table width="100%" border="0" cellspacing="1" cellpadding="3" bgcolor="#7ED3A7">
<tr bgcolor="#F7FFF4">
<td height=20 colspan="6"> <table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/bg1.gif">
<tr>
<td height="26"> <div align="center"><b><strong>修改密码</strong></b></div></td>
</tr>
</table></td>
</tr>
<tr bgcolor="#F7FFF4">
<td width="33%" height=20> <div align="right">用户名:</div></td>
<td width="78%" height=20 colspan="5" align="center"> <div align="left">
<input type="hidden" name="Name" value=<%=Name%>>
<%=Name%> </div></td>
</tr>
<tr bgcolor="#F7FFF4">
<td width="33%" height=20> <div align="right">新密码:</div></td>
<td width="78%" height=20 colspan="5" align="center"> <div align="left">
<input name="Password" type="password" id="Password">
</div></td>
</tr>
<tr bgcolor="#F7FFF4" align="center">
<td height=20 colspan=6><b> </b> <input name=action type=hidden id="action" value=modify>
<input type=submit value=" 修 改 " > </td>
</tr>
</table></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -