equser.asp
上传用户:syzzy1975
上传日期:2022-07-17
资源大小:670k
文件大小:10k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
  2. <%
  3. %><!--#include file="inc/config.asp"-->
  4. <!--#include file="inc/conn.asp"--> 
  5. <!--#include file="inc/chk.asp"--> 
  6. <%
  7. if session("rank")>1 then
  8. call Msgbox("你的权限不够!","Back","None")
  9. response.End
  10. end if
  11. %>
  12. <%
  13. if NOT isempty(request("SaveEditSubmit")) then
  14. dim userid
  15. userid=request.QueryString("id")
  16. if userid="" then userid=request("userid")
  17. set rs=server.CreateObject("adodb.recordset")
  18. rs.Open "select * from [user] where userid="&userid,conn,1,3
  19. if trim(request("password"))<>"" then rs("password")=md5(trim(request("password")))
  20. rs("realname")=trim(request("realname"))
  21. rs("identify")=trim(request("identify"))
  22. rs("mobile")=trim(request("mobile"))
  23. rs("userqq")=trim(request("userqq"))
  24. rs("useremail")=trim(request("useremail"))
  25. rs("quesion")=trim(request("quesion"))
  26. if trim(request("answer"))<>"" then rs("answer")=md5(trim(request("answer")))
  27. rs("sex")=request("usersex")
  28. rs("city")=trim(request("city"))
  29. rs("address")=trim(request("address"))
  30. rs("postcode")=trim(request("postcode"))
  31. rs("usertel")=trim(request("usertel"))
  32. rs("score")=trim(request("score"))
  33. rs("book")=trim(request("book"))
  34. rs("vip")=trim(request("vip"))
  35. rs.Update
  36. rs.Close
  37. set rs=nothing
  38. call MsgBox("操作成功!","None","None")
  39. end if
  40. %>
  41. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  42. <html>
  43. <head>
  44. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  45. <title>406网络书店</title>
  46. <link href="../style.css" rel="stylesheet" type="text/css">
  47. </head>
  48. <body>
  49. <!--#include file="head.htm"-->
  50. <table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  51.   <tr>
  52.     <td width="219" align="left" valign="top"><br>
  53.       <!--#include file="menu.htm"-->
  54.         <br></td><td width="561" align="left" valign="top">
  55.       <br>      <table border="0" cellpadding="0" cellspacing="0">
  56.         <tr>
  57.           <td><img src="../images/w.gif" width="18" height="18"></td>
  58.           <td style="color:#415373">用户详细资料</td>
  59.         </tr>
  60.       </table>      <%dim vipuser
  61. userid=request.querystring("id")
  62. set rs=server.createobject("adodb.recordset")
  63. rs.open "select * from [user] where userid="&userid ,conn,1,1
  64. if rs("vip") = true then
  65.     vipuser="VIP会员"
  66.   else
  67.     vipuser="普通会员"
  68.   end if
  69.   %>      <br>      <form name="form1" method="post" action="equser.asp?id=<%=userid%>">
  70.         <table width="95%" border="0" align="center" cellpadding="1" cellspacing="1">
  71.           <tr >
  72.             <td width="20%">&nbsp;用户名称:</td>
  73.             <td width="80%">&nbsp;<font color=#FF0000><%=trim(rs("username"))%></font></td>
  74.           </tr>
  75.           <tr >
  76.             <td>&nbsp;登录密码:</td>
  77.             <td>&nbsp;
  78.                 <input name="password" type="text" id="password2" size="12">
  79.         不改密码请为空!</td>
  80.           </tr>
  81.           <tr >
  82.             <td>&nbsp;真实姓名:</td>
  83.             <td> &nbsp;
  84.                 <input name="realname" type="text" id="realname" size="12" value=<%=trim(rs("realname"))%>>
  85.             </td>
  86.           </tr>
  87.           <tr >
  88.             <td>&nbsp;身份证号码</td>
  89.             <td>&nbsp;
  90.                 <INPUT NAME="identify" TYPE="text" ID="identify" SIZE="18" VALUE=<%=trim(rs("identify"))%>></td>
  91.           </tr>
  92.           <tr >
  93.             <td>&nbsp;电子邮件:</td>
  94.             <td> &nbsp;
  95.                 <input name="useremail" type="text" id="useremail" value=<%=trim(rs("useremail"))%>>
  96.             </td>
  97.           </tr>
  98.           <tr >
  99.             <td>&nbsp;手机号码:</td>
  100.             <td>&nbsp;
  101.                 <INPUT NAME="mobile" TYPE="text" ID="mobile" SIZE="15" VALUE=<%=trim(rs("mobile"))%>></td>
  102.           </tr>
  103.           <tr >
  104.             <td>&nbsp;腾 讯 Q Q:</td>
  105.             <td>&nbsp;
  106.                 <INPUT NAME="userqq" TYPE="text" ID="userqq" SIZE="15" VALUE=<%=trim(rs("userqq"))%>></td>
  107.           </tr>
  108.           <tr >
  109.             <td>&nbsp;密码提问:</td>
  110.             <td> &nbsp;
  111.                 <input name="quesion" type="text" id="quesion" value=<%=trim(rs("quesion"))%>>
  112.             </td>
  113.           </tr>
  114.           <tr >
  115.             <td>&nbsp;密码答案:</td>
  116.             <td> &nbsp;
  117.                 <input name="answer" type="text" id="answer">
  118.             </td>
  119.           </tr>
  120.           <tr >
  121.             <td>&nbsp;收货人姓名:</td>
  122.             <td> &nbsp;
  123.                 <input name="recepit" type="text" id="recepit" size="12" value=<%=trim(rs("recepit"))%>>
  124.             </td>
  125.           </tr>
  126.           <tr >
  127.             <td>&nbsp;收货人性别:</td>
  128.             <td> &nbsp;
  129.                 <%if rs("sex")=0 then%>
  130.                 <input type="radio" name="usersex" value="1">
  131.         男
  132.         <input name="usersex" type="radio" value="0" checked>
  133.         女
  134.         <%else%>
  135.         <input type="radio" name="usersex" value="1" checked>
  136.         男
  137.         <input name="usersex" type="radio" value="0" >
  138.         女
  139.         <%end if%>
  140.             </td>
  141.           </tr>
  142.           <tr >
  143.             <td>&nbsp;收货人省/市:</td>
  144.             <td> &nbsp;
  145.                 <input name="city" type="text" id="city" size="12" value=<%=trim(rs("city"))%>>
  146.             </td>
  147.           </tr>
  148.           <tr >
  149.             <td>&nbsp;收货地址:</td>
  150.             <td> &nbsp;
  151.                 <input name="address" type="text" id="address" size="30" value=<%=trim(rs("address"))%>>
  152.             </td>
  153.           </tr>
  154.           <tr >
  155.             <td>&nbsp;邮编:</td>
  156.             <td>&nbsp;
  157.                 <input name="postcode" type="text" id="postcode" size="12" value=<%=rs("postcode")%>>
  158.             </td>
  159.           </tr>
  160.           <tr >
  161.             <td>&nbsp;电话:</td>
  162.             <td> &nbsp;
  163.                 <input name="usertel" type="text" id="usertel" size="12" value=<%=trim(rs("usertel"))%>>
  164.             </td>
  165.           </tr>
  166.           <tr  height="20">
  167.             <td >&nbsp;送货方式:</td>
  168.             <td > &nbsp;
  169.                 <%
  170. dim rs2
  171. set rs2=server.CreateObject("adodb.recordset")
  172. rs2.open "select subject from delivery where methord=0 and deliveryidorder="&rs("deliverymethord"),conn,1,1
  173. if rs2.recordcount=0 then
  174. response.write "没有此送货方式!"
  175. else
  176. response.write rs2("subject")
  177. end if
  178. rs2.close
  179. %>
  180.             </td>
  181.           </tr>
  182.           <tr  height="20">
  183.             <td>&nbsp;支付方式:</td>
  184.             <td> &nbsp;
  185.                 <%
  186. rs2.open "select subject from delivery where methord=1 and deliveryidorder="&rs("paymethord"),conn,1,1
  187. if rs2.recordcount=0 then
  188. response.write "没有此支付方式!"
  189. else
  190. response.write rs2("subject")
  191. end if
  192. set rs2=nothing
  193.  %>
  194.             </td>
  195.           </tr>
  196.           <tr >
  197.             <td>&nbsp;用户积分:</td>
  198.             <td>&nbsp;
  199.                 <INPUT NAME="score" TYPE="text" ID="usertel" SIZE="12" VALUE=<%=trim(rs("score"))%>>        </td>
  200.           </tr>
  201.           <tr >
  202.             <td>&nbsp;会员级别</td>
  203.             <td bgcolor="#FFFFFFFF">&nbsp; <input name="vip" type="radio" value="true" <%if vipuser="VIP会员" then response.write "checked"%>>
  204.             VIP会员            <input type="radio" name="vip" value="false" <%if vipuser="普通会员" then response.write "checked"%>>
  205.             普通会员</td>
  206.           </tr>
  207.           <tr  height="20">
  208.             <td>&nbsp;注册时间:</td>
  209.             <td>&nbsp;<%=rs("adddate")%></td>
  210.           </tr>
  211.           <tr  height="20">
  212.             <td>&nbsp;上次登录时间:</td>
  213.             <td>&nbsp;<%=rs("lastvst")%></td>
  214.           </tr>
  215.           <tr  height="20">
  216.             <td>&nbsp;登录次数:</td>
  217.             <td>&nbsp;<%=rs("loginnum")%>次</td>
  218.           </tr>
  219.           <tr  height="20">
  220.             <td>&nbsp;已下订单数:</td>
  221.             <td> 
  222.               &nbsp;<%
  223. set rs2=server.CreateObject("adodb.recordset")
  224. rs2.open "select distinct(goods) from orders where username='"&trim(rs("username"))&"' ",conn,1,1
  225. response.write rs2.recordcount&"&nbsp;笔订单"
  226. rs2.close
  227. set rs2=nothing
  228. %>            </td>
  229.           </tr>
  230.           <tr >
  231.             <td valign="top">&nbsp;系统广播</td>
  232.             <td>&nbsp;
  233.                 <TEXTAREA NAME="book" ID="book" COLS="50" ROWS="5"><%=trim(rs("book"))%></TEXTAREA></td>
  234.           </tr>
  235.           <tr >
  236.             <td height="28" colspan="2">&nbsp;查找此用户的所有定单:
  237.                 <select name="state" onChange="var jmpURL=this.options[this.selectedIndex].value ; if(jmpURL!='') {window.location=jmpURL;} else {this.selectedIndex=0 ;}" >
  238.                   <base target=Right>
  239.                   <option value="" selected>--选择查询状态--</option>
  240.                   <option value="porder.asp?state=0&namekey=<%=trim(rs("username"))%>" >全部订单状态</option>
  241.                   <option value="porder.asp?state=1&namekey=<%=trim(rs("username"))%>" >未作任何处理</option>
  242.                   <option value="porder.asp?state=2&namekey=<%=trim(rs("username"))%>" >用户已经划出款</option>
  243.                   <option value="porder.asp?state=3&namekey=<%=trim(rs("username"))%>" >服务商已经收到款</option>
  244.                   <option value="porder.asp?state=4&namekey=<%=trim(rs("username"))%>" >服务商已经发货</option>
  245.                   <option value="porder.asp?state=5&namekey=<%=trim(rs("username"))%>" >用户已经收到货</option>
  246.                 </select>
  247.             </td>
  248.           </tr>
  249.           <%rs.close
  250. set rs=nothing
  251. conn.close
  252. %>
  253.           <tr>
  254.             <td height="28" colspan="2"  align="center"><input name="SaveEditSubmit" type="submit" id="SaveEditSubmit" value="确认提交">
  255. &nbsp;&nbsp;&nbsp;
  256.         <input type="button" name="Submit2" value="返回上一页" onClick='javascript:history.go(-1)'>
  257.             </td>
  258.           </tr>
  259.         </table>
  260.       </form>      <br>
  261.       </td>
  262.   </tr>
  263. </table>
  264. <!--#include file="foot.htm"-->
  265. </body>
  266. </html>