<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>修改书籍</title>
<link href="<%=request.getContextPath()%>/css.css" rel="stylesheet"
type="text/css">
<s:head theme="ajax" />
<script type="text/javascript" src="<%=request.getContextPath()%>/check.js"></script>
</head>
<body>
<s:form action="update" method="POST" enctype="multipart/form-data" οnsubmit="return check();">
<table width="90%" border="0" align="center" cellpadding="0"
cellspacing="10">
<tr>
<td align="center">
<span class="STYLE1">Bugzilla</span>
<s:hidden name="tbook.bookid" value="${tbook.bookid}"></s:hidden>
<s:hidden name="tbook.bookstat" value="${tbook.bookstat}"></s:hidden>
<s:hidden name="tbook.bookimg" value="${tbook.bookimg}"></s:hidden>
</td>
</tr>
<tr>
<td align="center">
图书信息
</td>
</tr>
<tr>
<td>
<table width="100%" border="0">
<tr>
<td width="35%" height="226" align="center">
<table align="center">
<tr>
<td align="center">
<img
src="/Struts2Demo/imgs/<s:property value="tbook.bookimg"/>"
width="150" height="250" />
</td>
</tr>
<tr>
<td>
<s:file name="myFile" label="修改图书封面" />
</td>
</tr>
</table>
</td>
<td width="65%">
<table width="100%" border="0">
<tr>
<td width="30%">
书名:
</td>
<td>
<s:textfield id="bookname" name="tbook.bookname" value="${tbook.bookname}" />
</td>
</tr>
<tr>
<td>
作者:
</td>
<td>
<s:textfield id="bookauthor" name="tbook.bookauthor"
value="${tbook.bookauthor}" />
</td>
</tr>
<tr>
<td>
出版社:
</td>
<td>
<s:textfield id="bookconcern" name="tbook.bookconcern"
value="${tbook.bookconcern}" />
</td>
</tr>
<tr>
<td>
ISBN:
</td>
<td>
<s:textfield id="bookno" name="tbook.bookno" value="${tbook.bookno}" />
</td>
</tr>
<tr>
<td>
出版日期:
</td>
<td>
<s:datetimepicker name="tbook.bookdate"
value="${tbook.bookdate}" />
</td>
</tr>
<tr>
<td>
开本:
</td>
<td>
<s:textfield id="bookallnum" name="tbook.bookallnum"
value="${tbook.bookallnum}" />
</td>
</tr>
<tr>
<td>
分类:
</td>
<td>
<s:select list="list" name="tbook.cateid"
value="tbook.cateid" listKey="cateid" listValue="catename"
required="true" />
</td>
</tr>
<tr>
<td>
页数:
</td>
<td>
<s:textfield id="booklength" name="tbook.booklength"
value="${tbook.booklength}" />
</td>
</tr>
<tr>
<td>
简介:
</td>
<td>
<s:textarea rows="10" cols="60" name="tbook.bookabout"
value="${tbook.bookabout}" />
</td>
</tr>
<tr>
<td align="left">
<s:submit value="修改" align="center" />
</td>
<td>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</s:form>
</body>
</html>