1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <%--
- Created by IntelliJ IDEA.
- User: Administrator
- Date: 2020/4/17
- Time: 14:43
- To change this template use File | Settings | File Templates.
- --%>
- <%--
- Created by IntelliJ IDEA.
- User: Administrator
- Date: 2020/4/17
- Time: 14:00
- To change this template use File | Settings | File Templates.
- --%>
- <%@ page contentType="text/html;charset=UTF-8" language="java" %>
- <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
- <html>
- <head>
- <title>编辑帮助页</title>
- <meta name="decorator" content="default"/>
- <style>
- .red{color:red;}
- .blue{color:rgb(0, 100, 180);}
- #inputForm{max-width: 1200px;width: 100%;}
- #inputForm table{width:100%;line-height:18px;margin-bottom:50px;}
- #inputForm th,#inputForm td{ font-weight: normal; text-align: left; padding: 8px 5px; border-bottom: 1px solid rgb(238, 238, 238); }
- #inputForm th{width:15%;text-align:right;white-space:nowrap;font-weight:bold;}
- #inputForm td{width:35%;}
- #inputForm td input[type="text"]{width:320px;height:16px; line-height:16px; }
- #inputForm td input.short{width:120px;}
- #inputForm td b.line{margin:0 15px 0 20px;font-weight:normal}
- #allAreaInput {padding: 10px 0 0 100px;}
- #inputForm .item{line-height:28px;}
- #ladderPriceBox{border-top:1px solid rgb(238, 238, 238);margin-top:8px;padding-top:8px;}
- #ladderPriceBox>div {margin-bottom: 5px;}
- .priceIcon:before{content:'\2729';color: #aaa;font-size: 18px;font-style:normal;}
- .priceIcon.full:before{content:'\272E';color: #ffbd14;}
- </style>
- </head>
- <body>
- <ul class="nav nav-tabs">
- <li><a href="${ctx}/keyword/list">关键字设置</a></li>
- <li class="active"><a href="${ctx}/keyword/form?id=${keyword.keywordID}">编辑</a></li>
- </ul>
- <form:form id="inputForm" modelAttribute="keyword" action="${ctx}/keyword/save" method="post" class="form-horizontal">
- <form:hidden path="id"/>
- <sys:message content="${message}"/>
- <table border="0" cellspacing="0" cellpadding="0" width="100%">
- <tr>
- <th><span class="red">*</span>关键字名称:</th>
- <td colspan="3">
- <form:input path="name" maxlength="20" class="input-small required"/>
- </td>
- </tr>
- <tr>
- <th><span class="red">*</span>关键字类别:</th>
- <td colspan="3">
- <form:select path="labelTypeID" class="input-small required">
- <form:option value="" label="请选择"/>
- <c:forEach items="${typeList}" var="type">
- <form:option value="${type.id}" label="${type.typeName}"/>
- </c:forEach>
- </form:select>
- </td>
- </tr>
- <tr><td colspan="4" style="text-align:center;">
- <input id="btnSave" class="btn btn-primary" type="submit" value="保 存" />
- <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
- </td></tr>
- </table>
- </form:form>
- <script type="text/javascript">
- $(document).ready(function() {
- // 提交
- $("#inputForm").validate({
- submitHandler: function(form){
- loading('正在提交,请稍等...');
- form.submit();
- },
- errorContainer: "#messageBox",
- errorPlacement: function(error, element) {
- $("#messageBox").text("输入有误,请先更正。");
- error.appendTo(element.parent());
- }
- });
- });
- </script>
- </body>
- </html>
|