gusucode.com > 爱美尔女性商城源码 1.0源码程序 > ChangePW.asp

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<%
if request.Cookies("bjx")("username")="" then
response.Redirect "login.asp"
response.End
end if
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=webname%>--会员中心</title>
<meta name="keywords" content="<%=keywords%>" />
<meta name="description" content="<%=description1%>" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.idtabs.js"></script>
<script type="text/javascript" src="js/swf.js"></script>
<style type="text/css">
<!--
.STYLE1 {
	color: #000000;
	font-weight: bold;
}
-->
</style>
</head>
<body>
<!--#include file="top.asp" -->
<table width="995" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="20"><div align="center"></div></td>
  </tr>
</table>
<table width="995" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="189" valign="top"><!--#include file="hyleft.asp"-->
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"><div align="center"></div></td>
        </tr>
      </table>
    </td>
    <td width="10" valign="top"><div align="center"></div></td>
    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="40">您当前的位置: <a title="" href="#" alt="">首页</a> &gt;&gt; 会员中心 &gt;&gt; <b>修改密码</b></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr style="background:url(images/blueth.gif) repeat-x;">
          <td height="26" style="padding-left:10px;"><strong><%=request.Cookies("bjx")("username")%> 您好</strong></td>
        </tr>
        
        <tr>
          <td height="30" valign="top" >
		  <script language=JavaScript>
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
function passcheck()
{
    if(document.userpass.userpassword.value.length < 6 || document.userpass.userpassword.value.length >20) {
	document.userpass.userpassword.focus();
    alert("密码长度不能不能这空,在6位到20位之间,请重新输入!");
	return false;
  }
   if(document.userpass.userpassword.value!==document.userpass.userpassword2.value) {
	document.userpass.userpassword.focus();
    alert("对不起,两次密码输入不一样!");
	return false;
  }
}
</script>
<%
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from bjx_User where username='"&request.Cookies("bjx")("username")&"' ",conn,1,1
%>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cccccc">
  <form name="userpass" method="post" action="saveuserinfo.asp?action=savepass">
    <tr> 
      <td height="25" colspan=2 align="center" bgcolor="#FCDDE8"><strong>尊敬的用户,我们向您承诺:以下信息将被严格保密,绝对不提供给第三方或用作它用!</strong></td>
    </tr>
    <tr> 
      <td width="30%" height="25" align="right" bgcolor=#ffffff>用 户 名:</td>
      <td width="70%" height="25" bgcolor=#ffffff><font color=#FF6600><%=request.Cookies("bjx")("username")%></font></td>
	</tr>
    <tr> 
      <td height="25" align="right" bgcolor=#ffffff>新 密 码:</td>
      <td height="25" bgcolor=#ffffff><input name="userpassword" class="wenbenkuang"; type="password" value="" size="18">
	  <font color="#FF0000">**</font> 不修改请为空</td>
    </tr>
    <tr> 
      <td height="25" align="right" bgcolor=#ffffff>密码确认:</td>
      <td height="25" bgcolor=#ffffff><input name="userpassword2" class="wenbenkuang" type="password" value="" size="18">
	  <font color="#FF0000">**</font></td>
    </tr>
    <tr align="center"> 
      <td height=25 bgcolor=#ffffff colspan="2">
	  <input class="go-wenbenkuang" onClick="return passcheck();" type="submit" name="submit" value=" 提交保存 ">
	  <input class="go-wenbenkuang" onClick="ClearReset()" type=reset name="Clear" value=" 重新填写 ">
      </td>
    </tr>
  </form>
</table><br>
<%rs.close
set rs=nothing
%>
          <br /></td></tr>
       
      </table>
	  
    </td>
  </tr>
</table>
<!--#include file="bottom.asp" -->
</body>
</html>