⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 new_goods.jsp

📁 《JSP通用模块及典型系统开发实例导航》源代码
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=GB2312"
	pageEncoding="GB2312"%>
<%@ page import="java.util.Collection,java.util.Iterator"%>
<%@ page import="com.wxpn.tutorial.ec.bean.ECBook"%>
<%@ include file="../include/header.jsp"%>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=760 align="center">
	<TBODY>
		<tr>
			<td align="left" height=25><%if (session.getAttribute("username") != null) {
				out.println(session.getAttribute("username"));
			}%> 当前位置:<a href="../index.jsp">首页</a> -&gt; 新货上架</td>
			<%@ include file="../include/date.jsp"%>
		</tr>
		<TR bgColor=#3399ff>
			<TD height=1 colspan="2"><IMG height=1 src="images/spacer.gif"
				width=16></TD>
		</TR>
		<tr>
			<td height=10 colspan="2"><IMG height=1 src="images/spacer.gif"
				width=16></td>
		</tr>
	</TBODY>
</TABLE>

<table align="center" border="0" width="760" cellspacing="0"
	cellpadding="0" height="355">
	<tr>
		<td width="150" height="355" valign="top"><%@ include
			file="../include/top_banner.jsp"%></td>
		<td width="10" height="100%"></td>
		<td width="1" height="100%" bgcolor="#3399ff"></td>
		<td width="10" height="100%"></td>
		<td width="589" height="331" valign="top" background="images/bg1.gif">
		<table border="0" width="100%" cellspacing="0" cellpadding="0">
			<tr>
				<td colspan="2">最新10本新书:</td>
				<td colspan="2"><a href="/ECommerce/BookListServlet">查看其他书籍</a></td>
			</tr>
			<tr>
				<td width="40%" height="20" bgcolor="#3399ff">&nbsp;<font
					color="#ffffff">标题</font></td>
				<td width="15%" height="20" bgcolor="#3399ff">&nbsp;<font
					color="#ffffff">作者</font></td>
				<td width="15%" height="20" bgcolor="#3399ff">&nbsp;<font
					color="#ffffff">类别</font></td>
				<td width="15%" height="20" bgcolor="#3399ff">&nbsp;<font
					color="#ffffff">价格</font></td>
				<td width="15%" height="20" bgcolor="#3399ff">&nbsp;<font
					color="#ffffff">库存</font></td>
			</tr>
			<%if (request.getAttribute("c") == null) {

			%>
			<tr>
				<td width="" 75%"" colspan=5 bgcolor="#FCFCFC" align=center>还没有任何书籍。</td>
			</tr>
			<%} else {
				Collection c = (Collection) request.getAttribute("c");
				if (c == null) {

				%>
			<tr>
				<td width="" colspan=5 bgcolor="#FCFCFC" align=center>还没有任何书籍。</td>
			</tr>
			<%} else {
					Iterator iterator = c.iterator();
					while (iterator.hasNext()) {
						ECBook book = (ECBook) iterator.next();

						%>
			<tr>
				<td width="40%" bgcolor="#FCFCFC"><a
					href="ShowBookServlet?id=<%=book.getId()%>"><%=book.getName()%></a></td>
				<td width="15%" bgcolor="#FCFCFC"><%=book.getAuthor()%></td>
				<td width="15%" bgcolor="#FCFCFC"><%=book.getStrCategory()%></td>
				<td width="15%" bgcolor="#FCFCFC"><%=book.getPrice()%></td>
				<td width="15%" bgcolor="#FCFCFC"><%=book.getStock()%></td>
			</tr>
			<%}%>

			<%}
			}

		%>

		</table>


		</td>
	</tr>
</table>
<%@ include file="../include/footer.jsp"%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -