亚洲男人天堂2018av

/** * JS初始化庫(ku) * @作者(zhe) qinggan * @版權(quan) 深圳市錕鋙科技(ji)有限公(gong)司 * @網站 http://www.phpok.com * @版本(ben) 4.x * @授權 http://www.phpok.com/lgpl.html PHPOK開源授權協(xie)議(yi):GNU Lesser General Public License * @日(ri)期 2017年12月(yue)01日 **//** * 常(chang)規基礎(chu)變(bian)量,也是係(xi)統用到(dao)的(de)變量(liang) */ var basefile = "index.php"; var ctrl_id = "c"; var func_id = "f"; var webroot = "http://m.htsbj.com/"; var apifile = "api.php"; var wwwfile = "index.php"; var phpok_site_id = "1"; var site_id = "1"; var session_name = 'PHPSESSION'; var session_id = 'o31jjrbpuoli339uahaan3vfss';//是否啟用電(dian)調 var biz_status = '1'; /** * 常(chang)規基礎(chu)變(bian)量結束 */ /** * 加(jia)載語(yu)言包 */ var lang = new Array(); /** * 結束語言(yan)包 *//** * 開始加載Jquery,注意(yi),係統(tong)會嚐式智(zhi)能檢測(ce)加載(zai)的jquery版本(ben) *//*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:\s*()[^>]*|#([\w-]*))$/,k=/^(?:|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload",q))};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i=""===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof x?n[0]:n,x.merge(this,x.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:a,!0)),k.test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=a.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return g.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"==typeof s||x.isFunction(s)||(s={}),u===l&&(s=this,--l);u>l;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(x.isPlainObject(r)||(n=x.isArray(r)))?(n?(n=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(c,a,r)):r!==t&&(s[i]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=l),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){if(e===!0?!--x.readyWait:!x.isReady){if(!a.body)return setTimeout(x.ready);x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(a,[x]),x.fn.trigger&&x(a).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray||function(e){return"array"===x.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[y.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(x.support.ownLast)for(n in e)return v.call(e,n);for(n in e);return n===t||v.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=x.trim(n),n&&E.test(n.replace(A,"@").replace(j,"]").replace(S,"")))?Function("return "+n)():(x.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+n),r},noop:function(){},globalevals:function(t){t&&x.trim(t)&&(e.execScript||function(t){e.evals.call(e,t)})(t)},camelCase:function(e){return e.replace(D,"ms-").replace(L,H)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:b&&!b.call("\ufeff\u00a0")?function(e){return null==e?"":b.call(e)}:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return d.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),x.isFunction(e)?(r=g.call(arguments,2),i=function(){return e.apply(n||this,r.concat(g.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):t},access:function(e,n,r,i,o,a,s){var l=0,u=e.length,c=null==r;if("object"===x.type(r)){o=!0;for(l in r)x.access(e,n,l,r[l],!0,a,s)}else if(i!==t&&(o=!0,x.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(x(e),n)})),n))for(;u>l;l++)n(e[l],r,s?i:i.call(e[l],l,n(e[l],r)));return o?e:c?n.call(e):u?n(e[0],r):a},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),x.ready.promise=function(t){if(!n)if(n=x.Deferred(),"complete"===a.readyState)setTimeout(x.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",q,!1),e.addEventListener("load",q,!1);else{a.attachEvent("onreadystatechange",q),e.attachEvent("onload",q);var r=!1;try{r=null==e.frameElement&&a.documentElement}catch(i){}r&&r.doScroll&&function o(){if(!x.isReady){try{r.doScroll("left")}catch(e){return setTimeout(o,50)}_(),x.ready()}}()}return n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=x(a),function(e,t){var n,r,i,o,a,s,l,u,c,p,f,d,h,g,m,y,v,b="sizzle"+-new Date,w=e.document,T=0,C=0,N=st(),k=st(),E=st(),S=!1,A=function(e,t){return e===t?(S=!0,0):0},j=typeof t,D=1t;t++)if(this[t]===e)return t;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=R.replace("w","w#"),$="\\["+P+"*("+R+")"+P+"*(?:([*^$|!~]?=)"+P+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+P+"*\\]",I=":("+R+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),X=RegExp("^"+P+"*,"+P+"*"),U=RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=RegExp(P+"*[+~]"),Y=RegExp("="+P+"*([^\\]'\"]*)"+P+"*\\]","g"),J=RegExp(I),G=RegExp("^"+W+"$"),Q={ID:RegExp("^#("+R+")"),CLASS:RegExp("^\\.("+R+")"),TAG:RegExp("^("+R.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:RegExp("^(?:"+B+")$","i"),needsContext:RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{M.apply(H=O.call(w.childNodes),w.childNodes),H[w.childNodes.length].nodeType}catch(ot){M={apply:H.length?function(e,t){_.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function at(e,t,n,i){var o,a,s,l,u,c,d,m,y,x;if((t?t.ownerDocument||t:w)!==f&&p(t),t=t||f,n=n||[],!e||"string"!=typeof e)return n;if(1!==(l=t.nodeType)&&9!==l)return[];if(h&&!i){if(o=Z.exec(e))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&v(t,a)&&a.id===s)return n.push(a),n}else{if(o[2])return M.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&r.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(s)),n}if(r.qsa&&(!g||!g.test(e))){if(m=d=b,y=t,x=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){c=mt(e),(d=t.getAttribute("id"))?m=d.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",u=c.length;while(u--)c[u]=m+yt(c[u]);y=V.test(e)&&t.parentNode||t,x=c.join(",")}if(x)try{return M.apply(n,y.querySelectorAll(x)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,n,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>o.cacheLength&&delete t[e.shift()],t[n]=r}return t}function lt(e){return e[b]=!0,e}function ut(e){var t=f.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ct(e,t){var n=e.split("|"),r=e.length;while(r--)o.attrHandle[n[r]]=t}function pt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function dt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return lt(function(t){return t=+t,lt(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}s=at.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=at.support={},p=at.setDocument=function(e){var n=e?e.ownerDocument||e:w,i=n.defaultView;return n!==f&&9===n.nodeType&&n.documentElement?(f=n,d=n.documentElement,h=!s(n),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){p()}),r.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ut(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ut(function(e){return e.innerHTML="

a<:nav>
t
","
","","","
","
","
","
","
").append(x.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Cn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_n(_n(e,x.ajaxSettings),t):_n(x.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,l,u,c,p=x.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?x(f):x.event,h=x.Deferred(),g=x.Callbacks("once memory"),m=p.statusCode||{},y={},v={},b=0,w="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||w;return u&&u.abort(t),k(0,t),this}};if(h.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"http://"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=x.trim(p.dataType||"*").toLowerCase().match(T)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(mn[3]||("http:"===mn[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),qn(An,p,n,C),2===b)return C;l=p.global,l&&0===x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Nn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(x.lastModified[o]&&C.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&C.setRequestHeader("If-None-Match",x.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)C.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,C,p)===!1||2===b))return C.abort();w="abort";for(i in{success:1,error:1,complete:1})C[i](p[i]);if(u=qn(jn,p,n,C)){C.readyState=1,l&&d.trigger("ajaxSend",[C,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){C.abort("timeout")},p.timeout));try{b=1,u.send(y,k)}catch(N){if(!(2>b))throw N;k(-1,N)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,N=n;2!==b&&(b=2,s&&clearTimeout(s),u=t,a=i||"",C.readyState=e>0?4:0,c=e>=200&&300>e||304===e,r&&(w=Mn(p,C,r)),w=On(p,w,C,c),c?(p.ifModified&&(T=C.getResponseHeader("Last-Modified"),T&&(x.lastModified[o]=T),T=C.getResponseHeader("etag"),T&&(x.etag[o]=T)),204===e||"HEAD"===p.type?N="nocontent":304===e?N="notmodified":(N=w.state,y=w.data,v=w.error,c=!v)):(v=N,(e||!N)&&(N="error",0>e&&(e=0))),C.status=e,C.statusText=(n||N)+"",c?h.resolveWith(f,[y,N,C]):h.rejectWith(f,[C,N,v]),C.statusCode(m),m=t,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[C,p,c?y:v]),g.fireWith(f,[C,N]),l&&(d.trigger("ajaxComplete",[C,p]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,n){return x.get(e,t,n,"script")}}),x.each(["get","post"],function(e,n){x[n]=function(e,r,i,o){return x.isFunction(r)&&(o=o||i,i=r,r=t),x.ajax({url:e,type:n,dataType:o,data:r,success:i})}});function Mn(e,n,r){var i,o,a,s,l=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in l)if(l[s]&&l[s].test(o)){u.unshift(s);break}if(u[0]in r)a=u[0];else{for(s in r){if(!u[0]||e.converters[s+" "+u[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==u[0]&&u.unshift(a),r[a]):t}function On(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a)for(i in u)if(s=i.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){a===!0?a=u[i]:u[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(p){return{state:"parsererror",error:a?p:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalevals(e),e}}}),x.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),x.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=a.head||x("head")[0]||a.documentElement;return{send:function(t,i){n=a.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var Fn=[],Bn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Fn.pop()||x.expando+"_"+vn++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,l=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=x.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||x.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,Fn.push(o)),s&&x.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}x.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=x.ajaxSettings.xhr(),x.support.cors=!!Rn&&"withCredentials"in Rn,Rn=x.support.ajax=!!Rn,Rn&&x.ajaxTransport(function(n){if(!n.crossDomain||x.support.cors){var r;return{send:function(i,o){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)l[s]=n.xhrFields[s];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)l.setRequestHeader(s,i[s])}catch(u){}l.send(n.hasContent&&n.data||null),r=function(e,i){var s,u,c,p;try{if(r&&(i||4===l.readyState))if(r=t,a&&(l.onreadystatechange=x.noop,$n&&delete Pn[a]),i)4!==l.readyState&&l.abort();else{p={},s=l.status,u=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(p.text=l.responseText);try{c=l.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,u)},n.async?4===l.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},x(e).unload($n)),Pn[a]=r),l.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+w+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Yn.exec(t),o=i&&i[3]||(x.cssNumber[e]?"":"px"),a=(x.cssNumber[e]||"px"!==o&&+r)&&Yn.exec(x.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,x.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=x.now()}function Zn(e,t,n){var r,i=(Qn[t]||[]).concat(Qn["*"]),o=0,a=i.length;for(;a>o;o++)if(r=i[o].call(n,t,e))return r}function er(e,t,n){var r,i,o=0,a=Gn.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,a=0,l=u.tweens.length;for(;l>a;a++)u.tweens[a].run(o);return s.notifyWith(e,[u,o,n]),1>o&&l?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(tr(c,u.opts.specialEasing);a>o;o++)if(r=Gn[o].call(u,e,c,u.opts))return r;return x.map(c,Zn,u),x.isFunction(u.opts.start)&&u.opts.start.call(e,u),x.fx.timer(x.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function tr(e,t){var n,r,i,o,a;for(n in e)if(r=x.camelCase(n),i=t[r],o=e[n],x.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=x.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}x.Animation=x.extend(er,{tweener:function(e,t){x.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,l,u=this,c={},p=e.style,f=e.nodeType&&nn(e),d=x._data(e,"fxshow");n.queue||(s=x._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,x.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===x.css(e,"display")&&"none"===x.css(e,"float")&&(x.support.inlineBlockNeedsLayout&&"inline"!==ln(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",x.support.shrinkWrapBlocks||u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],Vn.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(f?"hide":"show"))continue;c[r]=d&&d[r]||x.style(e,r)}if(!x.isEmptyObject(c)){d?"hidden"in d&&(f=d.hidden):d=x._data(e,"fxshow",{}),o&&(d.hidden=!f),f?x(e).show():u.done(function(){x(e).hide()}),u.done(function(){var t;x._removeData(e,"fxshow");for(t in c)x.style(e,t,c[t])});for(r in c)a=Zn(f?d[r]:0,r,u),r in d||(d[r]=a.start,f&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}x.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=x.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[x.cssProps[e.prop]]||x.cssHooks[e.prop])?x.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),o=x.speed(t,n,r),a=function(){var t=er(this,x.extend({},e),o);(i||x._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=x.timers,a=x._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&x.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=x._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=x.timers,a=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}x.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||x.isFunction(e)&&e,duration:e,easing:n&&t||t&&!x.isFunction(t)&&t};return r.duration=x.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in x.fx.speeds?x.fx.speeds[r.duration]:x.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){x.isFunction(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},x.timers=[],x.fx=rr.prototype.init,x.fx.tick=function(){var e,n=x.timers,r=0;for(Xn=x.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||x.fx.stop(),Xn=t},x.fx.timer=function(e){e()&&x.timers.push(e)&&x.fx.start()},x.fx.interval=13,x.fx.start=function(){Un||(Un=setInterval(x.fx.tick,x.fx.interval))},x.fx.stop=function(){clearInterval(Un),Un=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fx.step={},x.expr&&x.expr.filters&&(x.expr.filters.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length}),x.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){x.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s)return n=s.documentElement,x.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},x.offset={setOffset:function(e,t,n){var r=x.css(e,"position");"static"===r&&(e.style.position="relative");var i=x(e),o=i.offset(),a=x.css(e,"top"),s=x.css(e,"left"),l=("absolute"===r||"fixed"===r)&&x.inArray("auto",[a,s])>-1,u={},c={},p,f;l?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),x.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(u.top=t.top-o.top+p),null!=t.left&&(u.left=t.left-o.left+f),"using"in t?t.using.call(e,u):i.css(u)}},x.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===x.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),x.nodeName(e[0],"html")||(n=e.offset()),n.top+=x.css(e[0],"borderTopWidth",!0),n.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-x.css(r,"marginTop",!0),left:t.left-n.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||s;while(e&&!x.nodeName(e,"html")&&"static"===x.css(e,"position"))e=e.offsetParent;return e||s})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);x.fn[e]=function(i){return x.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?x(a).scrollLeft():o,r?o:x(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return x.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}x.each({Height:"height",Width:"width"},function(e,n){x.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){x.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return x.access(this,function(n,r,i){var o;return x.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?x.css(n,r,s):x.style(n,r,i,s)},n,a?i:t,a,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=x:(e.jQuery=e.$=x,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x}))})(window); /** * 結束加載Jquery */;(function($){ $.phpokurl = { base:function(ctrl,func,ext,file) { var url = webroot + "" +file; var is_wen = true; if(ctrl && ctrl != 'index'){ url += "?"+ctrl_id+"="+ctrl; is_wen = false; } if(func && func != 'index'){ if(is_wen){ url += "?"; is_wen = false; }else{ url += "&"; } url += func_id+"="+func; } if(ext){ url += is_wen ? ("?"+ext) : ("&"+ext); } if(phpok_site_id && site_id && phpok_site_id != site_id){ url += is_wen ? ("?siteId="+phpok_site_id) : ("&siteId="+phpok_site_id); } return url; }, plugin:function(id,efunc,ext,file) { var url = webroot+""+file+"?"+ctrl_id+"=plugin&"+func_id+"=exec"; if(id){ url += "&_phpokid="+id; } if(efunc){ url += "&exec="+efunc; } if(ext){ url += "&"+ext; } if(phpok_site_id && site_id && phpok_site_id != site_id){ url += "&siteId="+phpok_site_id; } return url; } } })(jQuery);function get_url(ctrl,func,ext) { return $.phpokurl.base(ctrl,func,ext,basefile); }function get_plugin_url(id,efunc,ext) { return $.phpokurl.plugin(id,efunc,ext,basefile); }function admin_url(ctrl,func,ext) { return $.phpokurl.base(ctrl,func,ext,adminfile); }function admin_plugin_url(id,efunc,ext) { return $.phpokurl.plugin(id,efunc,ext,adminfile); }function www_url(ctrl,func,ext) { return $.phpokurl.base(ctrl,func,ext,wwwfile); }function www_plugin_url(id,efunc,ext) { return $.phpokurl.plugin(id,efunc,ext,wwwfile); }function api_url(ctrl,func,ext) { return $.phpokurl.base(ctrl,func,ext,apifile); }function api_plugin_url(id,efunc,ext) { return $.phpokurl.plugin(id,efunc,ext,apifile); } /** * 自定(ding)義表(biao)單(dan)中涉及(ji)到的JS操(cao)作 * @package phpok * @作者 qinggan * @版權 深(shen)圳(zhen)市錕鋙(yu)科(ke)技有限公司(si) * @主頁 http://www.phpok.com * @版(ban)本 4.x * @授權 http://www.phpok.com/lgpl.html PHPOK開源授權協議:GNU Lesser General Public License * @時間(jian) 2017年03月22日 **/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', "lock":true }); } } }//清(qing)空(kong) function phpok_btn_clear(btn,id) { $("#"+id).val(""); }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; } $.phpok.ajax(url,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" : "圖(tu)片庫", "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" : "附件(jian)資(zi)源", "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" : "添加影音(yin)", "width" : "760px", "height" : "80%", "resize" : false, "lock" : true }); }//刪(shan)除(chu)單個(ge)主(zhu)題(ti)關聯 function phpok_title_delete_single(id) { $("#"+id).val(""); $("#title_"+id).hide(); $("#layui-btn-"+id+"-delete").hide(); }//刪除多(duo)個主題關聯 function phpok_title_delete(id,val) { if(val && val != "undefined") { //移(yi)除DIV值(zhi) $("#"+id+"_div_"+val).remove(); //移(yi)除值(zhi) 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"+val+""); obj.find("option[value="+data.info+"]").attr("selected",true); }else{ $.dialog.alerts(data.info); return false; } }); },''); }, //圖片(pian)預覽 upload_preview:function(id) { $.dialog.open(get_url('upload','preview','id='+id),{ 'title':p_lang('預覽附件信息'), 'width':'700px', 'height':'400px', 'lock':true, 'button': [{ 'name': p_lang('下載原(yuan)文(wen)件'), 'callback': function () { $.phpok.open(get_url('res','download','id='+id)); return false; }, }], 'okVal':p_lang('關(guan)閉'), 'ok':true }); }, upload_update:function(id) { $.dialog.open(get_url('upload','editopen','id='+id),{ 'title':p_lang('編輯附(fu)件信(xin)息'), 'width':'700px', 'height':'400px', 'lock':true, 'okVal':p_lang('提(ti)交(jiao)'), 'ok':function(){ var iframe = this.iframe.contentWindow; if (!iframe.document.body) { alerts(p_lang('iframe還沒(mei)加載完(wan)畢呢(ne)')); return false; }; iframe.save(); return false; }, 'cancelVal':p_lang('取消修(xiu)改'), 'cancel':function(){} }); }, upload_delete:function(identifier,id) { var fid = identifier; if(fid.substr(0,1) != '#' && fid.substr(0,1) != '.'){ fid = '#'+fid; } var content = $(fid).val(); if(!content || content == "undefined"){ return true; } //刪除單個附件 if(content == id){ $(fid).val(""); $(fid+"_list").fadeOut().html(''); this.upload_remote_delete(identifier,id); return true; } var list = content.split(","); var newlist = new Array(); var new_i = 0; for(var i=0;i
亚洲男人天堂2018av
parseInt(b['id']) ? 1 : -1 }); var list = new Array(); for(var i in t){ list[i] = t[i]['data']; } var val = list.join(","); $("#"+identifier).val(val); this.upload_showhtml(identifier,true); }, param_type_setting:function(val,id){ var old = $("#"+id).val(); if(old){ val = old+","+val; } $("#"+id).val(val); }, param_type_set:function(v){ if(v == 1){ $("#p_val_type_html").show(); }else{ $("#p_val_type_html").hide(); } }, /** * 文本框旁邊(bian)的日期(qi)按(an)鈕控(kong)件 **/ laydate_button:function(id,type) { layui.use('laydate',function(){ var laydate = layui.laydate; laydate.render({ elem:'#'+id, type:type, show: true, trigger: 'click', closeStop: '#btn_'+id+'_'+type }); }); }, /** * 格(ge)式化(hua)日期 **/ laydate_format:function(id,type) { var info = $("#"+id).val(); if(!info){ return false; } info = info.replace("年",'-'); info = info.replace("月",'-'); info = info.replace("日",''); info = info.replace("時(shi)",'-'); info = info.replace("分",'-'); info = info.replace("秒",''); if(type == 'date'){ var tmp = info.replace('/','-'); if(tmp != info){ var list = info.split('/'); if((list[0]).length != 4){ info = list[2]+'-'+list[0]+'-'+list[1]; } } } if(type == 'datetime'){ info = info.replace('/','-'); } $("#"+id).val(info); return true; }, /** * 清空文本框內容(rong) **/ clear:function(id){ if(id.substr(0,1) != '.' && id.substr(0,1) != '#'){ id = '#'+id; } return $(id).val(''); }, /** * 文件選(xuan)擇(ze)器(qi) **/ text_button_file_select:function(id) { $.dialog.open(get_url("open","input","id="+id),{ title: p_lang('附件管(guan)理(li)器'), lock : true, width: "700px", height: "70%", resize: false }); }, /** * 文件下載 **/ text_button_file_download:function(id) { if(id.substr(0,1) != '.' && id.substr(0,1) != '#'){ id = '#'+id; } var file = $(id).val(); if(!file){ $.dialog.alerts(p_lang('沒有可下(xia)載的附件')); return false; } var url = get_url("res_action","download",'file='+$.str.encode(file)); window.open(url); }, /** * 圖片選擇器 **/ text_button_image_select:function(id) { $.dialog.open(get_url("open","input","id="+id+"&type=image"),{ title: p_lang('圖片管理器'), lock : true, width: "700px", height: "70%", resize: false }); }, /** * 圖片預(yu)覽 **/ text_button_image_preview:function(id) { if(id.substr(0,1) != '.' && id.substr(0,1) != '#'){ id = '#'+id; } var file = $(id).val(); if(!file){ $.dialog.alerts(p_lang('沒有指定圖片')); return false; } var url = get_url("res_action","view",'file='+$.str.encode(file)); $.dialog.open(url,{ title: p_lang('預覽(lan)圖片'), lock: true, width: '700px', height: '70%', resize: false, ok: true }); }, /** * 視頻選擇器 **/ text_button_video_select:function(id) { var url = get_url("open","input","id="+id+"&type=video"); $.dialog.open(url,{ title: p_lang('視(shi)頻(pin)管理器'), lock : true, width: "700px", height: "70%" }); }, /** * 視頻預覽 **/ text_button_video_preview:function(id) { if(id.substr(0,1) != '.' && id.substr(0,1) != '#'){ id = '#'+id; } var file = $(id).val(); if(!file){ $.dialog.alerts(p_lang('沒有指(zhi)定視頻')); return false; } var url = get_url("res_action","video","file="+$.str.encode(file)); $.dialog.open(url,{ title: p_lang('視頻預覽'), lock: true, width: '670px', height: '510px', ok:true }); }, /** * 網址選擇器 **/ text_button_url_select:function(id) { var url = get_url("open","url","id="+id); $.dialog.open(url,{ title: p_lang('網(wang)址(zhi)管理器'), lock : true, width: "700px", height: "70%" }); }, /** * 網址預覽 **/ text_button_url_open:function(id) { if(id.substr(0,1) != '.' && id.substr(0,1) != '#'){ id = '#'+id; } var url = $(id).val(); if(!url || url == "http://" || url == "https://"){ $.dialog.alerts(p_lang('未(wei)指定網址')); return false; } window.open(url); }, /** * 會員選擇庫 **/ text_button_user_select:function(id) { var url = get_url("open","user2","id="+id); $.dialog.open(url,{ title: p_lang('會員(yuan)列表'), lock : true, width: "700px", height: "70%", resize: false }); }, /** * 快速(su)插入文本 **/ text_button_quickwords:function(id,val,type) { if(id.substr(0,1) != '.' && id.substr(0,1) != '#'){ id = '#'+id; } if(type && type == 'none'){ $(id).val(val); return true; } var tmp = $(id).val(); tmp = (tmp && tmp != 'undefined') ? (tmp+''+type+''+val) : val; $(id).val(tmp); return true; }, title_select:function(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(){ $.phpokform.title_show_multi(input); return true; } }); }else{ url += "&identifier="+$.str.encode(input); $.dialog.open(url,{ "title" : title, "width" : "760px", "height" : "80%", "resize" : false, "lock" : true }); } }, title_show_multi:function(identifier) { var tmp_id = $("#"+identifier).val(); if(!tmp_id || tmp_id == '0' || tmp_id == 'undefined'){ return true; } var url = get_url("inp","","type=title&content="+$.str.encode(tmp_id)); var tid = $("#id").val(); if(tid && tid != '0'){ url += "&extprice="+tid+"&field="+identifier; } $.phpok.json(url,function(rs){ if(rs.status){ var lst = rs.info; template.defaults.imports.dateFormat = $.phpok.date; var html = template("art-tpl", {'rslist':rs.info}); $("#"+identifier+"_div").html(html).show(); $("#"+identifier+"_button_checkbox").show(); } }); }, title_show_single:function(identifier) { var tmp_id = $("#"+identifier).val(); if(!tmp_id || tmp_id == '0' || tmp_id == 'undefined'){ $("#layui-btn-"+identifier+"-delete").hide(); $("#title_"+identifier).html('').hide(); return true; } var url = get_url("inp","",'type=title&content='+$.str.encode(tmp_id)); var tid = $("#id").val(); if(tid && tid != '0'){ url += "&extprice="+tid+"&field="+identifier; } $.phpok.json(url,function(rs){ if(rs.status){ var lst = rs.info; for(var i in lst){ $("#title_"+identifier).html(lst[i]['title']).show(); $("#layui-btn-"+identifier+"-delete").show(); } } }); }, title_sortup:function(obj,identifier) { var $tr = $(obj).parents("tr"); if ($tr.index() != 0) { $tr.fadeOut().fadeIn(); $tr.prev().before($tr); } var list = new Array(); $("#"+identifier+"_preview tbody tr").each(function(i){ list[i] = $(this).attr("data-id"); }); var str = list.join(","); $("#"+identifier).val(str); }, title_sortdown:function(obj,identifier) { var len = $("#"+identifier+"_preview tbody tr").length; var $tr = $(obj).parents("tr"); if ($tr.index() != len - 1) { $tr.fadeOut().fadeIn(); $tr.next().after($tr); } var list = new Array(); $("#"+identifier+"_preview tbody tr").each(function(i){ list[i] = $(this).attr("data-id"); }); var str = list.join(","); $("#"+identifier).val(str); }, /** * 快速添(tian)加主題 * @參(can)數(shu) fid 字段(duan)ID * @參(can)數(shu) input_id 表單字段(duan)名 * @參(can)數(shu) maxcount 最大(da)數量,默(mo)認為(wei)1 **/ extitle_quickadd:function(fid,input_id,maxcount) { if(!maxcount || maxcount == 'undefined'){ maxcount = 1; } var str = $("input[name="+input_id+"]").val(); if(str && str != 'undefined'){ var list = str.split(","); var total = list.length; if(total >= maxcount){ $.dialog.alerts(p_lang('超出係統限製添加的數量')); return false; } } var url = get_url('form','quickadd','id='+fid); $.dialog.open(url,{ 'title':p_lang('添加'), 'width':'80%', 'height':'70%', 'ok':function(){ var iframe = this.iframe.contentWindow; if (!iframe.document.body) { alerts('iframe還(hai)沒加載完畢呢'); return false; }; iframe.save(); return false; }, 'lock':true, 'okVal':p_lang('保(bao)存(cun)'), 'cancel':true }); }, /** * 快速編輯(ji) **/ extitle_quickedit:function(id,fid) { var url = get_url('form','quickadd','id='+fid+"&tid="+id); $.dialog.open(url,{ 'title':p_lang('編輯 #'+id), 'width':'80%', 'height':'70%', 'ok':function(){ var iframe = this.iframe.contentWindow; if (!iframe.document.body) { alerts('iframe還(hai)沒加載完畢呢'); return false; }; iframe.save(); return false; }, 'lock':true, 'okVal':p_lang('保(bao)存(cun)'), 'cancel':true }); }, extitle_list:function(fid,input_id,maxcount,ext) { if(!maxcount || maxcount == 'undefined'){ maxcount = 1; } var str = $("input[name="+input_id+"]").val(); if(str && str != 'undefined'){ var list = str.split(","); var total = list.length; if(total >= maxcount){ $.dialog.alerts(p_lang('超出係統限製添加的數量')); return false; } } var url = get_url('form','quicklist','id='+fid+"&maxcount="+maxcount); if(ext && ext != 'undefined'){ var list = ext.split(','); var is_ok = true; for(var i in list){ var val = $("#"+list[i]).val(); if(val == ''){ is_ok = false; var title = $("#form_html_"+list[i]+" .title").html(); title = title.replace(/.+/g,''); title = title.replace(":",''); $.dialog.alerts('請先選擇:'+title); break; } url += "&ext["+list[i]+"]="+$.str.encode(val); } if(!is_ok){ return false; } } $.dialog.open(url,{ 'title':p_lang('選擇'), 'width':'90%', 'height':'80%', 'ok':true, 'lock':true, 'okVal':p_lang('關閉') }); }, /** * 重(zhong)載擴展(zhan)字段 * @參數 id 模(mo)塊字段ID * @參數 identifier 標(biao)識(shi) **/ extitle_reload:function(id,identifier) { var url = get_url('form','redata','id='+id); var content = $("#"+identifier).val(); if(content){ url += "&content="+$.str.encode(content); } $.phpok.json(url,function(data){ if(data.status){ if(data.info){ $("#"+identifier+"_edit_preview").html(data.info); } return true; } return true; }) }, /** * 刪除已存在的主題,防止重複(fu)篩選 **/ extitle_remove_selected:function(identifier) { var opener = $.dialog.opener; var content = opener.$("#"+identifier).val(); if(content){ var list = content.split(","); for(var i in list){ $("#title_"+list[i]).remove(); } } }, /** * 選中(zhong)已存在(zai)主題 * @參數 id 主題ID * @參數 pid 項目ID * @參數 identifier 要更新的標(biao)識(shi)內容 **/ extitle_select_action:function(id,pid,identifier,maxcount) { if(!maxcount || maxcount == 'undefined'){ maxcount = 9999; } maxcount = parseInt(maxcount); var opener = $.dialog.opener; var content = opener.$("#"+identifier).val(); if(content){ var tmp = content.split(","); if(tmp.length >= maxcount){ $.dialog.alerts(p_lang('超出(chu)係統限(xian)製(zhi)添加的數量')); return false; } content = content+","+id; var list = content.split(","); var rs = $.unique(list); content = rs.join(","); opener.$("#"+identifier).val(content); }else{ opener.$("#"+identifier).val(id); } $("#title_"+id).remove(); opener.$.phpokform.extitle_reload(pid,identifier); return true; }, /** * 向前(qian)移一位 **/ extitle_sortup:function(obj,id,identifier) { this.title_sortup(obj,identifier); }, /** * 向後(hou)移一位(wei) **/ extitle_sortdown:function(obj,id,identifier) { this.title_sortdown(obj,identifier); }, /** * 刪除操作 **/ extitle_delete:function(val,id,identifier) { var content = $("#"+identifier).val(); if(!content || !val || val == '0' || content == '0' || val == 'undefined' || content == 'undefined'){ return true; } if(content == val){ $("#"+identifier).val(''); this.extitle_reload(id,identifier); return true; } $("#tr_"+identifier+"_"+val).remove(); var list = new Array(); $("#"+identifier+"_preview tbody tr").each(function(i){ list[i] = $(this).attr("data-id"); }); var str = list.join(","); $("#"+identifier).val(str); } }; })(jQuery); /*! * artDialog 4.1.7 * Date: 2013-03-03 08:04 * http://code.htsbj.com * (c) 2009-2012 TangBin, http://www.planeArt.cn * * This is licensed under the GNU LGPL, version 2.1 or later. * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ */ ;(function(t,e,i){t.noop=t.noop||function(){};var n,o,s,l,a=0,r=t(e),c=t(document),f=t("html"),u=document.documentElement,d=e.VBArray&&!e.XMLHttpRequest,h="createTouch"in document&&!("onmousemove"in u)||/(iPhone|ipads|iPod)/i.test(navigator.userAgent),p="artDialog"+ +new Date;var m=function(e,o,s){e=e||{};if(typeof e==="string"||e.nodeType===1){e={content:e,fixed:!h}}var l,r=m.defaults,c=e.follow=this.nodeType===1&&this||e.follow;for(var f in r){if(e[f]===i)e[f]=r[f]}t.each({ok:"yesFn",cancel:"noFn",close:"closeFn",init:"initFn",okVal:"yesText",cancelVal:"noText"},function(t,n){e[t]=e[t]!==i?e[t]:e[n]});if(typeof c==="string")c=t(c)[0];e.id=c&&c[p+"follow"]||e.id||p+a;l=m.list[e.id];if(c&&l)return l.follow(c).zIndex().focus();if(l)return l.zIndex().focus();if(h)e.fixed=false;if(!t.isArray(e.button)){e.button=e.button?[e.button]:[]}if(o!==i)e.ok=o;if(s!==i)e.cancel=s;e.ok&&e.button.push({name:e.okVal,callback:e.ok,focus:true});e.cancel&&e.button.push({name:e.cancelVal,callback:e.cancel});m.defaults.zIndex=e.zIndex;a++;return m.list[e.id]=n?n._init(e):new m.fn._init(e)};m.fn=m.prototype={version:"4.1.7",closed:true,_init:function(t){var i=this,o,s=t.icon,l=s&&(d?{png:"icons/"+s+".png"}:{backgroundImage:"url('"+t.path+"/images/skins/icons/"+s+".png')"});i.closed=false;i.config=t;i.DOM=o=i.DOM||i._getDOM();o.wrap.addClass(t.skin);o.close[t.cancel===false?"hide":"show"]();o.icon[0].style.display=s?"":"none";o.iconBg.css(l||{background:"none"});o.se.css("cursor",t.resize?"se-resize":"auto");o.title.css("cursor",t.drag?"move":"auto");o.content.css("padding",t.padding);i[t.show?"show":"hide"](true);i.button(t.button).title(t.title).content(t.content,true).size(t.width,t.height).time(t.time);t.follow?i.follow(t.follow):i.position(t.left,t.top);i.zIndex().focus();t.lock&&i.lock();i._addEvent();i._ie6PngFix();n=null;t.init&&t.init.call(i,e);return i},content:function(t){var e,n,o,s,l=this,a=l.DOM,r=a.wrap[0],c=r.offsetWidth,f=r.offsetHeight,u=parseInt(r.style.left),d=parseInt(r.style.top),h=r.style.width,p=a.content,m=p[0];l._elemBack&&l._elemBack();r.style.width="auto";if(t===i)return m;if(typeof t==="string"){p.html(t)}else if(t&&t.nodeType===1){s=t.style.display;e=t.previousSibling;n=t.nextSibling;o=t.parentNode;l._elemBack=function(){if(e&&e.parentNode){e.parentNode.insertBefore(t,e.nextSibling)}else if(n&&n.parentNode){n.parentNode.insertBefore(t,n)}else if(o){o.appendChild(t)}t.style.display=s;l._elemBack=null};p.html("");m.appendChild(t);t.style.display="block"}if(!arguments[1]){if(l.config.follow){l.follow(l.config.follow)}else{c=r.offsetWidth-c;f=r.offsetHeight-f;u=u-c/2;d=d-f/2;r.style.left=Math.max(u,0)+"px";r.style.top=Math.max(d,0)+"px"}if(h&&h!=="auto"){r.style.width=r.offsetWidth+"px"}l._autoPositionType()}l._ie6SelectFix();l._runScript(m);return l},title:function(t){var e=this.DOM,n=e.wrap,o=e.title,s="aui_state_noTitle";if(t===i)return o[0];if(t===false){o.hide().html("");n.addClass(s)}else{o.show().html(t||"");n.removeClass(s)}return this},position:function(t,e){var n=this,o=n.config,s=n.DOM.wrap[0],l=d?false:o.fixed,a=d&&n.config.fixed,f=c.scrollLeft(),u=c.scrollTop(),h=l?0:f,p=l?0:u,m=r.width(),g=r.height(),_=s.offsetWidth,v=s.offsetHeight,y=s.style;if(t||t===0){n._left=t.toString().indexOf("%")!==-1?t:null;t=n._toNumber(t,m-_);if(typeof t==="number"){t=a?t+=f:t+h;y.left=Math.max(t,h)+"px"}else if(typeof t==="string"){y.left=t}}if(e||e===0){n._top=e.toString().indexOf("%")!==-1?e:null;e=n._toNumber(e,g-v);if(typeof e==="number"){e=a?e+=u:e+p;y.top=Math.max(e,p)+"px"}else if(typeof e==="string"){y.top=e}}if(t!==i&&e!==i){n._follow=null;n._autoPositionType()}return n},size:function(t,e){var i,n,o,s,l=this,a=l.config,c=l.DOM,f=c.wrap,u=c.main,d=f[0].style,h=u[0].style;if(t){l._width=t.toString().indexOf("%")!==-1?t:null;i=r.width()-f[0].offsetWidth+u[0].offsetWidth;o=l._toNumber(t,i);t=o;if(typeof t==="number"){d.width="auto";h.width=Math.max(l.config.minWidth,t)+"px";d.width=f[0].offsetWidth+"px"}else if(typeof t==="string"){h.width=t;t==="auto"&&f.css("width","auto")}}if(e){l._height=e.toString().indexOf("%")!==-1?e:null;n=r.height()-f[0].offsetHeight+u[0].offsetHeight;s=l._toNumber(e,n);e=s;if(typeof e==="number"){h.height=Math.max(l.config.minHeight,e)+"px"}else if(typeof e==="string"){h.height=e}}l._ie6SelectFix();return l},follow:function(e){var i,n=this,o=n.config;if(typeof e==="string"||e&&e.nodeType===1){i=t(e);e=i[0]}if(!e||!e.offsetWidth&&!e.offsetHeight){return n.position(n._left,n._top)}var s=p+"follow",l=r.width(),a=r.height(),f=c.scrollLeft(),u=c.scrollTop(),h=i.offset(),m=e.offsetWidth,g=e.offsetHeight,_=d?false:o.fixed,v=_?h.left-f:h.left,y=_?h.top-u:h.top,x=n.DOM.wrap[0],b=x.style,w=x.offsetWidth,k=x.offsetHeight,M=v-(w-m)/2,D=y+g,T=_?0:f,O=_?0:u;M=M'+'
loading..
',title:"消(xiao)息",button:null,ok:null,cancel:null,init:null,close:null,okVal:"確定",cancelVal:"取消",width:"auto",height:"auto",minWidth:96,minHeight:32,padding:"20px 25px",skin:"",icon:null,time:null,esc:true,focus:true,show:true,follow:null,path:l,lock:false,background:"#000",opacity:.7,duration:300,fixed:false,left:"50%",top:"38.2%",zIndex:1987,resize:true,drag:true};e.artDialog=t.dialog=t.artDialog=m})(this.art||this.jQuery&&(this.art=jQuery),this);(function(t){var e,i,n=t(window),o=t(document),s=document.documentElement,l=!("minWidth"in s.style),a="onlosecapture"in s,r="setCapture"in s;artDialog.dragEvent=function(){var t=this,e=function(e){var i=t[e];t[e]=function(){return i.apply(t,arguments)}};e("start");e("move");e("end")};artDialog.dragEvent.prototype={onstart:t.noop,start:function(t){o.bind("mousemove",this.move).bind("mouseup",this.end);this._sClientX=t.clientX;this._sClientY=t.clientY;this.onstart(t.clientX,t.clientY);return false},onmove:t.noop,move:function(t){this._mClientX=t.clientX;this._mClientY=t.clientY;this.onmove(t.clientX-this._sClientX,t.clientY-this._sClientY);return false},onend:t.noop,end:function(t){o.unbind("mousemove",this.move).unbind("mouseup",this.end);this.onend(t.clientX,t.clientY);return false}};i=function(t){var i,s,c,f,u,d,h=artDialog.focus,p=h.DOM,m=p.wrap,g=p.title,_=p.main;var v="getSelection"in window?function(){window.getSelection().removeAllRanges()}:function(){try{document.selection.empty()}catch(t){}};e.onstart=function(t,i){if(d){s=_[0].offsetWidth;c=_[0].offsetHeight}else{f=m[0].offsetLeft;u=m[0].offsetTop}o.bind("dblclick",e.end);!l&&a?g.bind("losecapture",e.end):n.bind("blur",e.end);r&&g[0].setCapture();m.addClass("aui_state_drag");h.focus()};e.onmove=function(t,e){if(d){var n=m[0].style,o=_[0].style,l=t+s,a=e+c;n.width="auto";o.width=Math.max(0,l)+"px";n.width=m[0].offsetWidth+"px";o.height=Math.max(0,a)+"px"}else{var o=m[0].style,r=Math.max(i.minX,Math.min(i.maxX,t+f)),p=Math.max(i.minY,Math.min(i.maxY,e+u));o.left=r+"px";o.top=p+"px"}v();h._ie6SelectFix()};e.onend=function(t,i){o.unbind("dblclick",e.end);!l&&a?g.unbind("losecapture",e.end):n.unbind("blur",e.end);r&&g[0].releaseCapture();l&&!h.closed&&h._autoPositionType();m.removeClass("aui_state_drag")};d=t.target===p.se[0]?true:false;i=function(){var t,e,i=h.DOM.wrap[0],s=i.style.position==="fixed",l=i.offsetWidth,a=i.offsetHeight,r=n.width(),c=n.height(),f=s?0:o.scrollLeft(),u=s?0:o.scrollTop(),t=r-l+f;e=c-a+u;return{minX:f,minY:u,maxX:t,maxY:e}}();e.start(t)};o.bind("mousedown",function(t){var n=artDialog.focus;if(!n)return;var o=t.target,s=n.config,l=n.DOM;if(s.drag!==false&&o===l.title[0]||s.resize!==false&&o===l.se[0]){e=e||new artDialog.dragEvent;i(t);return false}})})(this.art||this.jQuery&&(this.art=jQuery)); /*! * artDialog iframeTools * Date: 2011-11-25 13:54 * http://code.htsbj.com * (c) 2009-2011 TangBin, http://www.planeArt.cn * * This is licensed under the GNU LGPL, version 2.1 or later. * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ */ (function(t,e,n,i){var o,a,r,c="@ARTDIALOG.DATA",l="@ARTDIALOG.OPEN",s="@ARTDIALOG.OPENER",f=e.name=e.name||"@ARTDIALOG.WINNAME"+ +new Date,u=e.VBArray&&!e.XMLHttpRequest;t(function(){!e.jQuery&&document.compatMode==="BackCompat"&&alerts('artDialog Error: document.compatMode === "BackCompat"')});var d=n.top=function(){var t=e,n=function(t){try{var n=e[t].document;n.getElementsByTagName}catch(t){return false}return e[t].artDialog&&n.getElementsByTagName("frameset").length===0};if(n("top")){t=e.top}else if(n("parent")){t=e.parent}return t}();n.parent=d;o=d.artDialog;r=function(){return o.defaults.zIndex};n.data=function(t,e){var o=n.top,a=o[c]||{};o[c]=a;if(e!==i){a[t]=e}else{return a[t]}return a};n.removeData=function(t){var e=n.top[c];if(e&&e[t])delete e[t]};n.through=a=function(){var t=o.apply(this,arguments);if(d!==e)n.list[t.config.id]=t;return t};d!==e&&t(e).bind("unload",function(){var t=n.list,e;for(var i in t){if(t[i]){e=t[i].config;if(e)e.duration=0;t[i].close()}}});n.open=function(o,c,f){c=c||{};var d,p,m,h,v,y,g,x,w,b=n.top,D="position:absolute;left:-9999em;top:-9999em;border:none 0;background:transparent",k="width:100%;height:100%;border:none 0";if(f===false){var I=+new Date,T=o.replace(/([?&])_=[^&]*/,"$1_="+I);o=T+(T===o?(/\?/.test(o)?"&":"?")+"_="+I:"")}var A=function(){var e,n,i=p.content.find(".aui_loading"),o=d.config;m.addClass("aui_state_full");i&&i.hide();try{x=v.contentWindow;g=t(x.document);w=x.document.body}catch(t){v.style.cssText=k;o.follow?d.follow(o.follow):d.position(o.left,o.top);c.init&&c.init.call(d,x,b);c.init=null;return}e=o.width==="auto"?g.width()+(u?0:parseInt(t(w).css("marginLeft"))):o.width;n=o.height==="auto"?g.height():o.height;setTimeout(function(){v.style.cssText=k},0);d.size(e,n);o.follow?d.follow(o.follow):d.position(o.left,o.top);c.init&&c.init.call(d,x,b);c.init=null};var z={zIndex:r(),init:function(){d=this;p=d.DOM;h=p.main;m=p.content;v=d.iframe=b.document.createElement("iframe");v.src=o;v.name="Open"+d.config.id;v.style.cssText=D;v.setAttribute("frameborder",0,0);v.setAttribute("allowTransparency",true);y=t(v);d.content().appendChild(v);x=v.contentWindow;try{x.name=v.name;n.data(v.name+l,d);n.data(v.name+s,e)}catch(t){}y.bind("load",A)},close:function(){y.css("display","none").unbind("load",A);if(c.close&&c.close.call(this,v.contentWindow,b)===false){return false}m.removeClass("aui_state_full");y[0].src="http://m.htsbj.com/about:blank";y.remove();try{n.removeData(v.name+l);n.removeData(v.name+s)}catch(t){}}};if(typeof c.ok==="function")z.ok=function(){return c.ok.call(d,v.contentWindow,b)};if(typeof c.cancel==="function")z.cancel=function(){return c.cancel.call(d,v.contentWindow,b)};delete c.content;for(var O in c){if(z[O]===i)z[O]=c[O]}return a(z)};n.open.api=n.data(f+l);n.opener=n.data(f+s)||e;n.open.origin=n.opener;n.close=function(){var t=n.data(f+l);t&&t.close();return false};d!=e&&t(document).bind("mousedown",function(){var t=n.open.api;t&&t.zIndex()});n.load=function(e,n,o){o=o||false;var c=n||{};var l={zIndex:r(),init:function(n){var i=this,a=i.config;t.ajax({url:e,success:function(t){i.content(t);c.init&&c.init.call(i,n)},cache:o})}};delete n.content;for(var s in c){if(l[s]===i)l[s]=c[s]}return a(l)};n.alerts=function(t,e,n){if(typeof e==="string"){n=e;e=true}n=n||"warning";return a({id:"alerts",zIndex:r(),icon:n,fixed:true,lock:true,content:t,ok:true,close:e})};n.confirm=function(t,e,n){return a({id:"Confirm",zIndex:r(),icon:"question",fixed:true,lock:true,opacity:.1,content:t,ok:function(t){return e.call(this,t)},cancel:function(t){return n&&n.call(this,t)}})};n.prompt=function(t,e,n){n=n||"";var i;return a({id:"Prompt",zIndex:r(),icon:"question",fixed:true,lock:true,opacity:.1,content:['
',t,"
'+t+"
").time(e||1.5)};n.notice=function(e){var o=e||{},a,r,c,l,s,f=800;var u={id:"Notice",left:"100%",top:"100%",fixed:true,drag:false,resize:false,follow:null,lock:false,init:function(t){a=this;r=a.config;l=a.DOM.wrap;s=parseInt(l[0].style.top);c=s+l[0].offsetHeight;l.css("top",c+"px").animate({top:s+"px"},f,function(){o.init&&o.init.call(a,t)})},close:function(e){l.animate({top:c+"px"},f,function(){o.close&&o.close.call(this,e);r.close=t.noop;a.close()});return false}};for(var d in o){if(u[d]===i)u[d]=o[d]}return n(u)};t(function(){var i=n.dragEvent;if(!i)return;var o=t(e),a=t(document),r=u?"absolute":"fixed",c=i.prototype,l=document.createElement("div"),s=l.style;s.cssText="display:none;position:"+r+";left:0;top:0;width:100%;height:100%;"+"cursor:move;filter:alpha(opacity=0);opacity:0;background:#FFF";document.body.appendChild(l);c._start=c.start;c._end=c.end;c.start=function(){var t=n.focus.DOM,e=t.main[0],i=t.content[0].getElementsByTagName("iframe")[0];c._start.apply(this,arguments);s.display="block";s.zIndex=n.defaults.zIndex+3;if(r==="absolute"){s.width=o.width()+"px";s.height=o.height()+"px";s.left=a.scrollLeft()+"px";s.top=a.scrollTop()+"px"}if(i&&e.offsetWidth*e.offsetHeight>307200){e.style.visibility="hidden"}};c.end=function(){var t=n.focus;c._end.apply(this,arguments);s.display="none";if(t)t.DOM.main[0].style.visibility="visible"}})})(this.art||this.jQuery,this,this.artDialog); (function (config) { config["title"] = "消息(xi)"; config["okVal"] = "確定"; config["cancelVal"] = "取消"; })(art.dialog.defaults); /** * jQuery MD5 hash algorithm function * * * Calculate the md5 hash of a String * String $.md5 ( String str ) * * $.md5("I'm Persian."); * * "b8c901d0f02223f9761016cfff9d68df" * * * @alias Muhammad Hussein Fattahizadeh * @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 >> (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 >> 29; return lWordArray; }; var wordToHex = function(lValue) { var WordToHexValue = "", WordToHexValueTemp = "", lByte, lCount; for (lCount = 0; lCount >> (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 127) && (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 * @版權 深圳市(shi)錕(kun)鋙科技有限公司 * @網站(zhan) http://www.phpok.com * @版本 4.x * @授權 GNU Lesser General Public License (LGPL) * @日期 2017年(nian)04月18日 **/;(function($){ $.phpok = { /** * 刷(shua)新當(dang)前頁麵(mian),使用方法:$.phpok.refresh(); **/ refresh: function() { window.location.reload(true); }, /** * 刷新(xin)頁麵別名,使用方法:$.phpok.reload(); **/ reload:function() { this.refresh(); }, /** * 跳(tiao)轉到目(mu)標網址 * @參數 url 要跳轉(zhuan)到的網址 * @參數 nocache 是(shi)否禁(jin)止緩存,設(she)置且為true時,程序(xu)會(hui)在網址後麵補增(zeng)_noCache參數 **/ go: function(url,nocache) { if(!url){ return false; } if(nocache || nocache == 'undefined'){ url = this.nocache(url); } window.location.xhref = url; }, /** * 彈(dan)出窗(chuang)口(kou) * @參數 url 要彈(dan)出窗(chuang)口(kou)的網址 * @參數 nocache 是(shi)否禁(jin)止緩存,設(she)置且為true時,程序(xu)會(hui)在網址後麵補增(zeng)_noCache參數 **/ open:function(url,nocache) { if(!url){ return false; } if(nocache || nocache == 'undefined'){ url = this.nocache(url); } window.open(url); }, /** * 讀(du)取(qu)Ajax的內容,讀出來的內容為html * @參數 url 目標網址 * @參數 obj 執行方法,為空或(huo)未設(she)置(zhi),則返(fan)回(hui)HTML代碼(ma),此時為同步請求 **/ ajax:function(url,obj,postData) { if(!url){ return false; } var cls = {'url':url,'cache':false,'dataType':'html'}; if(postData && postData != 'undefined'){ cls.data = postData; cls.type = 'post'; } cls.beforeSend = function(request){ request.setRequestHeader("request_type","ajax"); request.setRequestHeader("phpok_ajax",1); if(session_name && session_name != 'undefined'){ request.setRequestHeader(session_name,$.cookie.get(session_name)); } }; if(!obj || obj == 'undefined'){ cls.async = false; return $.ajax(cls).responseText; } cls.success = function(rs){(obj)(rs)}; $.ajax(cls); }, /** * 讀(du)取(qu) Ajax 內容,返(fan)回JSON數據 * @參數 url 目標網址 * @參數 obj 執行方法,為空或(huo)未設(she)置(zhi),則返(fan)回(hui)JSON對象(xiang),此時為同步請求 **/ json:function(url,obj,postData) { if(!url){ return false; } var self = this; var cls = {'url':url,'cache':false,'dataType':'json'}; if(postData && postData != 'undefined'){ cls.data = postData; cls.type = 'post'; } cls.beforeSend = function(request){ request.setRequestHeader("request_type","ajax"); request.setRequestHeader("phpok_ajax",1); if(!postData || postData == 'undefined'){ request.setRequestHeader("content-type","application/json"); } if(session_name && session_name != 'undefined'){ request.setRequestHeader(session_name,$.cookie.get(session_name)); } }; if(!obj || obj == 'undefined'){ cls.async = false; var info = $.ajax(cls).responseText; return self.json_decode(info); } if(typeof obj == 'boolean'){ cls.success = function(rs){ return true; } }else{ cls.success = function(rs){ (obj)(rs); }; } $.ajax(cls); }, /** * 格式(shi)化網址,增加_noCache尾(wei)巴(ba),以保證不從緩存中讀(du)取(qu)數據 * @參數 url 要格式化的網址 **/ nocache: function(url) { url = url.replace(/&/g,'&'); if(url.indexOf('_noCache') != -1){ url = url.replace(/\_noCache=[0-9\.]+/,'_noCache='+Math.random()); }else{ url += url.indexOf('?') != -1 ? '&' : '?'; url += '_noCache='+Math.random(); } return url; }, json_encode:function(obj) { if(!obj || obj == 'undefined'){ return false; } return JSON.stringify(obj); }, json_decode:function(str) { if(!str || str == 'undefined'){ return false; } return $.parseJSON(str); }, /** * 生成(cheng)隨機(ji)數 * @參數 len 長(zhang)度(du),留空使用長(zhang)度(du)10 * @參數 type 類型,支(zhi)持 letter,num,fixed,all,其(qi)中 fixed 表示字(zi)母數字混合,all 表示(shi)字母(mu),數字,及特殊符(fu)號,letter 表示(shi)字母(mu),num 表示數字 **/ rand:function(len,type) { len = len || 10; if(!type || type == 'undefined'){ type = 'letter'; } var types = {'letter':'abcdefhijkmnprstwxyz','num':'0123456789','fixed':'abcdefhijkmnprstwxyz0123456789','all':'abcdefhijkmnprstwxyz0123456789-,.*!@#$%=~'} if(type != 'letter' && type != 'num' && type != 'all' && type != 'fixed'){ type = 'letter'; } var string = types[type]; var length = string.length; var val = ''; for (i = 0; i 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; } cookievalsue = unescape(document.cookie.substring(offset, end)); end = null; } search = offset = null; } return cookievalsue; }, /** * 設(she)置 Cookie 信息 $.cookie.set("變量名","值","過期時間"); * @參數 cookieName 變量名 * @參數 cookievalsue 變量內容 * @參數 DayValue 過期時間,默認(ren)是1天,單位是天(tian) * @返(fan)回 * @更新時間 **/ set: function(cookieName,cookievalsue,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(cookievalsue) +";path=/"+ expire; cookieName = cookievalsue = DayValue = day_value = expire = null; }, /** * 刪除 Cookie 操作 * @參數 cookieName 變量名 **/ 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; } }; $.extend({ identifier:function(id) { return $.str.identifier(id); } });})(jQuery);function identifier(str) { return $.str.identifier(str); } /** * 舊(jiu)版 Input 操作類(lei) **/ ;(function($){ $.input = { checkbox_all: function(id) { return $.checkbox.all(id); }, //全(quan)不(bu)選,調(diao)用方法:$.input.checkbox_none(id); checkbox_none: function(id) { return $.checkbox.none(id); }, //每(mei)次選5個(total默認值為5) $.input.checkbox_not_all(id,5); checkbox_not_all: function(id,total) { return $.checkbox.more(id,total); }, //反選,調(diao)用方法:$.input.checkbox_anti(id); checkbox_anti: function(id) { return $.checkbox.anti(id); }, //合並複選框(kuang)值信息,以英文逗號隔開(kai) checkbox_join: function(id,type) { return $.checkbox.join(id,type); } };})(jQuery);/** * 表單通(tong)用(yong)JS,涉及到自定義(yi)表單中所有的JS文件,請注意,此(ci)文件需(xu)要加載在 jQuery 之後,且不建議直接讀(du)取(qu) * @作者 qinggan * @版權 深圳市錕鋙科技有限公司 * @網站 http://www.phpok.com * @版本 4.x * @授權 http://www.phpok.com/lgpl.html PHPOK開源(yuan)授權協議:GNU Lesser General Public License * @日期 2017年03月22日 **///異步(bu)加載js function 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'; } } $("head").append(html); }// 同步加載Ajax,返回字符串 function get_ajax(turl) { return $.phpok.ajax(turl); }// 同步加載Ajax,返回JSON數組 function json_ajax(turl) { return $.phpok.json(turl); }/** * JS語法中涉及到的語言包(bao)替換(huan) * @參數 str 要替(ti)換的語言包,支持使(shi)用{}包起來的變量 * @參數 info 支持字符串,對(dui)數數據,要替換的變量,為空表示沒有變量信息 * @返回 替換後的數據 * @更新時間 **/ function p_lang(str,info) { if(!str || str == 'undefined'){ return false; } if(lang && lang[str]){ if(!info || info == 'undefined' || typeof info == 'boolean'){ return lang[str]; } str = lang[str]; if(typeof info == 'string' || typeof info == 'number'){ return str.replace(/(\{|\[)\w+?(\}|\])/,info); } for(var i in info){ str = str.replace('{'+i+'}',info[i]); str = str.replace('['+i+']',info[i]); } return str; } if(!info || info == 'undefined' || typeof info == 'boolean'){ return str; } if(typeof info == 'string' || typeof info == 'number'){ return str.replace(/(\{|\[)\w+?(\}|\])/,info); //return str.replace(/\{\w+\}/,info); } for(var i in info){ str = str.replace('{'+i+'}',info[i]); str = str.replace('['+i+']',info[i]); } return str; }// 異步加載Ajax,執行函(han)數 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 = $.phpok.nocache(turl); $.ajax({ 'url': turl, 'cache': false, 'async': true, 'dataType': type, 'success': function(rs){ (func)(rs); } }); }// 跳轉頁麵 function direct(url) { if(!url || url == "undefined") url = window.location.xhref; $.phpok.go(url); }//自動刷新 function auto_refresh(rs) { $.phpok.reload(); }function autosave_callback(rs) { return true; }/* 計(ji)算字符數長度,中文等(deng)同於(yu)三(san)個字符,英文為一個字符 */ function strlen(str) { var len = str.length; var reLen = 0; for (var i = 0; i 126) { reLen += 3; } else { reLen++; } } if(reLen > 1024 && reLen (1024 * 1024) && reLen ').get(0).files,i.formdata=void 0!==window.FormData;var o=!!e.fn.prop;e.fn.attr2=function(){if(!o)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t,r,n,s){function u(r){var a,n,i=e.param(r,t.traditional).split("&"),o=i.length,s=[];for(a=0;a Update : 2013年9月12日 ***********************************************************/ //前台通用彈出窗口 function phpok_open(id,title) { if(id == "login" || id == "register") { var url = get_url("ajax","exit","filename="+id); } else { var url = id; } if(!title || title == "undefined") title = '彈出窗'; $.dialog.open(url,{ "title":title ,"resize":true ,"lock":true ,"id":"phpok_open_frame" ,"fixed":true ,"drag":false }); }//前台(tai)常用JS函數封裝(zhuang) ;(function($){ //定義驗證(zheng)碼 $.fn.phpok_vcode = function(ext){ var url = api_url('vcode'); if(ext && ext != 'undefined') { url += "&id="+ext; } $(this).attr('src',$.phpok.nocache(url)); } $.phpok_www = { comment:function(id,tid,callback){ if(!tid || tid == 'undefined') { $.dialog.alerts(lang.commentNotId); return false; } //直接通過JS判斷(duan)是否惡意灌(guan)水(shui) var spam = $("#"+id+"_spam").val(); if(!spam) { $.dialog.alerts(lang.commentSpamEmpty); return false; } var content = $("#"+id).val(); if(!content) { $.dialog.alerts(lang.commentEmpty); return false; } var url = api_url('comment','save','id='+tid); url += "&content="+$.str.encode(content); url += "&_spam="+spam; //提交評(ping)論 var rs = json_ajax(url); if(rs.status == 'ok') { if(callback && callback != 'undefined') { evals("callback()"); } else { $.dialog.alerts(lang.commentSuccess,function(){ $.phpok.reload(); },'succeed'); } } else { $.dialog.alerts(rs.content,'','error'); return false; } } }; })(jQuery);/*! * SuperSlide v2.1.1 * 輕鬆(song)解決網站大部分特效展示問題 * 詳(xiang)盡(jin)信息請(qing)看(kan)官(guan)網:http://www.SuperSlide2.com/ * * Copyright 2011-2013, 大話(hua)主席(xi) * * 請尊重原創,保留頭(tou)部版權 * 在保留(liu)版權的前提下可應(ying)用於個人或商(shang)業用途(tu) * v2.1.1:修複當調用多個SuperSlide,並設置returnDefault:true 時返回defaultIndex索引錯誤(wu) */!function(a){a.fn.slide=function(b){return a.fn.slide.defaults={type:"slide",effect:"fade",autoPlay:!1,delayTime:500,interTime:2500,triggerTime:150,defaultIndex:0,titCell:".hd li",mainCell:".bd",targetCell:null,trigger:"mouseover",scroll:1,vis:1,titOnClassName:"on",autoPage:!1,prevCell:".prev",nextCell:".next",pageStateCell:".pageState",opp:!1,pnLoop:!0,easing:"swing",startFun:null,endFun:null,switchLoad:null,playStateCell:".playState",mouseOverStop:!0,defaultPlay:!0,returnDefault:!1},this.each(function(){var c=a.extend({},a.fn.slide.defaults,b),d=a(this),e=c.effect,f=a(c.prevCell,d),g=a(c.nextCell,d),h=a(c.pageStateCell,d),i=a(c.playStateCell,d),j=a(c.titCell,d),k=j.size(),l=a(c.mainCell,d),m=l.children().size(),n=c.switchLoad,o=a(c.targetCell,d),p=parseInt(c.defaultIndex),q=parseInt(c.delayTime),r=parseInt(c.interTime);parseInt(c.triggerTime);var Q,t=parseInt(c.scroll),u=parseInt(c.vis),v="false"==c.autoPlay||0==c.autoPlay?!1:!0,w="false"==c.opp||0==c.opp?!1:!0,x="false"==c.autoPage||0==c.autoPage?!1:!0,y="false"==c.pnLoop||0==c.pnLoop?!1:!0,z="false"==c.mouseOverStop||0==c.mouseOverStop?!1:!0,A="false"==c.defaultPlay||0==c.defaultPlay?!1:!0,B="false"==c.returnDefault||0==c.returnDefault?!1:!0,C=0,D=0,E=0,F=0,G=c.easing,H=null,I=null,J=null,K=c.titOnClassName,L=j.index(d.find("."+K)),M=p=-1==L?p:L,N=p,O=p,P=m>=u?0!=m%t?m%t:t:0,R="leftMarquee"==e||"topMarquee"==e?!0:!1,S=function(){a.isFunction(c.startFun)&&c.startFun(p,k,d,a(c.titCell,d),l,o,f,g)},T=function(){a.isFunction(c.endFun)&&c.endFun(p,k,d,a(c.titCell,d),l,o,f,g)},U=function(){j.removeClass(K),A&&j.eq(N).addClass(K)};if("menu"==c.type)return A&&j.removeClass(K).eq(p).addClass(K),j.hover(function(){Q=a(this).find(c.targetCell);var b=j.index(a(this));I=setTimeout(function(){switch(p=b,j.removeClass(K).eq(p).addClass(K),S(),e){case"fade":Q.stop(!0,!0).animate({opacity:"show"},q,G,T);break;case"slideDown":Q.stop(!0,!0).animate({height:"show"},q,G,T)}},c.triggerTime)},function(){switch(clearTimeout(I),e){case"fade":Q.animate({opacity:"hide"},q,G);break;case"slideDown":Q.animate({height:"hide"},q,G)}}),B&&d.hover(function(){clearTimeout(J)},function(){J=setTimeout(U,q)}),void 0;if(0==k&&(k=m),R&&(k=2),x){if(m>=u)if("leftLoop"==e||"topLoop"==e)k=0!=m%t?(0^m/t)+1:m/t;else{var V=m-u;k=1+parseInt(0!=V%t?V/t+1:V/t),0>=k&&(k=1)}else k=1;j.html("");var W="";if(1==c.autoPage||"true"==c.autoPage)for(var X=0;k>X;X++)W+="
  • "+(X+1)+"
  • '+'
    loading..
    ',title:"消息",button:null,ok:null,cancel:null,init:null,close:null,okVal:"確定",cancelVal:"取消",width:"auto",height:"auto",minWidth:96,minHeight:32,padding:"20px 25px",skin:"",icon:null,time:null,esc:true,focus:true,show:true,follow:null,path:l,lock:false,background:"#000",opacity:.7,duration:300,fixed:false,left:"50%",top:"38.2%",zIndex:1987,resize:true,drag:true};e.artDialog=t.dialog=t.artDialog=m})(this.art||this.jQuery&&(this.art=jQuery),this);(function(t){var e,i,n=t(window),o=t(document),s=document.documentElement,l=!("minWidth"in s.style),a="onlosecapture"in s,r="setCapture"in s;artDialog.dragEvent=function(){var t=this,e=function(e){var i=t[e];t[e]=function(){return i.apply(t,arguments)}};e("start");e("move");e("end")};artDialog.dragEvent.prototype={onstart:t.noop,start:function(t){o.bind("mousemove",this.move).bind("mouseup",this.end);this._sClientX=t.clientX;this._sClientY=t.clientY;this.onstart(t.clientX,t.clientY);return false},onmove:t.noop,move:function(t){this._mClientX=t.clientX;this._mClientY=t.clientY;this.onmove(t.clientX-this._sClientX,t.clientY-this._sClientY);return false},onend:t.noop,end:function(t){o.unbind("mousemove",this.move).unbind("mouseup",this.end);this.onend(t.clientX,t.clientY);return false}};i=function(t){var i,s,c,f,u,d,h=artDialog.focus,p=h.DOM,m=p.wrap,g=p.title,_=p.main;var v="getSelection"in window?function(){window.getSelection().removeAllRanges()}:function(){try{document.selection.empty()}catch(t){}};e.onstart=function(t,i){if(d){s=_[0].offsetWidth;c=_[0].offsetHeight}else{f=m[0].offsetLeft;u=m[0].offsetTop}o.bind("dblclick",e.end);!l&&a?g.bind("losecapture",e.end):n.bind("blur",e.end);r&&g[0].setCapture();m.addClass("aui_state_drag");h.focus()};e.onmove=function(t,e){if(d){var n=m[0].style,o=_[0].style,l=t+s,a=e+c;n.width="auto";o.width=Math.max(0,l)+"px";n.width=m[0].offsetWidth+"px";o.height=Math.max(0,a)+"px"}else{var o=m[0].style,r=Math.max(i.minX,Math.min(i.maxX,t+f)),p=Math.max(i.minY,Math.min(i.maxY,e+u));o.left=r+"px";o.top=p+"px"}v();h._ie6SelectFix()};e.onend=function(t,i){o.unbind("dblclick",e.end);!l&&a?g.unbind("losecapture",e.end):n.unbind("blur",e.end);r&&g[0].releaseCapture();l&&!h.closed&&h._autoPositionType();m.removeClass("aui_state_drag")};d=t.target===p.se[0]?true:false;i=function(){var t,e,i=h.DOM.wrap[0],s=i.style.position==="fixed",l=i.offsetWidth,a=i.offsetHeight,r=n.width(),c=n.height(),f=s?0:o.scrollLeft(),u=s?0:o.scrollTop(),t=r-l+f;e=c-a+u;return{minX:f,minY:u,maxX:t,maxY:e}}();e.start(t)};o.bind("mousedown",function(t){var n=artDialog.focus;if(!n)return;var o=t.target,s=n.config,l=n.DOM;if(s.drag!==false&&o===l.title[0]||s.resize!==false&&o===l.se[0]){e=e||new artDialog.dragEvent;i(t);return false}})})(this.art||this.jQuery&&(this.art=jQuery)); /*! * artDialog iframeTools * Date: 2011-11-25 13:54 * http://code.htsbj.com * (c) 2009-2011 TangBin, http://www.planeArt.cn * * This is licensed under the GNU LGPL, version 2.1 or later. * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ */ (function(t,e,n,i){var o,a,r,c="@ARTDIALOG.DATA",l="@ARTDIALOG.OPEN",s="@ARTDIALOG.OPENER",f=e.name=e.name||"@ARTDIALOG.WINNAME"+ +new Date,u=e.VBArray&&!e.XMLHttpRequest;t(function(){!e.jQuery&&document.compatMode==="BackCompat"&&alerts('artDialog Error: document.compatMode === "BackCompat"')});var d=n.top=function(){var t=e,n=function(t){try{var n=e[t].document;n.getElementsByTagName}catch(t){return false}return e[t].artDialog&&n.getElementsByTagName("frameset").length===0};if(n("top")){t=e.top}else if(n("parent")){t=e.parent}return t}();n.parent=d;o=d.artDialog;r=function(){return o.defaults.zIndex};n.data=function(t,e){var o=n.top,a=o[c]||{};o[c]=a;if(e!==i){a[t]=e}else{return a[t]}return a};n.removeData=function(t){var e=n.top[c];if(e&&e[t])delete e[t]};n.through=a=function(){var t=o.apply(this,arguments);if(d!==e)n.list[t.config.id]=t;return t};d!==e&&t(e).bind("unload",function(){var t=n.list,e;for(var i in t){if(t[i]){e=t[i].config;if(e)e.duration=0;t[i].close()}}});n.open=function(o,c,f){c=c||{};var d,p,m,h,v,y,g,x,w,b=n.top,D="position:absolute;left:-9999em;top:-9999em;border:none 0;background:transparent",k="width:100%;height:100%;border:none 0";if(f===false){var I=+new Date,T=o.replace(/([?&])_=[^&]*/,"$1_="+I);o=T+(T===o?(/\?/.test(o)?"&":"?")+"_="+I:"")}var A=function(){var e,n,i=p.content.find(".aui_loading"),o=d.config;m.addClass("aui_state_full");i&&i.hide();try{x=v.contentWindow;g=t(x.document);w=x.document.body}catch(t){v.style.cssText=k;o.follow?d.follow(o.follow):d.position(o.left,o.top);c.init&&c.init.call(d,x,b);c.init=null;return}e=o.width==="auto"?g.width()+(u?0:parseInt(t(w).css("marginLeft"))):o.width;n=o.height==="auto"?g.height():o.height;setTimeout(function(){v.style.cssText=k},0);d.size(e,n);o.follow?d.follow(o.follow):d.position(o.left,o.top);c.init&&c.init.call(d,x,b);c.init=null};var z={zIndex:r(),init:function(){d=this;p=d.DOM;h=p.main;m=p.content;v=d.iframe=b.document.createElement("iframe");v.src=o;v.name="Open"+d.config.id;v.style.cssText=D;v.setAttribute("frameborder",0,0);v.setAttribute("allowTransparency",true);y=t(v);d.content().appendChild(v);x=v.contentWindow;try{x.name=v.name;n.data(v.name+l,d);n.data(v.name+s,e)}catch(t){}y.bind("load",A)},close:function(){y.css("display","none").unbind("load",A);if(c.close&&c.close.call(this,v.contentWindow,b)===false){return false}m.removeClass("aui_state_full");y[0].src="http://m.htsbj.com/about:blank";y.remove();try{n.removeData(v.name+l);n.removeData(v.name+s)}catch(t){}}};if(typeof c.ok==="function")z.ok=function(){return c.ok.call(d,v.contentWindow,b)};if(typeof c.cancel==="function")z.cancel=function(){return c.cancel.call(d,v.contentWindow,b)};delete c.content;for(var O in c){if(z[O]===i)z[O]=c[O]}return a(z)};n.open.api=n.data(f+l);n.opener=n.data(f+s)||e;n.open.origin=n.opener;n.close=function(){var t=n.data(f+l);t&&t.close();return false};d!=e&&t(document).bind("mousedown",function(){var t=n.open.api;t&&t.zIndex()});n.load=function(e,n,o){o=o||false;var c=n||{};var l={zIndex:r(),init:function(n){var i=this,a=i.config;t.ajax({url:e,success:function(t){i.content(t);c.init&&c.init.call(i,n)},cache:o})}};delete n.content;for(var s in c){if(l[s]===i)l[s]=c[s]}return a(l)};n.alerts=function(t,e,n){if(typeof e==="string"){n=e;e=true}n=n||"warning";return a({id:"alerts",zIndex:r(),icon:n,fixed:true,lock:true,content:t,ok:true,close:e})};n.confirm=function(t,e,n){return a({id:"Confirm",zIndex:r(),icon:"question",fixed:true,lock:true,opacity:.1,content:t,ok:function(t){return e.call(this,t)},cancel:function(t){return n&&n.call(this,t)}})};n.prompt=function(t,e,n){n=n||"";var i;return a({id:"Prompt",zIndex:r(),icon:"question",fixed:true,lock:true,opacity:.1,content:['
    ',t,"
    '+t+"
    ").time(e||1.5)};n.notice=function(e){var o=e||{},a,r,c,l,s,f=800;var u={id:"Notice",left:"100%",top:"100%",fixed:true,drag:false,resize:false,follow:null,lock:false,init:function(t){a=this;r=a.config;l=a.DOM.wrap;s=parseInt(l[0].style.top);c=s+l[0].offsetHeight;l.css("top",c+"px").animate({top:s+"px"},f,function(){o.init&&o.init.call(a,t)})},close:function(e){l.animate({top:c+"px"},f,function(){o.close&&o.close.call(this,e);r.close=t.noop;a.close()});return false}};for(var d in o){if(u[d]===i)u[d]=o[d]}return n(u)};t(function(){var i=n.dragEvent;if(!i)return;var o=t(e),a=t(document),r=u?"absolute":"fixed",c=i.prototype,l=document.createElement("div"),s=l.style;s.cssText="display:none;position:"+r+";left:0;top:0;width:100%;height:100%;"+"cursor:move;filter:alpha(opacity=0);opacity:0;background:#FFF";document.body.appendChild(l);c._start=c.start;c._end=c.end;c.start=function(){var t=n.focus.DOM,e=t.main[0],i=t.content[0].getElementsByTagName("iframe")[0];c._start.apply(this,arguments);s.display="block";s.zIndex=n.defaults.zIndex+3;if(r==="absolute"){s.width=o.width()+"px";s.height=o.height()+"px";s.left=a.scrollLeft()+"px";s.top=a.scrollTop()+"px"}if(i&&e.offsetWidth*e.offsetHeight>307200){e.style.visibility="hidden"}};c.end=function(){var t=n.focus;c._end.apply(this,arguments);s.display="none";if(t)t.DOM.main[0].style.visibility="visible"}})})(this.art||this.jQuery,this,this.artDialog); (function (config) { config["title"] = "消息"; config["okVal"] = "確定"; config["cancelVal"] = "取消"; })(art.dialog.defaults); /** * 購(gou)物車中涉(she)及到的JS操作,此處(chu)使用jQuery封(feng)裝 * @作(zuo)者 qinggan * @版權 2015-2016 深圳市錕鋙科技有限公司 * @網站 http://www.phpok.com * @版本 4.x * @授(shou)權 http://www.phpok.com/lgpl.html PHPOK開源授(shou)權協議:GNU Lesser General Public License * @日期 2016年09月01日 **/ ;(function($){ $.cart = { //添加到購物(wu)車(che)中 //id為產(chan)品ID add: function(id,qty){ if(qty 0){ var attr = ''; var showalerts = false; $("input[name=attr]").each(function(i){ var val = $(this).val(); if(!val){ showalerts = true; } if(attr){ attr += ","; } attr += val; }); if(!attr || showalerts){ $.dialog.alerts(p_lang('請選擇商品屬性')); return false; } url += "&ext="+attr; } //增加優惠方(fang)案(an) if($("select[data-name=apps]").length>0){ $("select[data-name=apps]").each(function(i){ var val = $(this).val(); var name = $(this).attr("data-id"); if(val && val != 'undefined' && name){ url += "&"+name+"_id="+$.str.encode(val); } }); } return url; }, //取得選中的產品價格 price:function() { var ids = $.checkbox.join(); if(!ids){ $.dialog.alerts(p_lang('請選擇要進入結算(suan)的產品'),function(){ $("#total_price").text('--.--'); }); return true; } var url = api_url('cart','price','id='+$.str.encode(ids)); $.phpok.json(url,function(data){ if(data.status){ $("#total_price").html(data.info.price); return true; } $("#total_price").text('--.--'); $.dialog.alerts(data.info); return false; }); }, //更新產品數量 //id為購物車自動(dong)生(sheng)成的ID號(hao)(不是產品ID號(hao),請注意) update: function(id,showtip) { var qty = $("#qty_"+id).val(); if(!qty || parseInt(qty) {title}
    刪除後不能(neng)恢複',title.join("
    ")); }else{ title = $("#title_"+id).text(); var tip = p_lang('確(que)定要刪除產品
    {title}
    刪除後不能恢(hui)複',title); } $.dialog.confirm(tip,function(){ var url = api_url('cart','delete','id='+$.str.encode(id)); $.phpok.json(url,function(data){ if(data.status){ $.phpok.reload(); return true; } if(!data.info){ data.info = p_lang('刪除失(shi)敗(bai)'); } $.dialog.alerts(data.info); return false; }); }); } }; })(jQuery); /** * 前台頁麵腳(jiao)本_用於過(guo)濾敏感的,粗爆的字詞(ci),一(yi)行(xing)一個,用戶(hu)提交表單數據時直接(jie)報錯(cuo) * @作者 錕鋙科技 * @版權 深圳市錕鋙科技有限公司 * @主頁 http://www.phpok.com * @版本 5.x * @許(xu)可(ke) http://www.phpok.com/lgpl.html PHPOK開源授權協議:GNU Lesser General Public License * @時間 2019年09月04日 15時50分(fen) **/ ;(function($){ $.phpok_app_dirtywords = { // } })(jQuery); /** * 收藏夾相(xiang)關JS動作 * @作者 qinggan * @版權 深圳市錕鋙科技有限公司 * @主頁(ye) http://www.phpok.com * @版本 5.x * @授權 http://www.phpok.com/lgpl.html 開源授權協議:GNU Lesser General Public License * @時間 2018年06月04日 **/ ;(function($){ $.phpok_app_fav = { act:function(id,obj) { var url = api_url('fav','act','id='+id); $.phpok.json(url,function(data){ if(data.status){ if(data.info == 'add'){ $(obj).val(p_lang('加入(ru)收藏(cang)成功(gong)')); window.setTimeout(function(){ $(obj).val('已(yi)收(shou)藏') }, 1000); } if(data.info == 'delete'){ $(obj).val(p_lang('取消收藏成功')); window.setTimeout(function(){ $(obj).val('加入收藏') }, 1000); } return true; } $.dialog.alerts(data.info); return false; }); }, del:function(id) { $.dialog.confirm(p_lang('確定要刪除這(zhe)條收藏記(ji)錄嗎(ma)?'),function(){ var url = api_url('fav','delete','id='+id); $.phpok.json(url,function(data){ if(data.status){ $.phpok.reload(); return true; } $.dialog.alerts(data.info); return false; }); }) } } })(jQuery);/** * 前台頁麵腳本_管理全球(qiu)國家(jia)及州(zhou)/省(sheng)信息 * @作者 phpok.com * @版權 深圳市錕鋙科技有限公司 * @主頁 http://www.phpok.com * @版本 5.x * @許可 http://www.phpok.com/lgpl.html PHPOK開源授權協議:GNU Lesser General Public License * @時間 2019年05月27日 19時51分 **/ ;(function($){ $.phpok_app_world_location = { // } })(jQuery);

      亚洲手机在线成免费视频-在线亚洲人成电影-免费收看人成app电影  亚洲第一成人在线-成版人app看片-亚洲成人电影在线免费观看  成年直播视频网站-成版App-丝瓜视频成年app