123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
- <html>
- <head>
- <title>新首页轮播图管理</title>
- <meta name="decorator" content="default"/>
- <script type="text/javascript">
- $(document).ready(function() {
- //$("#name").focus();
- $("#inputForm").validate({
- submitHandler: function(form){
- var image = $("#image").val();
- if(image != undefined && image.trim() != ""){
- loading('正在提交,请稍等...');
- form.submit();
- }else {
- alertx("请先选择PC端图!");
- }
- },
- errorContainer: "#messageBox",
- errorPlacement: function(error, element) {
- $("#messageBox").text("输入有误,请先更正。");
- if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
- error.appendTo(element.parent().parent());
- } else {
- error.insertAfter(element);
- }
- }
- });
- });
- //过滤转换特殊字符
- function clearChar(obj) {
- obj.value = obj.value.replace(",", "");
- obj.value = obj.value.replace(",", "");
- };
- </script>
- </head>
- <body>
- <ul class="nav nav-tabs">
- <li><a href="${ctx}/newhome/newPageCenterimage/">新首页居中广告列表</a></li>
- <li class="active"><a href="${ctx}/newhome/newPageCenterimage/form?id=${newPageCenterimage.id}">新首页居中广告${not empty newPageCenterimage.id?'编辑':'添加'}</a></li>
- </ul><br/>
- <form:form id="inputForm" modelAttribute="newPageCenterimage" action="${ctx}/newhome/newPageCenterimage/save" method="post" class="form-horizontal">
- <form:hidden path="id"/>
- <sys:message content="${message}"/>
- <div class="control-group">
- <label class="control-label"><span class="help-inline"><font color="red">*</font> </span>标题:</label>
- <div class="controls">
- <form:input path="title" htmlEscape="false" maxlength="40" class="input-xlarge required" onkeyup="clearChar(this)" />
- </div>
- </div>
- <div class="control-group">
- <label class="control-label"><span class="required"><font color="red">*</font> </span>PC端图:</label>
- <div class="controls">
- <form:hidden id="image" path="image" htmlEscape="false" value="${image}" maxlength="255" class="input-xlarge required"/>
- <sys:ckfinder input="image" type="images" uploadPath="/photo" selectMultiple="false" maxWidth="100" maxHeight="100"/>
- </div>
- <div class="controls" style="padding-top: 20px;">
- <p style="color:#D0D0D0 ;">建议尺寸:1920 * 510 / PX</p>
- </div>
- </div>
- <div class="control-group">
- <label class="control-label"><span class="required"><font color="red">*</font> </span>PC端链接:</label>
- <div class="controls">
- <form:input path="link" htmlEscape="false" maxlength="255" class="input-xlarge required url"/>
- </div>
- </div>
- <div class="control-group">
- <label class="control-label">小程序端图:</label>
- <div class="controls">
- <form:hidden id="crmImage" path="crmImage" htmlEscape="false" value="${crmImage}" maxlength="255" class="input-xlarge"/>
- <sys:ckfinder input="crmImage" type="images" uploadPath="/photo" selectMultiple="false" maxWidth="100" maxHeight="100"/>
- </div>
- <div class="controls" style="padding-top: 20px;">
- <p style="color:#D0D0D0 ;">建议尺寸:702 * 280 / PX</p>
- </div>
- </div>
- <div class="control-group">
- <label class="control-label">小程序端链接:</label>
- <div class="controls">
- <form:input path="crmLink" htmlEscape="false" maxlength="255" class="input-xlarge url"/>
- </div>
- </div>
- <div class="control-group">
- <label class="control-label">小程序页面title:</label>
- <div class="controls">
- <form:input path="crmTitle" placeholder="最多输入15个汉字" htmlEscape="false" maxlength="15" class="input-xlarge"/>
- </div>
- </div>
- <div class="control-group">
- <label class="control-label"><span class="help-inline"><font color="red">*</font> </span>排序:</label>
- <div class="controls">
- <c:if test="${empty newPageCenterimage.id}">
- <form:input path="sort" htmlEscape="false" maxlength="9" class="input-xlarge required digits" value="${empty sort?0:sort+1}"/>
- </c:if>
- <c:if test="${not empty newPageCenterimage.id}">
- <form:input path="sort" htmlEscape="false" maxlength="9" class="input-xlarge required digits" value="${empty newPageCenterimage.sort?0:(newPageCenterimage.sort) }"/>
- </c:if>
- </div>
- </div>
- <div class="control-group crmstatus" style="" >
- <label class="control-label">小程序状态:</label>
- <div class="controls">
- <form:select path="crmEnabledStatus" class="input-xlarge ">
- <form:options items="${fns:getDictList('enabled_status')}" itemLabel="label" itemValue="value" htmlEscape="false" />
- </form:select>
- </div>
- </div>
- <div class="control-group crmstatus" style="" >
- <label class="control-label">PC端状态:</label>
- <div class="controls">
- <form:select path="wwwEnabledStatus" class="input-xlarge ">
- <form:options items="${fns:getDictList('enabled_status')}" itemLabel="label" itemValue="value" htmlEscape="false" />
- </form:select>
- </div>
- </div>
- <div class="control-group">
- <label class="control-label"><font color="red">*</font>上架时间:</label>
- <div class="controls">
- <input name="startDate" id="startDate" type="text" required readonly="readonly" maxlength="20" class="input-medium Wdate "
- value="<fmt:formatDate value="${newPageCenterimage.startDate}" pattern="yyyy-MM-dd 00:00:00"/>"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd 00:00:00',isShowClear:false});" onblur="dateShow()"/>
- </div>
- </div>
- <div class="control-group">
- <label class="control-label"><font color="red">*</font>下架时间:</label>
- <div class="controls">
- <input name="endDate" id="endDate" type="text" required readonly="readonly" maxlength="20" class="input-medium Wdate "
- value="<fmt:formatDate value="${newPageCenterimage.endDate}" pattern="yyyy-MM-dd 23:59:59"/>"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd 23:59:59',isShowClear:false});" onblur="dateShow()"/>
- </div>
- </div>
- <div class="form-actions">
- <input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>
- <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
- </div>
- </form:form>
- </body>
- </html>
|