strut2 编辑页面

<%@ 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>
												&nbsp;
											</td>
										</tr>
									</table>
								</td>
							</tr>

						</table>
					</td>
				</tr>
			</table>
		</s:form>
	</body>
</html>
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值