| @@ -1,5 +0,0 @@ | |||
| function showHide2(objname) { | |||
| var obj = $Obj(objname); | |||
| if (obj.style.display != 'block') { obj.style.display = 'block' } | |||
| else { obj.style.display = 'none'; } | |||
| } | |||
| @@ -14,7 +14,7 @@ function browserVersion(types) { | |||
| var matches = re.exec(USERAGENT); | |||
| var ver = matches != null ? matches[2] : 0; | |||
| other = ver !== 0 ? 0 : other; | |||
| }else { | |||
| } else { | |||
| var ver = 0; | |||
| } | |||
| eval('BROWSER.' + i + '= ver'); | |||
| @@ -1,240 +0,0 @@ | |||
| var ie = document.all != null; | |||
| var moz = !ie && document.getElementById != null && document.layers == null; | |||
| /* | |||
| * Extends the event object with srcElement, cancelBubble, returnValue, | |||
| * fromElement and toElement | |||
| */ | |||
| function extendEventObject() { | |||
| Event.prototype.__defineSetter__("returnValue", function (b) { | |||
| if (!b) this.preventDefault(); | |||
| }); | |||
| Event.prototype.__defineSetter__("cancelBubble", function (b) { | |||
| if (b) this.stopPropagation(); | |||
| }); | |||
| Event.prototype.__defineGetter__("srcElement", function () { | |||
| var node = this.target; | |||
| while (node.nodeType != 1) node = node.parentNode; | |||
| return node; | |||
| }); | |||
| Event.prototype.__defineGetter__("fromElement", function () { | |||
| var node; | |||
| if (this.type == "mouseover") | |||
| node = this.relatedTarget; | |||
| else if (this.type == "mouseout") | |||
| node = this.target; | |||
| if (!node) return; | |||
| while (node.nodeType != 1) node = node.parentNode; | |||
| return node; | |||
| }); | |||
| Event.prototype.__defineGetter__("toElement", function () { | |||
| var node; | |||
| if (this.type == "mouseout") | |||
| node = this.relatedTarget; | |||
| else if (this.type == "mouseover") | |||
| node = this.target; | |||
| if (!node) return; | |||
| while (node.nodeType != 1) node = node.parentNode; | |||
| return node; | |||
| }); | |||
| Event.prototype.__defineGetter__("offsetX", function () { | |||
| return this.layerX; | |||
| }); | |||
| Event.prototype.__defineGetter__("offsetY", function () { | |||
| return this.layerY; | |||
| }); | |||
| } | |||
| /* | |||
| * Emulates element.attachEvent as well as detachEvent | |||
| */ | |||
| function emulateAttachEvent() { | |||
| HTMLDocument.prototype.attachEvent = | |||
| HTMLElement.prototype.attachEvent = function (sType, fHandler) { | |||
| var shortTypeName = sType.replace(/on/, ""); | |||
| fHandler._ieEmuEventHandler = function (e) { | |||
| window.event = e; | |||
| return fHandler(); | |||
| }; | |||
| this.addEventListener(shortTypeName, fHandler._ieEmuEventHandler, false); | |||
| }; | |||
| HTMLDocument.prototype.detachEvent = | |||
| HTMLElement.prototype.detachEvent = function (sType, fHandler) { | |||
| var shortTypeName = sType.replace(/on/, ""); | |||
| if (typeof fHandler._ieEmuEventHandler == "function") | |||
| this.removeEventListener(shortTypeName, fHandler._ieEmuEventHandler, false); | |||
| else | |||
| this.removeEventListener(shortTypeName, fHandler, true); | |||
| }; | |||
| } | |||
| /* | |||
| * This function binds the event object passed along in an | |||
| * event to window.event | |||
| */ | |||
| function emulateEventHandlers(eventNames) { | |||
| for (var i = 0; i < eventNames.length; i++) { | |||
| document.addEventListener(eventNames[i], function (e) { | |||
| window.event = e; | |||
| }, true); // using capture | |||
| } | |||
| } | |||
| /* | |||
| * Simple emulation of document.all | |||
| * this one is far from complete. Be cautious | |||
| */ | |||
| function emulateAllModel() { | |||
| var allGetter = function () { | |||
| var a = this.getElementsByTagName("*"); | |||
| var node = this; | |||
| a.tags = function (sTagName) { | |||
| return node.getElementsByTagName(sTagName); | |||
| }; | |||
| return a; | |||
| }; | |||
| HTMLDocument.prototype.__defineGetter__("all", allGetter); | |||
| HTMLElement.prototype.__defineGetter__("all", allGetter); | |||
| } | |||
| function extendElementModel() { | |||
| HTMLElement.prototype.__defineGetter__("parentElement", function () { | |||
| if (this.parentNode == this.ownerDocument) return null; | |||
| return this.parentNode; | |||
| }); | |||
| HTMLElement.prototype.__defineGetter__("children", function () { | |||
| var tmp = []; | |||
| var j = 0; | |||
| var n; | |||
| for (var i = 0; i < this.childNodes.length; i++) { | |||
| n = this.childNodes[i]; | |||
| if (n.nodeType == 1) { | |||
| tmp[j++] = n; | |||
| if (n.name) { // named children | |||
| if (!tmp[n.name]) | |||
| tmp[n.name] = []; | |||
| tmp[n.name][tmp[n.name].length] = n; | |||
| } | |||
| if (n.id) // child with id | |||
| tmp[n.id] = n | |||
| } | |||
| } | |||
| return tmp; | |||
| }); | |||
| HTMLElement.prototype.contains = function (oEl) { | |||
| if (oEl == this) return true; | |||
| if (oEl == null) return false; | |||
| return this.contains(oEl.parentNode); | |||
| }; | |||
| } | |||
| /* | |||
| document.defaultView.getComputedStyle(el1,<BR>null).getPropertyValue('top'); | |||
| */ | |||
| function emulateCurrentStyle(properties) { | |||
| HTMLElement.prototype.__defineGetter__("currentStyle", function () { | |||
| var cs = {}; | |||
| var el = this; | |||
| for (var i = 0; i < properties.length; i++) { | |||
| cs.__defineGetter__(properties[i], encapsulateObjects(el, properties[i])); | |||
| } | |||
| return cs; | |||
| }); | |||
| } | |||
| // used internally for emualteCurrentStyle | |||
| function encapsulateObjects(el, sProperty) { | |||
| return function () { | |||
| return document.defaultView.getComputedStyle(el, null).getPropertyValue(sProperty); | |||
| }; | |||
| } | |||
| function emulateHTMLModel() { | |||
| // This function is used to generate a html string for the text properties/methods | |||
| // It replaces '\n' with "<BR"> as well as fixes consecutive white spaces | |||
| // It also repalaces some special characters | |||
| function convertTextToHTML(s) { | |||
| s = s.replace(/\&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/\n/g, "<BR>"); | |||
| while (/\s\s/.test(s)) | |||
| s = s.replace(/\s\s/, " "); | |||
| return s.replace(/\s/g, " "); | |||
| } | |||
| HTMLElement.prototype.insertAdjacentHTML = function (sWhere, sHTML) { | |||
| var df; // : DocumentFragment | |||
| var r = this.ownerDocument.createRange(); | |||
| switch (String(sWhere).toLowerCase()) { | |||
| case "beforebegin": | |||
| r.setStartBefore(this); | |||
| df = r.createContextualFragment(sHTML); | |||
| this.parentNode.insertBefore(df, this); | |||
| break; | |||
| case "afterbegin": | |||
| r.selectNodeContents(this); | |||
| r.collapse(true); | |||
| df = r.createContextualFragment(sHTML); | |||
| this.insertBefore(df, this.firstChild); | |||
| break; | |||
| case "beforeend": | |||
| r.selectNodeContents(this); | |||
| r.collapse(false); | |||
| df = r.createContextualFragment(sHTML); | |||
| this.appendChild(df); | |||
| break; | |||
| case "afterend": | |||
| r.setStartAfter(this); | |||
| df = r.createContextualFragment(sHTML); | |||
| this.parentNode.insertBefore(df, this.nextSibling); | |||
| break; | |||
| } | |||
| }; | |||
| HTMLElement.prototype.__defineSetter__("outerHTML", function (sHTML) { | |||
| var r = this.ownerDocument.createRange(); | |||
| r.setStartBefore(this); | |||
| var df = r.createContextualFragment(sHTML); | |||
| this.parentNode.replaceChild(df, this); | |||
| return sHTML; | |||
| }); | |||
| HTMLElement.prototype.__defineGetter__("canHaveChildren", function () { | |||
| switch (this.tagName) { | |||
| case "AREA": | |||
| case "BASE": | |||
| case "BASEFONT": | |||
| case "COL": | |||
| case "FRAME": | |||
| case "HR": | |||
| case "IMG": | |||
| case "BR": | |||
| case "INPUT": | |||
| case "ISINDEX": | |||
| case "LINK": | |||
| case "META": | |||
| case "PARAM": | |||
| return false; | |||
| } | |||
| return true; | |||
| }); | |||
| HTMLElement.prototype.__defineGetter__("outerHTML", function () { | |||
| var attr, attrs = this.attributes; | |||
| var str = "<" + this.tagName; | |||
| for (var i = 0; i < attrs.length; i++) { | |||
| attr = attrs[i]; | |||
| if (attr.specified) | |||
| str += " " + attr.name + '="' + attr.value + '"'; | |||
| } | |||
| if (!this.canHaveChildren) | |||
| return str + ">"; | |||
| return str + ">" + this.innerHTML + "</" + this.tagName + ">"; | |||
| }); | |||
| HTMLElement.prototype.__defineSetter__("innerText", function (sText) { | |||
| this.innerHTML = convertTextToHTML(sText); | |||
| return sText; | |||
| }); | |||
| var tmpGet; | |||
| HTMLElement.prototype.__defineGetter__("innerText", tmpGet = function () { | |||
| var r = this.ownerDocument.createRange(); | |||
| r.selectNodeContents(this); | |||
| return r.toString(); | |||
| }); | |||
| HTMLElement.prototype.__defineSetter__("outerText", function (sText) { | |||
| this.outerHTML = convertTextToHTML(sText); | |||
| return sText; | |||
| }); | |||
| HTMLElement.prototype.__defineGetter__("outerText", tmpGet); | |||
| HTMLElement.prototype.insertAdjacentText = function (sWhere, sText) { | |||
| this.insertAdjacentHTML(sWhere, convertTextToHTML(sText)); | |||
| }; | |||
| } | |||
| @@ -20,7 +20,7 @@ function DedeCopyToClipboard(text) { | |||
| } else { | |||
| var textarea = document.createElement('textarea'); | |||
| document.body.appendChild(textarea); | |||
| // 隐藏此输入框 | |||
| //隐藏此输入框 | |||
| textarea.style.position = 'fixed'; | |||
| textarea.style.clip = 'rect(0 0 0 0)'; | |||
| textarea.style.top = '10px'; | |||
| @@ -83,18 +83,6 @@ function LoadServer() { | |||
| <td width="90">授权版本:</td> | |||
| <td>${rsp.result.auth_version}.x.x(时间:${rsp.result.auth_at})</td> | |||
| </tr> | |||
| `; | |||
| } | |||
| /*多余代码*/ | |||
| if (typeof rsp.result.title !== "undefined") { | |||
| infoStr += ` | |||
| `; | |||
| } | |||
| /*多余代码*/ | |||
| if (typeof rsp.result.auth_version !== "undefined" && typeof rsp.result.auth_at !== "undefined") { | |||
| infoStr += ` | |||
| <tr> | |||
| <td>站点名称:</td> | |||
| <td>${rsp.result.title}(${rsp.result.stype})</td> | |||
| @@ -106,21 +94,6 @@ function LoadServer() { | |||
| </tr> | |||
| `; | |||
| } | |||
| /*多余代码*/ | |||
| if (rsp.result.core === null || rsp.result.core.code != 200) { | |||
| //下面是DedeBIZ Core组件信息 | |||
| infoStr += ` | |||
| `; | |||
| } else { | |||
| dedebizInfo = JSON.parse(rsp.result.core.data); | |||
| infoStr += ` | |||
| `; | |||
| } | |||
| /*多余代码*/ | |||
| infoStr += "</table>"; | |||
| $("#system-info").html(infoStr); | |||
| } else { | |||
| @@ -134,16 +107,11 @@ function LoadServer() { | |||
| </tr> | |||
| </table> | |||
| <!--最新软件该提示--> | |||
| <table class="table table-borderless w-100"> | |||
| <tr> | |||
| <td>您的后台已是最新软件版本</td> | |||
| </tr> | |||
| </table> | |||
| <!--最新软件该提示--> | |||
| <!--正常新版本升级该提示,然后回到最新软件该提示--> | |||
| <table class="table table-borderless w-100"> | |||
| <tr> | |||
| <td colspan="2">本更新提供了重要的安全性更新,建议所有用户升级,软件更新将覆盖以下文件,请做好备份。<a href="" class="btn btn-success btn-sm">下一步</a></td> | |||
| @@ -161,10 +129,6 @@ function LoadServer() { | |||
| <td>/system/database/dedesqlite.class.php</td> | |||
| </tr> | |||
| </table> | |||
| <!--正常新版本升级该提示--> | |||
| <!--用户换后台该提示,然后回到正常新版本升级该提示,做后回到最新软件该提示--> | |||
| <table class="table table-borderless w-100"> | |||
| <tr> | |||
| <td>更新诊断出数据结构有问题,可能无法正常使用后台,是否尝试修复数据?</td> | |||
| @@ -176,7 +140,6 @@ function LoadServer() { | |||
| </td> | |||
| </tr> | |||
| </table> | |||
| <!--用户换后台该提示--> | |||
| `); | |||
| } | |||
| }); | |||
| @@ -1,8 +1,3 @@ | |||
| if (moz) { | |||
| extendEventObject(); | |||
| extendElementModel(); | |||
| emulateAttachEvent(); | |||
| } | |||
| function viewArc(aid){ | |||
| if (aid==0) aid = getOneItem(); | |||
| window.open("archives_do.php?aid="+aid+"&dopost=viewArchives"); | |||
| @@ -12,7 +7,7 @@ function kwArc(aid){ | |||
| if (aid==0) aid = getOneItem(); | |||
| if (qstr=='') | |||
| { | |||
| ShowMsg('必须选择一个或多个文档'); | |||
| ShowMsg('需要选择一个或多个文档'); | |||
| return; | |||
| } | |||
| location="archives_do.php?aid="+aid+"&dopost=makekw&qstr="+qstr; | |||
| @@ -35,7 +30,7 @@ function moveArc(e, obj, cid){ | |||
| var qstr=getCheckboxItem(); | |||
| if (qstr=='') | |||
| { | |||
| ShowMsg('必须选择一个或多个文档'); | |||
| ShowMsg('需要选择一个或多个文档'); | |||
| return; | |||
| } | |||
| LoadQuickDiv(e, 'archives_do.php?dopost=moveArchives&qstr='+qstr+'&channelid='+cid+'&rnd='+Math.random(), 'moveArchives', '480px', '180px'); | |||
| @@ -52,7 +47,7 @@ function cAtts(jname, e, obj) | |||
| var screeheight = document.body.clientHeight + 20; | |||
| if (qstr=='') | |||
| { | |||
| ShowMsg('必须选择一个或多个文档'); | |||
| ShowMsg('需要选择一个或多个文档'); | |||
| return; | |||
| } | |||
| LoadQuickDiv(e, 'archives_do.php?dopost=attsDlg&qstr='+qstr+'&dojob='+jname+'&rnd='+Math.random(), 'attsDlg', '480px', '180px'); | |||
| @@ -3,11 +3,6 @@ if (moz == null) | |||
| var ie = document.all != null; | |||
| var moz = !ie && document.getElementById != null && document.layers == null; | |||
| } | |||
| if (moz) { | |||
| extendEventObject(); | |||
| extendElementModel(); | |||
| emulateAttachEvent(); | |||
| } | |||
| function delArc(mid){ | |||
| var qstr=getCheckboxItem(); | |||
| if (mid==0) mid = getOneItem(); | |||
| @@ -7,10 +7,8 @@ | |||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | |||
| <script src="js/global.js"></script> | |||
| <script src="js/ieemu.js"></script> | |||
| <script src="js/dialog.js"></script> | |||
| <script src="../static/web/js/webajax.js"></script> | |||
| <script src="js/global.js"></script> | |||
| <script> | |||
| function LoadSuns(ctid, tid) { | |||
| if ($DE(ctid).innerHTML.length < 10) { | |||
| @@ -31,11 +29,6 @@ | |||
| $DE(objname).style.display = "none"; | |||
| } | |||
| } | |||
| if (moz) { | |||
| extendEventObject(); | |||
| extendElementModel(); | |||
| emulateAttachEvent(); | |||
| } | |||
| </script> | |||
| </head> | |||
| <body> | |||
| @@ -9,9 +9,8 @@ | |||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | |||
| <script src="../static/web/js/jquery.min.js"></script> | |||
| <script src="../static/web/js/bootstrap.bundle.min.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script src="../static/web/js/webajax.js"></script> | |||
| <script src="js/ieemu.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script src="js/list.js"></script> | |||
| </head> | |||
| <body> | |||
| @@ -59,10 +58,11 @@ | |||
| </form> | |||
| <table cellpadding="2" cellspacing="1" align="center" class="table maintable mb-3"> | |||
| <tr> | |||
| <td colspan="9" bgcolor="#f5f5f5">{dede:global.positionname/}文档列表</td> | |||
| <td colspan="10" bgcolor="#f5f5f5">{dede:global.positionname/}文档列表</td> | |||
| </tr> | |||
| <tr bgcolor="#e9ecef" align="center"> | |||
| <td width="6%">选择</td> | |||
| <td width="6%">id</td> | |||
| <td width="30%">文档属性</td> | |||
| <td width="10%">时间</td> | |||
| <td width="14%">类目</td> | |||
| @@ -78,6 +78,7 @@ | |||
| <table cellpadding="1" cellspacing="1" align="center" class="table maintable mb-3"> | |||
| <tr align="center"> | |||
| <td width="6%"><input type="checkbox" name="arcID" id="arcID" value="{dede:field.id/}"></td> | |||
| <td width="6%">{dede:field.id/}</td> | |||
| <td width="30%" align="left"> | |||
| <img src="{dede:field.litpic function='CheckPic(@me)'/}" class="thumbnail-sm"> | |||
| <a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}{dede:field.flag function='IsCommendArchives(@me)'/}</a> | |||
| @@ -101,8 +102,6 @@ | |||
| <td> | |||
| <a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a> | |||
| <a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a> | |||
| <a href="javascript:viewArc(0)" class="btn btn-success btn-sm">查看</a> | |||
| <a href="javascript:editArc(0)" class="btn btn-success btn-sm">修改</a> | |||
| <a href="javascript:updateArc(0)" class="btn btn-success btn-sm">更新</a> | |||
| <a href="javascript:checkArc(0)" class="btn btn-success btn-sm">审核</a> | |||
| <a href="javascript:adArc(0)" class="btn btn-success btn-sm">推荐</a> | |||
| @@ -10,7 +10,6 @@ | |||
| <script src="../static/web/js/jquery.min.js"></script> | |||
| <script src="../static/web/js/bootstrap.bundle.min.js"></script> | |||
| <script src="../static/web/js/webajax.js"></script> | |||
| <script src="js/ieemu.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script src="js/list.js"></script> | |||
| </head> | |||
| @@ -7,82 +7,7 @@ | |||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | |||
| <script src="js/ieemu.js"></script> | |||
| <script> | |||
| if (moz) { | |||
| extendEventObject(); | |||
| extendElementModel(); | |||
| emulateAttachEvent(); | |||
| } | |||
| function viewArc(aid) { | |||
| if (aid == 0) aid = getOneItem(); | |||
| window.open("archives_do.php?aid=" + aid + "&dopost=viewArchives"); | |||
| } | |||
| function editArc(aid) { | |||
| if (aid == 0) aid = getOneItem(); | |||
| location = "archives_do.php?aid=" + aid + "&dopost=editArchives"; | |||
| } | |||
| function updateArc(aid) { | |||
| var qstr = getCheckboxItem(); | |||
| if (aid == 0) aid = getOneItem(); | |||
| location = "archives_do.php?aid=" + aid + "&dopost=makeArchives&qstr=" + qstr; | |||
| } | |||
| function checkArc(aid) { | |||
| var qstr = getCheckboxItem(); | |||
| if (aid == 0) aid = getOneItem(); | |||
| location = "archives_do.php?aid=" + aid + "&dopost=checkArchives&qstr=" + qstr; | |||
| } | |||
| function adArc(aid) { | |||
| var qstr = getCheckboxItem(); | |||
| if (aid == 0) aid = getOneItem(); | |||
| location = "archives_do.php?aid=" + aid + "&dopost=commendArchives&qstr=" + qstr; | |||
| } | |||
| function delArc(aid) { | |||
| var qstr = getCheckboxItem(); | |||
| if (aid == 0) aid = getOneItem(); | |||
| location = "archives_do.php?qstr=" + qstr + "&aid=" + aid + "&dopost=delArchives"; | |||
| } | |||
| //获得选中文件的文件名 | |||
| function getCheckboxItem() { | |||
| var allSel = ""; | |||
| if (document.form2.arcID.value) return document.form2.arcID.value; | |||
| for (i = 0; i < document.form2.arcID.length; i++) { | |||
| if (document.form2.arcID[i].checked) { | |||
| if (allSel == "") | |||
| allSel = document.form2.arcID[i].value; | |||
| else | |||
| allSel = allSel + "`" + document.form2.arcID[i].value; | |||
| } | |||
| } | |||
| return allSel; | |||
| } | |||
| //获得选中其中一个的id | |||
| function getOneItem() { | |||
| var allSel = ""; | |||
| if (document.form2.arcID.value) return document.form2.arcID.value; | |||
| for (i = 0; i < document.form2.arcID.length; i++) { | |||
| if (document.form2.arcID[i].checked) { | |||
| allSel = document.form2.arcID[i].value; | |||
| break; | |||
| } | |||
| } | |||
| return allSel; | |||
| } | |||
| function selAll() { | |||
| for (i = 0; i < document.form2.arcID.length; i++) { | |||
| if (!document.form2.arcID[i].checked) { | |||
| document.form2.arcID[i].checked = true; | |||
| } | |||
| } | |||
| } | |||
| function noSelAll() { | |||
| for (i = 0; i < document.form2.arcID.length; i++) { | |||
| if (document.form2.arcID[i].checked) { | |||
| document.form2.arcID[i].checked = false; | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| <script src="js/list.js"></script> | |||
| </head> | |||
| <body> | |||
| <table cellspacing="0" cellpadding="0" align="center" class="table maintable my-3"> | |||
| @@ -143,8 +68,6 @@ | |||
| <td colspan="9"> | |||
| <a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a> | |||
| <a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a> | |||
| <a href="javascript:viewArc(0)" class="btn btn-success btn-sm">查看</a> | |||
| <a href="javascript:editArc(0)" class="btn btn-success btn-sm">修改</a> | |||
| <a href="javascript:updateArc(0)" class="btn btn-success btn-sm">更新</a> | |||
| <a href="javascript:checkArc(0)" class="btn btn-success btn-sm">审核</a> | |||
| <a href="javascript:adArc(0)" class="btn btn-success btn-sm">推荐</a> | |||
| @@ -10,114 +10,8 @@ | |||
| <script src="../static/web/js/jquery.min.js"></script> | |||
| <script src="../static/web/js/bootstrap.bundle.min.js"></script> | |||
| <script src="../static/web/js/webajax.js"></script> | |||
| <script src="js/ieemu.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script> | |||
| if (moz) { | |||
| extendEventObject(); | |||
| extendElementModel(); | |||
| emulateAttachEvent(); | |||
| } | |||
| function viewArc(aid) { | |||
| if (aid == 0) aid = getOneItem(); | |||
| window.open("archives_do.php?aid=" + aid + "&dopost=viewArchives"); | |||
| } | |||
| function editArc(aid) { | |||
| if (aid == 0) aid = getOneItem(); | |||
| location = "archives_do.php?aid=" + aid + "&dopost=editArchives"; | |||
| } | |||
| function checkArc(aid) { | |||
| var qstr = getCheckboxItem(); | |||
| if (aid == 0) aid = getOneItem(); | |||
| location = "archives_do.php?aid=" + aid + "&dopost=checkArchives&qstr=" + qstr; | |||
| } | |||
| function updateArc(aid) { | |||
| var qstr = getCheckboxItem(); | |||
| if (aid == 0) aid = getOneItem(); | |||
| location = "archives_do.php?aid=" + aid + "&dopost=makeArchives&qstr=" + qstr; | |||
| } | |||
| function moveArc(aid) { | |||
| var qstr = getCheckboxItem(); | |||
| if (aid == 0) aid = getOneItem(); | |||
| location = "archives_do.php?aid=" + aid + "&dopost=moveArchives&qstr=" + qstr; | |||
| } | |||
| function delArc(aid) { | |||
| var qstr = getCheckboxItem(); | |||
| if (qstr == '') { | |||
| ShowMsg('必须选择一个或多个文档'); | |||
| return; | |||
| } | |||
| if (aid == 0) aid = getOneItem(); | |||
| location = "archives_do.php?qstr=" + qstr + "&aid=" + aid + "&dopost=delArchives"; | |||
| } | |||
| function adArc(aid) { | |||
| var qstr = getCheckboxItem(); | |||
| if (aid == 0) aid = getOneItem(); | |||
| location = "archives_do.php?aid=" + aid + "&dopost=commendArchives&qstr=" + qstr; | |||
| } | |||
| function moveArc(e, obj, cid) { | |||
| var qstr = getCheckboxItem(); | |||
| if (qstr == '') { | |||
| ShowMsg('必须选择一个或多个文档'); | |||
| return; | |||
| } | |||
| LoadQuickDiv(e, 'archives_do.php?dopost=moveArchives&qstr=' + qstr + '&channelid=' + cid + '&rnd=' + Math.random(), 'moveArchives', '480px', '180px'); | |||
| ChangeFullDiv('show'); | |||
| } | |||
| //获得选中文件的文件名 | |||
| function getCheckboxItem() { | |||
| var allSel = ""; | |||
| if (document.form2.arcID.value) return document.form2.arcID.value; | |||
| for (i = 0; i < document.form2.arcID.length; i++) { | |||
| if (document.form2.arcID[i].checked) { | |||
| if (allSel == "") | |||
| allSel = document.form2.arcID[i].value; | |||
| else | |||
| allSel = allSel + "`" + document.form2.arcID[i].value; | |||
| } | |||
| } | |||
| return allSel; | |||
| } | |||
| function getCheckboxItem2() { | |||
| var allSel = ""; | |||
| if (document.form2.arcID.value) return document.form2.arcID.value; | |||
| for (i = 0; i < document.form2.arcID.length; i++) { | |||
| if (document.form2.arcID[i].checked) { | |||
| if (allSel == "") | |||
| allSel = document.form2.arcID[i].value; | |||
| else | |||
| allSel = allSel + "," + document.form2.arcID[i].value; | |||
| } | |||
| } | |||
| return allSel; | |||
| } | |||
| //获得选中其中一个的id | |||
| function getOneItem() { | |||
| var allSel = ""; | |||
| if (document.form2.arcID.value) return document.form2.arcID.value; | |||
| for (i = 0; i < document.form2.arcID.length; i++) { | |||
| if (document.form2.arcID[i].checked) { | |||
| allSel = document.form2.arcID[i].value; | |||
| break; | |||
| } | |||
| } | |||
| return allSel; | |||
| } | |||
| function selAll() { | |||
| for (i = 0; i < document.form2.arcID.length; i++) { | |||
| if (!document.form2.arcID[i].checked) { | |||
| document.form2.arcID[i].checked = true; | |||
| } | |||
| } | |||
| } | |||
| function noSelAll() { | |||
| for (i = 0; i < document.form2.arcID.length; i++) { | |||
| if (document.form2.arcID[i].checked) { | |||
| document.form2.arcID[i].checked = false; | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| <script src="js/list.js"></script> | |||
| </head> | |||
| <body> | |||
| <table cellspacing="0" cellpadding="0" align="center" class="table maintable my-3"> | |||
| @@ -7,19 +7,6 @@ | |||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | |||
| <script src="../static/web/js/jquery.min.js"></script> | |||
| <script src="../static/web/js/bootstrap.bundle.min.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script src="js/diy.js"></script> | |||
| <script> | |||
| function checkSubmit() { | |||
| if (document.form1.name.value == '') { | |||
| ShowMsg("自定义表单名称不能为空"); | |||
| return false; | |||
| } | |||
| return true; | |||
| } | |||
| </script> | |||
| </head> | |||
| <body> | |||
| <table cellpadding="1" cellspacing="1" align="center" class="table maintable my-3"> | |||
| @@ -7,24 +7,6 @@ | |||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | |||
| <script src="../static/web/js/jquery.min.js"></script> | |||
| <script src="../static/web/js/bootstrap.bundle.min.js"></script> | |||
| <script src="js/main.js"></script> | |||
| <script src="js/diy.js"></script> | |||
| <script> | |||
| function checkSubmit() { | |||
| if (document.form1.typename.value == '') { | |||
| ShowMsg("自定义表单名称不能为空"); | |||
| return false; | |||
| } | |||
| return true; | |||
| } | |||
| //删除 | |||
| function DelNote(gourl) { | |||
| if (!window.confirm("您确认要删除这条记录吗")) { return false; } | |||
| location.href = gourl; | |||
| } | |||
| </script> | |||
| </head> | |||
| <body> | |||
| <table cellpadding="1" cellspacing="1" align="center" class="table maintable my-3"> | |||
| @@ -15,9 +15,9 @@ | |||
| <td colspan="4">自定义表单管理</td> | |||
| </tr> | |||
| <tr bgcolor="#e9ecef" align="center"> | |||
| <td>diyid</td> | |||
| <td>名称</td> | |||
| <td>表名</td> | |||
| <td width="6%">diyid</td> | |||
| <td width="30%">名称</td> | |||
| <td width="14%">表名</td> | |||
| <td>管理</td> | |||
| </tr> | |||
| {dede:datalist empty='<tr><td colspan="4" align="center">暂无文档</td></tr>'} | |||
| @@ -9,7 +9,7 @@ | |||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | |||
| <script src="../static/web/js/jquery.min.js"></script> | |||
| <script src="../static/web/js/select2.full.min.js"></script> | |||
| <script src="../static/web/js/select2.min.js"></script> | |||
| <script src="../static/web/js/i18n/zh-CN.js"></script> | |||
| <script> | |||
| function onTagSubmit() { | |||
| @@ -8,7 +8,6 @@ | |||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | |||
| <script src="js/ieemu.js"></script> | |||
| <script src="js/user.js"></script> | |||
| </head> | |||
| <body> | |||
| @@ -102,9 +101,9 @@ | |||
| {/dede:datalist} | |||
| <tr> | |||
| <td colspan="10"> | |||
| <button type="button" onClick="selAll();" class="btn btn-success btn-sm">全选</button> | |||
| <button type="button" onClick="noSelAll();" class="btn btn-success btn-sm">取消</button> | |||
| <button type="button" onClick="delArc(0);" class="btn btn-danger btn-sm">删除</button> | |||
| <a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a> | |||
| <a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a> | |||
| <a href="javascript:delArc(0)" class="btn btn-danger btn-sm">删除</a> | |||
| </td> | |||
| </tr> | |||
| <tr> | |||
| @@ -117,7 +117,7 @@ class TypeUnit | |||
| //普通列表 | |||
| if ($ispart == 0) { | |||
| echo "<tr onMouseMove=\"javascript:this.bgColor='#e9ecef';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\">"; | |||
| echo "<td class='biz-td'><table width='98%' cellspacing='0' cellpadding='0'><tr><td width='50%'><i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-success btn-xs'>列表</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives'><span class='mr-3 ml-3'>".$typeName."</span></a>[id:".$id."](文档数:".$this->GetTotalArc($id).")<a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>"; | |||
| echo "<td class='biz-td'><table width='98%' cellspacing='0' cellpadding='0'><tr><td width='50%'><i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-success btn-xs'>列表</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives'><span class='mr-3 ml-3'>".$typeName."</span></a>[id:".$id."](文档数:".$this->GetTotalArc($id).")"; | |||
| echo "</td><td align='right'>"; | |||
| echo "<a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览'><i class='btn btn-sm fa fa-globe'></i></a>"; | |||
| echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='文档'><i class='btn btn-sm fa fa-bars'></i></a>"; | |||
| @@ -130,7 +130,7 @@ class TypeUnit | |||
| //带封面的栏目 | |||
| else if ($ispart == 1) { | |||
| echo "<tr onMouseMove=\"javascript:this.bgColor='#e9ecef';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\">"; | |||
| echo "<td class='biz-td'><table width='98%' cellspacing='0' cellpadding='0'><tr><td width='50%'><i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-warning btn-xs'>封面</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives'><span class='mr-3 ml-3'>".$typeName."</span></a>[id:".$id."]<a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>"; | |||
| echo "<td class='biz-td'><table width='98%' cellspacing='0' cellpadding='0'><tr><td width='50%'><i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-warning btn-xs'>封面</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives'><span class='mr-3 ml-3'>".$typeName."</span></a>[id:".$id."]"; | |||
| echo "</td><td align='right'>"; | |||
| echo "<a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览'><i class='btn btn-sm fa fa-globe'></i></a>"; | |||
| echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='文档'><i class='btn btn-sm fa fa-bars'></i></a>"; | |||
| @@ -143,7 +143,7 @@ class TypeUnit | |||
| //独立页面 | |||
| else if ($ispart == 2) { | |||
| echo "<tr onMouseMove=\"javascript:this.bgColor='#e9ecef';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\">"; | |||
| echo "<td class='biz-td'><table width='98%' cellspacing='0' cellpadding='0'><tr><td width='50%'><i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-primary btn-xs'>外部</span>{$nss}<a href='catalog_edit.php?id=".$id."'><span class='mr-3 ml-3'>".$typeName."</span></a>[id:".$id."]<a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>"; | |||
| echo "<td class='biz-td'><table width='98%' cellspacing='0' cellpadding='0'><tr><td width='50%'><i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-primary btn-xs'>外部</span>{$nss}<a href='catalog_edit.php?id=".$id."'><span class='mr-3 ml-3'>".$typeName."</span></a>[id:".$id."]"; | |||
| echo "</td><td align='right'>"; | |||
| echo "<a href='{$typeDir}' target='_blank' title='预览'><i class='btn btn-sm fa fa-globe'></i></a>"; | |||
| echo "<a href='catalog_edit.php?id={$id}' title='修改'><i class='btn btn-sm fa fa-pencil-square-o'></i></a>"; | |||
| @@ -200,7 +200,7 @@ class TypeUnit | |||
| if ($ispart == 0) { | |||
| echo "<tr onMouseMove=\"javascript:this.bgColor='#e9ecef';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\">"; | |||
| echo "<td class='nbiz-td'><table width='98%' cellspacing='0' cellpadding='0'><tr><td width='50%'>"; | |||
| echo "$step<i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-success btn-xs'>列表</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives'><span class='mr-3 ml-3'>".$typeName."</span></a>[id:".$id."](文档数:".$this->GetTotalArc($id).")<a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>"; | |||
| echo "$step<i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-success btn-xs'>列表</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives'><span class='mr-3 ml-3'>".$typeName."</span></a>[id:".$id."](文档数:".$this->GetTotalArc($id).")"; | |||
| echo "</td><td align='right'>"; | |||
| echo "<a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览'><i class='btn btn-sm fa fa-globe'></i></a>"; | |||
| echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='文档'><i class='btn btn-sm fa fa-bars'></i></a>"; | |||
| @@ -214,7 +214,7 @@ class TypeUnit | |||
| else if ($ispart == 1) { | |||
| echo "<tr onMouseMove=\"javascript:this.bgColor='#e9ecef';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\">"; | |||
| echo "<td class='nbiz-td'><table width='98%' cellspacing='0' cellpadding='0'><tr><td width='50%'>"; | |||
| echo "$step<i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-warning btn-xs'>封面</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives'><span class='mr-3 ml-3'>".$typeName."</span></a>[id:".$id."]<a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>"; | |||
| echo "$step<i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-warning btn-xs'>封面</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives'><span class='mr-3 ml-3'>".$typeName."</span></a>[id:".$id."]"; | |||
| echo "</td><td align='right'>"; | |||
| echo "<a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank' title='预览'><i class='btn btn-sm fa fa-globe'></i></a>"; | |||
| echo "<a href='catalog_do.php?cid={$id}&dopost=listArchives' title='文档'><i class='btn btn-sm fa fa-bars'></i></a>"; | |||
| @@ -228,7 +228,7 @@ class TypeUnit | |||
| else if ($ispart == 2) { | |||
| echo "<tr onMouseMove=\"javascript:this.bgColor='#e9ecef';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\">"; | |||
| echo "<td class='nbiz-td'><table width='98%' cellspacing='0' cellpadding='0'><tr><td width='50%'>"; | |||
| echo "$step<i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-primary btn-xs'>外部</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives'><span class='mr-3 ml-3'>".$typeName."</span></a>[id:".$id."]<a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>"; | |||
| echo "$step<i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-primary btn-xs'>外部</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives'><span class='mr-3 ml-3'>".$typeName."</span></a>[id:".$id."]"; | |||
| echo "</td><td align='right'>"; | |||
| echo "<a href='{$typeDir}' target='_blank' title='预览'><i class='btn btn-sm fa fa-globe'></i></a>"; | |||
| echo "<a href='catalog_edit.php?id={$id}' title='修改'><i class='btn btn-sm fa fa-pencil-square-o'></i></a>"; | |||