📄 search-resutl.jsp
字号:
<DIV>
<UL class=topic1>
<LI>
<A
href="http://www.bookschina.com/books/philosophy/default.asp">哲学社会科学</A>
</LI>
</UL>
<UL>
<LI>
<A href="http://www.bookschina.com/kinder/010500/">军事</A> |
<A href="http://www.bookschina.com/kinder/010200/">哲学</A>
<LI>
<A href="http://www.bookschina.com/kinder/010100/">经典著作</A>
<LI>
<A href="http://www.bookschina.com/kinder/010300/">社会科学</A>
<LI>
<A href="http://www.bookschina.com/kinder/010400/">政治法律</A>
<LI>
<A href="http://www.bookschina.com/kinder/010700/">历史地理</A>
<LI>
<A href="http://www.bookschina.com/kinder/010800/">综合性图书</A>
<LI>
<A href="http://www.bookschina.com/kinder/010600/">经济、财经管理</A>
</LI>
</UL>
<UL class=topic1>
<LI>
<A href="http://www.bookschina.com/books/culture/default.asp">文化教育</A>
</LI>
</UL>
<UL>
<LI>
<A href="http://www.bookschina.com/kinder/020100/">文教、科学、体育</A>
<LI>
<A href="http://www.bookschina.com/kinder/020200/">小学文教</A>
<LI>
<A href="http://www.bookschina.com/kinder/020300/">初中文教</A>
<LI>
<A href="http://www.bookschina.com/kinder/020400/">高中文教</A>
<LI>
<A href="http://www.bookschina.com/kinder/020500/">语言文字</A>
</LI>
</UL>
<UL class=topic1>
<LI>
<A
href="http://www.bookschina.com/books/literature_art/default.asp">文学艺术</A>
</LI>
</UL>
<UL>
<LI>
<A href="http://www.bookschina.com/kinder/030100/">中国文学</A>
<LI>
<A href="http://www.bookschina.com/kinder/030200/">外国文学</A>
<LI>
<A href="http://www.bookschina.com/kinder/030300/">音乐</A>
<LI>
<A href="http://www.bookschina.com/kinder/030400/">美术雕塑</A>
<LI>
<A href="http://www.bookschina.com/kinder/030600/">舞蹈戏剧</A>
<LI>
<A href="http://www.bookschina.com/kinder/030700/">书法篆刻</A>
<LI>
<A href="http://www.bookschina.com/kinder/030800/">文化艺术</A>
<LI>
<A href="http://www.bookschina.com/kinder/030500/">摄影、影视</A>
</LI>
</UL>
<UL class=topic1>
<LI>
<A href="http://www.bookschina.com/books/science/default.asp">自然科学技术</A>
</LI>
</UL>
<UL>
<LI>
<A href="http://www.bookschina.com/kinder/040100/">自然科学总论</A>
<LI>
<A href="http://www.bookschina.com/kinder/041200/">安全科学</A>
<LI>
<A href="http://www.bookschina.com/kinder/040200/">数理化学天文生物</A>
<LI>
<A href="http://www.bookschina.com/kinder/040300/">医药卫生</A>
<LI>
<A href="http://www.bookschina.com/kinder/040400/">农业科学</A>
<LI>
<A href="http://www.bookschina.com/kinder/040500/">一般工业技术</A>
<LI>
<A href="http://www.bookschina.com/kinder/040600/">计算机技术</A>
<LI>
<A href="http://www.bookschina.com/kinder/040800/">生活休闲</A>
<LI>
<A href="http://www.bookschina.com/kinder/040700/">建筑</A> |
<A href="http://www.bookschina.com/kind/040905/">性爱</A>
</LI>
</UL>
<UL class=topic1>
<LI>
<A href="http://www.bookschina.com/books/children/default.asp">少年儿童读物</A>
</LI>
</UL>
<UL class=topic1>
<LI>
<A href="http://www.bookschina.com/books/college/default.asp">大中专教材</A>
</LI>
</UL>
<UL class=topic1>
<LI>
<A href="http://www.bookschina.com/books/school/default.asp">中小学课本</A>
</LI>
</UL>
<UL>
<LI>
<A href="http://www.bookschina.com/kinder/070100/">小学课本</A>
<LI>
<A href="http://www.bookschina.com/kinder/070200/">初中课本</A>
<LI>
<A href="http://www.bookschina.com/kinder/070300/">高中课本</A>
</LI>
</UL>
<UL class=topic1>
<LI>
<A
href="http://www.bookschina.com/books/refinement/default.asp">典藏精品</A>
</LI>
</UL>
<UL>
<LI>
<A href="http://www.bookschina.com/kind/800101/">文学</A> |
<A href="http://www.bookschina.com/kind/800102/">艺术</A>
<LI>
<A href="http://www.bookschina.com/kind/800103/">经济</A> |
<A href="http://www.bookschina.com/kind/800104/">管理</A>
<LI>
<A href="http://www.bookschina.com/kind/800105/">历史</A> |
<A href="http://www.bookschina.com/kind/800106/">古籍</A>
<LI>
<A href="http://www.bookschina.com/kind/800107/">少儿</A> |
<A href="http://www.bookschina.com/kind/800108/">教育</A>
<LI>
<A href="http://www.bookschina.com/kind/800109/">法律</A> |
<A href="http://www.bookschina.com/kind/800110/">工具</A>
<LI>
<A href="http://www.bookschina.com/kind/800111/">传记</A> |
<A href="http://www.bookschina.com/kind/800113/">生活</A>
<LI>
<A href="http://www.bookschina.com/kind/800114/">科技</A> |
<A href="http://www.bookschina.com/kind/800117/">医学</A>
<LI>
<A href="http://www.bookschina.com/kind/800116/">综合</A>
<LI>
<A href="http://www.bookschina.com/kind/800115/">政治军事</A>
</LI>
</UL>
<UL class=topic1>
<LI>
<A href="http://www.bookschina.com/books/kind/sort.asp">查看全部分类</A>
</LI>
</UL>
</DIV>
<!--分类结束-->
</div>
<div
style="position: absolute; top: 1px; left: 135px; width: 690px; height: 160px;; border-top: 2px solid green; border-bottom: 2px solid green; border-left: 2px solid green; border-right: 2px solid green;">
<div style="float:CENTER;">
<A href="http://www.bookschina.com/" target=_blank><IMG
alt=欢迎光临中国图书网 src="temp.files/guangao.jpg" border=0>
</A>
</div>
<!-- 登录模块开始-->
</div>
<div
style="position: absolute; top: 1px; left: 830px; width: 170px; height: 160px;; border-top: 2px solid green; border-bottom: 2px solid green; border-left: 2px solid green; border-right: 2px solid green;">
<%if (session.getAttribute("username") == null) { %>
<DIV id = "display">
<div id = "noting"><br>欢迎您从这里登录!</div><br>
<form>
<div>用户名:<input type = text id = "name" size = 15></div>
<div id = "ps">密 码:<input type = password id = "pswd" size = 15></div>
<div>
<input type="button" value="登录" onclick="sayHello()" />
<input type = reset name = "reset" value = "重置" ></div>
<br>
<div>
<A href=""
target=_blank>新用户注册</A>
<A href="">
<FONT color=#ff6600>找回密码</FONT></A>
</div>
</form>
</DIV>
<%} else {%>
<DIV id = "display">
<div> </div>
<div><FONT color=blue size=3><%= session.getAttribute("username") %> ,您好!</FONT></div>
<div><br><FONT color=green>三方图书网 </FONT>欢迎您的光临!</div><div><br>谢谢您对我们的支持!</div>
<br>
<div><input type='button' value='注销登录' onclick='logout()'/></div><br>
<div><A href='http://www.bookschina.com/reguser/default.asp' target=_blank>查看我的帐户</A></div>
</DIV>
<%} %>
</div>
<!-- 登录模块结束 -->
<div
style="position: absolute; top: 171px; left: 135px; width: 865px; border-top: 2px solid green; border-bottom: 2px solid green; border-left: 2px solid green; border-right: 2px solid green;margin-bottom:50px;">
<div id = "main">
<DIV class=br> </DIV>
<div style="float: center;">
<font size="2">总<%=pager.getTotalRecord()%>条记录|总<%=pager.getTotalPage()%>页|当前<%=pager.getCurrentPage() + 1%>页|每页<%=pager.getPageSize()%>条|
<%
//如果已经到了首页就去掉前一页的链接
if (pager.getCurrentRecord() - pager.getPageSize() < 0 )
out.println("首页|");
else
//上一页就是把当前记录位置减去一页显示记录的条数
out.print("<a href='search-resutl.jsp?Str_Search=" + request.getParameter("Str_Search") + "&book=" + request.getParameter("book") + "¤tRecord="
+ (pager.getCurrentRecord() - pager.getPageSize())
+ "&pageSize=" + pager.getPageSize() + "'>上一页</a>|");
//如果到了尾页就去掉下一页的链接
if (pager.getCurrentRecord() + pager.getPageSize() > pager.getTotalRecord()
|| pager.getCurrentRecord() + pager.getPageSize() == pager.getTotalRecord())
out.println("尾页");
else
//下一页就是把当前记录位置加上一页显示记录的条数
out.print("<a href='search-resutl.jsp?Str_Search=" + request.getParameter("Str_Search") + "&book=" + request.getParameter("book") + "¤tRecord="
+ (pager.getCurrentRecord() + pager.getPageSize())
+ "&pageSize=" + pager.getPageSize() + "'>下一页</a>|");
%> </font>
</div>
<DIV class=week>
<DIV class=item-list>
<%
if (subResult.isEmpty() == false) {
for (int i = 0; i < subResult.size(); i++) {
Goods good = subResult.get(i);
out.print("<DIV class=itema>");
out.print("<DIV class=bookshop>");
out.print("<A href='" + "detailinform.jsp?goodID=" + good.getBookid() + "' target=_blank>"
+ good.getSort() + "</A></DIV>");
out.print("<DIV style='width:195px; height:150px;'> <A href='" + "detailinform.jsp?goodID=" + good.getBookid()
+ "' target=_blank><IMG src='" + good.getImageurl()
+ "'></A></DIV>");
out.print("<DIV style='width:195px; height:20px;overflow:auto;'> <A href='" + "detailinform.jsp?goodID=" + good.getBookid()
+ "' target=_blank><STRONG>" + good.getBookname()
+ "</STRONG></A></DIV><DIV style='width:195px; height:23px;'><STRONG> ¥"
+ good.getPrice() + "</STRONG></DIV>");
out.print("<UL><DIV style='width:195px; height:23px;overflow:auto;COLOR: #f37114;'>"
+ good.getAuthor() + "</DIV>");
out.print("<DIV style='width:195px; height:23px;overflow:auto;COLOR: #f37114;'>"
+ good.getPublish() + "</DIV>");
out.print("<DIV style='width:195px; height:23px;overflow:auto;COLOR: #f37114;'>" + good.getSort()
+ "</DIV>");
out.print("</UL></DIV>");
}
}
%>
</DIV>
</DIV>
<DIV class=br></DIV>
<div style="float: center;">
<font size="2">总<%=pager.getTotalRecord()%>条记录|总<%=pager.getTotalPage()%>页|当前<%=pager.getCurrentPage() + 1%>页|每页<%=pager.getPageSize()%>条|
<%
//如果已经到了首页就去掉前一页的链接
if (pager.getCurrentRecord() - pager.getPageSize() < 0)
out.println("首页|");
else
//上一页就是把当前记录位置减去一页显示记录的条数
out.print("<a href='search-resutl.jsp?Str_Search=" + request.getParameter("Str_Search") + "&book=" + request.getParameter("book") + "¤tRecord="
+ (pager.getCurrentRecord() - pager.getPageSize())
+ "&pageSize=" + pager.getPageSize() + "'>上一页</a>|");
//如果到了尾页就去掉下一页的链接
if (pager.getCurrentRecord() + pager.getPageSize() > pager.getTotalRecord()
|| pager.getCurrentRecord() + pager.getPageSize() == pager.getTotalRecord())
out.println("尾页");
else
//下一页就是把当前记录位置加上一页显示记录的条数
out.print("<a href='search-resutl.jsp?Str_Search=" + request.getParameter("Str_Search") + "&book=" + request.getParameter("book") + "¤tRecord="
+ (pager.getCurrentRecord() + pager.getPageSize())
+ "&pageSize=" + pager.getPageSize() + "'>下一页</a>|");
%> </font>
</div>
<DIV class=br> </DIV>
</div>
</div>
<!---main end--->
<DIV class=br> </DIV>
<!---bottom start--->
<div>
<div
style="position: absolute; top: 1111px; left: 0px; height: 200px; width: 1000px; border-top: 2px solid blue; border-bottom: 2px solid blue; border-left: 2px solid blue; border-right: 2px solid blue;margin-top:50px;">
<DIV class=booksbot-text>
<UL>
<LI>
客服电话:********** (工作时间:****************)
<A href="http://www.bookschina.com/sms/sms.asp?action=inbox"
target=_blank><FONT color=#ff0000>站内短信</FONT>
</A>
<LI style="PADDING-LEFT: 95px">
010-82389225 (工作时间:********;*******)
<LI>
传真:******** 客户服务E-mail
<A href="mailto:bookschina804@vip.sina.com"></A>
<LI>
<A href="http://www.miibeian.gov.cn/" target=_blank>经营许可证编号:*********</A>
<A href="http://www.bookschina.com/include/type2.asp"
target=_blank>***监发******</A>
<LI>
<A href="http://www.ectrustprc.org.cn/seal/splash/1000006.htm"
target=_blank><IMG
src="temp.files/ectrust.gif">
</A>
<A
href="http://www.hd315.gov.cn/beian/view.asp?bianhao=010202002042800018"
target=_blank><IMG height=48
src="temp.files/biaoshi.gif" width=40>
</A>
<A href="http://www.315online.com.cn/member/315070139.html"
target=_blank><IMG
src="temp.files/315online.gif">
</A>
</LI>
</UL>
</DIV>
</div>
</div>
<!---bottom end---></body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -