?? resultshow.jsp
字號:
+ "\")' style='border:1px ;width:20'>"
+ "<img src='../images/icon-float.gif'></div>");
out.print("</td></tr>");
out.print("</table>");
out.print("<br>");
//out.print("........................................................."
// + "........................................................."
// + "........................................................."
// + ".........................................................");
} else {
double webPrice = 0.0;
float discount = 0;
String webUrl = "";
if (null != price.getDangdangUrl()
&& !"".equals(price.getDangdangUrl())) {
webPrice = price.getDangdangPrice();
discount = price.getDangdangDiscount();
webUrl = price.getDangdangUrl();
}else if(null != price.getTsinghuaUrl()
&& !"".equals(price.getTsinghuaUrl())){
webPrice = price.getTsinghuaPrice();
discount = price.getTsinghuaDiscount();
webUrl = price.getTsinghuaUrl();
}else if(null != price.getChina_pubUrl()
&& !"".equals(price.getChina_pubUrl())){
webPrice = price.getChina_pubPrice();
discount = price.getChina_pubDiscount();
webUrl = price.getChina_pubUrl();
}else if(null != price.getZhuoyueUrl()
&& !"".equals(price.getZhuoyueUrl())){
webPrice = price.getZhuoyuePrice();
discount = price.getZhuoyueDiscount();
webUrl = price.getZhuoyueUrl();
}else if(null != price.getBookschinaUrl()
&& !"".equals(price.getBookschinaUrl())){
webPrice = price.getBookschinaPrice();
discount = price.getBookschinaDiscount();
webUrl = price.getBookschinaUrl();
}else if(null != price.getWeilanUrl()
&& !"".equals(price.getWeilanUrl())){
webPrice = price.getWeilanPrice();
discount = price.getWeilanDiscount();
webUrl = price.getWeilanUrl();
}
//if(webPrice>0.0)
out.print("<td valign=" + "\"" + "bottom" + "\""
+ " height=" + "\"" + "24" + "\"" + "width="
+ "\"" + "89%" + "\"" + "><strong><font color="
+ "\"" + "#339900" + "\"" + ">" + "圖書名稱:"
+ "</font></strong><a href='"
+ webUrl + "' target=_blank/>" + "<strong><font color=blue>" + bookName + "</font></strong>");
out.print("</td>");
out.print("</tr>");
out.print("<tr><td>");
ArrayList<String> authorList = new ArrayList<String>();
if(bookAuthor.indexOf(" ")!=-1){
StringTokenizer temst = new StringTokenizer(bookAuthor, " ");
while (temst.hasMoreElements()) {
String temstr = temst.nextToken();
if(null != temstr)
authorList.add(temstr.trim());
}
}else{
authorList.add(bookAuthor);
}
if(authorList.size()>0){
String authorStr = "";
for(Iterator it = authorList.iterator();it.hasNext();){
String tempStr = (String)it.next();
if(tempStr.indexOf("<b>")==-1&&!"暫無相關信息".equals(tempStr))
authorStr = authorStr + "<a href=Search.do?keyword="
+ URLEncoder.encode(tempStr, "UTF-8")
+ "&searchkind=author>"
+ tempStr + "</a> ";
else
authorStr += tempStr ;
}
out.print("作者 : " + authorStr);
}
out.print("</td></tr>");
out.print("<tr><td>");
ArrayList<String> publisherList = new ArrayList<String>();
if(bookPublisher.indexOf(" ")!=-1){
StringTokenizer temst = new StringTokenizer(bookPublisher, " ");
while (temst.hasMoreElements()) {
String temstr = temst.nextToken();
if(null != temstr)
publisherList.add(temstr.trim());
}
}else{
publisherList.add(bookPublisher);
}
if(publisherList.size()>0){
String publisherStr = "";
for(Iterator it = publisherList.iterator();it.hasNext();){
String tempStr = (String)it.next();
if(tempStr.indexOf("<b>")==-1&&!"暫無相關信息".equals(tempStr))
publisherStr = publisherStr + "<a href=Search.do?keyword="
+ URLEncoder.encode(tempStr, "UTF-8")
+ "&searchkind=author>"
+ tempStr + "</a> ";
else
publisherStr += tempStr ;
}
out.print("出版社 : " + publisherStr);
}
out.print("</td></tr>");
out.print("<tr><td>");
out.print("出版時間 : "
+ bookPublishTime );
out.print("</td></tr>");
out.print("<tr><td>");
out.print("ISBN : "
+ bookISBN);
out.print("</td></tr>");
out.print("<tr><td>");
out.print("市場定價 : ¥" + bookFixPrice);
out.print("</td></tr>");
out.print("<tr><td>");
out.print("折扣:" + discount*10);
out.print("</td></tr>");
out.print("<tr><td>");
out.print("網站價格:" + webPrice);
out.print("</td></tr>");
if(null != bookProspectus && !"".equals(bookProspectus)){
out.print("<tr><td>");
out.print("內容簡介 : " + bookProspectus);
out.print(" <a href='" + webUrl
+ "' target=_blank/>詳細信息>>");
out.print("</a>");
out.print("</td></tr>");
}else{
out.print("<tr><td>");
out.print(" <a href='" + webUrl
+ "' target=_blank/>詳細信息>>");
out.print("</a>");
out.print("</td></tr>");
}
out.print("</table>");
out.print("<br>");
//out.print("....................................................."
// + "....................................................."
// + "....................................................."
// + ".....................................................");
}
}
%>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80%" height="40">
<div class="relate" id="relate">
相關搜索加載中...
<img src="../images/loading.gif" width="16" height="16">
</div>
</td>
<td>
</td>
</tr>
<tr>
<td width="80%" height="40">
<div class="relate" id="history">
歷史搜索加載中...
<img src="../images/loading.gif" width="16" height="16">
</div>
</td>
<td>
</td>
</tr>
<tr>
<td align="center">
<div id="pagetoolShow">
<%
out.print(request.getAttribute("pagetool").toString());
%>
</div>
</td>
</tr>
</table>
<br>
<br>
<br>
<table border="0" cellpadding="0" cellspacing="0" height="30" width="100%">
<tr>
<td><hr style="border-top: 1px dashed; border-bottom: 1px dashed; height: 1px" width="550" color="lightblue"></td>
</tr>
<tr>
<td align="center" width="80%">
<div id="tosuggesttwo">
<font size="2">
<a href="#"
onclick="this.style.behavior='url(#default#homepage)';this.sethomepage('http://localhost:8080/strutsspring/index.jsp')"
title="您可以將本網站設為首頁">設為首頁</a> | <a
href="soyongforum.jsp"
title="您可以去論壇瀏覽更多精彩的信息">soyong論壇</a> | <a href="aboutHome.jsp"
title="您可以了解一些關于本站的信息">關于本站</a> | <a href="searchhelp.jsp"
title="您可以了解更多使用本搜索的信息">幫助說明</a>
</font>
</div>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -