book_edit.jsp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="UTF-8">
  6. <title>编辑图书</title>
  7. <%--静态包含:base标签,css样式,js脚本--%>
  8. <%@ include file="/pages/common/head.jsp"%>
  9. <style type="text/css">
  10. h1 {
  11. text-align: center;
  12. margin-top: 200px;
  13. }
  14. h1 a {
  15. color:red;
  16. }
  17. input {
  18. text-align: center;
  19. }
  20. </style>
  21. </head>
  22. <body>
  23. <div id="header">
  24. <img class="logo_img" alt="" src="" >
  25. <%-- ../../static/img/logo.gif--%>
  26. <span class="wel_word">编辑图书</span>
  27. <%--静态包含:图书馆里,订单管理,返回商城--%>
  28. <%-- <%@include file="/pages/common/manager_menu.jsp"%>--%>
  29. <div>
  30. <%-- <a href="manager/bookServlet?action=page">图书管理</a>--%>
  31. <a href="orderServlet?action=ordermanager">订单管理</a>
  32. <a href="index.jsp">返回商城</a>
  33. </div>
  34. </div>
  35. <div id="main">
  36. <%-- <form action="manager/bookServlet" method="get">--%>
  37. <form action="bookServlet" method="get">
  38. <input type="hidden" name="pageNo" value="${param.pageNo}">
  39. <input type="hidden" name="action" value="${param.method}" />
  40. <input type="hidden" name="id" value="${requestScope.book.id}" />
  41. <table>
  42. <tr>
  43. <td>名称</td>
  44. <td>价格</td>
  45. <td>作者</td>
  46. <td>销量</td>
  47. <td>库存</td>
  48. <td colspan="2">操作</td>
  49. </tr>
  50. <tr>
  51. <td><input name="name" type="text" value="${requestScope.book.name}"/></td>
  52. <td><input name="price" type="text" value="${requestScope.book.price}"/></td>
  53. <td><input name="author" type="text" value="${requestScope.book.author}"/></td>
  54. <td><input name="sales" type="text" value="${requestScope.book.sales}"/></td>
  55. <td><input name="stock" type="text" value="${requestScope.book.stock}"/></td>
  56. <td><input type="submit" value="提交"/></td>
  57. </tr>
  58. </table>
  59. </form>
  60. </div>
  61. <%--静态包含:页脚--%>
  62. <%@include file="/pages/common/footer.jsp"%>
  63. </body>
  64. </html>