📄 user_passwordmodify.asp
字号:
<%
'==============================================================================
'软件名称:星空社区 VER 1.0.15
'当前版本:starcity club V1.0.15
'最新更新:2004.9
'==============================================================================
'Copyright (C) 2002-2004 Googln.com All rights reserved.
'商业注册联系:010-64410364
'技术支持QQ:6370639(限商业用户)
'程序开发:Googln Studio(BeiJing)
'Email:Avram@163.com
'论坛支持:星空社区(http://www.starcity.cn/bbs)
'官方网站:www.Googln.com 演示站点:www.starcity.cn/bbs 都市星空:www.starcity.cn 阳光商城:www.sunmall.com.cn
'==============================================================================
'免费版本请在首页保留版权信息,并做上本站LOGO友情连接
'都市星空在线保留此程序的法律追究权利
'==============================================================================
%>
<!--#include file="../include/conn.asp"-->
<!--#include file="checkuser.asp"-->
<%
dim rs,sql
dim intID
set rs=server.createobject("adodb.recordset")
sql="select * from db_admin where userid='"&session("userid")&"'"
rs.open sql,conn,3,1
%>
<SCRIPT LANGUAGE="javascript">
function verify(form){
var str=form.userpass.value;
if(str.length<5||str.length>15||str.search(/[\\'"<>]/)!=-1){
alert("请输入一个5-15位的密码,不能包含特殊字符。");
form.userpass.focus();
return false;
}
if(form.userpass_.value!=str){
alert("两次输入的密码不一致,请重新输入。");
form.userpass_.focus();
return false;
}
return true;
}
</SCRIPT><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../include/style.css">
<title>修改密码</title>
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
</head>
<body>
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" background="../images/ehouse_12.gif"> </td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30" height="30"><div align="center"><img src="images/pic0.gif" width="14" height="11"></div></td>
<td class="1">修改密码</td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="13"><img src="images/pic1_0.gif" width="13" height="23"></td>
<td bgcolor="#ADBEE7"> </td>
<td width="13"><img src="images/pic1_1.gif" width="13" height="23"></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#ADBEE7"><form name=form1 method="post" action="user_passwordmodifysave.asp?userid=<%=rs("userid")%>" onsubmit="return verify(this)" >
<table border="0" align="center" cellpadding="1" cellspacing="2">
<tr>
<td>新密码</td>
<td><input name="userpass" type="password" id="userpass2" size="15">
5-15个字符(a-z,0-9)</td>
</tr>
<tr>
<td>确认密码</td>
<td><input name="userpass_" type="password" id="userpass_2" size="15"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="确认修改">
<input type=hidden name=id value="<%=session("userid")%>"></td>
</tr>
</table>
</form></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10" valign="top"><img src="images/pic1_2.gif" width="10" height="18"></td>
<td bgcolor="#ADBEE7"> </td>
<td width="10" valign="top"><img src="images/pic1_3.gif" width="10" height="18"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -