www.gusucode.com > 星云DJ舞曲 4.5a源码程序 > user/usermodify.asp
<!--#include file="connkkp.asp"--> <% if session("DJUser")="" or isnull(session("DJUser")) or session("DJUserPwd")="" or isnull(session("DJUserPwd")) then Response.Write "你尚未登陆!" Response.end end if username=session("DJUser") Password=session("DJUserPwd") set rs=server.createobject("adodb.recordset") sql="select * from user where username='"&username&"' and password='"&password&"'" rs.open sql,conn,1,1 if rs.eof then response.write "操作错误。请重新登陆!" Response.end else id=rs("id") Sex=rs("Sex") email=rs("Email") Tel=rs("Tel") oicq=rs("oicq") User_Birthday=rs("User_Birthday") MyIntro=rs("sign") UserWebName=rs("UserWebName") UserWebUrl=rs("UserWebUrl") UserPhoto=rs("UserPhoto") Address=rs("Address") ContactAddress=rs("ContactAddress") TrueName=rs("TrueName") answer=rs("answer") quesion=rs("quesion") rs.close end if %> <html> <head><title>资料修改</title> <STYLE type=text/css>A:link { COLOR: #000000; TEXT-DECORATION: none } A:active { COLOR: #000000; TEXT-DECORATION: none } A:visited { COLOR: #000000; TEXT-DECORATION: none } A:hover { COLOR: #8C8E73 } TD { FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: 宋体 } TD.TableBody1 { BACKGROUND-COLOR: #555555 } .tableBorder1 { BORDER-RIGHT: 1px; BORDER-TOP: 1px; BORDER-LEFT: 1px; WIDTH: 100%; BORDER-BOTTOM: 1px; BACKGROUND-COLOR: #c5bdc5 } .table { BORDER-RIGHT: #333333 1px solid; BORDER-LEFT: #333333 1px solid; BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: #ffffff } INPUT { BORDER-TOP-WIDTH: 1px; PADDING-RIGHT: 1px; PADDING-LEFT: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 9pt; BORDER-LEFT-COLOR: #cccccc; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #cccccc; PADDING-BOTTOM: 1px; BORDER-TOP-COLOR: #cccccc; PADDING-TOP: 1px; HEIGHT: 18px; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #cccccc } </STYLE></head> <body topmargin="0" leftmargin="0"> <table border="0" cellspacing="0" cellpadding="10" align="center" width="294"> <tr> <td width="293"> <div align="center"> <table border="1" cellpadding="2" cellspacing="0" width="293" style="border-collapse: collapse" bordercolor="#88B632"> <FORM name=reg2 action="UserSave.asp" method=post> <tr> <td width="293" align="center" colspan="2"> <p align="center">会员资料修改</td> </tr> <tr> <td width="108" align="center">登录帐号:</td> <td width="187"><%=username%></td> </tr> <tr> <td width="108" align="center">用户密码:</td> <td width="187"> <input type=password maxlength=20 size=16 name=password value="<%=password%>" style="color: #000000; background-color: #ffffff; border: 1 solid #000000"> *</td> </tr> <tr> <td width="108" align="center">验证密码:</td> <td width="187"> <input type=password maxlength=16 size=16 name=password2 value="<%=password%>" style="color: #000000; background-color: #ffffff; border: 1 solid #000000"> *</td> </tr> <tr> <td width="108" align="center">电子信箱:</td> <td width="187"> <input maxlength=50 size=20 name=Email value="<%=email%>" style="color: #000000; background-color: #ffffff; border: 1 solid #000000"> *</td> </tr> <tr> <td width="108" align="center">您的性别:</td> <td width="187"> <select style="FONT-SIZE: 9pt" name="sex"> <option>请选择</option> <option value="0"<%if sex=0 then%> selected<%end if%>>女孩</option> <option value="1"<%if sex=1 then%> selected<%end if%>>男孩</option> </select> </td> </tr> <tr> <td width="108" align="center">真实姓名:</td> <td width="187"> <input maxlength=20 size=20 name=TrueName value="<%=TrueName%>" style="color: #000000; background-color: #ffffff; border: 1 solid #000000"> * </td> </tr> <tr> <td width="108" align="center">提示问题:</td> <td width="187"> <input maxlength=20 size=20 name=quesion value="<%=quesion%>" style="color: #000000; background-color: #ffffff; border: 1 solid #000000"> * </td> </tr> <tr> <td width="108" align="center">问题答案:</td> <td width="187"><input type=password maxlength=20 size=16 name=answer value="<%=answer%>" style="color: #000000; background-color: #ffffff; border: 1 solid #000000">* </td> </tr> <tr> <td width="108" align="center">联系电话:</td> <td width="187"> <input maxlength=20 size=20 name="Tel" value="<%=Tel%>" style="color: #000000; background-color: #ffffff; border: 1 solid #000000"> *</td> </tr> <tr> <td width="108" align="center">详细地址:</td> <td width="187"> <input maxlength=20 size=20 name=ContactAddress value="<%=ContactAddress%>" style="color: #000000; background-color: #ffffff; border: 1 solid #000000"> *</td> </tr> <tr> <td width="108" align="center">OICQ号码:</td> <td width="187"> <input maxlength=20 size=20 name=OICQ value="<%=oicq%>" style="color: #000000; background-color: #ffffff; border: 1 solid #000000"> *</td> </tr> <tr> <td width="334" align="center" colspan="2"> <input value="修 改" name=Submit type=submit> <input type=reset value="重 写" name=Submit2> </td> </tr> </form> </table> </div> </td> </tr> </table> </td> </tr> </table> <BR> <script language="javascript"> <!-- function validate(theform) { if (theform.password.value==""|| theform.password2.value==""|| theform.Email.value==""|| theform.Name.value==""|| theform.Shenfenzheng.value==""|| theform.Address.value==""|| theform.Tel.value=="") { alert("错 误 ! 必 须 认 真 填 写 所 有 项 !"); return false; } } //--> </script> </div> </body></html>