www.gusucode.com > asp+SQLServer网上书店系统设计(源代码+论文) > asp+SQLServer网上书店系统设计(源代码+论文)\网上书店asp+SQLServer\网上书店\bookpart.asp
<!--#include file="conn.asp"--> <script language=javascript> function openbag(id) { window.open("eshop1.asp?cpbm="+id,"","height=400,width=630,left=200,top=0,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no"); } function openurl(url) { window.open("url",window.close,"sample","height=430 width=630,left=200,top=0,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");} </script> <% set rs1=Server.CreateObject("ADODB.Recordset") sql="select * from book where ID='"&rs("ID")&"'" rs1.open sql,cn,3,3 rs1("look_count")=rs("look_count")+1 rs1.update rs1.close %> <html> <head> <title>网上书城</title> </head> <body bgcolor="#006699" align="center"> <% book_ID=Request("book_ID") set rs=server.createobject("adodb.recordset") cn_str="select * from book where ID='"&book_ID&"'" rs.open cn_str,cn,1,1 %> <table border="0" cellpadding="10" cellspacing="0" width="100%" height="92" bgcolor="#FFFFFF"> <tr> <td width="44%" height="22" align="center"><b> </b></td> <td width="56%" height="22" align="center"> </td> </tr> <tr> <td width="44%" height="22" align="center"><img border="0" src="<%=rs("book_pic2")%>"> <td width="56%" height="33" align="center" rowspan="2"> <font size=2> <p align="left" style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><b>[书名]</b>:<%=rs("book_name")%><p align="left" style="word-spacing: 0; margin-top: 0; margin-bottom: 0"> <p align="left" style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><b>[市场价格]</b>:<strike><%=rs("book_price1")%>元</strike> <p align="left" style="word-spacing: 0; margin-top: 0; margin-bottom: 0"> </p> <p align="left" style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><b>[会员价格]</b>:<%=rs("book_price2")%>元 立即节省:<%=rs("book_price1")-rs("book_price2")%>元 <p align="left" style="word-spacing: 0; margin-top: 0; margin-bottom: 0"> </p> <p align="left" style="word-spacing: 0; margin-top: 0; margin-bottom: 0"> <b>[作者]</b>:<%=rs("author")%></p> <p align="left" style="word-spacing: 0; margin-top: 0; margin-bottom: 0"> </p> <p align="left" style="word-spacing: 0; margin-top: 0; margin-bottom: 0"> <b>[出版社]</b>:<%=rs("publicing_company")%></p> <p align="left" style="word-spacing: 0; margin-top: 0; margin-bottom: 0"> </p> <p align="left" style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><b>[内容简介]</b>:<%=rs("book_explanation")%></p> <p align="left" style="word-spacing: 0; margin-top: 0; margin-bottom: 0"> </p> <p align="left" style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><b>[出版日期]</b>:<%=rs("publicing_date")%></p></font></td> </tr> <tr> <font size=2> <td width="44%" height="58" align="center" valign="top"><br><font size=2> [本图例仅供参考] <p>浏览次数:<%=rs("Look_Count")%> <p><a href="javascript:openbag(<%=rs("ID")%>)"><img border="0" src="images/mybuy.gif"></a></font></td> </tr> <tr> <td width="100%" height="70" align="center" valign="top" colspan="2"> <FORM language=javascript name=FORM1 action=add_content.asp method=post><input type=hidden name=id value="<%=rs("ID")%>"> <input type=hidden name=book_name value="<%=rs("book_name")%>"> <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><font size=2>发表评论: <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"> <textarea rows="4" name="content" cols="40"></textarea> <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"> <INPUT class=main type=submit value='发表' name=Submit2> </form> <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0">如果你是第一次购物请看<a href="help.asp" target="_blank">《购书帮助》</a></td> </font> </tr> </table> </td> </tr> </table> </body> </html> <% rs.close cn.close %>