📄 book.asp
字号:
<!--#include file="connection.asp"-->
<!--#include file="char.asp"-->
<!--#include file="webconfig.asp"-->
<%dim bookid
bookid=replace(request.QueryString("id"),"'","")%>
<html>
<head>
<title><%=webname%>--图书详细资料</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/default.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜欢本站,别忘了把本站介绍给您的好友哦!:)';return true">
<!--#include file="webtop.asp"-->
<%dim rs2
set rs2=server.CreateObject("adodb.recordset")
rs2.open "select * from shop_books where bookid="&bookid,conn,1,3
rs2("liulancount")=rs2("liulancount")+1
rs2.update%>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="616" valign="top"><table width="100%" height="243" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="237" valign="bottom" background="images/bookback.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12%" height="167"> </td>
<td width="27%" align="center" valign="top"> <table border="1" cellpadding="0" cellspacing="5" bgcolor="#CCCCCC">
<tr>
<td width="19" bgcolor="#FFFFFF">
<%if trim(rs2("bookpic"))<>"" then
response.write "<a href="&trim(rs2("bookpic"))&" target=_blank><img src="&trim(rs2("bookpic"))&" width=65 height=96 border=0 alt=点击查看图片实际尺寸!></a>"
else
response.Write "<img src=images/emptybook.gif width=65 height=96 alt=此图书暂时没有图片!>"
end if%></td>
</tr>
</table>
<br>
<%if trim(rs2("bookpic"))<>"" then%>
<a href=<%=trim(rs2("bookpic"))%> target=_blank>查看图片实际尺寸</a>
<%end if%> </td>
<td width="37%"> <table width="224" border="0" cellspacing="1" cellpadding="0">
<tr>
<td><font color=#ff6600><%=trim(rs2("bookname"))%></font></td>
</tr>
<tr>
<td>作 者:<%=trim(rs2("bookzz"))%></td>
</tr>
<tr>
<td>出版社:<%=trim(rs2("bookchuban"))%></td>
</tr>
<tr>
<td>日 期:<%=trim(rs2("bookdate"))%></td>
</tr>
<tr>
<td>开 本:<%=trim(rs2("kaiben"))%> 版 次:<%=rs2("banci")%>次</td>
</tr>
<tr>
<td>页 数:<%=rs2("yeshu")%>页</td>
</tr>
<tr>
<td>装 帧:<%=trim(rs2("zhuang"))%></td>
</tr>
<tr>
<td height="18">ISBN :<%=trim(rs2("isbn"))%></td>
</tr>
</table> </td>
<td width="24%"><table width="90%" height="155" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>市场价:<br>
<del><%=formatnumber(rs2("shichangjia"),2)%>元</del></td>
</tr>
<tr>
<td><%if request.cookies("bookshop")("grtt")=1 then
response.write "团体价:"
else
response.write "会员价:"
end if%><br>
<font color=#FF6600>
<%
if request.cookies("bookshop")("grtt")=1 then
response.write formatnumber(rs2("tuantijia"),2)
else
response.write formatnumber(rs2("huiyuanjia"),2)
end if%>
元</font></td>
</tr>
<tr>
<td>折 扣:<br>
<font color=#ff6600><%if request.cookies("bookshop")("grtt")=1 then
response.write round(rs2("tuantidazhe")*10,1)&" 折"
else
response.write round(rs2("dazhe")*10,1)&" 折"
end if%></font>
</td>
</tr>
<tr>
<td>节 省:<br>
<font color=#ff6600><%if request.cookies("bookshop")("grtt")=1 then
response.write formatnumber(round(rs2("shichangjia")-rs2("tuantijia"),2),2)
else
response.write formatnumber(round(rs2("shichangjia")-rs2("huiyuanjia"),2),2)
end if%>
元</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="60%" border="0" align="right" cellpadding="1" cellspacing="2">
<tr>
<td width="39%"><a href=# <%if int(rs2("queshu"))=0 then
response.write " onClick=""javascript:window.open('shopping.asp?id="&rs2("bookid")&"','','width=632,height=388,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;"" "
else
response.write "onClick=javascript:alert('《"&trim(rs2("bookname"))&"》暂时没有库存,请您继续关注!')"
end if%>><img src="images/goumai.jpg" width="114" height="24" border="0" <%if int(rs2("queshu"))=1 then response.write "alt=没有库存"%> ></a></td>
<td width="61%"><a href=# <%if int(rs2("queshu"))=0 then
response.write " onClick=""javascript:window.open('shoucang.asp?id="&bookid&"&action=add','','width=632,height=388,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;"" "
else
response.write "onClick=javascript:alert('《"&trim(rs2("bookname"))&"》暂时没有库存,请您继续关注!')"
end if%> ><img src="images/shoucang.jpg" width="114" height="24" border="0" <%if int(rs2("queshu"))=1 then response.write "alt=没有库存"%> ></a></td>
</tr>
</table></td>
</tr>
</table>
<br>
<table width="95%" border="0" align="center" cellpadding="2" cellspacing="1">
<tr>
<td colspan="2" >
<%if rs2("bookcontent")<>"" then%>
<img src=images/brief.gif width=590 height=21 alt=图书简介> <table width=19 height=4 border=0 cellpadding=0 cellspacing=0>
<tr>
<td height=4></td>
</tr>
</table>
<%=ubbcode(trim(rs2("bookcontent")))%>
<table width=19 height=6 border=0 cellpadding=0 cellspacing=0>
<tr>
<td height=6></td>
</tr>
</table>
<%end if
if rs2("bookmulu")<>"" then %>
<img src=images/list.gif width=590 height=21 alt=图书目录> <table width=19 height=4 border=0 cellpadding=0 cellspacing=0>
<tr>
<td height=4></td>
</tr>
</table>
<%=showdoc(trim(rs2("bookmulu")))%> <table width=19 height=6 border=0 cellpadding=0 cellspacing=0>
<tr>
<td height=6></td>
</tr>
</table>
<%end if
%>
</td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<%'查看作者更多作品
response.write "<tr><td width=40% ><img src=images/xing.gif width=590 height=21></td>"
if trim(rs2("bookzz"))<>"" or trim(rs2("bookchuban"))<>"" then
response.write "<form name=searchbookzz method=post action=research.asp>"
response.write "<tr><td width=60% > <div align=right>"
response.write "查看更多关于"
if trim(rs2("bookzz"))<>"" then
response.write "<a href='research.asp?action=2&searchkey="&trim(rs2("bookzz"))&"&datestart=1990-1-1&dateend=2008-12-31' target='_blank'><font color=red>"&trim(rs2("bookzz"))&"</font></a>"
end if
if trim(rs2("bookchuban"))<>"" then
if trim(rs2("bookzz"))<>"" then response.write "或"
response.write "<a href='research.asp?action=3&searchkey="&trim(rs2("bookchuban"))&"&datestart=1990-1-1&dateend=2008-12-31' target='_blank'><font color=red>"&trim(rs2("bookchuban"))&"</font></a>"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -