?? selectbook.jsp
字號:
<%@ page language="java" pageEncoding="utf-8"%>
<%@page import="com.jxyd.common.Fenye"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<title>讀者查詢</title>
<link href="<%=basePath%>/css/style.css" rel="stylesheet">
<link href="<%=basePath%>/css/main.css" rel="stylesheet">
</head>
<script type="text/javascript">
function Select(){
document.showform.action="user.do?method=SelectBook";
document.showform.submit();
return true;
}
</script>
<body>
<form action="" name="showform" method="post">
<!--RIGHT-->
<div class="right">
<div class="content">
<p align="center">
館藏圖書查詢
</p>
<div class="data_bot1" id="lendinfo">
按
<select name="select">
<option value="1" selected="selected">
圖書條碼
</option>
<option value="2">
書名
</option>
<option value="3">
作者
</option>
</select>
<input type="text" name="book" >
<img src="<%=basePath%>/images/search.gif" onclick="Select()" alt="查詢"
onmouseover="this.style.cursor='hand'" >
<table>
<tr>
<th>
圖書條碼號
</th>
<th>
書名
</th>
<th>
ISBN
</th>
<th>
作者
</th>
<th>
分類編號
</th>
<th>
出版社
</th>
<th>
出版日期
</th>
<th>
館藏數目
</th>
</tr>
<logic:present name="book">
<logic:iterate id="bb" name="book" type="com.jxyd.vo.BookBean">
<tr>
<td>
<%=bb.getCodeId()%>
</td>
<td>
<%=bb.getTitle()%>
</td>
<td>
<%=bb.getISBN()%>
</td>
<td>
<%=bb.getAuthor()%>
</td>
<td>
<%=bb.getClassId()%>
</td>
<td>
<%=bb.getPublishCom()%>
</td>
<td>
<%=bb.getPublishDate()%>
</td>
<td>
<%=bb.getNum()%>
</td>
</tr>
</logic:iterate>
</logic:present>
</table>
</div>
<%
Fenye fenye = (Fenye) request.getAttribute("fenye");
if (fenye != null) {
%>
<%=fenye.getDisplay()%>
<%
}
%>
</div>
</div>
</form>
</body>
</html:html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -