📄 editinfo2_save.asp
字号:
<!--#include file="../inc/conn.asp"-->
<%
if session("chat_admin")<>"yes" then
response.redirect "login.asp"
response.end
end if
userid=request("userid")
if userid="" then
response.write "无效的用户ID,请先选择一个用户。"
response.end
end if
reg_err=""
address=trim(request.form("address"))
usersex=trim(request.form("usersex"))
userimg=trim(request.form("userimg"))
biguserimg=trim(request.form("biguserimg"))
phone=trim(request.form("phone"))
iyear=trim(request.form("iyear"))
imonth=trim(request.form("imonth"))
iday=trim(request.form("iday"))
question=trim(request.form("question"))
answer=trim(request.form("answer"))
realname=trim(request.form("realname"))
menpai=trim(request.form("menpai"))
zhiwu=trim(request.form("zhiwu"))
'response.write usersex
'response.end
if usersex="" or userimg="" or biguserimg="" or iyear="" then
reg_err="资料填写不全。"
else
borthday=iyear&"-"&imonth&"-"&iday
Conn = DBCN()
set rs = Server.CreateObject("ADODB.Recordset")
sql="SELECT * FROM userinfo WHERE userid=" & userid
rs.open sql,conn,3,3
if rs.eof then
rs.addnew
end if
rs("userid")=userid
rs("usersex")=cint(usersex)
rs("userimg")=cint(userimg)
rs("biguserimg")=biguserimg
rs("borthday")=borthday
rs("question")=question
rs("answer")=answer
rs("realname")=realname
rs("address")=address
rs("phone")=phone
rs("menpai")=menpai
rs("zhiwu")=zhiwu
rs.update
rs.close
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用户管理(修改用户资料)</title>
<style type="text/css">
<!--
.p9 {font-size: 10pt; line-height: 14pt }
-->
</style>
</head>
<body topmargin="3" leftmargin="3">
<table border="0" width="100%" bgcolor="#C8C9D2">
<tr>
<td width="52%"><strong>JChat注册用户管理面板</strong></td>
<td width="48%">
<p align="right" class="p9"><a href="logout.asp"><font color=red>退出系统</font></a> <a href="http://www.easyfad.com">技术支持</a> <a href="http://www.jchat.com.cn">关于JChat</a></td>
</tr>
</table>
<table border="0" width="100%" height="85%" bgcolor="#E7E7EB">
<tr>
<td width="100%" class="p9" valign="top"><br>
<%
if reg_err="" then
response.write "<p>修改用户附加资料成功。<a href=""editinfo2.asp?userid="&userid &""">返回</a>"
else
response.write reg_err & "<a href=""#"" onclick=""history.back(0);return false;"">返回</a>"
end if
%>
</td>
</tr>
</table>
<table border="0" width="100%" bgcolor="#C8C9D2">
<tr>
<td width="100%" class="p9">
<p align="right">版本:<font color="#FF0000">JChat V3.7.0</font> </p>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -