You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BookStore/web/pages/manager/book_edit.jsp

75 lines
1.9 KiB

3 years ago
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
4 weeks ago
<meta charset="UTF-8">
<title>编辑图书</title>
3 years ago
<%@include file="/pages/common/header.jsp"%>
4 weeks ago
<style type="text/css">
h1 {
text-align: center;
margin-top: 200px;
}
h1 a {
color:red;
}
input {
text-align: center;
}
</style>
3 years ago
</head>
<body>
4 weeks ago
<div id="header">
<img class="logo_img" alt="" src="static/img/logo1.jpg" >
<span class="wel_word">编辑图书</span>
<%@include file="/pages/common/manager_menu.jsp"%>
</div>
<div id="main">
<form action="manager/bookServlet" method="post">
<!-- 隐藏域,用于传递当前页码 -->
<input type="hidden" name="pageNo" value="${param.pageNo}">
<!-- 隐藏域,用于判断是添加还是更新操作 -->
<input type="hidden" name="action" value="${empty param.id ? "add":"update"}"/>
<!-- 隐藏域用于传递图书ID -->
<input type="hidden" name="id" value="${requestScope.book.id}"/>
<table>
<tr>
<td>名称</td>
<td>价格</td>
<td>作者</td>
<td>销量</td>
<td>库存</td>
<td colspan="2">操作</td>
</tr>
<tr>
<!-- 图书名称输入框 -->
<td><input name="name" type="text" value="${requestScope.book.name}"/></td>
<!-- 图书价格输入框 -->
<td><input name="price" type="text" value="${requestScope.book.price}"/></td>
<!-- 图书作者输入框 -->
<td><input name="author" type="text" value="${requestScope.book.author}"/></td>
<!-- 图书销量输入框 -->
<td><input name="sales" type="text" value="${requestScope.book.sales}"/></td>
<!-- 图书库存输入框 -->
<td><input name="stock" type="text" value="${requestScope.book.stock}"/></td>
<!-- 提交按钮 -->
<td><input type="submit" value="提交"/></td>
</tr>
</table>
</form>
</div>
<%@include file="/pages/common/footer.jsp"%>
3 years ago
</body>
</html>