📄 user_chpass.asp
字号:
<!-- #include file="../inc_config.asp" -->
<!-- #include file="LoginCk.asp" -->
<%
Call PopCheck(34) '权限检查
If Conn.Num("EfangUser","User_User=" & User) = 0 Then ShowErMsg("会员帐号不存在!")
'#################################################################################################### 修改系统用户
If Cmd="Upd" then
Pass = Efang.PassMd5(Request("Pass")) '邮政编码
call Conn.Update("EfangUser","User_Pass='" & Pass & "'","User_User=" & User) '修改数据库记录
Call ShowErMsg("会员密码已经修改成功!")
Response.End
End if
'####################################################################################################
%>
<html>
<head>
<title>修改密码</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link id="style_sheet" href="css/save.css" type="text/css" rel="stylesheet">
<script language="JavaScript">style_sheet.href = parent.parent.style_sheet.href;</script>
<%=Efs_Cfg_PHeader%>
<style type="text/css">
<!--
.unnamed1 {
color: #FF0000;
font-weight: bold;
}
-->
</style>
</head>
<script language="JavaScript" src="js/common_Efang.js"></script>
<body class="NormalPage">
<form id="form_help" action="help_content.asp" method="get" target="working_area">
<input name="help_topic" type="hidden" value="修改密码">
</form>
<form method="POST" action="?Cmd=Upd" name="reg" onSubmit="return CheckForm(this)">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="headerToolBar" valign="middle" nowrap style="width:100%; height:22px;"><table cellpadding="0" cellspacing="0" class="HeaderPageControl">
<tr>
<td align="left" valign="middle" nowrap height="20">管理工具>> 会员管理 >> <b></b><b></b><b>修改密码</b></td>
<td align="center" valign="middle" nowrap width="10" height="20"></td>
<td align="right" valign="middle" width="100%" nowrap height="20"></td>
<td align="center" valign="middle" nowrap width="10" height="20"></td>
<td align="right" valign="middle" width="60" nowrap height="20"><img id="id_back" alt="返回上一页" onclick="JavaScript:history.back()" onmouseover="JavaScript:this.src=imgBackUp.src" onmouseout="JavaScript:this.src=imgBackDown.src" src="images/toolbar_back.gif" border="0" style="cursor:hand;width:22px; height:20px;"><img id="id_refresh" alt="刷新" onclick="JavaScript:fn_Refresh()" onmouseover="JavaScript:this.src=imgRefreshUp.src" onmouseout="JavaScript:this.src=imgRefreshDown.src" src="images/toolbar_refresh.gif" border="0" style="cursor:hand;width:22px; height:20px;"></td>
<td align="right" valign="middle" width="25" nowrap height="20"><img id="id_locate" alt="帮助" onclick="JavaScript:fn_ShowHelp()" onmouseover="JavaScript:this.src=imgHelpUp.src" onmouseout="JavaScript:this.src=imgHelpDown.src" src="images/toolbar_help.gif" border="0" style="cursor:hand;width:22px; height:20px;"></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top">
<div id="viewPanel" style="visibility:visible; position:absolute; overflow:auto;">
<br>
<table width="85%" height="300" border="0" align="center" cellpadding="0" cellspacing="0" class="datalist">
<tr>
<td class="DataGroup" valign="middle">
<table width="100%" border="0" align="center" cellPadding="0" cellSpacing="0" class="datalist">
<tr align="center">
<td height="30" colspan="2"> <b>更改登录密码</b>
<script language="JavaScript">
function CheckForm()
{
if (document.reg.Pass.value.length<5 || document.reg.Pass.value.length>20)
{
alert("新密码的长度必须是5-20位!");
document.reg.Pass.focus();
return false;
}
if (document.reg.Pass.value!=document.reg.Pass1.value)
{
alert("两次输入的密码不一致!");
document.reg.Pass1.select();
document.reg.Pass1.focus();
return false;
}
return true;
}
</script> </td>
</tr>
<tr>
<td width="417" height="28" align="right"> 会员帐号: </td>
<td width="423" align="left"> <%=User%>
<input name="User" type="hidden" id="User2" value="<%=User%>"> </td>
</tr>
<tr>
<td height="28" align="right" align="right"> 新密码: </td>
<td width="423" align="left"> <input name="Pass" type="password" class="InputOne" id="Pass" size="20" maxlength="10"> </td>
</tr>
<tr>
<td height="28" align="right" align="right"> 确认新密码: </td>
<td width="423" align="left"> <input name="Pass1" type="password" class="InputOne" id="Pass1" size="20"> </td>
</tr>
<tr align="center">
<td colspan="2" height="33"> <input type="submit" name="B1" value="修改密码" class="ButtonOne"> </td>
</tr>
</table></td>
</tr>
</table>
</div></td>
</tr>
</table>
</form>
<% Call ExitEnd(False) %>
</body>
<script language="JavaScript">
<!--
document.parentWindow.onresize = fn_RejustViewPanel ;
fn_RejustViewPanel ( ) ;
//alert ( document.body.clientWidth + ":" + viewPanel.clientWidth ) ;
//-->
</script>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -