|
@@ -0,0 +1,346 @@
|
|
|
|
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
|
|
|
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
|
|
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
|
|
|
|
+<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
|
|
|
+<%
|
|
|
|
+ String base = pageContext.getServletContext().getContextPath();
|
|
|
|
+%>
|
|
|
|
+<!--_meta 作为公共模版分离出去-->
|
|
|
|
+<!DOCTYPE HTML>
|
|
|
|
+<html>
|
|
|
|
+<head>
|
|
|
|
+ <meta charset="utf-8">
|
|
|
|
+ <script type="text/javascript">
|
|
|
|
+ window.UEDITOR_SERVER_URL = '<%=base%>';
|
|
|
|
+ </script>
|
|
|
|
+ <meta name="renderer" content="webkit|ie-comp|ie-stand">
|
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
|
+ <meta name="viewport"
|
|
|
|
+ content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
|
|
|
|
+ <meta http-equiv="Cache-Control" content="no-siteapp"/>
|
|
|
|
+ <LINK rel="Bookmark" href="/favicon.ico">
|
|
|
|
+ <LINK rel="Shortcut Icon" href="/favicon.ico"/>
|
|
|
|
+
|
|
|
|
+ <link rel="stylesheet" type="text/css"
|
|
|
|
+ href="${pageContext.request.contextPath}/static/admin/index/h-ui/css/H-ui.min.css"/>
|
|
|
|
+ <link rel="stylesheet" type="text/css"
|
|
|
|
+ href="${pageContext.request.contextPath}/static/admin/index/h-ui.admin/css/H-ui.admin.css"/>
|
|
|
|
+ <link rel="stylesheet" type="text/css"
|
|
|
|
+ href="${pageContext.request.contextPath}/static/admin/index/Hui-iconfont/1.0.8/iconfont.css"/>
|
|
|
|
+ <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/admin/icheck/icheck.css"/>
|
|
|
|
+ <link rel="stylesheet" type="text/css"
|
|
|
|
+ href="${pageContext.request.contextPath}/static/admin/index/h-ui.admin/skin/default/skin.css" id="skin"/>
|
|
|
|
+ <link rel="stylesheet" type="text/css"
|
|
|
|
+ href="${pageContext.request.contextPath}/static/admin/index/h-ui.admin/css/style.css"/>
|
|
|
|
+
|
|
|
|
+ <script type="text/javascript"
|
|
|
|
+ src="${pageContext.request.contextPath}/static/admin/index/jquery/1.9.1/jquery.min.js"></script>
|
|
|
|
+ <script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/index/layer/layer.js"></script>
|
|
|
|
+ <script type="text/javascript"
|
|
|
|
+ src="${pageContext.request.contextPath}/static/admin/js/jquery.validate.min.js"></script>
|
|
|
|
+ <script type="text/javascript"
|
|
|
|
+ src="${pageContext.request.contextPath}/static/admin/js/validate-methods.js"></script>
|
|
|
|
+ <script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/messages_zh.min.js"></script>
|
|
|
|
+ <script type="text/javascript"
|
|
|
|
+ src="${pageContext.request.contextPath}/static/admin/icheck/jquery.icheck.min.js"></script>
|
|
|
|
+ <script src="${pageContext.request.contextPath}/static/admin/manage/js/WdatePicker.js"></script>
|
|
|
|
+ <style>
|
|
|
|
+ .selfprozslidim dd {
|
|
|
|
+ border: 1px solid #ccc;
|
|
|
|
+ display: inline-block;
|
|
|
|
+ height: 68px;
|
|
|
|
+ margin: 0 0 10px 10px ;
|
|
|
|
+ position: relative;
|
|
|
|
+ width: 68px;
|
|
|
|
+ }
|
|
|
|
+ .selfprozslidim dd img {
|
|
|
|
+ display: block;
|
|
|
|
+ height: 68px;
|
|
|
|
+ width: 68px;
|
|
|
|
+ }
|
|
|
|
+ .selfprozslidim dd i {
|
|
|
|
+ background: #999;
|
|
|
|
+ border: 1px solid #ccc;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ display: none;
|
|
|
|
+ height: 13px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ right: 3px;
|
|
|
|
+ top: 3px;
|
|
|
|
+ width: 13px;
|
|
|
|
+ }
|
|
|
|
+ #albummore a{cursor:pointer;}
|
|
|
|
+ .selfprozslidim dd:hover i {
|
|
|
|
+ display: block;
|
|
|
|
+ }
|
|
|
|
+ .selfprozslidim dd i:hover {
|
|
|
|
+ background-color: #3388ff;
|
|
|
|
+ }
|
|
|
|
+ .delwarp {
|
|
|
|
+ display:none;
|
|
|
|
+
|
|
|
|
+ padding: 5px 7px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ right: 0;
|
|
|
|
+ top: 0;
|
|
|
|
+ z-index: 2;
|
|
|
|
+ }
|
|
|
|
+ .delete {
|
|
|
|
+ background: rgba(0, 0, 0, 0) url("${pageContext.request.contextPath}/static/images/del.png") no-repeat scroll 0 0 / 15px 19px;
|
|
|
|
+ display: block;
|
|
|
|
+ height: 19px;
|
|
|
|
+ text-indent: -9999px;
|
|
|
|
+ width: 15px;
|
|
|
|
+ }
|
|
|
|
+ .selfprozslidim dd.del:hover .delwarp {
|
|
|
|
+ display: block;
|
|
|
|
+ }
|
|
|
|
+ </style>
|
|
|
|
+ <script type="text/javascript">
|
|
|
|
+ $(function () {
|
|
|
|
+ $("#sub").click(function () {
|
|
|
|
+ /* var name = $("input[name='articleTitle']").val();
|
|
|
|
+ var typeid = $('#pId option:selected').val();
|
|
|
|
+ if (typeid == 0) {
|
|
|
|
+ layer.msg("服务类别不能为空~");
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (name == null || name == '') {
|
|
|
|
+ layer.msg("服务名称不能为空~");
|
|
|
|
+ return false;
|
|
|
|
+ }*/
|
|
|
|
+ var str = "";
|
|
|
|
+ $("input[name='eachImg']").each(function(){
|
|
|
|
+ str += $(this).val()+",";
|
|
|
|
+ });
|
|
|
|
+ var substr = str.substring(0,str.length-1)
|
|
|
|
+ $("#morePhoto").val(substr)
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ $('#subform').submit();
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ </script>
|
|
|
|
+
|
|
|
|
+ <title>管理员管理</title>
|
|
|
|
+</head>
|
|
|
|
+<body>
|
|
|
|
+<nav class="breadcrumb">
|
|
|
|
+ <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
|
|
|
|
+ href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i></a>
|
|
|
|
+</nav>
|
|
|
|
+<article class="page-container">
|
|
|
|
+ <form action="activityNewsUpdates.html" method="post" enctype="multipart/form-data" class="form form-horizontal" id="subform">
|
|
|
|
+
|
|
|
|
+ <div class="row cl">
|
|
|
|
+ <label class="form-label col-xs-4 col-sm-1"><span class="c-red">*</span>资讯类型:</label>
|
|
|
|
+ <div class="formControls col-xs-8 col-sm-9">
|
|
|
|
+ <select name="typeid" id="pId" class="input-text">
|
|
|
|
+ <c:forEach items="${typeInfo}" var="type">
|
|
|
|
+ <option value="${type.id}"
|
|
|
|
+ <c:if test="${type.id == activityNews.typeid}">selected</c:if> >${type.typename}</option>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="row cl">
|
|
|
|
+ <label class="form-label col-xs-4 col-sm-1"><span class="c-red">*</span>资讯类型:</label>
|
|
|
|
+ <div class="formControls col-xs-8 col-sm-9">
|
|
|
|
+ <select name="typeid" class="input-text">
|
|
|
|
+ <c:forEach items="${tagInfo}" var="tag">
|
|
|
|
+ <option value="${tag.id}"
|
|
|
|
+ <c:if test="${tag.id == activityNews.tagid}">selected</c:if> >${tag.tagname}</option>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="row cl">
|
|
|
|
+ <label class="form-label col-xs-4 col-sm-1"><span class="c-red">*</span>资讯名称:</label>
|
|
|
|
+ <div class="formControls col-xs-8 col-sm-9">
|
|
|
|
+ <input type="text" class="input-text" name="title" value="${activityNews.title}">
|
|
|
|
+ <input type="hidden" class="input-text" name="id" value="${activityNews.id}">
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <div class="row cl">
|
|
|
|
+ <label class="form-label col-xs-4 col-sm-1">广告图:</br><span class="c-red">*不超过三张</span></label>
|
|
|
|
+ <div class="formControls col-xs-8 col-sm-9">
|
|
|
|
+ <div style="width:100%;height:auto;border:1px solid #DDDDDD;padding:8px 5px 0 0;" class="selfprozslidim">
|
|
|
|
+ <dl>
|
|
|
|
+ <input type="file" style="display: none;" name="fileToUpload" class="selfbasetlimgedup" id="fileToUpload">
|
|
|
|
+ <c:forEach items="${list }" var="pics">
|
|
|
|
+ <dd class="del"><img src="${pics}" width="68" height="68" /><input type="hidden" name="activityimage" value="${pics }"/><div class="delwarp"><a class="delete" onclick="delalbum(this)"></a></div></dd>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ <dd id="albummore"><a onclick="$('#fileToUpload').click();"><img src="${pageContext.request.contextPath}/static/images/addmore.jpg" alt="" id="img"></a></dd>
|
|
|
|
+ </dl>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="row cl">
|
|
|
|
+ <label class="form-label col-xs-4 col-sm-1"><span class="c-red">*</span>是否置顶:</label>
|
|
|
|
+ <div class="formControls col-xs-8 col-sm-9">
|
|
|
|
+ <select name="istop" class="input-text">
|
|
|
|
+ <c:if test="${activityNews.istop == 0}" >
|
|
|
|
+ <option value="0" selected>否</option>
|
|
|
|
+ <option value="1" >是</option>
|
|
|
|
+ </c:if>
|
|
|
|
+ <c:if test="${activityNews.istop ==1}">
|
|
|
|
+ <option value="0" >否</option>
|
|
|
|
+ <option value="1" selected>是</option>
|
|
|
|
+ </c:if>
|
|
|
|
+ </select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="row cl">
|
|
|
|
+ <label class="form-label col-xs-4 col-sm-1"><span class="c-red">*</span>广告设置:</label>
|
|
|
|
+ <div class="formControls col-xs-8 col-sm-9">
|
|
|
|
+ <select name="isAd" class="input-text">
|
|
|
|
+ <c:if test="${activityNews.isAd == 0}" >
|
|
|
|
+ <option value="0" selected>否</option>
|
|
|
|
+ <option value="1" >是</option>
|
|
|
|
+ </c:if>
|
|
|
|
+ <c:if test="${activityNews.isAd == 1}">
|
|
|
|
+ <option value="0" >否</option>
|
|
|
|
+ <option value="1" selected>是</option>
|
|
|
|
+ </c:if>
|
|
|
|
+ </select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <%--编辑器--%>
|
|
|
|
+ <div class="row cl">
|
|
|
|
+ <label class="form-label col-xs-4 col-sm-1"><span class="c-red"></span>资讯详情:</label>
|
|
|
|
+ <div class="formControls col-xs-8 col-sm-9">
|
|
|
|
+ <script id="introduction" name="detailinfo" style="width:100%;height:200px;" type="text/plain">${activityNews.detailinfo}</script>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="row cl">
|
|
|
|
+ <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-1">
|
|
|
|
+ <%--<button type="button" class="btn btn-success radius" id="sub" name="admin-role-save"><i class="icon-ok"></i> 确定</button>--%>
|
|
|
|
+ <button type="button" class="btn btn-primary radius" id="sub" name="admin-role-save"><i class="Hui-iconfont"></i> 提交</button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+</article>
|
|
|
|
+
|
|
|
|
+<!--请在下方写此页面业务相关的脚本-->
|
|
|
|
+<!-- 百度文本编辑器 引用文件 -->
|
|
|
|
+<link href="<%=base%>/static/ue/themes/default/css/ueditor.css" type="text/css" rel="stylesheet">
|
|
|
|
+<script src="<%=base%>/static/ue/ueditor.config.js" type="text/javascript"></script>
|
|
|
|
+<script src="<%=base%>/static/ue/ueditor.all.js" type="text/javascript"></script>
|
|
|
|
+<script type="text/javascript" src="<%=base%>/static/ue/lang/zh-cn/zh-cn.js"></script>
|
|
|
|
+<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/ajaxfileupload.js"></script>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+<script type="text/javascript">
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <!-- 百度文本编辑器 js -->
|
|
|
|
+
|
|
|
|
+ $(function () {
|
|
|
|
+ var ue = UE.getEditor('introduction', {
|
|
|
|
+ //关闭字数统计
|
|
|
|
+ wordCount: false,
|
|
|
|
+ toolbars: [['fullscreen', 'source', '|', 'undo', 'redo', '|',
|
|
|
|
+ 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
|
|
|
|
+ 'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
|
|
|
|
+ 'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
|
|
|
|
+ 'directionalityltr', 'directionalityrtl', 'indent', '|',
|
|
|
|
+ 'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
|
|
|
|
+ 'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
|
|
|
|
+ 'insertimage', 'emotion', 'insertvideo', 'attachment', 'map', 'template', 'background', '|',
|
|
|
|
+ 'horizontal', 'date', 'time', 'spechars', 'wordimage', '|',
|
|
|
|
+ 'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', 'charts', '|',
|
|
|
|
+ 'print', 'preview', 'searchreplace', 'help'
|
|
|
|
+ ]],
|
|
|
|
+ //关闭elementPath
|
|
|
|
+ elementPathEnabled: false,
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ var currentBrowserId;
|
|
|
|
+
|
|
|
|
+ function browserImage(targetId) {
|
|
|
|
+ currentBrowserId = targetId;
|
|
|
|
+ var weboxTemp = $.webox({
|
|
|
|
+ height: 600,
|
|
|
|
+ width: 1024,
|
|
|
|
+ bgvisibel: true,
|
|
|
|
+ title: '图片管理',
|
|
|
|
+ iframe: '<%=base%>/admin/image/imgbox.html?' + Math.random()
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function setImagepath(imgPath) {
|
|
|
|
+ $('#' + currentBrowserId).val(imgPath);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function closeFrame() {
|
|
|
|
+ $('#locked .span').click();
|
|
|
|
+ }
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+<%-- 多图上传 --%>
|
|
|
|
+<script type="text/javascript">
|
|
|
|
+ $(function(){
|
|
|
|
+ $("#fileToUpload").change(function(){
|
|
|
|
+ var f = document.getElementById('fileToUpload').files[0];
|
|
|
|
+ $.ajaxFileUpload({
|
|
|
|
+ fileElementId : 'fileToUpload',
|
|
|
|
+ url : 'uploadImages.html',
|
|
|
|
+ dataType : 'text',
|
|
|
|
+ data : {},
|
|
|
|
+ async : true,
|
|
|
|
+ error : function(data) {
|
|
|
|
+ alert("网络异常,请重试");
|
|
|
|
+ },
|
|
|
|
+ success : function(message) {
|
|
|
|
+ $("#albummore").before('<dd class="del"><img src="'+message+'" width="68" height="68" /><input type="hidden" name="activityimage" value="'+message+'"/><div class="delwarp"><a class="delete" onclick="delalbum(this)">删除</a></div></dd>');
|
|
|
|
+ chens();
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ function chens(){
|
|
|
|
+ $("#fileToUpload").change(function(){
|
|
|
|
+ var f = document.getElementById('fileToUpload').files[0];
|
|
|
|
+ $.ajaxFileUpload({
|
|
|
|
+ fileElementId : 'fileToUpload',
|
|
|
|
+ url : 'uploadImages.html',
|
|
|
|
+ dataType : 'text',
|
|
|
|
+ data : {},
|
|
|
|
+ async : true,
|
|
|
|
+ error : function(data) {
|
|
|
|
+ alert("网络异常,请重试");
|
|
|
|
+ },
|
|
|
|
+ success : function(message) {
|
|
|
|
+ $("#albummore").before('<dd class="del"><img src="'+message+'" width="68" height="68" /><input type="hidden" name="activityimage" value="'+message+'"/><div class="delwarp"><a class="delete" onclick="delalbum(this)">删除</a></div></dd>');
|
|
|
|
+ chens();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function delalbum(obj){
|
|
|
|
+ $(obj).parents(".del").remove();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+<!--请在下方写此页面业务相关的脚本-->
|
|
|
|
+<script type="text/javascript">
|
|
|
|
+</script>
|
|
|
|
+<!--/请在上方写此页面业务相关的脚本-->
|
|
|
|
+</body>
|
|
|
|
+</html>
|