cmRemaksForm.jsp 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
  3. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  4. <%@ taglib prefix="input" uri="/struts-tags" %>
  5. <html>
  6. <head>
  7. <title>关键词库编辑</title>
  8. <meta name="decorator" content="default"/>
  9. <style>
  10. .red {
  11. color: red;
  12. display: none;
  13. }
  14. .blue {
  15. color: rgb(0, 100, 180);
  16. }
  17. #inputForm {
  18. max-width: 1200px;
  19. width: 100%;
  20. }
  21. #inputForm table {
  22. width: 100%;
  23. line-height: 18px;
  24. margin-bottom: 50px;
  25. }
  26. #inputForm th, #inputForm td {
  27. font-weight: normal;
  28. text-align: left;
  29. padding: 8px 5px;
  30. border-bottom: 1px solid rgb(238, 238, 238);
  31. }
  32. #inputForm th {
  33. width: 15%;
  34. text-align: right;
  35. white-space: nowrap;
  36. font-weight: bold;
  37. }
  38. #inputForm td input[type="text"] {
  39. width: 320px;
  40. height: 16px;
  41. line-height: 16px;
  42. }
  43. #inputForm td input.short {
  44. width: 110px;
  45. }
  46. #inputForm td b.line {
  47. margin: 0 15px 0 20px;
  48. font-weight: normal
  49. }
  50. #allAreaInput {
  51. padding: 10px 0 0 100px;
  52. }
  53. #inputForm .item {
  54. line-height: 28px;
  55. }
  56. #ladderPriceBox {
  57. border-top: 1px solid rgb(238, 238, 238);
  58. margin-top: 8px;
  59. padding-top: 8px;
  60. }
  61. #ladderPriceBox > div {
  62. margin-bottom: 5px;
  63. }
  64. .priceIcon:before {
  65. content: '\2729';
  66. color: #aaa;
  67. font-size: 18px;
  68. font-style: normal;
  69. }
  70. .priceIcon.full:before {
  71. content: '\272E';
  72. color: #ffbd14;
  73. }
  74. #slider {
  75. width: 335px;
  76. }
  77. .skword input {
  78. margin: 2px 0;
  79. }
  80. .skword p {
  81. margin: 2px 0;
  82. }
  83. .params input {
  84. margin: 2px 0;
  85. }
  86. .tags input {
  87. margin: 2px 0;
  88. }
  89. #tagsList {
  90. margin: 2px 0;
  91. display: none;
  92. width: 600px;
  93. }
  94. .tags-li {
  95. margin: 10px;
  96. display: inline-block;
  97. padding: 5px 10px;
  98. line-height: 16px;
  99. text-align: center;
  100. position: relative;
  101. font-size: 12px;
  102. border: 1px solid #EBEBEB;
  103. border-radius: 4px;
  104. }
  105. .tags-li i {
  106. font-style: normal;
  107. line-height: 20px;
  108. display: block;
  109. position: absolute;
  110. width: 16px;
  111. height: 16px;
  112. text-align: center;
  113. background: rgba(0, 0, 0, 0.2);
  114. border-radius: 50%;
  115. top: -8px;
  116. right: -7px;
  117. cursor: pointer;
  118. }
  119. .tags-li .tags-s {
  120. background: #FFF;
  121. width: auto !important;
  122. outline: none;
  123. border: none;
  124. }
  125. label
  126. {
  127. display: inline-block;
  128. width: 60px;
  129. text-align: justify;
  130. text-align-last: justify;
  131. margin-right: 270px;
  132. }
  133. </style>
  134. </head>
  135. <body>
  136. <ul class="nav nav-tabs">
  137. <li><a href="${ctx}/new/user/agency/regist">已注册用户咨询记录</a></li>
  138. <li><a href="${ctx}/new/user/visit/unregist">未注册用户咨询记录</a></li>
  139. <li><a href="${ctx}/consult/type/cmConsulttype/">咨询类别设置</a></li>
  140. <li class="active"><a href="${ctx}/new/user/agency/cmrenaksForm">添加关键词库</a></li>
  141. </ul>
  142. <form:form id="inputForm" modelAttribute="list" onsubmit="return um()" action="${ctx}/new/user/agency/addcmrenaksForm" method="post" class="form-horizontal">
  143. <table align = "center" border="0" cellspacing="0" cellpadding="20" width="100%">
  144. <tr>
  145. <th><span style="color: red">*</span> 关键词:</th>
  146. <td colspan="3">
  147. <input type="hidden" name="remarksId" id="remarksId" value="${remaksId}" >
  148. <%-- <input:form path="remarks" name="remarks" value=" ${empty list.remarks ? '' : list.remarks}" class="short input-small required" maxlength="50"/>--%>
  149. <input style="width: 150px" id="remarks" placeholder="最多输入10个字符" name="remarks" class="short input-small" type="text" value="${remaks}" maxlength="10"/>&nbsp; &emsp; <span class="red" id="bt">*必填</span>
  150. </td>
  151. </tr>
  152. <tr>
  153. <td colspan="5" style="text-align:center;">
  154. <shiro:hasPermission name="product:product:edit">
  155. <input id="btnSave" class="btn btn-primary" onsubmit="return um()" type="submit" value="保 存"/>
  156. </shiro:hasPermission>
  157. <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
  158. </td>
  159. </tr>
  160. </table>
  161. </form:form>
  162. <sys:message content="${message}"/>
  163. </tbody>
  164. </table>
  165. <div class="pagination">${page}</div>
  166. <script type="text/javascript">
  167. function um() {
  168. // debugger
  169. var remarks = document.getElementById("remarks").value.length;
  170. var bt = document.getElementById("bt");
  171. console.log('2222222222222', remarks);
  172. if (remarks <= 0) {
  173. bt.style.display = "inline-block";
  174. return false;
  175. }
  176. }
  177. </script>
  178. </body>
  179. </html>