📄 useredit.asp
字号:
<%
if session("logined")<>true then
response.redirect"modify.asp"
end if
%>
<!--#include file="conn.asp"-->
<!--#include file="top.asp"-->
<%
if request("intereye")="修改" then
dim name
dim nichen
dim sex
dim year
dim month
dim day
dim eamil
dim url
dim oicq
dim tel
dim bp
dim movetel
dim adress
dim postcode
dim sql
dim demo
dim password
dim password1
name=trim(request("name"))
nichen=trim(request("nichen"))
sex=request("sex")
year=trim(request("year"))
month=trim(request("month"))
day=trim(request("day"))
email=trim(request("email"))
url=trim(request("url"))
oicq=trim(request("oicq"))
tel=trim(request("tel"))
bp=trim(request("bp"))
movetel=trim(request("movetel"))
adress=trim(request("adress"))
postcode=trim(request("postcode"))
ip=request("remote_host")
demo=trim(request("demo"))
dbid=request("id")
if request("password1")<>trim("不修改密码请不要填写!") then
sql="select * from myclass where id="&dbid
rs.open sql,conn,1,3
rs("password")=trim(request("password1"))
rs.update
response.write "<script language='javascript'>" & chr(13)
response.write "alert('密码已经成功修改了,请按确定返回!');" & Chr(13)
response.write "window.document.location.href='index.asp?action=search';"&Chr(13)
response.write "</script>" & Chr(13)
Response.End
end if
sql="select * from myclass where id="&dbid
rs.open sql,conn,1,3
rs("name")=name
rs("nichen")=nichen
rs("sex")=sex
rs("year")=year
rs("month")=month
rs("day")=day
rs("oicq")=oicq
rs("tel")=tel
rs("bp")=bp
rs("movetel")=movetel
rs("adress")=adress
rs("postcode")=postcode
rs("email")=email
rs("url")=url
rs("demo")=demo
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
response.write "<script language='javascript'>" & chr(13)
response.write "alert('已经成功修改了资料,请按确定返回!');" & Chr(13)
response.write "window.document.location.href='index.asp?action=search';"&Chr(13)
response.write "</script>" & Chr(13)
Response.End
End if
dbid=request("id")
sql="select * from myclass where id="&dbid
rs.open sql,conn,1,3
%>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>会计电算化40215班专用通讯录之个人资料修改</title>
<link rel="stylesheet" type="text/css" href="css/intereye.css">
</head>
<body topmargin="0" background="images/bg.gif">
<div align="left">
<table border="0" cellpadding="0" cellspacing="0" width="650" height="63" style="border-left: 1 solid #000080; border-right: 1 solid #000080">
<tr>
<td height="29" style="border-bottom: 1 dotted #000080">
<p align="center"><font color=#ff0000><%=rs("name")%></font>,你好!来更新你的资料啦!呵呵!</td>
</tr>
<tr>
<td height="30">
<form method="POST" action="useredit.asp?id=<%=rs("id")%>" name="form">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="758" height="190">
<tr>
<td height="27" width="68" align="center">姓名</td>
<td height="27" width="254"><input type="text" name="name" size="39" value="<%=rs("name")%>" style="border: 1 dotted #000080"></td>
<td height="27" width="62" align="center">昵称</td>
<td height="27" width="261"><input type="text" name="nichen" size="39" value="<%=rs("nichen")%>" style="border: 1 dotted #000080"></td>
</tr>
<tr>
<td height="27" width="68" align="center">密码</td>
<td height="27" width="254"><%=trim(rs("password"))%></td>
<td height="27" width="62" align="center">修改</td>
<td height="27" width="261"><input type="text" name="password1" size="39" value="不修改密码请不要填写!" style="border: 1 dotted #000080"></td>
</tr>
<tr>
<td height="27" width="68" align="center">性别</td>
<td height="27" width="254"><select size="1" name="sex">
<option selected>我是男生</option>
<option>我是女生</option>
</select></td>
<td height="27" width="62" align="center">电邮</td>
<td height="27" width="261"><input type="text" name="email" size="39" value="<%=rs("email")%>" style="border: 1 dotted #000080"></td>
</tr>
<tr>
<td height="27" width="68" align="center">主页</td>
<td height="27" width="254"><input type="text" name="url" size="39" value="<%=rs("url")%>" style="border: 1 dotted #000080"></td>
<td height="27" width="62" align="center">OICQ</td>
<td height="27" width="261"><input type="text" name="oicq" size="39" value="<%=rs("oicq")%>" style="border: 1 dotted #000080"></td>
</tr>
<tr>
<td height="28" width="68" align="center">电话</td>
<td height="28" width="254"><input type="text" name="tel" size="39" value="<%=rs("tel")%>" style="border: 1 dotted #000080"></td>
<td height="28" width="62" align="center">传呼</td>
<td height="28" width="261"><input type="text" name="bp" size="39" value="<%=rs("bp")%>" style="border: 1 dotted #000080"></td>
</tr>
<tr>
<td height="28" width="68" align="center">手机</td>
<td height="28" width="254"><input type="text" name="movetel" size="39" value="<%=rs("movetel")%>" style="border: 1 dotted #000080"></td>
<td height="28" width="62" align="center">生日</td>
<td height="28" width="261"><input type="text" name="year" size="6" value="<%=rs("year")%>" style="border: 1 dotted #000080">年<input type="text" name="month" size="3" value="<%=rs("month")%>" style="border: 1 dotted #000080">月<input type="text" name="day" size="3" value="<%=rs("day")%>" style="border: 1 dotted #000080">日</td>
</tr>
<tr>
<td height="28" width="68" align="center">地址</td>
<td height="28" width="254"><input type="text" name="adress" size="39" value="<%=rs("adress")%>" style="border: 1 dotted #000080"></td>
<td height="28" width="62" align="center">邮编</td>
<td height="28" width="261"><input type="text" name="postcode" size="39" value="<%=rs("postcode")%>" style="border: 1 dotted #000080"></td>
</tr>
<tr>
<td height="124" width="68" align="center">留言</td>
<td height="124" width="577" colspan="3"><textarea rows="4" name="demo" cols="86" style="border: 1 dotted #000080"><%=rs("demo")%></textarea></td>
</tr>
<tr>
<td height="25" width="645" align="center" colspan="4"><input type="submit" value="修改" name="intereye" style="font-size: 9pt; height: 19; width: 52; color: #E0E0E0; background-color: #006898; border: 2 solid #3399FF" onMouseOver ="this.style.backgroundColor='#ff0000'" onMouseOut ="this.style.backgroundColor='#006898'">
<input type="reset" value="重写" name="reset" style="font-size: 9pt; height: 19; width: 52; color: #E0E0E0; background-color: #006898; border: 2 solid #3399FF" onMouseOver ="this.style.backgroundColor='#ff0000'" onMouseOut ="this.style.backgroundColor='#006898'">
<a href="index.asp" style="font-size: 9pt; height: 19; width: 52; color: #E0E0E0; background-color: #006898; border: 2 solid #3399FF" onMouseOver ="this.style.backgroundColor='#ff0000'" onMouseOut ="this.style.backgroundColor='#006898'">以后再说</a></td>
</tr>
</table>
</center>
</div>
</form>
</td>
</tr>
</table>
</div>
<!--#include file="down.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -