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

多媒体编程

开发平台:

ASP/ASPX

  1. <!--#include file="db/user.asp" -->
  2. <!--#include file="config.asp" -->
  3. <!--#include file="function.asp" -->
  4. <%iperr()%>
  5. <%
  6. if boolReview_1=False then
  7. response.write("对不起,暂时无法对影片进行投票和评论")
  8. response.end
  9. end if
  10. %>
  11. <html>
  12. <head>
  13. <meta http-equiv="Content-Language" content="zh-cn">
  14. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  15. <title><%=strHomepage_1%></title>
  16. <style type="text/css">
  17. <!--
  18. body, p, td, tr, input, textarea, select {cursor:default; font-size:9pt; color:#006D91}
  19. a:link {text-decoration:none; color:#006D91}
  20. a:visited {text-decoration:none; color:#006D91}
  21. a:active {text-decoration:none; color:#006D91}
  22. a:hover {text-decoration:none; color:#888888}
  23. input, textarea, select {border-style:solid; border-width:1; cursor:default; color:#006D91; background-color:#EFEFEF}
  24. body {
  25. scrollbar-face-color:#E1E1E1;
  26. scrollbar-highlight-color:#E1E1E1;
  27. scrollbar-shadow-color:#8C8C8D;
  28. scrollbar-arrow-color:#8C8C8D;
  29. scrollbar-base-color:#EFEFEF;
  30. scrollbar-track-color:#EFEFEF;
  31. scrollbar-darkshadow-color:#EFEFEF;
  32. }
  33. textarea {
  34. scrollbar-face-color:#E1E1E1;
  35. scrollbar-highlight-color:#E1E1E1;
  36. scrollbar-shadow-color:#8C8C8D;
  37. scrollbar-arrow-color:#8C8C8D;
  38. scrollbar-base-color:#EFEFEF;
  39. scrollbar-track-color:#EFEFEF;
  40. scrollbar-darkshadow-color:#EFEFEF;
  41. }
  42. .shadow {FILTER: dropshadow(color=#444444,offx=1,offy=1,positive=1)}
  43. .input {
  44. margin: 1px;
  45. padding: 1px;
  46. border: 1px solid #000000;
  47. }
  48. .table {
  49. margin: 1px;
  50. padding: 1px;
  51. border: 1px solid #000000;
  52. }
  53. .input2 {
  54. border-bottom-width: 1px;
  55. border-bottom-style: solid;
  56. border-bottom-color: #000000;
  57. }
  58. .body {
  59. font-size: 9px;
  60. font-style: normal;
  61. font-weight: normal;
  62. font-variant: normal;
  63. }
  64. -->
  65. </style>
  66. <base onmouseover="window.status='<%=strEstate_1%>';return true">
  67. </head>
  68. <body bgcolor="#E7E7E7">
  69. <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#000000">
  70. <%
  71. if request.QueryString("post")="save" then
  72. if request.form("strView")="" then
  73. strErr=strErr+"<li>请填写完整评论内容"
  74. else
  75. strView=request.form("strView")
  76. end if
  77. numAccess=cint(request.form("numAccess"))
  78. if request.form("strEmail")<>"" then
  79. if IsValidEmail(request.form("strEmail"))=False then
  80. strErr=strErr+"<li>E-MAIL可以不必填写,但若填写了E-MAIL请提供真实地址"
  81. else
  82. strEmail=request.form("strEmail")
  83. end if
  84. else
  85. strEmail=""
  86. end if
  87. if request.form("numQQ")<>"" then
  88. if IsNumeric(request.form("numQQ"))=False then
  89. strErr=strErr+"<li>QQ可以不必填写,但若填写了QQ请提供真实号码"
  90. else
  91. numQQ=request.form("numQQ")
  92. end if
  93. else
  94. numQQ="0"
  95. end if
  96. if request.cookies("nicedown")("admin")<>"" then
  97. strName=request.cookies("nicedown")("admin")
  98. else
  99. strName="游客"
  100. end if
  101. dateRtime=now()
  102. numIP=Request.ServerVariables("Remote_Addr")
  103. if strErr<>"" then
  104. response.write(strErr)
  105. response.end
  106. else
  107. sql="insert into review(numSoftid,strName,strEmail,numQQ,strView,dateRtime,numAccess,numIP) values("&request.QueryString("id")&",'"&strName&"','"&strEmail&"',"&numQQ&",'"&strView&"','"&dateRtime&"',"&numAccess&",'"&numIP&"')"
  108. conn.execute sql
  109. response.write("操作完成,2秒钟后返回"&_
  110. "<META HTTP-EQUIV=REFRESH CONTENT='2;URL=review.asp?id="&request.QueryString("id")&"'>")
  111. response.end
  112. end if
  113. end if
  114. %>
  115.   <form name="form1" method="post" action="review.asp?id=<%=request.QueryString("id")%>&post=save">
  116.     <tr> 
  117.       <td bgcolor="#FFFFFF">影片评分:  
  118.         <input type="radio" name="numAccess" value="1" checked>
  119.         1 <input type="radio" name="numAccess" value="2"> 
  120.         2 <input type="radio" name="numAccess" value="3"> 
  121.         3 <input type="radio" name="numAccess" value="4"> 
  122.         4 <input type="radio" name="numAccess" value="5"> 
  123.         5<br> 
  124.         简短评论:  
  125.         <input name="strView" type="text" size="50" maxlength="50">
  126.         (**50字符以内)<br> 电子邮件:  
  127.         <input name="strEmail" type="text" size="30">
  128.         <br>
  129.         OICQ号码:  
  130.         <input name="numQQ" type="text" size="12" maxlength="12"> <p align="center"> 
  131.           <input type="submit" name="Submit" value="提交">
  132.         </p></td>
  133.     </tr>
  134.     <tr> 
  135.       <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  136.           <tr> 
  137.             <td><div align="center">已发表的评论</div></td>
  138.           </tr>
  139.           <tr> 
  140.             <td><hr align="center" width="50%" size="1" noshade></td>
  141.           </tr>
  142.           <tr> 
  143.             <td><%
  144. if request.QueryString("page")<>"" then
  145. absPageNum=request.QueryString("page")
  146. else
  147. absPageNum=1
  148. end if
  149. numLong=5
  150. Set rs = Server.CreateObject("ADODB.Recordset")
  151. sql="select * from review where numSoftid="&request.QueryString("id")&" order by dateRtime desc"
  152. rs.open sql,conn,1,1
  153. rs.PageSize = numLong
  154. Tol = rs.PageCount
  155. If Not(rs.EOF) Then
  156. rs.AbsolutePage = absPageNum
  157. End If
  158. if rs.eof then
  159. response.write("<li>还没有评论,等待你的添加哦^_^")
  160. else
  161. for i= 1 to rs.PageSize
  162. strName=rs("strName")
  163. strEmail=rs("strEmail")
  164. numQQ=rs("numQQ")
  165. strView=rs("strView")
  166. dateRtime=rs("dateRtime")
  167. numAccess=rs("numAccess")
  168. if strEmail<>"" then
  169. strEmail="<a href='mailto:"&strEmail&"'><img src='images/email1.gif' border=0 title='给 "&strName&" 发送邮件'></a>&nbsp;"
  170. end if
  171. if numQQ<>"0" then
  172. numQQ="<a href='http://search.tencent.com/cgi-bin/friend/user_show_info?ln="&numQQ&"' target=_blank><img src='images/oicq.gif' border=0 title='"&numQQ&"'></a>&nbsp;"
  173. else
  174. numQQ=""
  175. end if
  176. response.write("<li>["&numAccess&"]"&strView&"&nbsp;"&strEmail&numQQ&"<img src='images/report.gif' title='"&dateRtime&"'>")
  177. rs.movenext
  178. if rs.eof then
  179. exit for
  180. end if
  181. next
  182. end if
  183. rs.close
  184. set rs=nothing%></td>
  185.           </tr>
  186.         </table></td>
  187.     </tr>
  188.     <tr> 
  189.       <td bgcolor="#FFFFFF"><div align="right">当前页:[<%=absPageNum%>] 页数:<< <%
  190. for i= 1 to Tol
  191. response.write("<a href='review.asp?id="&request.QueryString("id")&"&page="&i&"'>"&i&"</a>&nbsp;")
  192. next
  193. response.write("| <a href='review.asp?id="&request.QueryString("id")&"'>刷 新</a>")
  194. %></div></td>
  195.     </tr>
  196.   </form>
  197. </table>
  198. </body>