$(function(){$(document).ajaxError(function(a,b,c,d){return console.log(a),console.log(b),console.log(c),console.log(d),!!b.responseText&&("undefined"==typeof $_USER||1==Cnum($_USER.ID))&&void ppp({type:2,inputtype:"textarea",title:"AJAX\u51FA\u9519\uFF0C\u8FD4\u56DE\u4FE1\u606F\u5982\u4E0B\uFF1A",noclose:1,shade:1,submit:function(){window.open("https://www.hadsky.com/read-4318-1.html","_blank")},complete:function(a){$("#pkpopup_"+a+" .pk-popup-input").css({wordBreak:"break-all",fontSize:"12px",backgroundColor:"#eee"}).prop({readonly:!0}).val("\u72B6\u6001\u7801\uFF1A"+b.status+"\n\u8BF7\u6C42\u503C\uFF1A"+c.url+"\n\u8FD4\u56DE\u503C\uFF1A"+b.responseText),$("#pkpopup_"+a+" .pk-popup-submit").html("\u6C42\u52A9"),$("#pkpopup_"+a+" .pk-popup-cancel").html("\u5173\u95ED")}})}),$("body").append("
");var a=$("form");if(a.length&&"undefined"!=typeof $_USER)for(var b,c=0;c"+q+"\u2514 "+m.title+"(ID:"+m.id+")")}l||h.append(g)}return g=h.parent().html(),h.parent().remove(),void ppp({type:1,content:g,title:"\u79FB\u52A8\u6587\u7AE0",submit:function(){var c=ppp({type:4,content:"\u6B63\u5728\u5904\u7406...",shade:1});$.getJSON("index.php",{c:"admincmd",table:"read",field:"sortid",id:a.id,value:$("#hs-"+f).val(),json:1,chkcsrfval:$_USER.CHKCSRFVAL},function(a){pkpopup.close(c),"ok"==a.state?ppp({type:3,content:"\u64CD\u4F5C\u6210\u529F",icon:1,close:function(){"function"==typeof b?b():"function"==typeof b[e]?b[e]():"function"==typeof b["default"]&&b["default"]()}}):ppp({type:3,content:a.datas.msg,icon:2})})},complete:function(){$("#hs-"+f+" option[value=\""+a.id+"\"]").prop("selected",!0).append("[\u5F53\u524D\u7248\u5757]")}})}var s=ppp({type:4,content:"\u6B63\u5728\u5904\u7406...",shade:1});$.getJSON("index.php",{c:"del"==e?"delete":"admincmd",table:a.type,field:e,value:"auto",id:a.id,chkcsrfval:$_USER.CHKCSRFVAL,json:1},function(a){pkpopup.close(s),"ok"==a.state?ppp({type:3,icon:1,content:a.datas.msg,close:function(){"function"==typeof b?b():"function"==typeof b[e]?b[e]():"function"==typeof b["default"]&&b["default"]()}}):ppp({type:0,icon:2,content:a.datas.msg})})},complete:function(a){$("#pkpopup_"+a+" .pk-popup-body").html("")}})}$(function(){});