var basefile ="index.php";var ctrl_id ="c";var func_id ="f";var webroot ="/";var apifile ="api.php";function get_url(ctrl,func,ext){var url ="/index.php?c="+ctrl;if(func){url+="&f="+func;};if(ext){url+="&"+ext};return url;}function api_url(ctrl,func,ext){var url ="/api.php?c="+ctrl;if(func){url+="&f="+func;};if(ext){url+="&"+ext};return url;};function api_plugin_url(id,func,ext){var url ="/api.php?c=plugin&f=index&id="+id+"&exec="+func;if(ext){url+="&"+ext};return url;};!function(e,t)"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):t(e)}("undefined"!=typeof window?window:this,function(C,e)"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)},u=t.push,i=t.indexOf,n=},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type;function b(e,t,n)var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+""var f="3.6.0",S=function(e,t)return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G=ID,Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^]+\{\s*\[native \w/,Z=/^(?"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t)var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536),re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t)return t?"\0"===e?"\ufffd",oe=function()T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir);tryH.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:function(e,t)var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeTypeelse if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}elseif(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+""]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie)tryreturn H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+"")>b.cacheLength&&delete e[r.shift()],e[t+""]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1function de(t)return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t}function ve(a)return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e),d.attributes=ce(function(e)return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]}):(b.filter.ID=function(e)var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):function(e,t)var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?),ce(function(e)e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(")),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e)d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t)var n=9===e.nodeType?e.documentElement:function(e,t)if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):function(e,t)if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1),C},se.matches=function(e,t)return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+""]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0):n.nodeType?S.grep(e,function(e)return e===n!==r})):S.filter(n,e,r)}S.filter=function(e,t,n)var r=t[0];return n&&(e="))},S.fn.extend(find));for(n=this.pushStack([]),t=0;t)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n)var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H=children;function O(e,t)while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has)},closest:function(e,t)var n,r=0,i=this.length,o=[],a="string"!=typeof e&&S(e);if(!k.test(e))for(;r\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge=thead;function ve(e,t)var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*")function ye(e,t)for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d
",2===_t.childNodes.length),S.parseHTML=function(e,t,n)return"string"!=typeof e?[],S.fn.load=function(e,t,n)var r,i,o,a=this,s=e.indexOf("");return-1").append(S.parseHTML(e)).find(r)).always(n&&function(e,t)a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset;"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend(},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f)},S.fn.extend(offset);var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,top):top:void 0},position:function()if(this[0]){var e,t,n,r=this[0],i={top;if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();elset=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top}},offsetParent:function()return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft,function(t,i)var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e,t,e,arguments.length)}}),S.each(["top","left"],function(e,n)S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px")}),S.each(Height,function(a,s)S.each({padding,function(r,o)S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin",s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t)S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind,unbind:function(e,t)return this.off(e,null,t)},delegate,undelegate:function(e,t,n)return 1===arguments.length?this.off(e,"**"),hover:function(e,t)return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(""),function(e,n){S.fn[n]=function(e,t){return 0",).attr("size")&&a.attrFn,h=a.attr,i=a.attrHooks.value&&a.attrHooks.value.get||function()return null},j=a.attrHooks.value&&a.attrHooks.value.set||function(){return c},k=/^(?,"jQuery.attrFn is deprecated"),a.attr=function(b,e,f,i)var j=e.toLowerCase(),o=b&&b.nodeType;return i&&(h.length<4&&d("jQuery.fn.attr( props, pass ) is deprecated"),b&&!l.test(o)&&(g?e in g,set:function(b,c,d)var e;return c===!1?a.removeAttr(b,d)},n.test(j)&&d("jQuery.fn.attr('"+j+"') might use property instead of attribute")),h.call(a,b,e,f))},a.attrHooks.value=get,set:function(a,b)var c=(a.nodeName||"").toLowerCase();return"button"===c?j.apply(this,arguments)};var o,p,q=a.fn.init,r=a.find,s=a.parseJSON,t=/^\s*)([^>]*)$/;a.fn.init=function(b,e,f)var g,h;return b&&"string"==typeof b&&!a.isPlainObject(e)&&(g=w.exec(a.trim(b)))&&g[0]&&(t.test(b)||d("$(html) HTML strings must start with '<' character"),g[3]&&d("$(html) HTML text after last tag is ignored"),"#"===g[0].charAt(0)&&(d("HTML string cannot start with a '#' character"),a.error("JQMIGRATE,a.fn.init.prototype=a.fn,a.find=function(a)var b=Array.prototype.slice.call(arguments);if("string"==typeof a&&u.test(a))try{document.querySelector(a)}catch(c){a=a.replace(v,function(a,b,c,d){return"["+b+c+'"'+d+'"]'});try{document.querySelector(a),d("Attribute selector with '#' must be quotedcatch(e)d("Attribute selector with '#' was not fixed}return r.apply(this,b)};var x;for(x in r)Object.prototype.hasOwnProperty.call(r,x)&&(a.find[x]=r[x]);a.parseJSON=function(a)return a?s.apply(this,arguments),a.uaMatch=function(a)a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?},a.browser||(o=a.uaMatch(navigator.userAgent),p=},o.browser&&(p[o.browser]=!0,p.version=o.version),p.chrome?p.webkit=!0a.extend(!0,b,this),b.superclass=this,b.fn=b.prototype=this(),b.fn.constructor=b,b.sub=this.sub,b.fn.init=function(d,e)var f=a.fn.init.call(this,d,e,c);return f instanceof b?f,b.fn.init.prototype=b.fn;var c=b(document);return d("jQuery.sub() is deprecated"),b},a.fn.size=function()return d("jQuery.fn.size() is deprecated; use the .length property"),this.length};var y=!1;a.swap&&a.each(["height","width","reliableMarginRight"],function(b,c){var d=a.cssHooks[c]&&a.cssHooks[c].get;d&&(a.cssHooks[c].get=function(){var a;return y=!0,a=d.apply(this,arguments),y=!1,a})}),a.swap=function(a,b,c,e){var f,g,h={};y||d("jQuery.swap() is undocumented and deprecated");for(g in b)h[g]=a.style[g],a.style[g]=b[g];f=c.apply(a,e||[]);for(g in b)a.style[g]=h[g];return f},a.ajaxSetup({converters});var z=a.fn.data;a.fn.data=function(b)var e,f,g=this[0];return!g||"events"!==b||1!==arguments.length||(e=a.data(g,b),f=a._data(g,b),e!==c&&e!==f||f===c)?z.apply(this,arguments);var A=/\/(java|ecma)script/i;a.clean||(a.clean=function(b,c,e,f)c=c||document,c=!c.nodeType&&c[0]||c,c=c.ownerDocument||c,d("jQuery.clean() is deprecated");var g,h,i,j,k=[];if(a.merge(k,a.buildFragment(b,c).childNodes),e)for(i=function(a){return!a.type||A.test(a.type)?f?f.push(a.parentNode?a.parentNode.removeChild(a),g=0;null!=(h=k[g]);g++)a.nodeName(h,"script")&&i(h)||(e.appendChild(h),"undefined"!=typeof h.getElementsByTagName&&(j=a.grep(a.merge([],h.getElementsByTagName("script")),i),k.splice.apply(k,[g+1,0].concat(j)),g+=j.length));return k});var B=a.event.add,C=a.event.remove,D=a.event.trigger,E=a.fn.toggle,F=a.fn.live,G=a.fn.die,H=a.fn.load,I="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",J=new RegExp("\\b(?:"+I+")\\b"),K=/(?:^|\s)hover(\.\S+|)\b/,L=function(b)return"string"!=typeof b||a.event.special.hover?b;a.event.props&&"attrChange"!==a.event.props[0]&&a.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),a.event.dispatch&&e(a.event,"handle",a.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),a.event.add=function(a,b,c,e,f)a!==document&&J.test(b)&&d("AJAX events should be attached to document,a.event.remove=function(a,b,c,d,e)C.call(this,a,L(b)||"",c,d,e)},a.each(["load","unload","error"],function(b,c){a.fn[c]=function(){var a=Array.prototype.slice.call(arguments,0);return"load"===c&&"string"==typeof a[0]?H.apply(this,a)}),a.fn.toggle=function(b,c)if(!a.isFunction(b)||!a.isFunction(c))return E.apply(this,arguments);d("jQuery.fn.toggle(handler, handler...) is deprecated");var e=arguments,f=b.guid||a.guid++,g=0,h=function(c){var d=(a._data(this,"lastToggle"+b.guid)||0)%g;return a._data(this,"lastToggle"+b.guid,d+1),c.preventDefault(),e[d].apply(this,arguments)||!1};for(h.guid=f;g+o[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.0";var t=Object.create(null),o=(s.migrateDisablePatches=function(){for(var e=0;e\x20\t\r\n\f]*)[^>]*)\/>/gi),_=(s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},d(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(O,"<$1>"))!==t&&C(t)!==C(r)&&i("self-closed-tags","HTML tags must be properly nested and closed,"self-closed-tags"),s.migrateDisablePatches("self-closed-tags"),s.fn.offset);return d(s.fn,"offset",function()var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?_.apply(this,arguments),"offset-valid-elem"),s.ajax&&(H=s.param,d(s,"param",function(e,t)var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(i("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),H.call(this,e,t)},"param-ajax-traditional")),u(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(E=s.Deferred,M=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],d(s,"Deferred",function(e){var a=E(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(M,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify))}),o=null}).promise()}return u(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),u(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=E.exceptionHook),s});/***********************************************************Filename: {phpok}/form.jsNote: 自定义表单中涉及到的JSVersion : 4.0 ***********************************************************/function phpok_form_password(id, len) {var list = new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z");if (!len || len =="undefined")len = 8;var rand ="";for (var i = 0; i < len; i++) {var num = Math.floor(Math.random() * 36 + 0);rand = rand + list[num];}var htm ="随机密码:" + rand;$("#" + id +"_html").html(htm);$("#" + id).val(rand);}//表单扩展按钮//btn,类型function phpok_btn_action(btn, id) {if (btn =="image") {if (!id || id =="undefined") {$.dialog.alert("未指定ID");return false;}var url = get_url("open","input") +"&ext=" + $.str.encode("png,jpg,gif,jpeg,bmp") +"&id=" + id;$.dialog.open(url, {title:"图片管理器",lock: true,width:"80%",height:"70%",resize: false});}}function phpok_btn_view(btn, id) {if (btn =="image") {var url = $("#" + id).val();if (!url || url =="undefined") {$.dialog.alert("图片不存在,请在表单中填写图片地址");} else {$.dialog({"title":"预览","content": '',"lock": true});}}}//清空function phpok_btn_clear(btn, id) {$("#" + id).val("");}//添加自定义字段function ext_add(id, module) {if (!id || id == 0) {//虚弹出窗口编辑或创建字段var url = get_url("fields","set1");if (module && module !="undefined") {url +="&module=" + module;}$.dialog.open(url, {"title":"字段创建","width":"730px","height":"580px","resize": false,"lock": true});return false;}var url = get_url("ext","add") +"&module=" + module +"&id=" + id;var rs = json_ajax(url);if (rs.status =="ok") {autosave(module, module, auto_refresh);} else {$.dialog.alert(rs.content);return false;}}//创建新的字段//读取浮动字段选择器//module,是字段选择器ID//words,已经使用的字段IDfunction ext_fields(module, words, pageid, type) {var url = get_url("ext","float") +"&module=" + module +"&words=" + $.str.encode(words);if (!pageid || pageid =="undefined") {pageid ="1";}url +="&pageid=" + pageid;if (type && type !="undefined") {url +="&type=" + type;}$.ajax({"url": url,"async": true,"dataType": 'html','cache': false,'success': function (content) {if ($("#float_fields").length > 0) {$("#float_fields").remove();}$(".main .right").append(content);$(window).scroll(function () {$("#float_fields").css({top: $(this).scrollTop() + 40});});}});}function ext_delete(id, module, title) {var qc = confirm("确定要删除扩展字段:" + title +" 吗?删除后是不能恢复的!");if (qc =="0") {return false;}url = get_url("ext","delete");url +="&module=" + $.str.encode(module);url +="&id=" + id;var rs = json_ajax(url);if (rs.status =="ok") {autosave(module, module, auto_refresh);} else {alert(rs.content);return false;}}//编辑字段function ext_edit(id, module) {var url = get_url("ext","edit") +"&id=" + id;url +="&module=" + $.str.encode(module);$.dialog.open(url, {"title":"编辑扩展字段属性","width":"700px","height":"95%","resize": false,"lock": true,'close': function () {direct(window.location.href);}});}function _phpok_form_opt(val, id, eid, etype) {if (!val || val =="undefined") {$("#" + id).html("").hide();return false;}var url = get_url("form","config") +"&id=" + $.str.encode(val);if (eid && eid !="undefined") {url +="&eid=" + eid;}if (etype && etype !="undefined") {url +="&etype=" + etype;}$.ajax({"url": url,"cache": false,"dataType":"html","success": function (rs) {if (rs && rs !="exit") {$("#" + id).html(rs).show();}}});}function phpok_btn_editor_picture(id) {var url = get_url("edit","picture") +"&input=" + id;$.dialog.open(url, {"title":"图片库","width":"760px","height":"80%","resize": false,"lock": true});}function phpok_btn_editor_file(id) {var url = get_url("edit","file") +"&input=" + id +"&nopic=1";$.dialog.open(url, {"title":"附件资源","width":"760px","height":"80%","resize": false,"lock": true});}function phpok_btn_editor_video(id) {var url = get_url("edit","video") +"&input=" + id +"&nopic=1";$.dialog.open(url, {"title":"添加影音","width":"760px","height":"80%","resize": false,"lock": true});}//删除单个主题关联function phpok_title_delete_single(id) {$("#" + id).val("");$("#title_" + id).hide();$("#phpok-btn-" + id +"-delete").hide();}//删除多个主题关联function phpok_title_delete(id, val) {if (val && val !="undefined") {//移除DIV值$("#" + id +"_div_" + val).remove();//移除值var c = $("#" + id).val();if (c =="" || c =="undefined") {$("#" + id +"_div").hide();$("#" + id +"_button_checkbox").hide();$("#" + id).val("");return true;}var clist = c.split(",");var n_list = new Array();var m = 0;for (var i = 0; i < clist.length; i++) {if (clist[i] != val) {n_list[m] = clist[i];m++;}}if (n_list.length < 1) {$("#" + id +"_div").hide();$("#" + id +"_button_checkbox").hide();$("#" + id).val("");} else {$("#" + id).val(n_list.join(","));}return true;}val = $.input.checkbox_join(id +"_div");if (!val || val =="undefined") {$.dialog.alert("请选择要删除的信息");return false;}var lst = val.split(",");for (var i = 0; i < lst.length; i++) {phpok_title_delete(id, lst[i]);}return true;}//选择主题关联function phpok_title_select(project_id, is_multi, title, input) {var url = get_url("inp","title") +"&project_id=" + $.str.encode(project_id);if (is_multi && is_multi != 'undefined') {url +="&multi=1";}url +="&identifier=" + $.str.encode(input);$.dialog.open(url, {"title": title,"width":"760px","height":"80%","resize": false,"lock": true,"ok": function () {var data = $.dialog.data("title_data_" + input);if (data) {$("#" + input).val(data);window.eval("action_" + input +"_show()");//window.setTimeout("action_"++"_show()",500);}}});}function phpok_user_delete(id, val) {//移除DIV值$("#" + id +"_div_" + val).remove();//移除值var c = $("#" + id).val();if (c =="" || c =="undefined") {$("#" + id +"_div").html("");$("#" + id).val("");return true;}var clist = c.split(",");var n_list = new Array();var m = 0;for (var i = 0; i < clist.length; i++) {if (clist[i] != val) {n_list[m] = clist[i];m++;}}if (n_list.length < 1) {$("#" + id +"_div").html("");$("#" + id).val("");} else {$("#" + id).val(n_list.join(","));}return true;}function phpok_edit_type(id) {var t ="#sMode_" + id;if ($(t).val() =="可视化") {$(eval("pageInit_" + id +"()"));$(t).val("源代码");} else {$("#" + id).xheditor(false);eval("CodeMirror_PHPOK_" + id +"()");//$("#textarea_"+id+" xhe_default:first").hide();//$("#textarea_"+id+" CodeMirror:first").show();$(t).val("可视化");}}/* * PHPOK自定义表单中关于附件上传涉及到的JS操作 * 最后修改时间:2013年10月19日 * 此JS涉及到外部调用的JS函数get_url,json_ajax,$.str,$.dialog,$.parseJSON */;(function ($) {$.phpok_upload = function (opts) {var self = this;var defaults = {is_multi: false,id: 'upload',flash_url: 'assets/js/swfupload/swfupload.swf',upload_url: get_url('upload'),file_size_limit: '2MB',file_types: '*.*',file_types_description: '文件',button_image_url: 'assets/images/swfupload.png',button_width: '92',button_height: '23',debug: false};this.opts = $.extend(defaults, opts);this.opts.eid = '#' + this.opts.id;this.swfupload = function () {var setting = {"flash_url": this.opts.flash_url,"upload_url": this.opts.upload_url,"post_params": {},"file_size_limit": this.opts.file_size_limit,"file_types": this.opts.file_types,"file_types_description": this.opts.file_types_description,"file_upload_limit":"0","file_queue_limit":"0","button_window_mode":"transparent","custom_settings": {"progressTarget": this.opts.id +"_progress","cancelButtonId": this.opts.id +"_btnCancel"},"debug": this.opts.debug,"button_image_url": this.opts.button_image_url,"button_placeholder_id": this.opts.id +"_spanButtonPlaceHolder","button_width": this.opts.button_width,"button_height": this.opts.button_height,"button_action": this.opts.is_multi ? SWFUpload.BUTTON_ACTION.SELECT_FILES : SWFUpload.BUTTON_ACTION.SELECT_FILE,"file_queued_handler": fileQueued,"file_queue_error_handler": fileQueueError,"file_dialog_complete_handler": this.swfupload_file_dialog_complete,"upload_start_handler": uploadStart,"upload_progress_handler": uploadProgress,"upload_error_handler": uploadError,"upload_success_handler": this.swfupload_success,"upload_complete_handler": this.swfupload_complete,"queue_complete_handler": this.swfupload_queue_complete};this.swfu = new SWFUpload(setting);};this.swfupload_submit = function (sessId, sessVal) {var cate_id = $(this.opts.eid +"_cateid").val();if (cate_id && cate_id !="undefined") {this.swfu.addPostParam("cateid", cate_id);}if (sessId && sessVal) {this.swfu.addPostParam(sessId, sessVal);}this.swfu.startUpload();};this.swfupload_queue_complete = function (numFilesUploaded) {$(self.opts.eid +"_div_status").html("已上传文件数量:" + numFilesUploaded +"");}//添加动作this.open_action = function (val) {var content = $(this.opts.eid).val();if (this.opts.is_multi) {content = (content && content !="undefined") ? content +"," + val : val;var lst = $.unique(content.split(","));content = lst.join(',');} else {content = val;}$(this.opts.eid).val(content);this.preview_res(content);};this.swfupload_file_dialog_complete = function (numFilesSelected, numFilesQueued) {if (numFilesSelected > 0) {$("#" + this.customSettings.cancelButtonId).attr("disabled", true);}};//更新附件信息this.update_res = function (id) {var title = $(this.opts.eid +"_title_" + id).val();if (!title) {$.dialog.alert("名称不能为空");return false;}var url = api_url("res","update_title_note") +"&id=" + id;url +="&title=" + encodeURIComponent(title);var note = $(this.opts.eid +"_content_" + id).val();if (note) {url +="¬e=" + encodeURIComponent(note);}var rs = json_ajax(url);if (rs.status =="ok") {$.dialog.alert("附件信息更新成功");return false;} else {$.dialog.alert(rs.content);return false;}};//删除附件功能this.del_res = function (id) {var content = $(this.opts.eid).val();if (!content || content =="undefined") {return false;}if (content == id) {$(this.opts.eid).val("");$(this.opts.eid +"_attrlist").html("").hide();return false;}var list = content.split(",");var newlist = new Array();var new_i = 0;for (var i = 0; i < list.length; i++) {if (list[i] != id) {newlist[new_i] = list[i];new_i++;}}content = newlist.join(",");$(this.opts.eid).val(content);this.preview_res(content);};//预览图片this.preview = function (id) {var url = get_url("res_action","preview") +"&id=" + id;$.dialog.open(url, {title:"预览",lock: true,width:"700px",height:"70%",resize: true});};//排序this.sort = function () {var t = [];$("." + this.opts.id +"_sort").each(function (i) {var val = $(this).val();var data = $(this).attr("data");t.push({"id": val,"data": data});});t = t.sort(function (a, b) {return parseInt(a['id']) > parseInt(b['id']) ? 1 : -1});var list = new Array();for (var i in t) {list[i] = t[i]['data'];}var val = list.join(",");$(this.opts.eid).val(val);this.preview_res(val);};//通过SWFUpload上传后响应this.swfupload_success = function (file, serverData) {var progress = new FileProgress(file, this.customSettings.progressTarget);progress.setComplete();progress.setStatus("上传完成!");progress.toggleCancel(false);var rs = $.parseJSON(serverData);//如果附件只支持一个if (self.opts.is_multi) {var content = $(self.opts.eid).val();content = content ? content +"," + rs.id : rs.id;$(self.opts.eid).val(content);} else {var content = rs.id;$(self.opts.eid).val(rs.id);}self.preview_res(content);};//全部上传完成后,禁用取消按钮this.swfupload_complete = function (file) {if (this.getStats().files_queued === 0) {$("#" + this.customSettings.cancelButtonId).attr("disabled", true);//document.getElementById().disabled = true;}};//获取列表this.preview_res = function (id) {$(this.opts.eid +"_sort").hide();if (!id || id =="undefined") {id = $(this.opts.eid).val();if (!id || id =="undefined") {$(this.opts.eid +"_attrlist").html("").hide();return false;}}var url = api_url("res","idlist") +"&id=" + $.str.encode(id);var rs = json_ajax(url);if (rs.status =="ok") {var list = rs.content;var total = count(list);var html = '';var t = 1;var tmp = id.split(",");for (var mt = 0; mt < tmp.length; mt++) {var i = tmp[mt];if (!list[i] || list[i] == 'undefined' || !list[i]['ico'])continue;html += '';html += '';html += '';t++;}html += '
' + list[i][';html += '
';html += '';html += '
';html += '';html += '
';html += ' ';html += '';html += ' ';if (total > 1) {html += '';}html += '
';$(this.opts.eid +"_attrlist").html(html).show();if (total > 1) {$(this.opts.eid +"_sort").show();}} else {$(this.opts.eid +"_attrlist").hide();$.dialog.alert(rs.content);}}};})(jQuery);/** * jQuery MD5 hash algorithm function * * * Calculate the md5 hash of a String * String $.md5 ( String str ) * * * Calculates the MD5 hash of str using the » RSA Data Security, Inc. MD5 Message-Digest Algorithm, and returns that hash. * MD5 (Message-Digest algorithm 5) is a widely-used cryptographic hash function with a 128-bit hash value. MD5 has been employed in a wide variety of security applications, and is also commonly used to check the integrity of data. The generated hash is also non-reversable. Data cannot be retrieved from the message digest, the digest uniquely identifies the data. * MD5 was developed by Professor Ronald L. Rivest in 1994. Its 128 bit (16 byte) message digest makes it a faster implementation than SHA-1. * This script is used to process a variable length message into a fixed-length output of 128 bits using the MD5 algorithm. It is fully compatible with UTF-8 encoding. It is very useful when u want to transfer encrypted passwords over the internet. If you plan using UTF-8 encoding in your project don't forget to set the page encoding to UTF-8 (Content-Type meta tag). * This function orginally get from the WebToolkit and rewrite for using as the jQuery plugin. * * Example * Code * * $.md5("I'm Persian."); * * Result * *"b8c901d0f02223f9761016cfff9d68df" * * * @alias Muhammad Hussein Fattahizadeh < muhammad [AT] semnanweb [DOT] com > * @link http://www.semnanweb.com/jquery-plugin/md5.html * @see http://www.webtoolkit.info/ * @license http://www.gnu.org/licenses/gpl.html [GNU General Public License] * @param {jQuery} {md5:function(string)) * @return string */(function($){var rotateLeft = function(lValue, iShiftBits) {return (lValue << iShiftBits) | (lValue >>> (32 - iShiftBits));}var addUnsigned = function(lX, lY) {var lX4, lY4, lX8, lY8, lResult;lX8 = (lX & 0x80000000);lY8 = (lY & 0x80000000);lX4 = (lX & 0x40000000);lY4 = (lY & 0x40000000);lResult = (lX & 0x3FFFFFFF) + (lY & 0x3FFFFFFF);if (lX4 & lY4) return (lResult ^ 0x80000000 ^ lX8 ^ lY8);if (lX4 | lY4) {if (lResult & 0x40000000) return (lResult ^ 0xC0000000 ^ lX8 ^ lY8);else return (lResult ^ 0x40000000 ^ lX8 ^ lY8);} else {return (lResult ^ lX8 ^ lY8);}}var F = function(x, y, z) {return (x & y) | ((~ x) & z);}var G = function(x, y, z) {return (x & z) | (y & (~ z));}var H = function(x, y, z) {return (x ^ y ^ z);}var I = function(x, y, z) {return (y ^ (x | (~ z)));}var FF = function(a, b, c, d, x, s, ac) {a = addUnsigned(a, addUnsigned(addUnsigned(F(b, c, d), x), ac));return addUnsigned(rotateLeft(a, s), b);};var GG = function(a, b, c, d, x, s, ac) {a = addUnsigned(a, addUnsigned(addUnsigned(G(b, c, d), x), ac));return addUnsigned(rotateLeft(a, s), b);};var HH = function(a, b, c, d, x, s, ac) {a = addUnsigned(a, addUnsigned(addUnsigned(H(b, c, d), x), ac));return addUnsigned(rotateLeft(a, s), b);};var II = function(a, b, c, d, x, s, ac) {a = addUnsigned(a, addUnsigned(addUnsigned(I(b, c, d), x), ac));return addUnsigned(rotateLeft(a, s), b);};var convertToWordArray = function(string) {var lWordCount;var lMessageLength = string.length;var lNumberOfWordsTempOne = lMessageLength + 8;var lNumberOfWordsTempTwo = (lNumberOfWordsTempOne - (lNumberOfWordsTempOne % 64)) / 64;var lNumberOfWords = (lNumberOfWordsTempTwo + 1) * 16;var lWordArray = Array(lNumberOfWords - 1);var lBytePosition = 0;var lByteCount = 0;while (lByteCount < lMessageLength) {lWordCount = (lByteCount - (lByteCount % 4)) / 4;lBytePosition = (lByteCount % 4) * 8;lWordArray[lWordCount] = (lWordArray[lWordCount] | (string.charCodeAt(lByteCount) << lBytePosition));lByteCount++;}lWordCount = (lByteCount - (lByteCount % 4)) / 4;lBytePosition = (lByteCount % 4) * 8;lWordArray[lWordCount] = lWordArray[lWordCount] | (0x80 << lBytePosition);lWordArray[lNumberOfWords - 2] = lMessageLength << 3;lWordArray[lNumberOfWords - 1] = lMessageLength >>> 29;return lWordArray;};var wordToHex = function(lValue) {var WordToHexValue ="", WordToHexValueTemp ="", lByte, lCount;for (lCount = 0; lCount <= 3; lCount++) {lByte = (lValue >>> (lCount * 8)) & 255;WordToHexValueTemp ="0" + lByte.toString(16);WordToHexValue = WordToHexValue + WordToHexValueTemp.substr(WordToHexValueTemp.length - 2, 2);}return WordToHexValue;};var uTF8Encode = function(string) {string = string.replace(/\x0d\x0a/g,"\x0a");var output ="";for (var n = 0; n < string.length; n++) {var c = string.charCodeAt(n);if (c < 128) {output += String.fromCharCode(c);} else if ((c > 127) && (c < 2048)) {output += String.fromCharCode((c >> 6) | 192);output += String.fromCharCode((c & 63) | 128);} else {output += String.fromCharCode((c >> 12) | 224);output += String.fromCharCode(((c >> 6) & 63) | 128);output += String.fromCharCode((c & 63) | 128);}}return output;};$.extend({md5: function(string) {var x = Array();var k, AA, BB, CC, DD, a, b, c, d;var S11=7, S12=12, S13=17, S14=22;var S21=5, S22=9 , S23=14, S24=20;var S31=4, S32=11, S33=16, S34=23;var S41=6, S42=10, S43=15, S44=21;string = uTF8Encode(string);x = convertToWordArray(string);a = 0x67452301; b = 0xEFCDAB89; c = 0x98BADCFE; d = 0x10325476;for (k = 0; k < x.length; k += 16) {AA = a; BB = b; CC = c; DD = d;a = FF(a, b, c, d, x[k+0], S11, 0xD76AA478);d = FF(d, a, b, c, x[k+1], S12, 0xE8C7B756);c = FF(c, d, a, b, x[k+2], S13, 0x242070DB);b = FF(b, c, d, a, x[k+3], S14, 0xC1BDCEEE);a = FF(a, b, c, d, x[k+4], S11, 0xF57C0FAF);d = FF(d, a, b, c, x[k+5], S12, 0x4787C62A);c = FF(c, d, a, b, x[k+6], S13, 0xA8304613);b = FF(b, c, d, a, x[k+7], S14, 0xFD469501);a = FF(a, b, c, d, x[k+8], S11, 0x698098D8);d = FF(d, a, b, c, x[k+9], S12, 0x8B44F7AF);c = FF(c, d, a, b, x[k+10], S13, 0xFFFF5BB1);b = FF(b, c, d, a, x[k+11], S14, 0x895CD7BE);a = FF(a, b, c, d, x[k+12], S11, 0x6B901122);d = FF(d, a, b, c, x[k+13], S12, 0xFD987193);c = FF(c, d, a, b, x[k+14], S13, 0xA679438E);b = FF(b, c, d, a, x[k+15], S14, 0x49B40821);a = GG(a, b, c, d, x[k+1], S21, 0xF61E2562);d = GG(d, a, b, c, x[k+6], S22, 0xC040B340);c = GG(c, d, a, b, x[k+11], S23, 0x265E5A51);b = GG(b, c, d, a, x[k+0], S24, 0xE9B6C7AA);a = GG(a, b, c, d, x[k+5], S21, 0xD62F105D);d = GG(d, a, b, c, x[k+10], S22, 0x2441453);c = GG(c, d, a, b, x[k+15], S23, 0xD8A1E681);b = GG(b, c, d, a, x[k+4], S24, 0xE7D3FBC8);a = GG(a, b, c, d, x[k+9], S21, 0x21E1CDE6);d = GG(d, a, b, c, x[k+14], S22, 0xC33707D6);c = GG(c, d, a, b, x[k+3], S23, 0xF4D50D87);b = GG(b, c, d, a, x[k+8], S24, 0x455A14ED);a = GG(a, b, c, d, x[k+13], S21, 0xA9E3E905);d = GG(d, a, b, c, x[k+2], S22, 0xFCEFA3F8);c = GG(c, d, a, b, x[k+7], S23, 0x676F02D9);b = GG(b, c, d, a, x[k+12], S24, 0x8D2A4C8A);a = HH(a, b, c, d, x[k+5], S31, 0xFFFA3942);d = HH(d, a, b, c, x[k+8], S32, 0x8771F681);c = HH(c, d, a, b, x[k+11], S33, 0x6D9D6122);b = HH(b, c, d, a, x[k+14], S34, 0xFDE5380C);a = HH(a, b, c, d, x[k+1], S31, 0xA4BEEA44);d = HH(d, a, b, c, x[k+4], S32, 0x4BDECFA9);c = HH(c, d, a, b, x[k+7], S33, 0xF6BB4B60);b = HH(b, c, d, a, x[k+10], S34, 0xBEBFBC70);a = HH(a, b, c, d, x[k+13], S31, 0x289B7EC6);d = HH(d, a, b, c, x[k+0], S32, 0xEAA127FA);c = HH(c, d, a, b, x[k+3], S33, 0xD4EF3085);b = HH(b, c, d, a, x[k+6], S34, 0x4881D05);a = HH(a, b, c, d, x[k+9], S31, 0xD9D4D039);d = HH(d, a, b, c, x[k+12], S32, 0xE6DB99E5);c = HH(c, d, a, b, x[k+15], S33, 0x1FA27CF8);b = HH(b, c, d, a, x[k+2], S34, 0xC4AC5665);a = II(a, b, c, d, x[k+0], S41, 0xF4292244);d = II(d, a, b, c, x[k+7], S42, 0x432AFF97);c = II(c, d, a, b, x[k+14], S43, 0xAB9423A7);b = II(b, c, d, a, x[k+5], S44, 0xFC93A039);a = II(a, b, c, d, x[k+12], S41, 0x655B59C3);d = II(d, a, b, c, x[k+3], S42, 0x8F0CCC92);c = II(c, d, a, b, x[k+10], S43, 0xFFEFF47D);b = II(b, c, d, a, x[k+1], S44, 0x85845DD1);a = II(a, b, c, d, x[k+8], S41, 0x6FA87E4F);d = II(d, a, b, c, x[k+15], S42, 0xFE2CE6E0);c = II(c, d, a, b, x[k+6], S43, 0xA3014314);b = II(b, c, d, a, x[k+13], S44, 0x4E0811A1);a = II(a, b, c, d, x[k+4], S41, 0xF7537E82);d = II(d, a, b, c, x[k+11], S42, 0xBD3AF235);c = II(c, d, a, b, x[k+2], S43, 0x2AD7D2BB);b = II(b, c, d, a, x[k+9], S44, 0xEB86D391);a = addUnsigned(a, AA);b = addUnsigned(b, BB);c = addUnsigned(c, CC);d = addUnsigned(d, DD);}var tempValue = wordToHex(a) + wordToHex(b) + wordToHex(c) + wordToHex(d);return tempValue.toLowerCase();}});})(jQuery);/*! * artDialog 4.1.7 * Date: 2026-02-25 18:48 * http://code.google.com/p/artdialog/ * (c) 2009-2012 TangBin * * This is licensed under the GNU LGPL, version 2.1 or later. * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ */;(function($,window,undefined)$.noop=$.noop||function(){};var _box,_thisScript,_skin,_path,_count=0,_$window=$(window),_$document=$(document),_$html=$("html"),_elem=document.documentElement,_isIE6=window.VBArray&&!window.XMLHttpRequest,_isMobile="createTouch" in document&&!("onmousemove" in _elem)||/(iPhone|iPad|iPod)/i.test(navigator.userAgent),_expando="artDialog"+ +new Date;var artDialog=function(config,ok,cancel){config=config||{};if(typeof config==="string"||config.nodeType===1){config={content;}var api,defaults=artDialog.defaults,elem=config.follow=this.nodeType===1&&this||config.follow;for(var i in defaults)if(config[i]===undefined){config[i]=defaults[i];}}$.each({ok,function(i,o)config[i]=config[i]!==undefined?config[i]);if(typeof elem==="string")elem=$(elem)[0];}config.id=elem&&elem[_expando+"follow"]||config.id||_expando+_count;api=artDialog.list[config.id];if(elem&&api){return api.follow(elem).zIndex().focus();}if(api){return api.zIndex().focus();}if(_isMobile){config.fixed=false;}if(!$.isArray(config.button)){config.button=config.button?[config.button]if(ok!==undefined)config.ok=ok;}if(cancel!==undefined){config.cancel=cancel;}config.ok&&config.button.push({name);config.cancel&&config.button.push(name);artDialog.defaults.zIndex=config.zIndex;_count++;return artDialog.list[config.id]=_box?_box._init(config):new artDialog.fn._init(config);};artDialog.fn=artDialog.prototype=version:backgroundImage);that.closed=false;that.config=config;that.DOM=DOM=that.DOM||that._getDOM();DOM.wrap.addClass(config.skin);DOM.close[config.cancel===false?"hide":"show"]();DOM.icon[0].style.display=icon?"":"none";DOM.iconBg.css(iconBg||background);DOM.se.css("cursor",config.resize?"se-resize":"auto");DOM.title.css("cursor",config.drag?"move":"auto");DOM.content.css("padding",config.padding);that[config.show?"show":"hide"](true);that.button(config.button).title(config.title).content(config.content,true).size(config.width,config.height).time(config.time);config.follow?that.follow(config.follow):that.position(config.left,config.top);that.zIndex().focus();config.lock&&that.lock();that._addEvent();that._ie6PngFix();_box=null;config.init&&config.init.call(that,window);return that;},content:function(msg)var prev,next,parent,display,that=this,DOM=that.DOM,wrap=DOM.wrap[0],width=wrap.offsetWidth,height=wrap.offsetHeight,left=parseInt(wrap.style.left),top=parseInt(wrap.style.top),cssWidth=wrap.style.width,$content=DOM.content,content=$content[0];that._elemBack&&that._elemBack();wrap.style.width="auto";if(msg===undefined){return content;}if(typeof msg==="string"){$content.html(msg);}else{if(msg&&msg.nodeType===1){display=msg.style.display;prev=msg.previousSibling;next=msg.nextSibling;parent=msg.parentNode;that._elemBack=function(){if(prev&&prev.parentNode){prev.parentNode.insertBefore(msg,prev.nextSibling);}else{if(next&&next.parentNode){next.parentNode.insertBefore(msg,next);}else{if(parent){parent.appendChild(msg);}}}msg.style.display=display;that._elemBack=null;};$content.html("");content.appendChild(msg);msg.style.display="block";}}if(!arguments[1]){if(that.config.follow){that.follow(that.config.follow);}else{width=wrap.offsetWidth-width;height=wrap.offsetHeight-height;left=left-width/2;top=top-height/2;wrap.style.left=Math.max(left,0)+"px";wrap.style.top=Math.max(top,0)+"px";}if(cssWidth&&cssWidth!=="auto"){wrap.style.width=wrap.offsetWidth+"px";}that._autoPositionType();}that._ie6SelectFix();that._runScript(content);return that;},titleif(text===false)title.hide().html("");wrap.addClass(className);}else{title.show().html(text||"");wrap.removeClass(className);}return this;},positionelseif(typeof left==="string"){style.left=left;}}}if(top||top===0){that._top=top.toString().indexOf("%")!==-1?topelseif(typeof top==="string"){style.top=top;}}}if(left!==undefined&&top!==undefined){that._follow=null;that._autoPositionType();}return that;},sizeelseif(typeof width==="string"){style.width=width;width==="auto"&&wrap.css("width","auto");}}}if(height){that._height=height.toString().indexOf("%")!==-1?heightelseif(typeof height==="string"){style.height=height;}}}that._ie6SelectFix();return that;},followif(!elem||!elem.offsetWidth&&!elem.offsetHeight)return that.position(that._left,that._top);}var expando=_expando+"follow",winWidth=_$window.width(),winHeight=_$window.height(),docLeft=_$document.scrollLeft(),docTop=_$document.scrollTop(),offset=$elem.offset(),width=elem.offsetWidth,height=elem.offsetHeight,isFixed=_isIE6?false,button:function()var that=this,ags=arguments,DOM=that.DOM,buttons=DOM.buttons,elem=buttons[0],strongButton="aui_state_highlight",listeners=that._listeners=that._listeners||{},list=$.isArray(ags[0])?ags[0]$.each(list,function(i,val)var name=val.name,isNewButton=!listeners[name],button=!isNewButton?listeners[name].elem;}if(val.callback)listeners[name].callback=val.callback;}if(val.className){button.className=val.className;}if(val.focus){that._focus&&that._focus.removeClass(strongButton);that._focus=$(button).addClass(strongButton);that.focus();}button.setAttribute("type","button");button[_expando+"callback"]=name;button.disabled=!!val.disabled;if(isNewButton){button.innerHTML=name;listeners[name].elem=button;elem.appendChild(button);}});buttons[0].style.display=list.length?"",show:function()this.DOM.wrap.show();!arguments[0]&&this._lockMaskWrap&&this._lockMaskWrap.show();return this;},hide,close:function()if(this.closed){return this;}var that=this,DOM=that.DOM,wrap=DOM.wrap,list=artDialog.list,fn=that.config.close,follow=that.config.follow;that.time();if(typeof fn==="function"&&fn.call(that,window)===false){return that;}that.unlock();that._elemBack&&that._elemBack();wrap[0].className=wrap[0].style.cssText="";DOM.title.html("");DOM.content.html("");DOM.buttons.html("");if(artDialog.focus===that){artDialog.focus=null;}if(follow){follow.removeAttribute(_expando+"follow");}delete list[that.config.id];that._removeEvent();that.hide(true)._setAbsolute();for(var i in that){if(that.hasOwnProperty(i)&&i!=="DOM"){delete that[i];}}_box?wrap.remove(),time:function(second)var that=this,cancel=that.config.cancelVal,timer=that._timer;timer&&clearTimeout(timer);if(second){that._timer=setTimeout(function(){that._click(cancel);},1000*second);}return that;},focus}catch(e)}return this;},zIndex,lock:function()if(this._lock){return this;}var that=this,index=artDialog.defaults.zIndex-1,wrap=that.DOM.wrap,config=that.config,docWidth=_$document.width(),docHeight=_$document.height(),lockMaskWrap=that._lockMaskWrap||$(document.body.appendChild(document.createElement("div"))),lockMask=that._lockMask||$(lockMaskWrap[0].appendChild(document.createElement("div"))),domTxt="(document).documentElement",sizeCss=_isMobile?"widthlockMask.stop();lockMask.bind("click",function()that._reset();}).bind("dblclick",function(){that._reset();});if(config.duration===0){lockMask.css({opacity);}elselockMask.animate({opacity,config.duration);}that._lockMaskWrap=lockMaskWrap;that._lockMask=lockMask;that._lock=true;return that;},unlock:function()var that=this,lockMaskWrap=that._lockMaskWrap,lockMask=that._lockMask;if(!that._lock){return that;}var style=lockMaskWrap[0].style;var un=function(){if(_isIE6){style.removeExpression("width");style.removeExpression("height");style.removeExpression("left");style.removeExpression("top");}style.cssText="display;lockMask.stop().unbind();that.DOM.wrap.removeClass("aui_state_lock");if(!that.config.duration)un();}else{lockMask.animate({opacity,that.config.duration,un);}that._lock=false;return that;},_getDOM:function()var wrap=document.createElement("div"),body=document.body;wrap.style.cssText="position,els=wrap.getElementsByTagName("*"),elsLen=els.length;for(;i'+''+""+""+''+''+''+""+""+''+'
'+'
'+''+""+""+'
'+'").time(time||1.5);};$(function()var event=artDialog.dragEvent;if(!event){return;}var $window=$(window),$document=$(document),positionType=_isIE6?"absolute"if(iframe&&main.offsetWidth*main.offsetHeight>307200)main.style.visibility="hidden";}};dragEvent.end=function(){var dialog=artDialog.focus;dragEvent._end.apply(this,arguments);style.display="none";if(dialog){dialog.DOM.main[0].style.visibility="visible";}};});})(this.art||this.jQuery,this,this.artDialog);artDialog.notice=function(options){var opt=options||{},api,aConfig,hide,wrap,top,duration=800;var config={id,duration,function()opt.init&&opt.init.call(api,here);});},close,duration,function(){opt.close&&opt.close.call(this,here);aConfig.close=$.noop;api.close();});return false;}};for(var i in opt){if(config[i]===undefined){config[i]=opt[i];}}return artDialog(config);};/** * 程序中常用到的JS,封装在此 */(function ($) {$.phpok = {//刷新refresh: function () {parent.window.location.reload();},reload: function () {this.refresh();},go: function (url) {url = url.replace(/&/g, '&');window.location.href = url;}};})(jQuery);//JS操作全选,反选等工具// 由PHPOK整理重新编写的常见的input属性操作;(function ($) {$.input = {//全选,调用方法:$.input.checkbox_all(id);checkbox_all: function (id) {var t = id && id !="undefined" ? $("#" + id +" input[type=checkbox]") : $("input[type=checkbox]");t.each(function () { $(this).attr("checked", true); });t = null;},//全不选,调用方法:$.input.checkbox_none(id);checkbox_none: function (id) {var t = id && id !="undefined" ? $("#" + id +" input[type=checkbox]") : $("input[type=checkbox]");t.each(function () { $(this).attr("checked", false); });t = null;},//每次选5个(total默认值为5) $.input.checkbox_not_all(id,5);checkbox_not_all: function (id, total) {var t = id && id !="undefined" ? $("#" + id +" input[type=checkbox]") : $("input[type=checkbox]");var num = 0;if (!total || parseInt(total) < 5) total = 5;t.each(function () {if ($(this).attr("checked") != true && num < total) {$(this).attr("checked", true);num++;}});t = num = total = null;},//反选,调用方法:$.input.checkbox_anti(id);checkbox_anti: function (id) {var t = id && id !="undefined" ? $("#" + id +" input[type=checkbox]") : $("input[type=checkbox]");t.each(function (i) {if ($(this).attr("checked") == true || $(this).attr("checked") =="checked") {$(this).attr("checked", false);} else {$(this).attr("checked", true);}});t = null;},//合并复选框值信息,以英文逗号隔开checkbox_join: function (id, type) {var cv = id && id !="undefined" ? $("#" + id +" input[type=checkbox]") : $("input[type=checkbox]");var idarray = new Array();var m = 0;cv.each(function () {if (type =="all") {idarray[m] = $(this).val();m++;} else if (type =="unchecked") {if ($(this).attr("checked") == false) {idarray[m] = $(this).val();m++;}} else {if ($(this).attr("checked") == true || $(this).attr("checked") =="checked") {idarray[m] = $(this).val();m++;}}});var tid = idarray.join(",");cv = idarray = m = null;return tid;}};})(jQuery);/*! * * Released under the MIT, BSD, and LGPL Licenses. * 字符串编码,使用方法: $.str.encode(string); * 字符串合并,使用方法: $.str.join(str1,str2); * * Date: 2026-02-25 18:48 */;(function ($) {$.str = {join: function (str1, str2) {if (str1 =="" && str2 =="") return false;if (str1 =="") return str2;if (str2 =="") return str1;var string = str1 +"," + str2;var array = string.split(",");array = $.unique(array);var string = array.join(",");return string ? string : false;},identifier: function (str) {//验证标识串,PHPOK系统中,大量使用标识串,将此检测合并进来var chk = /^[A-Za-z]+[a-zA-Z0-9_\-]*$/;return chk.test(str);},encode: function (s1) {return encodeURIComponent(s1);var s = escape(s1);var sa = s.split("%");var retV ="";if (sa[0] !="") {retV = sa[0];}for (var i = 1; i < sa.length; i++) {if (sa[i].substring(0, 1) =="u") {retV += this.StringHex2Utf8(this.Str2Hex(sa[i].substring(1, 5)));if (sa[i].length > 5) {retV += sa[i].substring(5);}} else {retV +="%" + sa[i];}}return retV;},StringHex2Utf8: function (s) {var retS ="";var tempS ="";var ss ="";if (s.length == 16) {tempS ="1110" + s.substring(0, 4);tempS +="10" + s.substring(4, 10);tempS +="10" + s.substring(10, 16);var sss ="0123456789ABCDEF";for (var i = 0; i < 3; i++) {retS +="%";ss = tempS.substring(i * 8, (eval(i) + 1) * 8);retS += sss.charAt(this.Dig2Dec(ss.substring(0, 4)));retS += sss.charAt(this.Dig2Dec(ss.substring(4, 8)));}return retS;}return"";},Dig2Dec: function (s) {var retV = 0;if (s.length == 4) {for (var i = 0; i < 4; i++) {retV += eval(s.charAt(i)) * Math.pow(2, 3 - i);}return retV;}return -1;},Dec2Dig: function (n1) {var s ="";var n2 = 0;for (var i = 0; i < 4; i++) {n2 = Math.pow(2, 3 - i);if (n1 >= n2) {s += '1';n1 = n1 - n2;} else {s += '0';}}return s;},Str2Hex: function (s) {var c ="";var n;var ss ="0123456789ABCDEF";var digS ="";for (var i = 0; i < s.length; i++) {c = s.charAt(i);n = ss.indexOf(c);digS += this.Dec2Dig(eval(n));}return digS;}};$.rawurlencode = function (str) {return $.str.encode(str);};$.identifier = function (str) {return $.str.identifier(str);};})(jQuery);function rawurlencode(str) {return $.str.encode(str);}function identifier(str) {return $.str.identifier(str);}// 由PHPOK编写的基于jQuery的Cookie操作// 读取cookie信息 $.cookie.get("变量名");// 设置cookie信息 $.cookie.set("变量名","值","过期时间");// 删除Cookie信息 $.cookie.del("变量名");;(function ($) {$.cookie = {get: function (name) {var cookieValue ="";var search = name +"=";if (document.cookie.length > 0) {var offset = document.cookie.indexOf(search);if (offset != -1) {offset += search.length;var end = document.cookie.indexOf(";", offset);if (end == -1) {end = document.cookie.length;}cookieValue = unescape(document.cookie.substring(offset, end));end = null;}search = offset = null;}return cookieValue;},set: function (cookieName, cookieValue, DayValue) {var expire ="";var day_value = 1;if (DayValue != null) {day_value = DayValue;}expire = new Date((new Date()).getTime() + day_value * 86400000);expire ="; expires=" + expire.toGMTString();document.cookie = cookieName +"=" + escape(cookieValue) +";path=/" + expire;cookieName = cookieValue = DayValue = day_value = expire = null;},del: function (cookieName) {var expire ="";expire = new Date((new Date()).getTime() - 1);expire ="; expires=" + expire.toGMTString();document.cookie = cookieName +"=" + escape("") +";path=/" + expire;cookieName = expire = null;}};})(jQuery);/** * 后台通用JS,此JS应加载在jquery.js之后 *///异步加载jsfunction load_js(url) {if (!url || url =="undefined")return false;var lst = url.split(",");var lst_count = lst.length;var elist = new Array();var tm = 0;$("script").each(function (t) {var src = $(this).attr("src");if (src && src != 'undefined') {elist[tm] = src;tm++;}});var html = '';for (var i = 0; i < lst_count; i++) {if ($.inArray(lst[i], elist) < 0) {html += '';}}$("head").append(html);}// 同步加载Ajax,返回字符串function get_ajax(turl) {turl = turl.replace(/&/g,"&");return $.ajax({url: turl,cache: false,async: false,dataType:"html"}).responseText;}// 同步加载Ajax,返回JSON数组function json_ajax(turl) {turl = turl.replace(/&/g,"&");var c = $.ajax({url: turl,cache: false,async: false,dataType:"html"}).responseText;return $.parseJSON(c);}// 同步加载 Ajax,返回 JSON 数组function json_ajax_post(turl, data) {turl = turl.replace(/&/g,"&");var c = $.ajax({url: turl,cache: false,async: false,method: 'POST',data: data,dataType: 'html'}).responseText;return $.parseJSON(c);}// 异步加载Ajax,执行函数function ajax_async(turl, func, type) {if (!turl || turl =="undefined") {return false;}if (!func || func =="undefined") {return false;}if (!type || type =="undefined") {type ="json";}if (type !="html" && type !="json" && type !="text" && type !="xml") {type ="json";}turl = turl.replace(/&/g,"&");$.ajax({url: turl,cache: false,async: true,dataType: type,success: function (rs) {try {if (typeof(func) =="function") {func(rs);}} catch (e) {alert("函数不存在");}}});}// 跳转页面function direct(url) {if (!url || url =="undefined")url = window.location.href;url = url.replace(/&/g,"&");window.location.href = url;}// 跳转页面别名function goto(url) {return direct(url);}//自动刷新function auto_refresh(rs) {direct(window.location.href);}function autosave_callback(rs) {return true;}function strlen(str) {var len = str.length;var reLen = 0;for (var i = 0; i < len; i++) {if (str.charCodeAt(i) < 27 || str.charCodeAt(i) > 126) {reLen += 3;} else {reLen++;}}if (reLen > 1024 && reLen < (1024 * 1024)) {var reLen = (parseFloat(reLen / 1024).toFixed(3)).toString() +"KB";} else if (reLen > (1024 * 1024) && reLen < (1024 * 1024 * 1024)) {var reLen = (parseFloat(reLen / (1024 * 1024)).toFixed(3)).toString() +"MB";}if (!reLen)reLen ="0";return reLen;}//友情提示function tips(content, time, id) {if (!time || time =="undefined")time = 1.5;if (!id || id =="undefind") {$.dialog.tips(content, time);} else {return $.dialog({id: 'Tips',title: false,cancel: false,fixed: true,lock: false,focus: id,resize: false}).content(content).time(time || 1.5);}}function show_date(v, formattype) {if (formattype && formattype !="undefined") {var datetype ="%Y-%m-%d %H:%M:%S";var show_time = true;} else {var datetype ="%Y-%m-%d";var show_time = false;}$("#" + v).dynDateTime({showsTime: show_time,ifFormat: datetype,timeFormat:"24"});}//编辑器中当前日期function phpjs_fck_date() {var myDate = new Date();var y = myDate.getFullYear();var m = myDate.getMonth() + 1;var d = myDate.getDate() + 1;m = m.toString();if (m.length < 2) {m ="0" + m;}d = d.toString();if (d.length < 2) {d ="0" + d;}return y.toString() +"-" + m +"-" + d +"";}function phpjs_fck_time() {var myDate = new Date();return myDate.toLocaleTimeString();}function count(id) {var t = typeof id;if (t == 'string')return id.length;if (t == 'object') {var n = 0;for (var i in id) {n++;}return n;}return false;}//JS语言包替换function lang_replace(str, id, val) {if (!str || str =="undefined")return false;if (!id || !val)return str;return str.replace("{" + id +"}", val);}/** jQuery Form Plugin; v20131017* http://jquery.malsup.com/form/* Copyright (c) 2013 M. Alsup; Dual licensed: MIT/GPL* https://github.com/malsup/form#copyright-and-license*/;(function(e)"use strict";function t(t){var r=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).ajaxSubmit(r))}function r(t){var r=t.target,a=e(r);if(!a.is("[type=submit],[type=image]")){var n=a.closest("[type=submit]");if(0===n.length)return;r=n[0]}var i=this;if(i.clk=r,"image"==r.type)if(void 0!==t.offsetX)i.clk_x=t.offsetX,i.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var o=a.offset();i.clk_x=t.pageX-o.left,i.clk_y=t.pageY-o.top}else i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop;setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)}function a(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form]"+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t)}var n=};n.fileapi=void 0!==e("").get(0).files,n.formdata=void 0!==window.FormData;var i=!!e.fn.prop;e.fn.attr2=function(){if(!i)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e,e.fn.ajaxSubmit=function(t)function r(r){var a,n,i=e.param(r,t.traditional).split("&"),o=i.length,s=[];for(a=0;o>a;a++)i[a]=i[a].replace(/\+/g,""),n=i[a].split("="),s.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return s}function o(a){for(var n=new FormData,i=0;a.length>i;i++)n.append(a[i].name,a[i].value);if(t.extraData){var o=r(t.extraData);for(i=0;o.length>i;i++)o[i]&&n.append(o[i][0],o[i][1])}t.data=null;var s=e.extend(!0,{},e.ajaxSettings,t,{contentType);t.uploadProgress&&(s.xhr=function()var r=e.ajaxSettings.xhr();return r.upload&&r.upload.addEventListener("progress",function(e){var r=0,a=e.loaded||e.position,n=e.total;e.lengthComputable&&(r=Math.ceil(100*(a/n))),t.uploadProgress(e,a,n,r)},!1),r}),s.data=null;var l=s.beforeSend;return s.beforeSend=function(e,r){r.data=t.formData?t.formData,e.ajax(s)}function s(r)function n(e){var t=null;try{e.contentWindow&&(t=e.contentWindow.document)}catch(r){a("cannot get iframe.contentWindow documentif(t)return t;tryt=e.contentDocument?e.contentDocumentcatch(r)a("cannot get iframe.contentDocumentreturn t}function o()function t(){try{var e=n(g).readyState;a("state ="+e),e&&"uninitialized"==e.toLowerCase()&&setTimeout(t,50)}catch(r){a("Server abort}var r=f.attr2("target"),i=f.attr2("action");w.setAttribute("target",d),(!u||/post/i.test(u))&&w.setAttribute("method","POST"),i!=m.url&&w.setAttribute("action",m.url),m.skipEncodingOverride||u&&!/post/i.test(u)||f.attr(encoding),m.timeout&&(j=setTimeout(function()T=!0,s(D)},m.timeout));var o=[];try{if(m.extraData)for(var l in m.extraData)m.extraData.hasOwnProperty(l)&&(e.isPlainObject(m.extraData[l])&&m.extraData[l].hasOwnProperty("name")&&m.extraData[l].hasOwnProperty("value")?o.push(e('').val(m.extraData[l].value).appendTo(w)[0])catch(c)var p=document.createElement("form").submit;p.apply(w)}}finally{w.setAttribute("action",i),r?w.setAttribute("target",r)}function s(t)if(!x.aborted&&!F){if(M=n(g),M||(a("cannot access response document"),t=k),t===D&&x)return x.abort("timeout"),S.reject(x,"timeout"),void 0;if(t==k&&x)return x.abort("server abort"),S.reject(x,"error","server abort"),void 0;if(M&&M.location.href!=m.iframeSrc||T){g.detachEvent?g.detachEvent("onload",s);return t[e.toLowerCase()]},u&&(x.status=Number(u.getAttribute("status"))||x.status,x.statusText=u.getAttribute("statusText")||x.statusText);var l=(m.dataType||"").toLowerCase(),c=/(json|script|text)/.test(l);if(c||m.textarea)var f=M.getElementsByTagName("textarea")[0];if(f)x.responseText=f.value,x.status=Number(f.getAttribute("status"))||x.status,x.statusText=f.getAttribute("statusText")||x.statusText;else if(c){var d=M.getElementsByTagName("pre")[0],h=M.getElementsByTagName("body")[0];d?x.responseText=d.textContent?d.textContent}else"xml"==l&&!x.responseXML&&x.responseText&&(x.responseXML=X(x.responseText));tryE=_(x,l,m)}catch(b){i="parsererror",x.error=r=b||i}}catch(b){a("error caughtx.aborted&&(a("upload aborted"),i=null),x.status&&(i=x.status>=200&&300>x.status||304===x.status?"success":"error"),"success"===i?(m.success&&m.success.call(m.context,E,"success",x),S.resolve(x.responseText,"success",x),p&&e.event.trigger("ajaxSuccess",[x,m])):i&&(void 0===r&&(r=x.statusText),m.error&&m.error.call(m.context,x,i,r),S.reject(x,"error",r),p&&e.event.trigger("ajaxError",[x,m,r])),p&&e.event.trigger("ajaxComplete",[x,m]),p&&!--e.active&&e.event.trigger("ajaxStop"),m.complete&&m.complete.call(m.context,x,i),F=!0,m.timeout&&clearTimeout(j),setTimeout(function()m.iframeTarget?v.attr("src",m.iframeSrc),100)}}}var l,c,m,p,d,v,g,x,b,y,T,j,w=f[0],S=e.Deferred();if(S.abort=function(e)x.abort(e)},r)for(c=0;h.length>c;c++)l=e(h[c]),i?l.prop("disabled",!1),e.ajaxSettings,t),m.context=m.context||m,d="jqFormIO"+(new Date).getTime(),m.iframeTarget?(v=e(m.iframeTarget),y=v.attr2("name"),y?d=y:v.attr2("name",d)):(v=e('