📄 listmain.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.dongfang.po.*" %>
<%
List dispList =(List) session.getAttribute(Contants.SEARCH_BOOK_LIST_KEY);
//System.out.println("displist "+dispList);
Integer pageId = (Integer) session.getAttribute(Contants.PAGE_ID_KEY);
int iPageId = pageId.intValue();
Integer pageCount = (Integer) session.getAttribute(Contants.PAGE_COUNT_KEY);
int iPageCount = pageCount.intValue();
//System.out.println(iSortId);
Book book =null;
%>
<HTML><HEAD><TITLE>Shopping Online</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
href="images/css.css" type=text/css rel=stylesheet></HEAD>
<BODY leftMargin=0 topMargin=0 >
<!-------------------------right-------------------------------><!-------------------------right begin------------------------------------->
<TABLE style="MARGIN-BOTTOM: 6px" cellSpacing=0 cellPadding=0 width="100%"
align=center border=0>
<TBODY>
<TR bgColor=#ffffff>
<TD vAlign=top align=middle colSpan=2 height=100>
<TABLE style="MARGIN-BOTTOM: 6px" cellSpacing=0 cellPadding=0
width="100%" align=center border=0>
<TBODY>
<TR>
<TD bgColor=#ffffff colSpan=2 height=100>
<DIV align=center></DIV>
<TABLE height=5 cellSpacing=0 cellPadding=0 width="100%"
bgColor=#ffffff border=0>
<TBODY>
<TR>
<TD>
<P align=center> </P></TD></TR>
<TR>
<TD style="BORDER-BOTTOM: #cccccc 1px solid" width=478
bgColor=#f7f7f7 height=2>
<TABLE cellSpacing=0 cellPadding=0 width="100%"
border=0>
<TBODY>
<TR>
<TD width="8%"> </TD>
<TD vAlign=center height=25>搜索结果 >>
</TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD width="100%">
<TABLE cellSpacing=0 cellPadding=0 width="100%"
border=0>
<TBODY>
<%if(dispList != null ){
for(int i = 0;i < dispList.size();i++)
{
book = (Book)dispList.get(i);
%>
<TR>
<TD vAlign=top>
<DIV align=center></DIV>
<TABLE cellSpacing=0 cellPadding=0 width="99%"
align=center border=0>
<TBODY>
<TR>
<TD vAlign=top>
<TABLE cellSpacing=0 cellPadding=0 width="100%"
border=0><!----------------------one showing unit------------------------------->
<TBODY>
<TR>
<TD vAlign=top>
<TABLE cellSpacing=0 cellPadding=0 width="100%"
align=center border=0>
<TBODY>
<TR>
<TD align=left width="25%" bgColor=#ffffff
rowSpan=5><A
href="detail.do?bookId=<%=book.getId()%>"><IMG
src="<%=book.getImage()%>"
border=0></A>
<DIV align=right></DIV>
<DIV align=right></DIV>
<DIV align=right></DIV></TD>
<TD width="75%" bgColor=#ffffff
height=25> </TD></TR>
<TR>
<TD width="75%" bgColor=#ffffff height=28><A
href="detail.do?bookId=<%=book.getId()%>"><FONT
color=#006699><U><%=book.getName()%></U></FONT></A></TD></TR>
<TR>
<TD style="LINE-HEIGHT: 20px" width="75%"
bgColor=#ffffff
height=28><%=book.getDescript()%></TD></TR>
<TR>
<TD width="75%" bgColor=#ffffff
height=28>市场价格<S><%=book.getPrice()%>元</S> 本站会员价:<%=book.getSaleprice()%>元<BR><A
href="buy.do?bookId=<%=book.getId()%>">定购<IMG height=15
src="images/order.gif" width=21
align=middle border=0></A></TD></TR>
<TR>
<TD width="75%" bgColor=#ffffff
height=25> </TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%"
border=0>
<TBODY>
<TR>
<TD
height=1></TD></TR></TBODY></TABLE></TD></TR>
<%
}
} %>
<!-----------------------show unit end-----------------------------------------------></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD height=23>
第<%=pageId+1%>页/共<%=pageCount%>页
</TD>
<%
String Keyword = (String)session.getAttribute(Contants.KEYWORD_KEY);
if(Keyword!=null)
{
%>
<TD height=23>
<form action="search.do" method="post">
<input type="hidden" value="<%=Keyword%>" name="Keyword">
<input type="hidden" value="<%=pageId-1%>" name="pageId">
<input type="submit" value="上一页">
</form>
</TD>
<TD height=23>
<form action="search.do" method="post">
<input type="hidden" value="<%=Keyword%>" name="Keyword">
<input type="hidden" value="<%=pageId+1%>" name="pageId">
<input type="submit" value="下一页">
</form>
</TD>
<%
}
Integer sortId = (Integer) session.getAttribute(Contants.SORT_ID_KEY);
if(sortId!=null)
{
int iSortId =sortId.intValue();
%>
<TD height=23>
<form action="searchBySortId.do" method="post">
<input type="hidden" value="<%=iSortId%>" name="sortId">
<input type="hidden" value="<%=pageId-1%>" name="pageId">
<input type="submit" value="上一页">
</form>
</TD>
<TD height=23>
<form action="searchBySortId.do" method="post">
<input type="hidden" value="<%=iSortId%>" name="sortId">
<input type="hidden" value="<%=pageId+1%>" name="pageId">
<input type="submit" value="下一页">
</form>
</TD>
<%
}
%>
</TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><!-------------------------right end-------------------------------------><!--------------------------left end--------------------------------------------->
<table></BODY>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -