seajs.use(["lui/dialog","lui/jquery"],function(dialog,$){//删除事件window.deleteDoc = function(delUrl){Com_Delete_Get(delUrl, "com.landray.kmss.sys.news.model.SysNewsMain");return;}; //图片压缩函数window.doZipImage=function(){$(".lui_form_content_frame").find("img").each(function(){this.style.cssText="";var pt;if(this.height //高宽比if(this.width>###){this.width = ###;if(pt)this.height = ### * pt;}});};$(document).ready(function(){var obj = document.getElementById("JGWebOffice_editonline")||document.getElementById("JGWebOffice_");if(obj){obj.setAttribute("height", "###px");}});window.setTop=function(isTop,fdId){var values = [];values.push(fdId);if(values.length==#){dialog.alert("您没有选择需要操作的数据");return; }var days=null;if(isTop){dialog.iframe("/sys/news/sys_news_main/sysNewsMain_topday.jsp","置顶时间",function (value){ days=value; if(days==null){return;}else{window.del_load = dialog.loading();$.ajax({url: Com_Parameter.ContextPath+"sys/news/sys_news_main/sysNewsMain.do?method=setTop }dialog.failure("操作失败!");},success: topCallback});}},{width:###,height : ###});}else{days=#;dialog.confirm("该操作将取消选定文档的置顶状态,是否继续?",function(value){if(value==true){window.del_load = dialog.loading();$.ajax({url: Com_Parameter.ContextPath+"sys/news/sys_news_main/sysNewsMain.do?method=setTop }dialog.failure("操作失败!");},success: topCallback});}});}};window.topCallback = function(data){if(window.del_load!=null)window.del_load.hide();if(data!=null window.location.reload();}else{dialog.failure("操作失败!");window.location.reload();}};});function setFrameSize(){var frame = document.getElementById("IFrame_Content");if(frame){//金格控件// 金格控件中图片居中兼容var ___imgs = frame.contentWindow.document.getElementsByTagName("img");for(var j=#;j bh){bh = tbh;}}//var tmpHeight = (IFrame_Content.contentWindow.document.body.scrollHeight + ## );document.getElementById("contentDiv").style.height = bh+"px"; }else{//rtf输出文本 // xform输出默认设置最大宽度// doZipImage(); }}; Com_IncludeFile("swf_attachment.js","/ekp/sys/attachment/js/", "js",true);Com_IncludeFile("pdfobject.min.js","/ekp/resource/js/", "js", true); $(function() {if (window.ActiveXObject || "ActiveXObject" in window) {var oAcro, oAcro#, oAcro#;var flag = false;for (x = #; x ########################################################-##-## ##:##作者:钱文恺////////
查看剩余内容>>