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

Jsp/Servlet

开发平台:

Java

  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
  2. <%
  3. %><!--#include file="manage/inc/config.asp"--> 
  4. <!--#include file="inc/conn.asp"--> 
  5. <%
  6. dim id
  7. id=request.QueryString("id")
  8. dim prename,company,intro,predate,graph2,description,remarks,price
  9. set rs=server.CreateObject("adodb.recordset")
  10. rs.open "select * from product where id="&id,conn,1,3
  11. rs("viewnum")=rs("viewnum")+1
  12. rs.update
  13. %>
  14. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  15. <html>
  16. <head>
  17. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  18. <title>406网络书店</title>
  19. <link href="style.css" rel="stylesheet" type="text/css">
  20. </head>
  21. <body>
  22. <!--#include file="head.htm"-->
  23. <table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  24.   <tr>
  25.     <td width="219" align="left" valign="top"><!--#include file="left.asp"--></td>
  26.     <td width="561" align="left" valign="top">
  27.       <br>      <table width="568"  border="0" cellpadding="0" cellspacing="0">
  28.         <tr>
  29.           <td width="17%" height="130" align="center" valign="middle" class="shadow"><img src="<%=trim(rs("pic"))%>" width="85" height="125"></td>
  30.           <td height="130" align="left" valign="top"><table width="100%"  border="0" cellspacing="2" cellpadding="0">
  31.             <tr>
  32.               <td colspan="2"><table border="0" cellspacing="0" cellpadding="2">
  33.                   <tr>
  34.                     <td><img src="images/w.gif" width="18" height="18"></td>
  35.                     <td><span class="booktitle"><%=trim(rs("name"))%></span></td>
  36.                   </tr>
  37.               </table></td>
  38.             </tr>
  39.             <tr class="bookinfo">
  40.               <td width="50%" class="bookinfo">作 者:<%=trim(rs("author"))%></td>
  41.               <td width="50%" class="bookinfo"> ISBN :<%=trim(rs("type"))%></td>
  42.             </tr>
  43.             <tr class="bookinfo">
  44.               <td width="50%"> 出版社:<%=trim(rs("mark"))%></td>
  45.               <td width="50%"> 开 本:<%=trim(rs("format"))%> </td>
  46.             </tr>
  47.             <tr class="bookinfo">
  48.               <td>出版日期:<%=trim(rs("productdate"))%></td>
  49.               <td> 页 数:<%=trim(rs("pagenum"))%> </td>
  50.             </tr>
  51.             <tr class="bookinfo">
  52.               <td> 装 帧:<%=trim(rs("introduce"))%> </td>
  53.               <td> 版 次:<%=trim(rs("printed"))%> </td>
  54.             </tr>
  55.             <tr class="bookinfo">
  56.               <td>定 价:<%=trim(rs("price1"))%> </td>
  57.               <td>优惠价:<%=trim(rs("price2"))%></td>
  58.             </tr>
  59.             <tr class="bookinfo">
  60.               <td>积 分:<%=rs("score")%></td>
  61.               <td>VIP价格:<%=rs("vipprice")%></td>
  62.             </tr>
  63.             <tr class="bookinfo">
  64.               <td>浏 览:<%=trim(rs("viewnum"))%></td>
  65.               <td>购买:<%=trim(rs("solded"))%></td>
  66.             </tr>
  67.             <tr>
  68.               <td colspan="2" align="center"><a href="icar.asp?id=<%=rs("id")%>&action=add" target="pcart"><img src="images/car.gif" width="23" height="20" border="0">购物车</a></td>
  69.             </tr>
  70.           </table></td>
  71.         </tr>
  72.         <tr align="left">
  73.           <td height="30" colspan="2" style="padding-left:10px;">            <table border="0" cellspacing="0" cellpadding="2">
  74.               <tr>
  75.                 <td><img src="images/w.gif" width="18" height="18"></td>
  76.                 <td style="padding-left:0px;"><strong><%=trim(rs("name"))%></strong></td>
  77.               </tr>
  78.             </table></td>
  79.         </tr>
  80.         <tr align="left">
  81.           <td colspan="2" style="padding-left:40px;"> <%=trim(rs("detail"))%></td>
  82.         </tr>
  83.         <tr align="left">
  84.           <td height="30" colspan="2" style="padding-left:10px;"><table border="0" cellspacing="0" cellpadding="2">
  85.             <tr>
  86.               <td><img src="images/w.gif" width="18" height="18"></td>
  87.               <td> <strong>目录 </strong> </td>
  88.             </tr>
  89.           </table></td>
  90.         </tr>
  91.         <tr align="left">
  92.           <td colspan="2" style="padding-left:40px;"><%=trim(rs("content"))%></td>
  93.         </tr>
  94.         <tr align="left">
  95.           <td height="30" colspan="2" style="padding-left:10px;"><table border="0" cellpadding="2" cellspacing="0">
  96.             <tr>
  97.               <td><img src="images/w.gif" width="18" height="18"></td>
  98.               <td> <strong>会员评级</strong> <a href="rank.asp?id=<%=id%>" target="_blank">发表您对这本书的评级</a></td>
  99.             </tr>
  100.           </table></td>
  101.         </tr>
  102.         <tr align="left">
  103.           <td height="30" colspan="2" style="padding-left:40px;"><%
  104. '用户评级
  105. if rs("ranknum")>0 and rs("rank")>0 then
  106. dim other
  107. other=rs("ranknum")rs("rank")
  108. else
  109. other=0
  110. end if
  111. response.write "<img src=images/rank/"&other&".gif alt=评论星级>"
  112. rs.close
  113. %>            </td>
  114.         </tr>
  115.         <tr align="left">
  116.           <td height="30" colspan="2" style="padding-left:10px;"><table border="0" cellpadding="2" cellspacing="0">
  117.             <tr>
  118.               <td><img src="images/w.gif" width="18" height="18"></td>
  119.               <td> <strong>会员评论</strong> <a href="comment.asp?id=<%=id%>" target="_blank">发表您对这本书的评论</a></td>
  120.             </tr>
  121.           </table> </td>
  122.         </tr>
  123.         <tr align="left">
  124.           <td height="30" colspan="2" style="padding-left:40px;">
  125.   <%
  126. rs.open "select * from review where id="&id&" and audit=1 ",conn,1,1
  127. if rs.eof and rs.bof then
  128. response.write "如果您用过本商品,或对本商品有所了解,欢迎您发表自己的评论。您的评论将被网络上成千上万的用户所共享,我们将对您的慷慨深表感谢。<br>"
  129. response.write "您的评论在提交后将经过我们的审核,也许您需要等待一些时间才可以看到。谢谢合作。"
  130. else
  131. do while not rs.eof 
  132. %>
  133.         [<B><%=rs("title")%></B>@<%=rs("reviewdtm")%>]<BR>
  134.                   <%=rs("reviewcontent")%><br>
  135.  
  136.             <%rs.movenext
  137. loop
  138. end if
  139. rs.close
  140. %>
  141.   </td>
  142.         </tr>
  143.         <tr align="left">
  144.           <td colspan="2">&nbsp;</td>
  145.         </tr>
  146.         <tr align="center">
  147.           <td colspan="2"><TABLE WIDTH="96%" BORDER="0" CELLPADDING="0" CELLSPACING="0" align="center">
  148.             <a name="pic"></a>
  149.             <TR>
  150.               <TD align="center"><B>本站发表用户评论,并不代表我们赞同或者支持用户的观点。我们的立场仅限于传播更多用户感兴趣的信息。</B></TD>
  151.             </TR>
  152.             <TR>
  153.               <TD align="center">&nbsp;</TD>
  154.             </TR>
  155.             <TR>
  156.               <TD align="center"><input type="button" name="Submit" value="关闭" onClick="window.close()"></TD>
  157.             </TR>
  158.           </TABLE></td>
  159.         </tr>
  160.         <tr align="center">
  161.           <td colspan="2">&nbsp;</td>
  162.         </tr>
  163.     </table></td>
  164.   </tr>
  165. </table>
  166. <!--#include file="foot.htm"-->
  167. </body>
  168. </html>
  169. <%
  170. set rs=nothing
  171. %>