⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 borrow.jsp

📁 一个基本的图书馆管理系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
	prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
	prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css/defaultpage.css" type="text/css">
<title>借阅管理</title>
<script type="text/javascript">
<!--	
	//登陆
	function loginsub(){
	    if(document.all.loginform.lloginName.value == ""){
			alert('请输入登陆账号!');
			document.all.loginform.lloginName.focus();
			return false;
	    }
	    if(document.all.loginform.lpassword.value == ""){
			alert('请输入密码!');
			document.all.loginform.lpassword.focus();
			return false;
	    }
	    document.all.loginform.pagename.value="/main";
	    document.all.loginform.action="loginsub.do";
		document.all.loginform.submit();
	}

	//退出
	function logoutsub(){
	    document.all.loginform.pagename.value="/main";
	    document.all.loginform.action="logout.do";
		document.all.loginform.submit();
	}
	
	//去注册页面
	function registersub(){
	    document.all.loginform.pagename.value="/register";
	    document.all.loginform.action="register.do";
		document.all.loginform.submit();
	}
//-->
</script>
</head>

<body leftmargin="0" topmargin="4" bgcolor="#e6e6ff">
<div align="center">

<!-- 包括页面上端 -->
<jsp:include flush="true" page="top.jsp?top=1"/>

<!-- 首页菜单 -->
<jsp:include flush="true" page="main_menu.jsp"/>

<table border="0" cellPadding="0" cellSpacing="0" width="740"
	height="25" valign="top" background="images/m_local_bk.jpg">
	<tr>
		<td width="20"></td>
		<td><font class="font12">当前位置:<html:link forward="/book_main">系统首页</html:link>/操作结果</font></td>
	</tr>
</table>

<table border="0" cellPadding="0" cellSpacing="0" width="740" height="5">
	<tr>
		<td></td>
	</tr>
</table>

<table border="0" cellPadding="0" cellSpacing="0" width="740"
	valign="top">
	<tr>

		<td width="180" valign="top">
		<table border="0" width="180" cellPadding="0" cellSpacing="0"
			valign="top">
			<tr height="5">
				<td></td>
			</tr>
			<tr>
				<td width="100%">
				
				<!-- 登陆部分页面 -->
				<jsp:include flush="true" page="login.jsp"/>

				</td>
			</tr>
			<tr height="10">
				<td></td>
			</tr>

			<tr>
				<td width="100%">
				
				<!-- 图书查询部分页面 -->
				<jsp:include flush="true" page="book_query.jsp"/>
				
				</td>
			</tr>

			<tr height="10">
				<td></td>
			</tr>
			<!-- 借阅管理部分 -->
			<jsp:include flush="true" page="borrow_select.jsp"/>
			
			<tr>
				<td width="100%"></td>
			</tr>

			<tr height="10">
				<td></td>
			</tr>
			<tr>
				<td width="100%"></td>
			</tr>

		</table>
		</td>
		<td width="5"></td>

		<td width="5"></td>
		<td width="550" valign="top">
		<table border="0" cellPadding="0" cellSpacing="0" width="100%"
			valign="top">
			<tr height="5">
				<td></td>
			</tr>
			<tr>
				<td>
				<table border="0" cellPadding="0" cellSpacing="0" width="100%">
				  <tr>
				    <td colspan="3" height="30" background="images/b_center_title_blank.jpg"></td> 
				  </tr>
				  <tr>
				    <td width="1" background="images/m_center_left.jpg"></td>
				    <td width="545">
							<script type="text/javascript">
							<!--
								//借阅信息
								function borrowinfo(){
									if(document.all.borrowform.preBorrowNo.value == ""){
										alert("请输入预借号");
										document.all.borrowform.preBorrowNo.focus();
										return false;
									}
									document.all.borrowform.action = "borrow_info.do";
									document.all.borrowform.submit();
								}
							//-->
							</script>
							<form name="borrowform" mothed="post" action="borrow_info.do">
							<table border="0" cellPadding="0" cellSpacing="0" width="100%">
								<tr height="5"><td></td><td></td><td></td></tr>
								<tr height="5">
								<td width="150" align="right">预借号:
								</td>
								<td width="250" align="left"><input type="text" name="preBorrowNo" value=""></td>
								<td><input type="button" name="bconfirm" value="确定" onclick="borrowinfo();"></td>
								</tr>
							</table>
							</form>
				    </td>
				    <td width="4" background="images/m_center_right.jpg"></td>
				  </tr>
				  <tr>
				    <td colspan="3" height="3" background="images/m_center_bottom_menu.jpg"></td> 
				  </tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>

<!-- 底部页面 -->
<jsp:include flush="true" page="bottom.jsp"/>

</div>
</body>
</html>

⌨️ 快捷键说明

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