book_query.jsp

来自「一个基本的图书馆管理系统」· JSP 代码 · 共 90 行

JSP
90
字号
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
	prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>

<script type="text/javascript">
<!--
	//图书查询
	function bookquery(){
		document.all.bookqueryform.action = "book_query.do";
		document.all.bookqueryform.submit();
	}
//-->
</script>

				<!-- 图书查询部分页面 -->
				<table border="0" width="180" cellPadding="0" cellSpacing="0"
					valign="top">
					<form action="book_query.do" method="post" name="bookqueryform">
					<tr align="center" valign="middle">
						<td width="180" height="23" colspan="2"
							background="images/find.jpg" class="font35">图书查询</td>
					</tr>
					<tr>
						<td width="177" height="64" valign="top" bgcolor="#fff8d9">
						<table border="0" width="177" cellPadding="0" cellSpacing="0"
							valign="top">
							<tr>
								<td width="177" height="8" colspan="4"></td>
							</tr>
							<tr>
								<td width="5" height="22" align="right"></td>
								<td width="47" height="22" align="right"><font
									class="font12">关键字:</font></td>
								<td width="120" height="22" align="right"><input value=""
									style="width: 120; height: 22" name="findKey" class="inputbox"
									<logic:present name="findKey">value="<bean:write name="findKey"/>"</logic:present>
									></td>
								<td width="5" height="22"></td>
							</tr>
							<tr>
								<td width="177" height="5" colspan="4"></td>
							</tr>
							<tr>
								<td width="5" height="22" align="right"></td>
								<td width="47" height="22" align="right"><font
									class="font12">对象:</font></td>
								<td width="120" height="22" align="right"><select
									id="findType" name="findType" style="height: 22; width: 120">
									<bean:define id="findtype" value="${findType}"></bean:define>
									<option value="0" 
									<logic:equal value="0" name="findtype">selected</logic:equal>
									>图书名称</option>
									<option value="1" 
									<logic:equal value="1" name="findtype">selected</logic:equal>
									>图书作者</option>
									<option value="2" 
									<logic:equal value="2" name="findtype">selected</logic:equal>
									>出版单位</option>
									<option value="3" 
									<logic:equal value="3" name="findtype">selected</logic:equal>
									>图书简介</option>
								</select></td>
								<td width="5" height="22"></td>
							</tr>
							<tr>
								<td width="177" height="5" colspan="4"></td>
							</tr>
							<tr>
								<td width="5" height="22"></td>
								<td width="47" height="22"></td>
								<td width="120" height="22" align="right"><input
									type="button" src="images/m_left_button_find.gif" id="imglogin"
									name="imglogin" value="查询" onclick="bookquery();"></td>
								<td width="5" height="22"></td>
							</tr>
							<tr>
								<td width="177" height="5" colspan="4"></td>
							</tr>
						</table>
						</td>
						<td width="3" valign="top" background="images/m_left_right.jpg"></td>
					</tr>
					<tr>
						<td width="180" height="4" valign="top" colspan="2"><img
							border="0" src="images/m_left_bottom.jpg"></td>
					</tr>
					</form>
				</table>

⌨️ 快捷键说明

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