<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<%dim bookid
bookid=request.QueryString("id")%>
<html>
<head>
<title><%=webname%>--商品详细资料</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/css.css" rel="stylesheet" type="text/css">
<style>
td{font-size:9pt;line-height:120%;color:#353535} 
body{font-size:9pt;line-height:120%} 

a:link          { color: #000000; text-decoration: none }
a:visited       { color: #000000; text-decoration: none }
a:active        { color: #000000; text-decoration: none }
a:hover         { color: #336699; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜欢本站,别忘了把本站介绍给您的好友哦！：）';return true">
<!--#include file="webtop.asp"-->
<%
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="770" border="0" cellspacing="0" cellpadding="0" align="center" bordercolor="#CCCCCC">
  <tr> 
    <td> <br>
      <table width="98%" border="1" cellspacing="0" cellpadding="1" bordercolor="#336699" align="center" bgcolor="#C5D8EB">
        <tr> 
          <td> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="9" rowspan="2"></td>
                <td class="12v"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
                    <tr> 
                      <td class="12v" > 
                        <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="0" width="100%">
                          <tr> 
                            <td> 
                              <table border="0" align="center" cellpadding="0" cellspacing="0" height="51" bgcolor="#C5D8EB" width="100%">
                                <tr> 
                                  <td width="447" height="97"> 
                                    <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" height="51">
                                      <tr> 
                                        <td height="5" colspan="3"></td>
                                      </tr>
                                      <tr> 
                                        <td width="16%" height="1">&nbsp;</td>
                                        <td width="49%" height="1">&nbsp;</td>
                                        <td rowspan="2" height="14"> 
                                          <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                            <tr> 
                                              <td height="53"> 
                                                <table height="48" border="0" align="center" cellpadding="3" cellspacing="1" width="110">
                                                  <tr> 
                                                    <td>&nbsp;</td>
                                                  </tr>
                                                  <tr> 
                                                    <td> 
                                                      <div align="center"><%=formatnumber(rs2("shichangjia"),2)%>点</div>
                                                    </td>
                                                  </tr>
                                                </table>
                                              </td>
                                            </tr>
                                            <tr> 
                                              <td height="53"> 
                                                <table height="48" border="0" align="center" cellpadding="3" cellspacing="1" width="110">
                                                  <tr> 
                                                    <td><div align="center">折扣</div></td>
                                                  </tr>
                                                  <tr> 
                                                    <td> 
                                                      <div align="center"> 
                                                        <%response.write rs2("dazhe")*100&".00%"%>
                                                      </div>
                                                    </td>
                                                  </tr>
                                                </table>
                                              </td>
                                            </tr>
                                          </table>
                                        </td>
                                      </tr>
                                      <tr> 
                                        <td height="94"> 
                                          <table cellspacing=0 cellpadding=0 width=140 border=0>
                                            <tbody> 
                                            <tr> 
                                              <td colspan=3 height=14>&nbsp;</td>
                                            </tr>
                                            <tr> 
                                              <td width=27>&nbsp;</td>
                                              <td width=65 height="69" align=middle> 
                                                <%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>
                                              <!--图书封面end-->
                                              <td width=28>&nbsp;</td>
                                            </tr>
                                            <tr> 
                                              <td colspan=3>&nbsp;</td>
                                            </tr>
                                            <tr align=right> 
                                              <td colspan=3>&nbsp;</td>
                                            </tr>
                                            </tbody> 
                                          </table>
                                        </td>
                                        <td height="94"> 
                                          <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
                                            <tr> 
                                              <td><%=trim(rs2("mch"))%><%=trim(rs2("bookname"))%></td>
                                            </tr>
                                            <tr> 
                                              <td><%=trim(rs2("qch"))%><%=trim(rs2("bookzz"))%></td>
                                            </tr>
                                            <tr> 
                                              <td><%=trim(rs2("jj"))%><%=trim(rs2("bookchuban"))%></td>
                                            </tr>
                                            <tr> 
                                              <td>&nbsp;</td>
                                            </tr>
                                            <tr> 
                                              <td>&nbsp;</td>
                                            </tr>
                                            <tr> 
                                              <td>&nbsp;</td>
                                            </tr>
                                            
                                          </table>
                                        </td>
                                      </tr>
                                    </table>
                                  </td>
                                  <td height="97"> 
                                    <table width="100" border="0" cellpadding="0" cellspacing="0" align="center">
                                      <tr> 
                                        <td height="53"> 
                                          <table width="110" height="48" border="0" align="center" cellpadding="3" cellspacing="1">
                                            <tr> 
                                              <td><div align="center">会员价</div></td>
                                            </tr>
                                            <tr> 
                                              <td> 
                                                <div align="center"><font color=#FF3300><%=formatnumber(rs2("huiyuanjia"),2)%>点</font></div>
                                              </td>
                                            </tr>
                                          </table>
                                        </td>
                                      </tr>
                                      <tr> 
                                        <td height="53"> 
                                          <table width="110" height="48" border="0" align="center" cellpadding="3" cellspacing="1">
                                            <tr> 
                                              <td><div align="center">节省</div></td>
                                            </tr>
                                            <tr> 
                                              <td> 
                                                <div align="center"><font color="#FF0000"><%=formatnumber(round(rs2("shichangjia")-rs2("huiyuanjia"),2),2)%>点</font></div>
                                              </td>
                                            </tr>
                                          </table>
                                        </td>
                                      </tr>
                                    </table>
                                  </td>
                                  <td width="174" height="97"> 
                                    <table width="100%" border="0" cellspacing="1" cellpadding="3">
                                      <tr> 
                                        <td> 
                                          <!--#include file="userinfo.asp"-->
                                        </td>
                                      </tr>
                                      <tr> 
                                        <td height="19"> 
                                          <div align="center"> 
                                            <%response.write "<a href=# 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;""><img src=images/cart.gif width=144 height=20 border=0></a>"%>
                                          </div>
                                        </td>
                                      </tr>
                                      <tr> 
                                        <td height="19"> 
                                          <div align="center"> 
                                            <%response.write "<a href=# onClick=""javascript:window.open('shoucang.asp?id="&rs2("bookid")&"&action=add','','width=632,height=388,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;""><img src=images/favorite.gif width=144 height=20 border=0></a>"%>
                                          </div>
                                        </td>
                                      </tr>
                                    </table>
                                    <center>
                                      <a href=<%=trim(rs2("bookpic"))%> target=_blank>查看商品实际尺寸</a> 
                                    </center>
                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
                <td class="12v" width="9" rowspan="2"></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <br>
      <table width="98%" border="1" cellspacing="0" cellpadding="1" bordercolor="#336699" align="center">
        <tr> 
          <td> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="9" rowspan="2"></td>
                <td class="12v"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
                    <tr> 
                      <td class="12v" > 
                        <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="0" width="100%">
                          <tr> 
                            <td> 
                              <table width="100%" border="0" cellpadding="2" cellspacing="1">
                                <tr> 
                                  <td colspan="2" > <%=trim(rs2("jj"))%> 
                                    <%if rs2("bookcontent")<>"" then
		  response.write "<table width=19 height=4 border=0 cellpadding=0 cellspacing=0><tr><td height=4></td></tr></table>"&trim(rs2("bookcontent")&"<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=70% >会员评级</td>"
		if rs2("bookzz")<>"" then
		response.write "<form name=searchbookzz method=post action=research.asp>"
		response.write "<td width=30% ><div align=right><input type=hidden name=searchkey value="&trim(rs2("bookzz"))&"<input type=hidden name=selectaction value=2>"
		response.write "<a href=research.asp?action=2&searchkey="&trim(rs2("bookzz"))&" target=_blank>查看更多关于<font color=red>"&trim(rs2("bookzz"))&"</font>商品</a></div></td></form>"
		end if
		response.write "</tr>"
		'用户评级
		response.write "<tr><td colspan=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
		call pingji()
		response.write "&nbsp;&nbsp;<a href=# onClick=""javascript:window.open('pingji.asp?id="&bookid&"','','width=295,height=235,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=no');return false;"">发表您对本商品的评级</a></td></tr>"
		rs2.close
		set rs2=nothing
		
		response.write "<tr><td>会员评论</td>"
		response.write "<td><div align=right><a href=# onClick=""javascript:window.open('pinglun.asp?id="&bookid&"','','width=295,height=185,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=no');return false;"" ><img src=images/my_review.gif width=93 height=20 border=0 alt=用户评论></a></div></td></tr>"
		'//用户评论
		dim rs1 
		set rs1=server.CreateObject("adodb.recordset")
		rs1.open "select * from shop_pinglun where bookid="&bookid&" and shenhe=1 ",conn,1,1
		if rs1.eof and rs1.bof then
		response.write"<tr><td colspan=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;如果您用过本商品，或对本商品有所了解，欢迎您发表自己的评论。您的评论将被网络上成千上万的用户所共享，我们将对您的慷慨深表感谢。<br>"
		response.write "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;您的评论在提交后将经过我们的审核，也许您需要等待一些时间才可以看到。谢谢合作。</td></tr>"
		else
		do while not rs1.eof 
				%>
                                <tr> 
                                  <td colspan="2">[<b><%=rs1("pinglunname")%></b>@<%=rs1("pinglundate")%>]<br>
                                    <%=rs1("pingluncontent")%></td>
                                </tr>
                                <%rs1.movenext
		loop
		rs1.close
		set rs1=nothing
		end if%>
                                <tr> 
                                  <td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>本站发表用户评论，并不代表我们赞同或者支持用户的观点。我们的立场仅限于传播更多用户感兴趣的信息。</b></td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
                <td class="12v" width="9" rowspan="2"></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <br>
    </td>
  </tr>
</table>
<!--#include file="service.asp"-->
<!--#include file="copyright.asp"-->
</body>
</html>
<%sub pingji()
dim xx
if rs2("pingjizong")>0 and rs2("pingji")>0 then
xx=rs2("pingjizong")\rs2("pingji")
else
xx=0
end if
response.write "<img src=images/pingji/"&xx&".gif alt=评论星级>"
end sub
%>