keywordEdit.jsp 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <%--
  2. Created by IntelliJ IDEA.
  3. User: Administrator
  4. Date: 2020/4/17
  5. Time: 14:43
  6. To change this template use File | Settings | File Templates.
  7. --%>
  8. <%--
  9. Created by IntelliJ IDEA.
  10. User: Administrator
  11. Date: 2020/4/17
  12. Time: 14:00
  13. To change this template use File | Settings | File Templates.
  14. --%>
  15. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  16. <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
  17. <html>
  18. <head>
  19. <title>编辑帮助页</title>
  20. <meta name="decorator" content="default"/>
  21. <style>
  22. .red{color:red;}
  23. .blue{color:rgb(0, 100, 180);}
  24. #inputForm{max-width: 1200px;width: 100%;}
  25. #inputForm table{width:100%;line-height:18px;margin-bottom:50px;}
  26. #inputForm th,#inputForm td{ font-weight: normal; text-align: left; padding: 8px 5px; border-bottom: 1px solid rgb(238, 238, 238); }
  27. #inputForm th{width:15%;text-align:right;white-space:nowrap;font-weight:bold;}
  28. #inputForm td{width:35%;}
  29. #inputForm td input[type="text"]{width:320px;height:16px; line-height:16px; }
  30. #inputForm td input.short{width:120px;}
  31. #inputForm td b.line{margin:0 15px 0 20px;font-weight:normal}
  32. #allAreaInput {padding: 10px 0 0 100px;}
  33. #inputForm .item{line-height:28px;}
  34. #ladderPriceBox{border-top:1px solid rgb(238, 238, 238);margin-top:8px;padding-top:8px;}
  35. #ladderPriceBox>div {margin-bottom: 5px;}
  36. .priceIcon:before{content:'\2729';color: #aaa;font-size: 18px;font-style:normal;}
  37. .priceIcon.full:before{content:'\272E';color: #ffbd14;}
  38. </style>
  39. </head>
  40. <body>
  41. <ul class="nav nav-tabs">
  42. <li><a href="${ctx}/keyword/list">关键字设置</a></li>
  43. <li class="active"><a href="${ctx}/keyword/form?id=${keyword.keywordID}">编辑</a></li>
  44. </ul>
  45. <form:form id="inputForm" modelAttribute="keyword" action="${ctx}/keyword/save" method="post" class="form-horizontal">
  46. <form:hidden path="id"/>
  47. <sys:message content="${message}"/>
  48. <table border="0" cellspacing="0" cellpadding="0" width="100%">
  49. <tr>
  50. <th><span class="red">*</span>关键字名称:</th>
  51. <td colspan="3">
  52. <form:input path="name" maxlength="20" class="input-small required"/>
  53. </td>
  54. </tr>
  55. <tr>
  56. <th><span class="red">*</span>关键字类别:</th>
  57. <td colspan="3">
  58. <form:select path="labelTypeID" class="input-small required">
  59. <form:option value="" label="请选择"/>
  60. <c:forEach items="${typeList}" var="type">
  61. <form:option value="${type.id}" label="${type.typeName}"/>
  62. </c:forEach>
  63. </form:select>
  64. </td>
  65. </tr>
  66. <tr><td colspan="4" style="text-align:center;">
  67. <input id="btnSave" class="btn btn-primary" type="submit" value="保 存" />
  68. <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
  69. </td></tr>
  70. </table>
  71. </form:form>
  72. <script type="text/javascript">
  73. $(document).ready(function() {
  74. // 提交
  75. $("#inputForm").validate({
  76. submitHandler: function(form){
  77. loading('正在提交,请稍等...');
  78. form.submit();
  79. },
  80. errorContainer: "#messageBox",
  81. errorPlacement: function(error, element) {
  82. $("#messageBox").text("输入有误,请先更正。");
  83. error.appendTo(element.parent());
  84. }
  85. });
  86. });
  87. </script>
  88. </body>
  89. </html>