<%@ page language="java" contentType="text/html; charset=GB2312"
	pageEncoding="GB2312"%>
<%@ page import="com.wxpn.tutorial.ec.bean.ECBook"%>
<%@ include file="../include/header.jsp"%>
<%if (request.getAttribute("book") == null) {
				out.println("不存在该书籍！");
			} else {
				ECBook book = (ECBook) request.getAttribute("book");
%>
<html>
<head>
<title>[详细资料]</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body bgcolor="#FFFFFF">
<table width="80%" border="1" cellspacing="0" align="center">
	<tr bgcolor="#CCCCFF">
		<td width="21%" colspan=2>
		<div align="center"><b>详细资料</b></div>
		</td>
	</tr>

	<tr>
		<td bgcolor="#FFCCCC" width="21%">
		<div align="right">书名:</div>
		</td>
		<td bgcolor="#33FFCC" width="79%"><%=book.getName()%></td>
	</tr>
	<tr>
		<td bgcolor="#FFCCCC" width="21%">
		<div align="right">作者:</div>
		</td>
		<td bgcolor="#33FFCC" width="79%"><%=book.getAuthor()%></td>
	</tr>
	<tr>
		<td bgcolor="#FFCCCC" width="21%">
		<div align="right">语言:</div>
		</td>
		<td bgcolor="#33FFCC" width="79%"><%=book.getLanguage()%></td>
	</tr>
	<tr>
		<td bgcolor="#FFCCCC" width="30%">
		<div align="right">内容简介:</div>
		</td>
		<td bgcolor="#33FFCC" width="79%"><%=book.getContent()%></td>
	</tr>
	<tr>
		<td bgcolor="#FFCCCC" width="21%">
		<div align="right">所属的类别:</div>
		</td>
		<td bgcolor="#33FFCC" width="79%"><%=book.getStrCategory()%></td>
	</tr>
	<tr>
		<td bgcolor="#FFCCCC" width="21%">
		<div align="right">推荐程度:</div>
		</td>
		<td bgcolor="#33FFCC" width="79%"><%=book.getStrCommend()%></td>
	</tr>
	<tr>
		<td bgcolor="#FFCCCC" width="21%">
		<div align="right">出版社名称:</div>
		</td>
		<td bgcolor="#33FFCC" width="79%"><%=book.getPublish_name()%></td>
	</tr>
	<tr>
		<td bgcolor="#FFCCCC" width="21%">
		<div align="right">出版社地址:</div>
		</td>
		<td bgcolor="#33FFCC" width="79%"><%=book.getPublish_address()%></td>
	</tr>
	<tr>
		<td bgcolor="#FFCCCC" width="21%">
		<div align="right">是否配有光盘:</div>
		</td>
		<td bgcolor="#33FFCC" width="79%"><%=book.getStrCdrom()%></td>
	</tr>
	<tr>
		<td bgcolor="#FFCCCC" width="21%">
		<div align="right">价格:</div>
		</td>
		<td bgcolor="#33FFCC" width="79%"><%=book.getPrice()%></td>
	</tr>
	<tr>
		<td bgcolor="#FFCCCC" width="21%">
		<div align="right">上架时间:</div>
		</td>
		<td bgcolor="#33FFCC" width="79%"><%=book.getStr_on_sale_time()%></td>
	</tr>
	<tr>
		<td bgcolor="#FFCCCC" width="21%">
		<div align="right">是否是特价书:</div>
		</td>
		<td bgcolor="#33FFCC" width="79%"><%=book.getStrDiscount()%></td>
	</tr>
	<tr>
		<td bgcolor="#FFCCCC" width="21%">
		<div align="right">库存量:</div>
		</td>
		<td bgcolor="#33FFCC" width="79%"><%=book.getStock()%>本</td>
	</tr>
	<tr bgcolor="#CCCCFF">
		<td colspan=2>&nbsp;</td>
	</tr>
	<tr bgcolor="#CCCCFF">
		<td colspan=2 align="center"><a
			href="/ECommerce/ShopCartServlet?bookid=<%=book.getId()%>&action=addcart">放入购物车</a>
		| <a href="javascript:close();">关闭窗口</a></td>
	</tr>
</table>
</body>
</html>
<%}%>
