|
@@ -0,0 +1,109 @@
|
|
|
+<%@ 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({
|
|
|
+ ignore:"",
|
|
|
+ submitHandler: function(form){
|
|
|
+ loading('正在提交,请稍等...');
|
|
|
+ form.submit();
|
|
|
+ },
|
|
|
+ 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);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ //获取选中项的value
|
|
|
+ var showBackgroundColor = $('#showBackgroundColor');
|
|
|
+ var showBackgroundImg = $('#showBackgroundImg');
|
|
|
+ var selectBgType = $('#selectBgType option:selected').val();
|
|
|
+ //回旋赋值显示背景填充
|
|
|
+ showSelectText(selectBgType,showBackgroundColor,showBackgroundImg);
|
|
|
+ //选择背景填充类型
|
|
|
+ $("#selectBgType").on('change',function(){
|
|
|
+ showSelectText($(this).val(),showBackgroundColor,showBackgroundImg);
|
|
|
+ })
|
|
|
+ //颜色选择器
|
|
|
+ var color = $("#onchangeColor");
|
|
|
+ var colorInfo = $("#getColorValue");
|
|
|
+ $(color).on('change',function(){
|
|
|
+ colorInfo.val(color.val());
|
|
|
+ })
|
|
|
+ });
|
|
|
+ //判断显示背景颜色或背景图设置窗口fn
|
|
|
+ function showSelectText(val,colorDiv,imgDiv){
|
|
|
+ switch (val) {
|
|
|
+ case '' :
|
|
|
+ colorDiv.hide(100);
|
|
|
+ imgDiv.hide(100);
|
|
|
+ break;
|
|
|
+ case '1' :
|
|
|
+ colorDiv.show(100);
|
|
|
+ imgDiv.hide(100);
|
|
|
+ break;
|
|
|
+ case '2' :
|
|
|
+ colorDiv.hide(100);
|
|
|
+ imgDiv.show(100);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<ul class="nav nav-tabs">
|
|
|
+ <li class="active"><a href="${ctx}/cmpage/cmPage/form?flag=28&id=${cmPage.id}">${empty cmPage.id?'新增':'编辑'}快捷运营<shiro:lacksPermission name="cmpage:cmPage:edit">查看</shiro:lacksPermission></a></li>
|
|
|
+</ul><br/>
|
|
|
+<form:form id="inputForm" modelAttribute="cmPage" action="${ctx}/cmpage/cmPage/save?flag=2&type=9" 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="50" class="input-xlarge required"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="control-group">
|
|
|
+ <label class="control-label"><span class="help-inline"><font color="red">*</font> </span>PC端banner:</label>
|
|
|
+ <div class="controls">
|
|
|
+ <form:hidden id="headImage" path="headImage" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
|
|
|
+ <sys:ckfinder input="headImage" type="images" uploadPath="/photo" selectMultiple="false" maxWidth="100" maxHeight="100"/>
|
|
|
+ </div>
|
|
|
+ <div class="controls" style="padding-top: 20px;">
|
|
|
+ <label style="color:#D0D0D0 ;">建议图片尺寸1920*480px</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="control-group">
|
|
|
+ <label class="control-label"><span class="help-inline"></span>移动端banner:</label>
|
|
|
+ <div class="controls">
|
|
|
+ <form:hidden id="crmHeadImage" path="crmHeadImage" htmlEscape="false" maxlength="255" class="input-xlarge"/>
|
|
|
+ <sys:ckfinder input="crmHeadImage" type="images" uploadPath="/photo" selectMultiple="false" maxWidth="100" maxHeight="100"/>
|
|
|
+ </div>
|
|
|
+ <div class="controls" style="padding-top: 20px;">
|
|
|
+ <label style="color:#D0D0D0 ;">建议图片尺寸1000px*450px</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="control-group">
|
|
|
+ <label class="control-label">状态:</label>
|
|
|
+ <div class="controls">
|
|
|
+ <form:select path="enabledStatus" class="input-xlarge ">
|
|
|
+ <form:options items="${fns:getDictList('enabled_status')}" itemLabel="label" itemValue="value" htmlEscape="false" />
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-actions">
|
|
|
+ <shiro:hasPermission name="cmpage:cmPage:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/> </shiro:hasPermission>
|
|
|
+ <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
|
|
|
+ </div>
|
|
|
+</form:form>
|
|
|
+</body>
|
|
|
+</html>
|