|
@@ -0,0 +1,142 @@
|
|
|
+#@adminLayout()
|
|
|
+
|
|
|
+#define main()
|
|
|
+
|
|
|
+<div class="jfa-header-box" id="jfa-header-box">
|
|
|
+ <div class="jfa-search-box"></div>
|
|
|
+ #include("/_view/_admin/common/_header_right.html")
|
|
|
+</div>
|
|
|
+
|
|
|
+
|
|
|
+<div class="jfa-content-box" id="jfa-content-box">
|
|
|
+ <div class="jfa-content" id="jfa-content">
|
|
|
+ <form class="clearfix margin-top-25" action="/nvrnetwork/admin/activityNews/doUpdate/#(pageNum)" method="post">
|
|
|
+ #include("activityNews_form.html")
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+<script type="text/javascript">
|
|
|
+
|
|
|
+
|
|
|
+ ### 百度文本编辑器
|
|
|
+ $(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">
|
|
|
+
|
|
|
+ var isAd = $("#isAd").val();
|
|
|
+ if (isAd.trim() == 1 ){
|
|
|
+ $("#upLineTime").show();
|
|
|
+ $("#downLineTime").show();
|
|
|
+ $("#adRankNumber").show();
|
|
|
+ }else {
|
|
|
+ $("#upLineTime").hide();
|
|
|
+ $("#downLineTime").hide();
|
|
|
+ $("#adRankNumber").hide();
|
|
|
+ }
|
|
|
+
|
|
|
+ function isAdChange(isAdValue){
|
|
|
+ if (isAdValue.trim() == 1){
|
|
|
+ $("#upLineTime").show();
|
|
|
+ $("#downLineTime").show();
|
|
|
+ $("#adRankNumber").show();
|
|
|
+ } else {
|
|
|
+ $("#upLineTime").hide();
|
|
|
+ $("#downLineTime").hide();
|
|
|
+ $("#adRankNumber").hide();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ $(function(){
|
|
|
+ $("#fileToUpload").change(function(){
|
|
|
+ var f = document.getElementById('fileToUpload').files[0];
|
|
|
+ $.ajaxFileUpload({
|
|
|
+ fileElementId : 'fileToUpload',
|
|
|
+ url : '/nvrnetwork/common/imageUpload',
|
|
|
+ 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>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+#end
|