<!--#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
myname=cschat.myname
set cschat=nothing
if my_level=0 then  response.end

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
bg_color=split(rs("bgcolor"),":")%>
<META content='text/html; charset=gb2312' http-equiv=content-type>
<meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
<link rel="stylesheet" type="text/css" href="chat.css">
<style>td{text-align:left;color:green}
p{margin-left:0px;margin-right:0px;margin-top:3px;margin-bottom:3px}</style>
<script>document.write("<body style='"+parent.gbt()+"margin:0'>");</script>
<table width=100%><script>var colorarry=new Array("#ff0000","#000000","#0088ff","#0000ff","#000088","#888800","#008888","#008800","#8888ff","#aa00cc","#8800ff","#888888","#ccaa00","#ff8800","#cc3366","#ff00ff","#ee9966","#6699ee","#3366cc");
  var colorname=new Array("亮红","黑色","海蓝","亮蓝","深蓝","黄绿","蓝绿","橄榄","淡紫","紫色","蓝紫","灰色","土黄","金黄","暗红","紫红","粉红","天蓝","蓝黑");
  var aihao=new Array("多选","清除","文学","音乐","艺术","体育","棋牌","财经","情感","编程","旅游","游戏","军事","影视","饮食","新闻","硬件","闲玩");
  function bs(bcl) {document.body.style.backgroundColor=bcl;document.forms[0].bgcolor.value=bcl;document.forms[0].bgcolor.focus();}
  function y1(){var i;for (i=0;i<19;i++) document.write("<option value='"+i+"'>"+(i*0.5+9)+"</option>");}
  function y2(){var i;for (i=0;i<19;i++) document.write("<option value='"+i+"'>"+(i*5+120)+"%</option>");}
  function x1(b,a){document.write("<option style='BACKGROUND-COLOR:"+a+";COLOR:#000099' value='"+a+"'>"+b+"</option>");}
  function xx(){var i;for (i=0;i<colorarry.length;i++) document.write("<option style='BACKGROUND-COLOR:"+colorarry[i]+";COLOR:"+colorarry[i]+"' value='"+i+"'>"+colorname[i]+"</option>");}
  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>");}</script>
<tr><td colspan=2 valign=top><center><b><p>呢称:<font color=0088ff><%=myname%></font></b></td></tr>
<form name=chpass method="post" action="usersetpass.asp">
<tr><td class=navy1><center>修改密码<tr><td><p>
原密码<input type=password name=oldPass maxlength=15 size=8></p><p>
新密码<input type=password name=sPass1 maxlength=15 size=8></p><p>
确　认<input type=password name=sPass2 maxlength=15 size=8></p><p>
<center><input type="submit" name="B1" value="修改" class=navy2>
<input type="reset" name="cmdCancel" value="重置" class=navy2></center></p>
<tr><td class=navy1><center>颜色字体</td></tr>
</form><form name=chfont target=newsay method="post" action="usersetfont.asp">
<tr><td><p>
发言:<select name="s_color"><script>xx();</script></select></p><p>
姓名:<select name="n_color"><script>xx();</script></select></p><p>
大小:<select name="f_size" style="background-color:3399FF;color:FFFFFF"><script>y1();</script></select>pt</p><p>
行距:<select name="l_height" style="background-color:3399FF;color:FFFFFF"><script>y2();</script></select></p><p>
<center><input type="submit" name="B1" value="修改" class=navy2>
<input type="reset" name="cmdCancel" value="重置" class=navy2></center></p>
<tr><td class=navy1><center>背景界面</td></tr>
</form><form name=chface target=newsay method="post" action="usersetface.asp">
<tr><td><p>
方案:<select name="bgc" onchange="document.chface.bg_color.value=this.value;document.chface.bg_color.style.backgroundColor=this.value">
<script>x1("背景","");x1("----","");
var b1=parent.backgroudcolorstr.split(":");var b2;
for (i=0;i<b1.length;i++) {b2=b1[i].split(" ");document.write("<option style='background-color:"+b2[0]+"' value='"+b2[0]+"'>"+b2[1]+"</option>")}
</script>
</select></p><p>
方案:<select name="fc" onchange="cf(this.value)">
<script>x1("界面","0");x1("----","0");
var j1=parent.facecolorstr.split(":");
for (i=0;i<j1.length;i++) {b2=j1[i].split(" ");document.write("<option style='background-color:"+b2[1]+"' value='"+i+"'>"+b2[2]+"</option>")}
function cf(t){
var f2=j1[t].split(" ");
document.chface.face1.value=f2[0];
document.chface.face1.style.backgroundColor=f2[0];
document.chface.face2.value=f2[1];
document.chface.face2.style.backgroundColor=f2[1];
}</script>
</select>
<p>背景:<input style="background-color:<%=bg_color(0)%>" type=text name=bg_color maxlength=10 size=8 value='<%=bg_color(0)%>'></p><p>
界面1<input style="background-color:<%=bg_color(1)%>;color:white" type=text name=face1 maxlength=10 size=8 value='<%=bg_color(1)%>'></p><p>
界面2<input style="background-color:<%=bg_color(2)%>" type=text name=face2 maxlength=10 size=8 value='<%=bg_color(2)%>'></p><p>
<center><input type="submit" name="B1" value="修改" class=navy2>
<input type="reset" name="cmdCancel" value="重置" class=navy2></center></p>
<tr><td class=navy1><center>其它设置</td></tr>
<tr><td><center>
<p><a href=usersetsex.asp onclick="return confirm('你真的决定修改性别了吗？')" target=newsay>修改性别</a>
<p><a href=usersetprotectpass.asp onclick="window.open('usersetprotectpass.asp','userset','left=0,scrollbars=1,width=450,height=200');return false;">密码保护</a>
<%if my_level-application( ConstStr & "_l_keepuser")>=0 and rs("saved")=0 then%><p><a href=usersetsaved.asp  target=newsay <%if trim(rs("remand"))="" or trim(rs("answer"))="" then%>onclick="alert('请先设置密码保护才能设定用户保留');return false"<%end if%>>用户保留</a><%END IF%>
<%if rs("saved")<>0 then%><p><a href=usersetsaved.asp target=newsay onclick="return confirm('你真的决定取消用户保留了吗？')" >取消保留</a><%end if%>
<p><a href=usersetaddr.asp onclick="window.open('usersetaddr.asp','userset','left=0,scrollbars=1,width=450,height=200');return false;">其它设置</a></center>
<script>document.chfont.f_size.options[<%=rs("f_size")%>].selected=true;
  document.chfont.l_height.options[<%=rs("l_height")%>].selected=true;
  document.chfont.n_color.options[<%=rs("n_color")%>].selected=true;
  document.chfont.s_color.options[<%=rs("s_color")%>].selected=true;</script>
</body></html>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing%>




























































































