📄 saveedit.asp
字号:
<!--#include file="data.asp"-->
<!--#include file="html.asp"-->
<%if Session("Urule")<>"a" then
Response.write "你没有足够权限"
response.end
end if%>
<%
response.buffer=false
dim sql
dim rs
dim id
name=htmlencode2(request("name"))
password=request("password")
userid=htmlencode2(request("userid"))
question=htmlencode2(request("question"))
answer=htmlencode2(request("answer"))
email=request("email")
tel=request("tel")
department=htmlencode2(request("company"))
ip= Request.ServerVariables("REMOTE_ADDR")
nowtime=now()
sj=cstr(year(nowtime))+"-"+cstr(month(nowtime))+"-"+cstr(day(nowtime))+" "+cstr(hour(nowtime))+":"+right("0"+cstr(minute(nowtime)),2)+":"+right("0"+cstr(second(nowtime)),2)
set rs=server.createobject("ADODB.recordset")
rs.Open "SELECT * FROM user where id="&request("id"),conn,3,3
rs("用户名")=userid
rs("密码")=password
rs("信箱")=email
rs("部门")=department
rs("问题")=question
rs("答案")=answer
rs("电话")=tel
rs("姓名")=name
rs("权限")=request("admin")
rs("mobile")=request("mobile")
rs("ilevel")=request("ilevel")
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr >
<td class="heading">
<div align="center">
<center>
<table width="81%" border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" bordercolorlight="#000000" style="font-size:9pt">
<tr>
<td width="2%" align="right"></td>
<td align="left" height="25">
<p align="center"><font color="#FFFFFF"><b>修 改 资 料</b></font></p>
</td>
<td width="3%"></td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
<div align="center">
<table width="80%" border="1" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolor="#FFFFFF" bordercolorlight="#000000" style="font-size:9pt">
<tr>
<td valign="top">
<p align="center">您的资料已经成功修改</p>
</font></td>
</tr>
</table>
</div>
<div align="center"><a href="javascript:history.back(1)"><img border="0" src="images/previous.gif"></a>
<a href="userchk.asp" target=main><img border="0" src="images/close_1.gif" onclick="window.close();"></a>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -