📄 insertbook.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="com.actionForm.BookSortForm"%>
<%@ page import="java.util.List"%>
<jsp:useBean id="showTime" scope="request" class="com.tool.ShowTime"/>
<jsp:useBean id="bookSortDao" scope="request" class="com.dao.BookSortDao"/>
<jsp:useBean id="bookDao" scope="request" class="com.dao.BookDao"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>翼飞图书管理系统——图书管理</title>
</head>
<body>
<div align="center">
<jsp:include page="../topOne.jsp"/>
<jsp:include page="../topTwo.jsp"/>
<table width="799" border="0" cellpadding="0" cellspacing="0" background="Images/upPlace.jpg">
<tr>
<td height="21" class="word_black"> 您当前的位置——图书管理——入库管理</td>
</tr>
</table>
<table width="799" height="28" border="0" cellpadding="0" cellspacing="0" background="Images/operationOne.jpg">
<tr align="center">
<td><span class="style2">———————图书入库管理———————</span></td>
</tr>
</table>
<table width="799" height="457" border="0" cellpadding="0" cellspacing="0" class="tableBorder_B_dashed">
<tr>
<td valign="top" ><div align="center">
<form name="form" method="post" action="bookAction.do?method=insertBookAction" onSubmit="return addBook(form)">
<br><table border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#819BBC" bordercolorlight="#FFFFFF">
<tr align="center">
<td height="30" width="100" bgcolor="#83B9FF" class="word_white">图书编号</td>
<td width="150"><div align="left"> <%=bookDao.selectMaxIdBook()%><input type="hidden" name="bookNumber" value="<%=bookDao.selectMaxIdBook()%>"></div></td>
<td width="100" align="center" bgcolor="#83B9FF" class="word_white">条形码</td>
<td width="150" ><input type="text" name="lineNumber"></td>
</tr>
<tr align="center">
<td height="30" bgcolor="#83B9FF" class="word_white">书名</td>
<td><input type="text" name="bookName"></td>
<td align="center" bgcolor="#83B9FF" class="word_white">作者</td>
<td><input type="text" name="author"></td>
</tr>
<tr align="center">
<td height="30" bgcolor="#83B9FF" class="word_white">出版社</td>
<td><input type="text" name="publish"></td>
<td align="center" bgcolor="#83B9FF" class="word_white">出版次数</td>
<td><input type="text" name="publishNumber"></td>
</tr>
<tr align="center">
<td height="30" bgcolor="#83B9FF" class="word_white">书的类别</td>
<td>
<div align="left">
<select name="sortNumber">
<option style="background:#00FFFF">请选择</option>
<%
List sortList=bookSortDao.selectBookSortList();
for(int sort=0;sort<sortList.size();sort++){
BookSortForm sortForm=(BookSortForm)sortList.get(sort);
%>
<option value="<%=sortForm.getSortNumber()%>" style="background:#00FFFF"><%=sortForm.getSortName()%></option>
<%}%>
</select>
</div></td>
<td bgcolor="#83B9FF" class="word_white">入库价格</td>
<td><input type="text" name="inPirce"></td>
</tr>
<tr align="center">
<td height="30" bgcolor="#83B9FF" class="word_white">售出单价</td>
<td><input type="text" name="singlePirce"></td>
<td align="center" bgcolor="#83B9FF" class="word_white">入库数量</td>
<td><input type="text" name="bookSum"></td>
</tr>
<tr align="center">
<td height="30" bgcolor="#83B9FF" class="word_white">操作员</td>
<td><div align="left"> <%=session.getAttribute("account")%>
<input type="hidden" name="man" value="<%=session.getAttribute("account")%>">
</div></td>
<td bgcolor="#83B9FF" class="word_white">入库时间</td>
<td><div align="left"> <%=showTime.showCurrentTime()%>
<input type="hidden" name="creatime" value="<%=showTime.showCurrentTime()%>">
</div></td>
</tr>
</table>
<br>
<input type="submit" name="Submit2" value="添加">
<input type="reset" name="Submit" value="清除">
<a href="firstPage.jsp">返回</a>
</form>
</div></td>
</tr>
</table><jsp:include page="../bottom.jsp"/>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -