📄 modifypwd.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="manage/char.asp"-->
<%
if request("action")=" 修 改 " then
set rs=server.createobject("adodb.recordset")
sqltext="select * from user where uid='"&request("userid")&"'"
rs.open sqltext,conn,3,3
rs("pwd")=request("password1")
rs("comname")=request("comname")
if request("codezip")="" then
rs("zip")="-"
else
rs("zip")=request("codezip")
end if
if request("touchman")="" then
rs("touchman")="-"
else
rs("touchman")=request("touchman")
end if
if request("address")="" then
rs("address")="-"
else
rs("address")=request("address")
end if
if request("tel")="" then
rs("tel")="-"
else
rs("tel")=request("tel")
end if
rs("dateandtime")=now()
if request("email")="" then
rs("email")="-"
else
rs("email")=request("email")
end if
if request("cominfo")="" then
rs("info")="-"
else
rs("info")=htmlencode(request("cominfo"))
end if
rs.update
response.write "<script language=JavaScript>{window.alert('修改成功!');window.location.href='modifypwd.asp';}</script>"
rs.close
end if
set rs=server.createobject("adodb.recordset")
sqltext="select * from user where uid='"&session("userid")&"'"
rs.open sqltext,conn,1,1
%>
<HTML><HEAD><TITLE>欢迎您光临房产信息网!</TITLE>
<script language=Javascript>
<!--
function checkForm(){
if ( document.formSignUp.keyword1.value == '' ) {
window.alert('请输入合同号!!');
document.formSignUp.keyword1.focus();
}
else if ( document.formSignUp.keyword2.value == '' ) {
window.alert('请输入查询码!!');
document.formSignUp.keyword2.focus();
}
else {
return true;
}
return false;
}
//-->
</script>
<script language=Javascript>
<!--
function checkForm(){
var r1, r2, r3
r1 = new RegExp('[^A-Za-z0-9_]','');
r2 = new RegExp('[^A-Za-z0-9]','');
r3 = new RegExp('[^0-9]','');
if ( document.formSignUp2.userid.value == '' ) {
window.alert('请输入登录账号!!');
document.formSignUp2.userid.focus();
}
else if ( !isNaN(document.formSignUp2.userid.value.substr(0, 1)))
{
window.alert('用户账号不能以数字开头!!');
document.formSignUp2.userid.focus();
}
else if ( document.formSignUp2.userid.value.substr(0, 1) == '_' )
{
window.alert('登录账号不能以下划线开头!!');
document.formSignUp2.userid.focus();
}
else if ( document.formSignUp2.userid.value.search(r1) >= 0 ) {
window.alert('登录账号含有非法字符!!');
document.formSignUp2.userid.focus();
}
else if ( document.formSignUp2.password1.value.length < 4 ) {
window.alert('口令不得少于4个字符!!');
document.formSignUp2.password1.select();
document.formSignUp2.password1.focus();
}
else if ( document.formSignUp2.password1.value.search(r2) >= 0 ) {
window.alert('口令中有非法字符!!');
document.formSignUp2.password1.select();
document.formSignUp2.password1.focus();
}
else if ( document.formSignUp2.comname.value == '' ) {
window.alert('请输入单位名称!!');
document.formSignUp2.comname.focus();
}
else {
return true;
}
return false;
}
//-->
</script>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK
href="images/style.css" type=text/css rel=stylesheet>
<META content="Microsoft FrontPage 5.0" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#666666 leftMargin=0 topMargin=0 marginwidth="0"
marginheight="0">
<TABLE cellSpacing=0 cellPadding=0 width=778 align=center border=0>
<TBODY>
<TR>
<TD bgColor=#666666 height=5></TD></TR>
<TR>
<TD bgColor=#333333 height=1></TD></TR>
<TR>
<TD bgColor=#727272 height=1></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=778 align=center border=0 height="556">
<TBODY>
<TR>
<TD bgColor=#e4e4e4 colSpan=2 height="32">
<TABLE class=black cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<FORM action=search.asp method=post name="formSignUp" onSubmit="return checkForm()">
<TD vAlign=top align=middle width="95%">
<TABLE height=1 width="100%">
<TBODY>
<TR>
<TD></TD></TR></TBODY></TABLE><FONT class=p14> 查询备用表信息:</FONT> <FONT
class=p14>合同号:</FONT> <INPUT size=15 name=keyword1> <FONT
class=p14>查询码:</FONT> <INPUT size=9 name=keyword2> <INPUT style="FONT-SIZE: 9pt" type=submit value=查询 name=查询>
<TABLE height=1 width="100%">
<TBODY>
<TR>
<TD></TD></TR></TBODY></TABLE></TD></FORM></TR></TBODY></TABLE></TD></TR>
<TR>
<TD style="BORDER-RIGHT: #333333 1px solid" vAlign=top align=middle
width=168 background=images/leftbg.gif height="368">
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
<TBODY>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -