| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721 |
- <html>
- <head>
- <%-- 先去掉,好像没用到。Lin
- <wdDialog close="true"/>
- --%>
- <css.ss file="/ss/jquery-smartMenu/smartMenu.css"/>
- <js.ss file="/ss/jquery-smartMenu/jquery-smartMenu.js"/>
- <js.ss file="/ss/growHeight.js"/>
- <!-- 引入查阅pdf的相关文件 -->
- <css.ss file="/ss/pdf/base.min.css"/>
- <css.ss file="/ss/pdf/fancy.min.css"/>
- <js.ss file="/ss/pdf/compatibility.min.js"/>
- <js.ss file="/ss/pdf/pdf2htmlEX.min.js"/>
- <!-- 引入关于锚点的js-->
- <js.ss file="/ss/jquery-anchor/jquery.anchor.1.0.js"/>
- <!--拖拽js-->
- <js.ss file="/ss/wdDrag.js"/>
- <style type="text/css">
- .mainDiv {
- display: flex;
- justify-content: center;
- text-align: center;
- }
- .mainDiv.cms-background.scrollbar img {
- width: auto !important;
- height: auto !important;
- max-width: 100% !important;
- max-height: 100% !important;
- }
- .mainDiv.cms-background.scrollbar .videoparent {
- width: auto !important;
- height: 100% !important;
- }
- .mainDiv.cms-background.scrollbar .video {
- width: 100% !important;
- height: 100% !important;
- }
- .contextMenu-div .contextMenu-button {
- margin: 4px;
- }
- .smallScroll::-webkit-scrollbar {
- cursor: url(image/cur.ico), default !important;
- width: 3px;
- }
- .smallScroll::-webkit-scrollbar-track {
- background-color: none;
- border-radius: 5px;
- cursor: url(image/cur.ico), default !important;
- }
- .smallScroll::-webkit-scrollbar-thumb {
- background: #b7b7b7;
- cursor: url(image/cur.ico), default !important;
- border-radius: 5px;
- }
- #leftDiv .icon-checked {
- display: none !important;
- }
- #leftDiv .icon-unchecked {
- display: none !important;
- }
- .leftTab {
- padding: 2px !important;
- }
- .leftTab-selected {
- padding: 2px 6px !important;
- }
- </style>
- </head>
- <body style="overflow: hidden;">
- <div class="nr-system-div" ssFith="true" style="width: 100%;position: relative;display: flex;overflow: hidden;">
- <!--
- <div class="nrsx">
- <span>名称:${nrmc}</span>
- <span> 类型:${nrlb}</span>
- </div>
- -->
- <div id="float_menu" class="contextMenu-div">
- <input class="contextMenu-button" type="button" value="删除" id="delete">
- <input class="contextMenu-button" type="button" value="属性" id="fileProperty">
- </div>
- <div id="leftDiv" style="width: 200px;height: 100%;overflow:auto;display: inline-block;position: relative;z-index: 9;" class="smallScroll cms-background" ssDragw="{min:180,max:300,right:true}"> <%-- wdDragWidth="min:180px,max:300px,side:right"。Lin --%>
- <div id="container" style="width:100%;min-height: 100%;padding-bottom: 83px;box-sizing: border-box;">
- <div class="column dragList" id="columnSelected">
- </div>
- <drag.ss name="column" func="editOrder"/>
- <div class="graphButton button icon-add" id="add" style="float: right;margin-top:10px;margin-right: 5px;height: 60px;line-height: 82px;">增加</div>
- </div>
- </div>
- <div class="mainDiv smallScroll" unselectable="on" ondragstart="return false;" onselectstart="return false;" style="-moz-user-select:none;width: 100%;height: 100%;vertical-align: top;overflow-x: hidden;" ssDragw=""> <%-- wdDragWidth=""。先保留,搞明白再去掉???Lin --%>
- </div>
- <input type="button" style="position:absolute;right:16px;top:16px;border: none;display:none;" id="fullscreen" class="" title="全屏/还原按钮">
- </div>
- <div class='bottom-div'>
- <!-- 底部区域 -->
- <!--<input type="button" value="关闭" onclick="wd.display.closeDialog();" class="bottom-button" >-->
- </div>
- </body>
- <script type="text/javascript">
- var currSubNrid; //当前选中的子内容ID
- var haveButton = false;
- var hide = '${hide}'.split(",");
- var hideAdd = hide.indexOf("add");
- var hideList = hide.indexOf("list");
- if(hideAdd>-1){
- $("#add").hide();
- }
- /* 添加全屏等,如果是内嵌 */
- if ('true' == '${inner}' && window.frameElement) { //内嵌编辑器
- var thisIsFullFrame = window.frameElement.getAttribute("fullframe") == "true";
- var cms_nameField = '<wd:write value="${nameField}"/>';
- if (cms_nameField != '') { //自动填充表单值,如果对应表单值不为空的话
- window.cms_setNameField = function (name) {
- $("[name='" + cms_nameField + "']", window.parent.document).each(function () {
- console.log(this);
- if (this.GrowHeight) {
- var val = this.GrowHeight.val();
- if (val == null || val == '') {
- this.GrowHeight.val(name);
- }
- }
- });
- }
- }
- var $full = $("#fullscreen");
- var cms_title = '<wd:write value="${cms_title}"/>';
- if (!thisIsFullFrame && cms_title != '' && window.frameElement && !window.frameElement.titleIsShowed) { //鼠标进入时显示title
- var cms_showTitle = function (e) {
- var _frame = window.frameElement;
- var fbound = _frame.getBoundingClientRect();
- var windowWidth = window.top.document.documentElement.getBoundingClientRect().width;
- var xy = recursionIframe();
- var right = (windowWidth - fbound.width - xy.left);
- wd.topWindow.$("#flashmsgtipsId").css({
- "top": (xy.top - window.top.document.body.scrollTop + 5) + "px",
- "right": (Math.max(right, 10) + 2) + "px",
- "bottom": "",
- "left": ""
- });
- var options = {
- onShow: function () {
- wd.topWindow.$("#flashmsgtipsId").find(".flashMsg-down").hide();
- $full.fadeOut();
- },
- onHide: function () {
- wd.topWindow.$("#flashmsgtipsId").find(".flashMsg-down").show();
- $full.fadeIn();
- }
- };
- window.frameElement.titleIsShowed = true;
- wd.display.alert(cms_title, options);
- document.body.removeEventListener("mouseenter", cms_showTitle);
- }
- document.body.addEventListener("mouseenter", cms_showTitle);
- }
- $full.click(function () {
- if (thisIsFullFrame) {
- window.frameElement.srcFrame.contentWindow.location.reload();
- window.frameElement.parentNode.removeChild(window.frameElement);
- } else {
- var fullframe = window.parent.document.createElement("iframe");
- fullframe.width = "100%";
- fullframe.height = "100%";
- fullframe.setAttribute("fullframe", "true");
- fullframe.style.background = "white";
- fullframe.style.position = "absolute";
- fullframe.style.bottom = 0;
- fullframe.style.left = 0;
- fullframe.style.right = 0;
- fullframe.style.top = 0;
- fullframe.style.zIndex = 99999;
- fullframe.src = window.frameElement.src;
- fullframe.srcFrame = window.frameElement;
- window.parent.document.body.appendChild(fullframe);
- }
- }).addClass(thisIsFullFrame ? "icon-restore" : "icon-fullscreen")
- .attr("title", thisIsFullFrame ? "还原" : "全屏")
- .show();
- }
- /* 添加全屏等,如果是内嵌end */
- //设置弹出窗口右上角的按钮
- function setWindowButton() {
- //获取当前窗口对应的dhxWin对象
- var w = wd.display.getwdDialogWindows();
- if (!haveButton) {
- //添加下载按钮
- w.button("CMS_download").show();
- w.button("CMS_download").onclick = function () {
- if (!currSubNrid) {
- wd.display.alert("请选择下载文件")
- return;
- }
- var downloadUrl = "@service{name:'downloadNr'}@" + "&nrid=" + currSubNrid;
- wd.display.downloadFile(downloadUrl);
- //window.open(downloadUrl, '', 'height=0,width=0,left=-300,top=-300,location=no,menubar=no,directories=no,directories=no,scrollbars=no,status=no,titlebar=no,toolbar=no');
- }
- //添加全屏按钮
- w.button("CMS_fullscreen").show();
- $(w.button("CMS_fullscreen")).on("click", function () {
- //使参数指定的DOM元素全屏,如果不传参数则默认带个页面全屏
- wd.display.CmsFullScreen($('.mainDiv')[0]);
- //alert($('#mainDiv')[0].outerHTML);
- });
- haveButton = true;
- }
- }
- $("document iframe").last().attr("id", "frameid");
- function save() {
- var nrid = "${nrid}";
- wd.display.getwdDialogOpener().loadNrid(nrid);
- wd.display.closeDialog();
- }
- function loadItem() {
- console.info("${nrid}");
- var el = document.getElementById("columnSelected");
- el.innerHTML = "";
- $.ajax({
- type: "GET",
- /* 改。Lin
- url: "@service{name:'nrxtsy',param:{nrid:'${nrid}',sfbf:'0',jlztm:'${jlztm}'}}@",
- */ url: "<serv.ss name='wrCmsList' parm='{nrid:"${nrid}",sfbf:"0",jlztm:"${jlztm}"}'/>",
- async: false,
- dataType: "json",
- success: function (data) {
- if (data) {
- for (var i = 0; i < data.length; i++) {
- addItem(data[i].mswj, data[i].mc, data[i].sltwj, data[i].tbwj, data[i].nrjslbm);
- if (i == 0 && window.cms_setNameField) {
- window.cms_setNameField(data[0].mc);
- }
- }
- var dr = DM.getInstance("column", ["opdown"]);
- dr.dragend = function (even) {
- resetDesign(".dragList");
- }
- dr.selectedList.reload();
- /* 编辑不用隐藏
- if(data.length<=1){
- $("#leftDiv").hide();
- }
- */
- }
- },
- error: function () { }
- });
- menu();
- }
- function addItem(id, name, sltwj, tbwj, nrjslbm) {
- var el = document.getElementById("columnSelected");
- /* 改。Lin
- var getDataUrl = '@service{name:"getData",param:{path:"wdVal{path}",download:"1"}}@';
- */ var getDataUrl = "<serv.ss name='dlByHttp' parm='{path:"ssVal{path}",download:"1"}'/>";
- var json;
- var co;
- if (sltwj != null) {
- json = JSON.parse('{"path":"' + encodeURI(sltwj) + '"}');
- getDataUrl = wd.display.replaceDynamicParam(getDataUrl, json);
- //wdObjectID='" + id + "'
- co = "<div class=\"item leftTab hLine\" ssObjId='"+ id + <%-- wdObjectID=。是 wdObjectID,不是 wdObjectId。Lin --%>
- "' style=\"display:flex;align-items:center;\"><div class=\"item_slt\"><div style=\"border:1px solid #e0e0e0;width:149px;height:79px;border-box:box-sizing;display:flex;justify-content:center;align-items:center;background-color:#fff;margin-bottom:5px;margin-top:15px;\"><img class='handle' style=\"max-width:100%;max-height:100%;\" src=\"" +
- getDataUrl + "\"></img></div><div style=\"text-align:center; display:inline-block;max-width:100%;margin:0 auto;height:20px;margin-bottom:5px;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;\" id=\"cms_name_" + id + "\">" +
- name + "</div></div><span style='display:none;' class='nrid'>" + id +
- "</span><span style='display:none;' class='nrjslbm'>" + nrjslbm + "</span>"
- /*
- <div id=\"qbian\" style=\"width:15px;height: 55px;position: fixed;background-color: #FFF;left:158px;display:none;\"></div>
- */
- +"</div>";
- } else {
- if (tbwj == "") {
- tbwj = "${sessionScope.ssUser.skinDir}image/icon/nrjslb-" + nrjslbm + "-large.png";
- getDataUrl = tbwj;
- } else {
- json = JSON.parse('{"path":"' + encodeURI(tbwj) + '"}');
- getDataUrl = wd.display.replaceDynamicParam(getDataUrl, json);
- }
- co = "<div class=\"item leftTab hLine\" ssObjId='" + id + <%-- wdObjectID=。是 wdObjectID,不是 wdObjectId。Lin --%>
- "' style=\"display:flex;align-items:center;\" ><img class='handle' style=\"width:22px;height:28px;margin-top:13px;margin-bottom:10px;\" src=\"" +
- getDataUrl + "\"></img><div style=\"width:108px;margin-left:10px;height:32px;line-height:17px;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;\" id=\"cms_name_" + id + "\">" +
- name + "</div><span style='display:none;' class='nrid'>" + id +
- "</span><span style='display:none;' class='nrjslbm'>" + nrjslbm + "</span>"+
- /*
- <div id=\"qbian\" style=\"width:15px;height: 55px;position: fixed;background-color: #FFF;left:158px;display:none;\"></div>
- */
- "</div>";
- }
- $(el).append(co);
- wd.display.initGrowHigh("cms_name_" + id, '80px', {});
- }
- function clicked() {
- console.info(wd);
- var prevNrid = $(this).find(".nrid").text();
- var appendString = '';
- if (prevNrid != null && prevNrid.trim().length > 0) {
- appendString = "&prevNrid=" + prevNrid;
- }
- var objId = '${objectId}';
- if (objId != null && objId.trim().length > 0) {
- appendString += "&objectId=" + objId;
- }
- var objName = '${objectName}';
- if (objName != null && objName.trim().length > 0) {
- appendString += "&objectName=" + objName;
- }
- var objFunction = '${objectFunction}';
- if (objFunction != null && objFunction.trim().length > 0) {
- appendString += "&objectFunction=" + objFunction;
- }
- wd.display.showComponent({
- show: ["wdDialog"],
- hide: [],
- /* 改。Lin
- url: "@service{name:'allowAccess',dest:'xzym', param:{nrid:'${nrid}'}}@" + appendString,
- dest: "nrxt.xzym",
- */
- url: "<serv.ss name='chkCmsNrid' dest='cmsAdd' parm='{nrid:"${nrid}"}'/>" + appendString,
- dest: "cmsAdd",
- title: "增加",
- width: 550,
- high: 272,
- wdDialogId: 44011763,
- form: ""
- });
- }
- //加载播放器
- function loadPlayer(nrid, nrjslbm) {
- var mainNrin = $(".mainDiv").attr("nrid");
- console.log("mainNrin:" + mainNrin);
- /* 先注释掉
- if (mainNrin == nrid) {
- console.log("相同内容 不重复加载");
- return;
- }
- */
- $.ajax({
- type: "GET",
- /* 改。Lin
- url: "@service{name:'loadNrDesignAndPlayerData'}@",
- */ url: "<serv.ss name='wrCmsPlay'/>",
- async: true,
- data: {
- "nrid": nrid,
- "nrjslbm": nrjslbm
- },
- dataType: "json",
- success: function (data) {
- /// 增加,增加错误处理 -- 统一 Ajax 返回标准 -- .ssCode、.ssMsg、.ssData。Lin
- if (data.ssCode != 0) {
- alert(data.ssMsg);
- return;
- }
- ///
- console.info(data);
- var div = document.createElement("div");
- var obj = {};
- obj.design = data.design;
- obj.resDesign = data.resDesign;
- div.setAttribute("data-init", JSON.stringify(obj));
- var tempData = data.data.replace(new RegExp('@dataFolder@', 'gm'), data.dataFolderPath);
- div.innerHTML = tempData;
- $(".mainDiv").html($(div));
- wd.display.CmsNrscroll($('.mainDiv')[0], nrid);
- $(".mainDiv").attr("nrid", nrid);
- }
- });
- }
- var float_menu_nrid = "";
- function menu() {
- //显示事件
- var showDetail = function (e) {
- selectItem(this);
- // e = (e) ? e : window.event
- // if (e.pageX < menu_width / 2) {
- // $("#float_menu").css("left", 1).css("top", e.pageY + 20).show();
- // } else {
- // $("#float_menu").css("left", e.pageX - menu_width / 2).css("top", e.pageY + 20).show();
- // }
- var nrid = $(this).find(".nrid").text();
- currSubNrid = nrid;
- var nrjslbm = $(this).find(".nrjslbm").text(); //新增
- console.info("nrid:" + nrid + " nrjslbm:" + nrjslbm);
- if (float_menu_nrid == "") {
- var menu_width = $("#float_menu").width();
- console.log($(this).width());
- console.log(menu_width);
- console.log(($(this).width() - menu_width) / 2);
- console.log($(this).position().left);
- $("#float_menu").css("left", $(this).position().left + ($(this).width() - menu_width) / 2).css("top", $(this).position().top + $(this).height() + 1).show();
- float_menu_nrid = nrid;
- } else {
- $("#float_menu").hide();
- float_menu_nrid = "";
- }
- loadPlayer(nrid, nrjslbm);
- setWindowButton();
- // $(".leftTab-selected").find("#qbian").show();
- };
- var showProperty = function () {
- var nrid = $(this).find(".nrid").text();
- var str = '&nrid=' + nrid;
- wd.display.showComponent({
- show: ['wdDialog'],
- hide: [],
- /* 改。Lin
- url: '@service{name:"getNrProperty",dest:"nr_sx"}@' + str,
- */ url: "<serv.ss name='initCcmsEdit' dest='ccmsEdit'/>"+ str,
- title: '修改文件属性',
- width: 500,
- high: 400,
- form: ''
- });
- };
- var downloadNr = function () {
- var nrid = $(this).find(".nrid").text();
- window.open("@service{name:'downloadNr'}@" + "&nrid=" + nrid);
- };
- var deleteNr = function () {
- $.ajax({
- type: "GET",
- url: "@service{name:'deleteNr'}@",
- async: false,
- data: {
- id: "${nrid}",
- nrid: $(this).find(".nrid").text()
- },
- dataType: "json",
- success: function (data) {
- if (data.result) {
- wd.display.alert("删除成功!")
- location.reload();
- loadItem();
- }
- },
- error: function () {
- console.info('delete fail');
- }
- });
- };
- var addNr = function () {
- var prevNrid = $(this).find(".nrid").text();
- var appendString = '';
- if (prevNrid != null && prevNrid.trim().length > 0) {
- appendString = "&prevNrid=" + prevNrid;
- }
- var objId = '${objectId}';
- if (objId != null && objId.trim().length > 0) {
- appendString += "&objectId=" + objId;
- }
- var objName = '${objectName}';
- if (objName != null && objName.trim().length > 0) {
- appendString += "&objectName=" + objectName;
- }
- var objFunction = '${objectFunction}';
- if (objFunction != null && objFunction.trim().length > 0) {
- appendString += "&objectFunction=" + objFunction;
- }
- /* 去掉,去掉变量 url。Lin
- var url = "@service{name:'allowAccess',dest:'xzym',param:{nrid:'${nrid}'}}@" + appendString;
- */
- wd.display.showComponent({
- show: ["wdDialog"],
- hide: [],
- /* 改,去掉变量 url 了。Lin
- url: url,
- dest: "nrxt.xzym",
- */
- url: "<serv.ss name='chkCmsNrid' dest='cmsAdd' parm='{nrid:"${nrid}"}'/>" + appendString,
- dest: "cmsAdd",
- title: "增加文件",
- width: 550,
- high: 240,
- form: ""
- });
- };
- var nrMenu = [[
- {text: "删除", func: deleteNr},
- {text: "内容属性", func: showProperty},
- {text: "下载", func: downloadNr},
- {text: "增加", func: addNr}
- ]];
- // $(".item").smartMenu(nrMenu, {
- // name: "item"
- // });
- //添加点击是事件
- $('.item').click(function () {
- $(".leftTab-selected").find("#qbian").show();
- $(".leftTab-selected").siblings().find("#qbian").hide();
- });
- $('.item').mouseup(showDetail);
- $('.item').mouseleave(function () {
- $("#float_menu").hide();
- float_menu_nrid = "";
- });
- }
- function resetDesign(column) {
- var items = $(column).find(".item");
- var ids = "";
- $(items).each(function (i, element) {
- ids += $(element).find(".nrid").text() + ",";
- })
- if (ids.length > 0) {
- ids = ids.substr(0, ids.length - 1);
- $.ajax({
- type: "GET",
- url: "@service{name:'resetDesign'}@",
- async: true,
- data: {
- id: "${nrid}",
- nrids: ids
- }
- });
- }
- }
- //为元素添加className:selected
- function selectItem(element) {
- $('.item').removeClass('leftTab-selected').addClass('hLine');
- $(element).addClass("leftTab-selected").removeClass('hLine');
- }
- /*隐藏右键菜单*/
- $("#float_menu").mouseleave(function () {
- $("#float_menu").hide();
- float_menu_nrid = "";
- });
- $("#float_menu").mouseenter(function () {
- $("#float_menu").show();
- });
- $('#fileProperty').on('click', function (e) {
- var nrid = $('.leftTab-selected').find(".nrid").text();
- if (nrid != null && nrid.trim().length > 0) {
- var str = '&nrid=' + nrid;
- wd.display.showComponent({
- show: ['wdDialog'],
- hide: [],
- /* 改。Lin
- url: '@service{name:"getNrProperty",dest:"nr_sx"}@' + str,
- */ url: "<serv.ss name='initCcmsEdit' dest='ccmsEdit'/>"+ str,
- title: '修改文件属性',
- width: 550,
- high: 170,
- form: ''
- });
- }
- });
- $('#delete').on('click', function (e) {
- var nrid = $('.leftTab-selected').find(".nrid").text();
- if (nrid != null && nrid.trim().length > 0) {
- $.ajax({
- type: "GET",
- /* 改。Lin
- url: "@service{name:'deleteNr'}@",
- */ url: "<serv.ss name='delCcms'/>",
- async: false,
- data: {
- 'id': "${nrid}",
- 'nrid': nrid
- },
- dataType: "json",
- success: function (data) {
- if (data.result) {
- wd.display.alert("删除成功!")
- loadItem();
- }
- },
- error: function () {
- console.info('delete fail');
- }
- });
- }
- });
- $('#add').on('click', function (e) {
- var prevNrid = $('.leftTab-selected').find(".nrid").text();
- var appendString = '';
- if (prevNrid != null && prevNrid.trim().length > 0) {
- appendString = "&prevNrid=" + prevNrid;
- }
- var objId = '${objectId}';
- if (objId != null && objId.trim().length > 0) {
- appendString += "&objectId=" + objId;
- }
- var objName = '${objectName}';
- if (objName != null && objName.trim().length > 0) {
- appendString += "&objectName=" + objName;
- }
- var objFunction = '${objectFunction}';
- if (objFunction != null && objFunction.trim().length > 0) {
- appendString += "&objectFunction=" + objFunction;
- }
- /* 去掉,去掉变量 url。Lin
- var url = "@service{name:'allowAccess',dest:'xzym',param:{nrid:'${nrid}',width:'${ifrwidth}',height:'${ifrheight}'}}@" + appendString;
- */
- wd.display.showComponent({
- show: ["wdDialog"],
- hide: [],
- /* 改,去掉变量 url 了。Lin
- url: url,
- dest: "nrxt.xzym",
- */
- url: "<serv.ss name='chkCmsNrid' dest='cmsAdd' parm='{nrid:"${nrid}",width:"${ifrwidth}",height:"${ifrheight}"}'/>" + appendString,
- dest: "cmsAdd",
- title: "增加",
- width: 550,
- high: 272,
- form: ""
- });
- });
- loadItem();
- (function () {
- $('.mainDiv').attr("isCmsFullScreen", 'false');
- $("#float_menu").hide();
- document.oncontextmenu = function (ev) {
- return false; //屏蔽右键菜单
- }
- var sftc = 1; //是否弹窗
- if ("${sftc}" == "0") {
- sftc = 0;
- }
- var w = wd.display.getwdDialogWindows();
- //添加内容属性按钮
- w.button("CMS_nrProperty").show();
- w.button("CMS_nrProperty").onclick = function () {
- var id = '${nrid}';
- id = id.substr(2);
- wd.display.showComponent({
- show: ["wdDialog"],
- hide: [],
- url: "@service{name:'nr_xg_jbqk',dest:'xg_nr_sx'}@" + "&nrid=" + id,
- dest: "nrxt.xg_nr_sx",
- title: "修改内容属性",
- width: 993,
- high: 537,
- form: ""
- });
- }
- if ("${nrlbm}" == "901001") {
- w.button("CMS_nrProperty").hide();
- }
- $('.mainDiv').attr("isCmsFullScreen", 'false');
- var items = $(".dragList").find(".item");
- if (items == undefined || items.length == 0) {
- if (sftc) {
- clicked();
- }
- } else {
- var nrid = $(items[0]).find(".nrid").text();
- var nrjslbm = $(items[0]).find(".nrjslbm").text();
- loadPlayer(nrid, nrjslbm);
- selectItem($(items[0])[0]);
- setWindowButton();
- wd.display.CmsNrscroll($('.mainDiv')[0], nrid);
- }
- })();
- window.onunload = function () {
- var callback_ = '${callback}';
- if (callback_ != '') {
- //wd.display.getwdDialogOpener().eval(callback);
- var w = wd.display.getwdDialogOpener();
- var callback = w[callback_];
- callback && callback();
- }
- };
- </script>
- </html>
|