📄 changeinfo.asp
字号:
<%
Response.Expires=0
Response.ExpiresAbsolute=Now()-1
Response.AddHeader "Pragma","No-Cache"
Response.AddHeader "Cache-Control","Private"
Response.CacheControl = "No-Cache"
if not IsArray(Session("info")) then Response.Redirect "err1.asp?kind=01"
info=Session("info")
if InStr(Application("maninfo"),"," & info(0) & ",")<>0 then Response.Redirect "manyou.asp"
Set Conn=server.createobject("ADODB.CONNECTION")
Conn.Open Application("zzbird_conn")
Set Rs=server.createobject("adodb.recordset")
sql="select * from userinfo where user='" & info(0) & "'"
rs.open sql,conn,3,3
if Rs.Eof and Rs.bof then
Rs.Close
Set Rs=Nothing
Conn.Close
Set Conn=Nothing
Response.Redirect "err1.asp?kind=500"
else
if Rs("lastmonth")<>month(date) then
Rs("lastmonth")=month(date)
Rs("monthv")=0
Rs.UpDate
end if
Function touxian(v)
If v="" Then
Response.Write "(暂无)"
Else
Response.Write v
End If
End Function
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改个人资料</title>
<style>
<!--
input { border-style:inset; border-width:1; width:120; height:18; color:#0000FF }
-->
</style>
</head>
<body oncontextmenu=self.event.returnValue=false style="border: 3px double buttonface; font-size:10pt" bgcolor="buttonface">
<form method="POST" action="changeinfook.asp">
<fieldset style="padding: 2">
<legend><font color="#A20000"><img border="0" src="images/edit.gif"><%=Rs("user")%>--个人资料(<input type="checkbox" name="mi" value="ON" style="border-style:solid; border-width:0; width: 18; height: 18" <%if Rs("mi")=true then%>checked<%end if%>>保密)</font></legend>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; font-size: 10pt" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="50%">头衔:<br>
<input readonly type="text" name="value" size="14" value="<%touxian(Rs("touxian"))%>" style="background-color: buttonface"></td>
<td width="50%">累积分/月积分:<br>
<input readonly type="text" name="value" size="14" value="<%=Rs("value")&"/"&Rs("monthv")%>" style="background-color: buttonface"></td>
</tr>
<tr>
<td width="50%">等级:<br>
<input readonly name="grade" size="14" value="<%=Rs("grade")%>" style="background-color: buttonface"></td>
<td width="50%">首次登陆:<br>
<input readonly type="text" name="firsttime" size="14" value="<%=Rs("firsttime")%>" style="background-color: buttonface"></td>
</tr>
<tr>
<td width="50%">登陆次数:<br>
<input readonly type="text" name="times" size="14" value="<%=Rs("times")%>" style="background-color: buttonface"></td>
<td width="50%">最后登陆:<br>
<input readonly type="text" name="lasttime2" size="14" value="<%=Rs("lasttime")%>" style="background-color: buttonface"></td>
</tr>
<tr>
<td width="50%">最后IP:<br>
<input readonly type="text" name="lasttime1" size="14" value="<%=Rs("lastip")%>" style="background-color: buttonface"></td>
<td width="50%">密码(不改请置空):<br>
<input type="password" name="pass" size="14"></td>
</tr>
<tr>
<td width="50%">电子邮箱:<br>
<input type="text" name="email" size="14" value="<%=Rs("email")%>"></td>
<td width="50%">真实姓名:<br>
<input type="text" name="tname" size="14" value="<%=Rs("tname")%>"></td>
</tr>
<tr>
<td width="50%">OICQ号码:<br>
<input type="text" name="oicq" size="14" value="<%=Rs("oicq")%>"></td>
<td width="50%">邮政编码:<br>
<input type="text" name="yb" size="14" value="<%=Rs("yb")%>"></td>
</tr>
<tr>
<td width="50%">ICQ号码:<br>
<input type="text" name="icq" size="14" value="<%=Rs("icq")%>"></td>
<td width="50%">所在地:<br>
<input type="text" name="place" size="14" value="<%=Rs("place")%>"></td>
</tr>
<tr>
<td width="50%">个人主页:<br>
<input type="text" name="home" size="14" value="<%=Rs("home")%>"></td>
<td width="50%">出生日期:<font style="font-size:8pt">(年/月/日)</font><br>
<%born=split(Rs("born"),";")%><select size="1" name="byear" style="font-size: 8pt; width: 46; height: 46">
<option value="----" <%if born(0)="----" then%>selected<%end if%>>----</option>
<%for i=1950 to 2000%>
<option value="<%=i%>" <%if CStr(i)=born(0) then%>selected<%end if%>><%=i%></option>
<%next%></select><select size="1" name="bmonth" style="font-size: 8pt; width: 35">
<option value="--" <%if born(1)="--" then%>selected<%end if%>>--</option>
<%for i=1 to 12%>
<option value="<%=i%>" <%if CStr(i)=born(1) then%>selected<%end if%>><%=i%></option>
<%next%></select><select size="1" name="bday" style="font-size: 8pt; width: 35">
<option value="--" <%if born(2)="--" then%>selected<%end if%>>--</option>
<%for i=1 to 31%>
<option value="<%=i%>" <%if CStr(i)=born(2) then%>selected<%end if%>><%=i%></option>
<%next%></select></td>
</tr>
<tr>
<td width="50%">电话/传呼:<br>
<input type="text" name="phone" size="14" value="<%=Rs("phone")%>"></td>
<td width="50%">从事职业:<br>
<input type="text" name="job" size="14" value="<%=Rs("job")%>"></td>
</tr>
</table>
</fieldset><div align="center">
<input type="submit" value="更新" name="B1" style="border-style:outset; border-width:1; width: 50; height: 20; color:#000000">
<input type="reset" value="复原" name="B2" style="border-style:outset; border-width:1; width: 50; height: 20; color:#000000">
<input type="button" value="关闭" name="B3" style="border-style:outset; border-width:1; width: 50; height: 20; color:#000000" onclick="javascript:window.close();"></div>
<div align="right">
<a href="http://aspxer.com/go.aspx?action=nowchat" target="_blank"><font style="font-size: 8pt" color="#808080">NowChat 2.2 - Powered by 喳喳鸟</font></a></div>
</form>
<script Language=JavaScript>
window.resizeTo(300,430);
</script>
</body>
</html>
<%
Rs.Close
Set Rs=Nothing
Conn.Close
Set Conn=Nothing
end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -