u_modifyadd.asp
上传用户:comthink
上传日期:2021-05-06
资源大小:1280k
文件大小:7k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

HTML/CSS

  1. <!--#include file="conn.asp"-->
  2. <!-- #include file="inc/const.asp" -->
  3. <!--#include file="md5.asp"-->
  4. <!--#include file="inc/chkinput.asp"-->
  5. <%
  6. '=========================================================
  7. ' File: register.asp
  8. ' Version:5.0
  9. ' Date: 2003-8-1
  10. ' Script Written by Leibo
  11. '=========================================================
  12. ' Copyright (C) 2003,2004 Mathren.com. All rights reserved.
  13. ' Web: http://www.mathren.com
  14. ' Email: webmaster@mathren.com
  15. '=========================================================
  16. response.buffer=true
  17. stats="修改联系资料"
  18. if not founduser then
  19. Errmsg=Errmsg+"<br>"+"<li>您还没有登陆,请登陆后进行修改。"
  20. founderr=true
  21. end if
  22. call head()
  23. if founderr then
  24.    errmsg=errmsg+"<br>"+"<li>您没有<a href=login.asp target=_blank>登录</a>。"
  25. call head_var("","")
  26. call  txl_error()
  27. else
  28. call head_var("个人菜单","u_index.asp")
  29. if request("action")="update" then
  30. call update()
  31. if founderr then
  32. call  txl_error()
  33. else
  34. sucmsg="<li>更改资料成功!"
  35. call txl_suc()
  36. end if
  37. else
  38. call userinfo()
  39. if founderr then call txl_error()
  40. end if
  41. end if
  42. call foot()
  43. sub userinfo()
  44. set rs=server.createobject("adodb.recordset")
  45. sql="Select * from [User] where userid="&userid
  46. rs.open sql,conn,1,1
  47. if rs.eof and rs.bof then
  48. errmsg=errmsg+"<br>"+"<li>该用户名不存在。"
  49. founderr=true
  50. exit sub
  51. end if
  52. %>
  53. <table width="<%=txl_body(0)%>" cellpadding="0" cellspacing="0" align="center" style="border:1px <%=txl_body(9)%> solid; border-top-width: 0px; border-right-width: 1px; border-bottom-width: 0px; border-left-width: 1px;">  
  54. <tr> 
  55. <td bgcolor=<%=txl_body(10)%> align="center" valign="top"><br>
  56. <table cellpaddin=3 cellspacing=1 class=tableborder1 width=<%=txl_body(19)%> align=center>
  57. <tr>
  58. <th width=14% height=25 id=tabletitlelink><a href=u_index.asp>个人菜单首页</a></th>
  59. <th width=14% id=tabletitlelink><a href=u_modifymy.asp>基本资料修改</a></th>
  60. <th width=14% id=tabletitlelink><a href=u_modifypsw.asp>用户密码修改</a></th>
  61. <th width=14% id=tabletitlelink><a href=u_modifyadd.asp>联系资料修改</a></th>
  62. <th width=14% id=tabletitlelink><a href=u_myskin.asp>选择界面风格</a></th>
  63. <th width=14% id=tabletitlelink><a href=usersms.asp>我的短信管理</a></th>
  64. <th width=14% id=tabletitlelink><a href=d_index.asp>我的日记管理</a></th>
  65. </tr>
  66. </table>
  67. <br>
  68. <table cellpadding=5 cellspacing=1 border=0 class=tableborder1 width=<%=txl_body(19)%> align=center>
  69. <form action="u_modifyadd.asp?action=update&username=<%=htmlencode(membername)%>" method=POST name="theForm">
  70. <tr>
  71. <th height=25 colspan=2>用户联系资料</td>
  72. </tr> 
  73. <tr>    
  74. <td width="40%" class=tablebody1><B>OICQ号码</B>:<BR>如果您有 OICQ,请输入号码。此项可选</td>   
  75. <td width="60%" class=tablebody1>    <input type="TEXT" name="OICQ" value="<%if rs("oicq")<>"" then%><%=htmlencode(rs("oicq"))%><%end if%>" size=30 maxlength=20>   </td>   
  76. </tr>
  77. <tr>    
  78. <td width="40%" class=tablebody1><B>Email地址</B>:<BR>请输入有效的邮件地址,这将保证您在论坛中的私人资料。</td>   
  79. <td width="60%" class=tablebody1>    <input type="TEXT" name="Email" size=30 maxlength=50 value="<%if trim(rs("email"))<>"" then%><%=htmlencode(rs("email"))%><%end if%>">   </td>   
  80. </tr>  
  81. <tr>    
  82. <td width="40%" class=tablebody1><B>主页地址</B>:<BR>如果您有主页,请输入主页地址。此项可选</td>   
  83. <td width="60%" class=tablebody1>    <input type="TEXT" name="homepage" value="<%if trim(rs("homepage"))<>"" then%><%=htmlencode(rs("homepage"))%><%end if%>" size=30 maxlength=100>   </td>   
  84. </tr> 
  85. <tr>    
  86. <td width="40%" class=tablebody1><B>电