view.asp
资源名称:1.rar [点击查看]
上传用户:ziqing_518
上传日期:2022-08-09
资源大小:446k
文件大小:4k
源码类别:

多媒体编程

开发平台:

ASP/ASPX

  1. <!--#include file="db/user.asp" -->
  2. <!--#include file="config.asp" -->
  3. <!--#include file="function.asp" -->
  4. <%
  5. iperr()
  6. Session.Timeout=10
  7. strUser=request.QueryString("user")
  8. Set rs = Server.CreateObject("ADODB.Recordset")
  9. sql="select * from admin where admin='"&strUser&"'"
  10. rs.open sql,conn,1,1
  11. if rs.eof then
  12. response.write("没有该用户")
  13. rs.close
  14. set rs=nothing
  15. response.end
  16. else
  17. if request.QueryString("post")<>"" then
  18. rs.close
  19. set rs=nothing
  20. if session("view")=True then
  21. response.write("请勿重复投票,每个IP投票间隔10分钟")
  22. response.end
  23. end if
  24. select case request.QueryString("post")
  25. case "add"
  26. sql="update admin set admin.top=admin.top+1 where admin='"&strUser&"'"
  27. case "del"
  28. sql="update admin set admin.top=admin.top-1 where admin='"&strUser&"'"
  29. end select
  30. conn.execute sql
  31. session("view")=True
  32. response.write("感谢你的投票,请<a href=javascript:window.close()>关闭窗口</a>")
  33. response.end
  34. else
  35. strUser=rs("admin")
  36. strRegemail=rs("regemail")
  37. strUseravatar=rs("useravatar")
  38. numPicwidth=rs("picwidth")
  39. numPicheight=rs("picheight")
  40. numMoneyert=rs("moneyert")
  41. numTop=rs("top")
  42. end if
  43. end if
  44. rs.close
  45. set rs=nothing
  46. %>
  47. <html>
  48. <head>
  49. <meta http-equiv="Content-Language" content="zh-cn">
  50. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  51. <title><%=strHomepage_1%></title>
  52. <style type="text/css">
  53. <!--
  54. body, p, td, tr, input, textarea, select {cursor:default; font-size:9pt; color:#006D91}
  55. a:link {text-decoration:none; color:#006D91}
  56. a:visited {text-decoration:none; color:#006D91}
  57. a:active {text-decoration:none; color:#006D91}
  58. a:hover {text-decoration:none; color:#888888}
  59. input, textarea, select {border-style:solid; border-width:1; cursor:default; color:#006D91; background-color:#EFEFEF}
  60. body {
  61. scrollbar-face-color:#E1E1E1;
  62. scrollbar-highlight-color:#E1E1E1;
  63. scrollbar-shadow-color:#8C8C8D;
  64. scrollbar-arrow-color:#8C8C8D;
  65. scrollbar-base-color:#EFEFEF;
  66. scrollbar-track-color:#EFEFEF;
  67. scrollbar-darkshadow-color:#EFEFEF;
  68. }
  69. textarea {
  70. scrollbar-face-color:#E1E1E1;
  71. scrollbar-highlight-color:#E1E1E1;
  72. scrollbar-shadow-color:#8C8C8D;
  73. scrollbar-arrow-color:#8C8C8D;
  74. scrollbar-base-color:#EFEFEF;
  75. scrollbar-track-color:#EFEFEF;
  76. scrollbar-darkshadow-color:#EFEFEF;
  77. }
  78. .shadow {FILTER: dropshadow(color=#444444,offx=1,offy=1,positive=1)}
  79. .input {
  80. margin: 1px;
  81. padding: 1px;
  82. border: 1px solid #000000;
  83. }
  84. .table {
  85. margin: 1px;
  86. padding: 1px;
  87. border: 1px solid #000000;
  88. }
  89. .input2 {
  90. border-bottom-width: 1px;
  91. border-bottom-style: solid;
  92. border-bottom-color: #000000;
  93. }
  94. .body {
  95. font-size: 9px;
  96. font-style: normal;
  97. font-weight: normal;
  98. font-variant: normal;
  99. }
  100. -->
  101. </style>
  102. <base onmouseover="window.status='<%=strEstate_1%>';return true">
  103. </head>
  104. <body bgcolor="#DDDDDD" topmargin="5" leftmargin="5">
  105. <div align="center">
  106.   <center>
  107.     <table border="1" cellpadding="1" cellspacing="0" style="border-collapse: collapse" bordercolor="#006D91" width="200" height="21">
  108.       <tr>
  109.         <td width="100%" background="../mb/images/21.gif" align="center">
  110. <p style="margin-top: 2">用 户 资 料</td>
  111.     </tr>
  112.     <tr>
  113.       <td width="100%" bgcolor="#FBFBFB">
  114.       <table width="100%" border="0" cellpadding="3" cellspacing="0" bordercolor="#111111" style="border-collapse: collapse">
  115.               <tr> 
  116.                 <td colspan="2" align='center'><img src="<%=strUseravatar%>" width="<%=numPicwidth%>" height="<%=numPicheight%>"></td>
  117.               </tr>
  118.               <tr> 
  119.                 <td width='30%' align='center'>用 户 名:</td>
  120.                 <td width='65%'><%=strUser%></td>
  121.               </tr>
  122.               <tr> 
  123.                 <td width='30%' align='center'>邮件地址:</td>
  124.                 <td width='65%'><a href="mailto:<%=strRegemail%>">给 <%=strUser%> 发送邮件</a></td>
  125.               </tr>
  126.               <tr> 
  127.                 <td width='30%' align='center'>拥有金额:</td>
  128.                 <td width='65%'><%=numMoneyert&strMoneyname%></td>
  129.               </tr>
  130.               <tr> 
  131.                 <td width='35%' align='center'>网友评分:</td>
  132.                 <td width='65%'><%=numTop%></td>
  133.               </tr>
  134.           </table>
  135.       </td>
  136.     </tr>
  137.   </table>
  138.   </center>
  139. </div>
  140. </body>
  141. </html>