📄 book_mod.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">
<link rel="stylesheet" href="css/book_category.css" type="text/css">
<script LANGUAGE="javascript" src="js/book_category.js"></script>
<title>修改图书</title>
<script type="text/javascript">
<!--
//提交修改函数
function bookmodsub(){
//组成出版日期
document.all.bookform.publishDate.value=document.all.bookform.year.value + "-"
+ document.all.bookform.month.value + "-"
+ document.all.bookform.day.value;
//提交
document.all.bookform.submit();
}
//登陆
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="/book_add";
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=2"/>
<!-- 图书菜单 -->
<jsp:include flush="true" page="book_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="/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%" bgcolor="#9a9afe">
<tr>
<td colspan="3">
<table border="0" cellPadding="0" cellSpacing="0" width="100%">
<tr>
<td width="137"><img border="0" src="images/b_center_menu_1.jpg" WIDTH="137" HEIGHT="25"></td>
<td width="137" background="images/b_center_menu_0.jpg"></td>
<td width="137" background="images/b_center_menu_0.jpg"></td>
<td width="137" background="images/b_center_menu_0.jpg"></td>
<td width="2"><img border="0" src="images/b_center_menu_5.jpg" WIDTH="2" HEIGHT="25"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="2" background="images/b_center_edit_left.jpg"></td>
<td width="544">
<html:form action="/book_modsub" enctype="multipart/form-data" styleId="bookform">
<table border="0" cellPadding="0" cellSpacing="0">
<tr height="5">
<td width="20"></td>
<td width="70" align="right"></td>
<td width="430">
<logic:present name="errorString"><bean:write name="errorString"/></logic:present>
</td>
<td width="24"></td>
</tr>
<tr height="22">
<td width="20"></td>
<td width="70" align="right"><font class="font12" >图书名称:</font></td>
<td width="430"><html:hidden property="bookNo"/>
<html:text property="name" size="48"/><font class="font12" >(必填)</font><html:errors property="name"/></td>
<td width="24"></td>
</tr>
<tr height="22">
<td width="20"></td>
<td width="70" align="right"><font class="font12" >图书作者:</font></td>
<td width="430"><html:text property="author" size="48"/><html:errors property="author"/></td>
<td width="24"></td>
</tr>
<tr height="22">
<td width="20"></td>
<td width="70" align="right"><font class="font12" >出版单位:</font></td>
<td width="430"><html:text property="bookMan" size="48"/><html:errors property="bookMan"/></td>
<td width="24"></td>
</tr>
<tr height="22">
<td width="20"></td>
<td width="70" align="right"><font class="font12" > I S B N :</font></td>
<td width="430"><html:text property="isbn" size="48"/><html:errors property="isbn"/></td>
<td width="24"></td>
</tr>
<tr height="22">
<td width="20"></td>
<td width="70" align="right"><font class="font12" >出版日期:</font></td>
<td width="430">
<html:hidden property="publishDate"/>
<%
int i = 0;
%>
<bean:define id="iyear" name="bookForm" property="year"></bean:define>
<bean:define id="imonth" name="bookForm" property="month"></bean:define>
<bean:define id="iday" name="bookForm" property="day"></bean:define>
<html:select property="year"
style="height: 22; width: 60">
<%
for(i = 1900; i <= 2090; i++){
%>
<option value="<%=i%>" <%=((iyear != null && ((Integer)iyear).intValue() == i)?"selected":"")%>><%=i%></option>
<%
}
%>
</html:select>年 <html:select property="month" style="height: 22; width: 35">
<%
for(i = 1; i <= 12; i++){
%>
<option value="<%=i%>" <%=((imonth != null && ((Integer)imonth).intValue() == i)?"selected":"")%>><%=i%></option>
<%
}
%>
</html:select>月 <html:select property="day" style="height: 22; width: 40">
<%
for(i = 1; i <= 31; i++){
%>
<option value="<%=i%>" <%=((iday != null && ((Integer)iday).intValue() == i)?"selected":"")%>><%=i%></option>
<%
}
%>
</html:select>日<html:errors property="publishDate"/>
</td>
<td width="24"></td>
</tr>
<tr height="22">
<td width="20"></td>
<td width="70" align="right"><font class="font12" >图书图片:</font></td>
<td width="430"><html:file property="imageFile" size="48"></html:file><html:errors property="imageFile"/><html:errors property="imageFileType"/><html:errors property="imageFileSize"/></td>
<td width="24"></td>
</tr>
<tr height="22">
<td width="20"></td>
<td width="70" align="right"><font class="font12" >图书价格:</font></td>
<td width="430"><html:text property="price" size="48"/>元<html:errors property="price"/></td>
<td width="24"></td>
</tr>
<tr height="22">
<td width="20"></td>
<td width="70" align="right" valign="top"><font class="font12" ><br />图书简介:</font></td>
<td width="430"><html:textarea property="brief" style="width:100%" rows="6"></html:textarea><html:errors property="brief"/></td>
<td width="24"></td>
</tr>
<tr height="22">
<td width="20"></td>
<td width="70" align="right" valign="top"><font class="font12" ><br />选择分类:</font></td>
<td width="430"><div id="catbox1"><div id="catbox2">
<jsp:include flush="true" page="sortcategorys_list.jsp"/>
</div></div></td>
<td width="25"></td>
</tr>
<tr height="48">
<td width="20"></td>
<td width="70" align="right"></td>
<td width="430"><br /><input
type="button" id="bmod" name="bmod" value="修改图书"
onclick="javascript:bookmodsub();"></td>
<td width="24"></td>
</tr>
</table>
</html:form>
</td>
<td width="4" background="images/b_center_edit_right.jpg"></td>
</tr>
<tr>
<td colspan="3" height="4" background="images/b_center_edit_bottom.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 + -