<!--#include file="inc_const.asp"-->
<%response.expires=0
Response.CacheControl = "Private"
application.lock
set cschat=server.createobject("ffcschat.cssbchat")
my_level=cschat.getLevel(Session,Application(ConstStr & "_user_list"),Application(ConstStr & "_room_list"))
application.unlock
if my_level=0 then
  set cschat=nothing
  response.end
end if
myname=cschat.myname
Set Conn=Server.CreateObject("ADODB.Connection")
conn.open Application( ConstStr & "_connstr")
set Rs=conn.execute("select * from user where username='"&myname&"'")
if Rs.eof or Rs.bof then
  rs.close
  set rs=nothing
  conn.close
  set conn=nothing
  response.end
end if

if request("B1")="提交" then
  cschat.FilterStr = Application(ConstStr & "_saysfilterstr")
  email=left(cschat.trdb(request("email")),250)
  aihaos=left(cschat.trdb(request("aihaos")),250)
  if aihaos="" then aihaos=" "
  oicq=left(cschat.trdb(request("oicq")),20)
  conn.Execute("UPDATE user SET email='"&email&"',aihaos='"&aihaos&"',oicq='"&oicq&"' WHERE username='"&myname&"'")
  errText="修改成功！"
  response.redirect("showerr.asp?errtext="&errText)
else%>
<meta HTTP-EQUIV='Pragma' CONTENT='no-cache'><META content="text/html; charset=gb2312" http-equiv=content-type>
<link rel="stylesheet" type="text/css" href="chat.css">
<style>p{color:#990000;text-align:left;margin-left:10px;margin-right:20px;margin-top:5px;margin-bottom:5px}</style>
<script>var aihao=new Array("多选","清除","文学","音乐","艺术","体育","棋牌","财经","情感","编程","旅游","游戏","军事","影视","饮食","新闻","硬件","闲玩");
function hh(n){var i;for (i=0;i<aihao.length;i++) document.write("<option style='BACKGROUND-COLOR:#eaf2ff;COLOR:#000000' value='"+aihao[i]+"'>"+aihao[i]+"</option>");}
function ca(n){if (n=="清除") document.forms[0].aihaos.value=""; else {n+=",";if (document.forms[0].aihaos.value.indexOf(n,0)==-1) document.forms[0].aihaos.value=n+document.forms[0].aihaos.value;}document.forms[0].aihao.options[0].selected=true;}</script>
<body style="background-color:EAF2FF;color:112233;scrollbar-Base-Color: #b0d8ff;SCROLLBAR-DARKSHADOW-COLOR:#b0d8ff;SCROLLBAR-arrow-COLOR:#336699;SCROLLBAR-TRACK-COLOR: EAF2FF;SCROLLBAR-3DLIGHT-COLOR: #b0d8ff;SCROLLBAR-SHADOW-COLOR: #336699;SCROLLBAR-HIGHLIGHT-COLOR: #b0d8ff;" leftmargin=3 topmargin=3 >
  <table cellspacing=0 cellpadding=0 align=center width=90% height=100%>
  <tr><td valign=center>
  <table width=400 cellspacing=0 cellpadding=0 style="border:'1px solid navy'">
  <tr><td class=navy2>设定用户信息</td>
  <form action=usersetaddr.asp method=post><tr><td><p>
 ＯＩＣＱ:<input type=text name=oicq maxlength=30 size=30 value='<%=rs("oicq")%>'></p><p>
 电子邮件:<input type=text name=email maxlength=100 size=30 value='<%=rs("email")%>'></p><p>
 个人爱好:<select name="aihao" onchange="ca(this.value)"><script>hh();</script></select>　<input type=text readonly name=aihaos maxlength=250 size=20 value='<%=rs("aihaos")%>'></p><p></p><p>
<tr><td><p><center><center><input type="submit" name="B1" value="提交" class=navy1>
<input type="reset" name="cmdCancel" value="重置" class=navy1>
<input type="reset" name="cmdCancel" value="取消" onclick='window.close()' class=navy1><center>
</center>
</p></td></tr></form>
</table></table></body></html><script>document.forms[0].aihao.options[1].style.color="red";</script>
<%end if
rs.close
set rs=nothing
conn.close
set conn=nothing
set conn=nothing%>




























































































