mirror of
https://github.com/Mibew/mibew.git
synced 2025-04-04 07:27:06 +03:00
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@70 c66351dc-e62f-0410-b875-e3a5c0b9693f
1 line
8.3 KiB
JavaScript
1 line
8.3 KiB
JavaScript
tq.eh=mn.nn();mn.sn(tq.eh,tq.oq,{qn:function(dq){this.pq(dq);this.dq.onComplete=this.ht.pn(this);this.dq.hr=this.fh.pn(this);this.frequency=(this.dq.frequency||2);this.it={} ;this.pt();} ,fh:function(gh,ah){if(this.dq.xt)this.dq.xt(ah.name+" \157cc\u0075\162\u0065\144\u003a\040"+ah.kt);this.bt();this.ct=setTimeout(this.pt.pn(this),this.frequency*(713+287));} ,bt:function(){if(this.it.dq)this.it.dq.onComplete=undefined;clearTimeout(this.ct);} ,pt:function(){if(this.dq.bh)this.dq.gq=(this.dq.bh)();this.it=new tq.vq(this.dq.url,this.dq);} ,ht:function(_t){if(_t!=null&&_t.status==0310){var jq=_t.responseXML;(this.dq.wt||tq.lq)(jq);} else{if(this.dq.xt)this.dq.xt(tq.kq(iq));} this.ct=setTimeout(this.pt.pn(this),this.frequency*0x3e8);} } );var ch={vh:function(ps){var cs=ps.insertCell(-1);cs.style.backgroundImage='\u0075\u0072l\u0028'+_s+'\u002f\u0069m\u0061\u0067\u0065\u0073\u002ft\141\142l\145d\u0069\u00763\056\147\151f\u0029';cs.innerHTML='<\151\u006d\u0067\040\u0073\162c="'+_s+'\057i\u006d\u0061\147\145\u0073\057\146re\145\u002egi\u0066"\u0020w\u0069d\u0074\150="\063" \u0068\u0065igh\u0074\075"\u0031" \142\u006f\u0072d\145r\u003d"0" \u0061lt\075"">';} ,wh:function(os,xh){os.deleteRow(xh+2);os.deleteRow(xh+1);os.deleteRow(xh);} ,yh:function(os,xh){var zh=os.insertRow(xh);var cs=zh.insertCell(-1);cs.colSpan=015;cs.height=2;zh=os.insertRow(xh);cs=zh.insertCell(-1);cs.colSpan=015;cs.style.backgroundColor='\043\u0045\u0031\1051E\061';cs.innerHTML='\074\u0069m\147\040sr\143\075"'+_s+'/\151\u006dages\u002f\146r\u0065\u0065\056g\151\u0066"\u0020\u0077\151d\164\u0068="\061"\040\150e\151ght\u003d"\061"\040borde\u0072="\u0030" \u0061\154t\075"">';zh=os.insertRow(xh);cs=zh.insertCell(-1);cs.colSpan=015;cs.height=2;} ,$h:function(link,title,_h,mi,width,height){return'<\141\040h\162ef\u003d"'+link+'"\u0020\164\u0061\u0072\u0067\u0065\164\u003d"\137\u0062l\141\156\u006b"\u0020ti\164le="'+title+'"\u0020\157n\143l\151\143\u006b="\u0074h\151s\056n\145wWi\u006e\144\u006fw\u0020= \u0077\151\156d\157w.\u006fpen\050\''+link+'\', \''+_h+'\'\u002c \'t\157o\154\u0062\u0061\u0072\u003d0\u002c\u0073crol\u006cb\141\u0072\163\u003d\u0030,locati\157\u006e\075\060,\163t\141t\165s\u003d1\u002cm\145n\165\142ar=0\054\u0077i\144\164\150='+width+'\054\u0068e\151ght\u003d'+height+',\162e\163iz\u0061\142le\075\061\'\u0029\u003b\u0074h\u0069\163.\156\u0065\167W\151n\u0064\u006f\167\u002e\146o\u0063u\u0073();t\u0068i\163\u002e\u006e\u0065\u0077\127\151\156d\157\167\u002eo\u0070e\156\145\u0072\u003d\167\u0069nd\157\u0077\u003b\162etu\162\u006e \u0066\u0061\u006c\163\145\073">'+mi+'\u003c/\141\076';} ,ni:function(content){return'\u003ct\141bl\145\040\167\u0069d\u0074\u0068\u003d"\0610\060\u0025"\040cell\u0073\u0070a\143in\u0067\075"\060"\040\143el\154\u0070\141dd\151\u006e\147="\060"\040\u0062order="\060"\076\074\164\u0072>'+content+'</t\162\u003e</\164able\076';} ,qi:function(ri,si,id,ti,ui,hi,kt){var ii=2;var link=si+"\077t\150r\145a\u0064="+id;var ji=(hi=="f\165\154\154")?"\074\u0069\u0020st\u0079\u006c\145='\143o\154\u006f\u0072\u003a#a\u0061\u0061\141a\141\073'>"+ri+"\u003c\057\u0069>":((hi=="\157t\150e\u0072")?"\074i>"+ri+"<\057i\u003e":ri);var ki='\u003c\164\u0064 \u0063\154\141\u0073\u0073\u003d"\u0074a\u0062\154\u0065" \u0073tyl\u0065="pad\u0064\u0069\u006eg-\u006ce\146\u0074:\060px\u003b \u0070a\144\144in\147\u002d\u0072\u0069\147h\164\u003a\u0030p\170\073"\u003e';ki+=ch.$h(ui?link:link+"\046\u0076\151\145\u0077\157\156\u006c\171\075\u0074\u0072ue",localized[ui?0:1],"\111mCen\164\145\162"+id,ji,(496+104),0644);ki+='<\057\u0074\144\u003e\u003c\u0074\u0064>\074\u0069\u006d\u0067\040sr\u0063="'+_s+'\u002f\151\u006d\141\u0067\u0065s/\146\u0072ee\056\u0067if" \167\151\u0064\u0074\u0068="5"\040\u0068\u0065\151\147\150t="1" \142o\u0072\u0064\u0065\u0072\u003d"0"\u0020\u0061l\164=""\u003e\u003c/t\u0064\076';if(ui){ki+='\074\u0074d\040w\u0069d\164\150="30"\040\u0061\154\u0069\147\156="ce\u006et\u0065\u0072"\076';ki+=ch.$h(link,localized[0],"\u0049m\u0043e\156t\145\u0072"+id,'\074im\u0067\040\163\u0072\u0063="'+_s+'\u002fim\u0061ge\u0073\057\u0074bli\143ls\u0070\u0065\u0061k.\u0067i\u0066"\040\u0077i\144\164h\075"1\u0035" \150e\151\147\150\u0074="15"\040bo\162\144\u0065r\u003d"\060"\u0020\u0061\154\u0074="'+localized[0]+'">',(397+203),0x1a4);ki+='\074/\164\144>';ii++;} return ch.ni(ki);} } ;tq.li=mn.nn();mn.sn(tq.li,tq.oq,{qn:function(dq){this.pq(dq);this.dq.bh=this.bh.pn(this);this.dq.xt=this.xt.pn(this);this.dq.wt=this.wt.pn(this);this.dq.oi=0;this.pi=0;this.t=this.dq.di;this.ei=new tq.eh(this.dq);} ,bh:function(){return"c\157\155\u0070any\u003d"+this.dq.company+"&\u0073i\156\u0063e\u003d"+this.dq.oi;} ,vu:function(zt){this.dq.status.innerHTML=zt;} ,xt:function(s){this.vu(s);} ,fi:function(gu){var id,gi,ai,ti=false,ui=false,hi=null;for(var i=0;i<gu.attributes.length;i++){var bi=gu.attributes[i];if(bi.nodeName=="i\144")id=bi.nodeValue;else if(bi.nodeName=="sta\u0074\145id")gi=bi.nodeValue;else if(bi.nodeName=="\163\u0074\141\u0074e")ai=bi.nodeValue;else if(bi.nodeName=="\u0063\u0061n\u006fpe\u006e")ui=true;} function ci(os,zh,id,vi){var cs=js.ds(id,zh,os);if(cs)cs.innerHTML=vi;} var zh=js.ks("thr"+id,this.t);if(gi=="\143l\157\u0073\u0065d"){if(zh){ch.wh(this.t,zh.rowIndex+1);this.t.deleteRow(zh.rowIndex);} return;} var wi=ms.ns(gu,"\u006e\141\155e");var xi=ms.ns(gu,"a\u0064dr");var yi=ms.ns(gu,"\164i\u006d\145");var zi=ms.ns(gu,"\u0061\u0067\145\156t");var $i=ms.ns(gu,"\u006d\u006fd\u0069fie\144");var kt=ms.ns(gu,"\155\u0065\u0073\u0073\u0061ge");var _i="";var mj=js.ks(gi,this.t);var nj=js.ks(gi+"\u0065n\u0064",this.t);if(zh!=null&&(zh.rowIndex<=mj.rowIndex||zh.rowIndex>=nj.rowIndex)){ch.wh(this.t,zh.rowIndex+1);this.t.deleteRow(zh.rowIndex);zh=null;} if(zh==null){zh=this.t.insertRow(mj.rowIndex+1);ch.yh(this.t,mj.rowIndex+2);zh.id="thr"+id;js.insertCell(zh,"\u006ea\155\u0065","\u0074\u0061bl\u0065",null,0x1e,ch.qi(wi,this.dq.agentservl,id,ti,ui,hi,kt));ch.vh(zh);js.insertCell(zh,"\u0063\u006f\u006e\164id","\164\u0061\142l\145","c\u0065\156t\u0065\162",null,xi);ch.vh(zh);js.insertCell(zh,"s\u0074a\164\145","ta\u0062\u006ce","c\145\156\u0074\145r",null,ai);ch.vh(zh);js.insertCell(zh,"op","\u0074\141b\154e","\143\145\u006e\164\145r",null,zi);ch.vh(zh);js.insertCell(zh,"ti\u006de","\164a\u0062l\145","\143e\u006e\164\u0065\u0072",null,this.qj(yi));ch.vh(zh);js.insertCell(zh,"\u0077\141i\164","t\141\u0062\154e","\u0063\u0065\u006et\145\162",null,(gi!='\u0063\150\u0061\u0074'?this.qj($i):'-'));ch.vh(zh);js.insertCell(zh,"\145\u0074c","ta\u0062l\145","\143\145nt\145\162",null,_i);if(gi=='\167ait'||gi=='pri\u006f')return true;} else{ci(this.t,zh,"\156a\u006d\u0065",ch.qi(wi,this.dq.agentservl,id,ti,ui,hi,kt));ci(this.t,zh,"\143o\156\u0074i\u0064",xi);ci(this.t,zh,"\163\164at\u0065",ai);ci(this.t,zh,"\u006fp",zi);ci(this.t,zh,"ti\155e",this.qj(yi));ci(this.t,zh,"wa\u0069t",(gi!='c\150\141\164'?this.qj($i):'-'));ci(this.t,zh,"e\164\143",_i);} return false;} ,rj:function(){function sj(t,id,tj){var mj=t.rows[id];var nj=t.rows[id+"\145n\u0064"];if(mj==null||nj==null)return;var uj=nj.cells["s\u0074a\u0074\u0075s"];if(uj==null)return;uj.innerHTML=(mj.rowIndex+1==nj.rowIndex)?tj:"";uj.height=(mj.rowIndex+1==nj.rowIndex)?036:012;} sj(this.t,"\u0077\141\151\164",this.dq.noclients);sj(this.t,"\160\162\u0069\157",this.dq.noclients);sj(this.t,"\143\150\141\u0074",this.dq.noclients);} ,qj:function(hj){var ij=Math.floor(((new Date()).getTime()-hj-this.pi)/(678+322));var jj=Math.floor(ij/074);var kj="";ij=ij%074;if(ij<(9+1))ij="0"+ij;if(jj>=074){var lj=Math.floor(jj/(37+23));jj=jj%0x3c;if(jj<012)jj="0"+jj;kj=lj+":";} return kj+jj+"\u003a"+ij;} ,wt:function(oj){var pj=oj.documentElement;var dj=false;if(pj.tagName=='\u0074\150re\141d\163'){var ej=ms.is(pj,"\u0074\u0069\u006d\u0065");var fj=ms.is(pj,"re\166\151\u0073\151o\u006e");if(ej)this.pi=(new Date()).getTime()-ej;if(fj)this.dq.oi=fj;for(var i=0;i<pj.childNodes.length;i++){var gu=pj.childNodes[i];if(gu.tagName=='\164h\u0072\145\141\u0064')if(this.fi(gu))dj=true;} this.rj();this.vu("\125p\040\164\157\u0020\u0064a\164\u0065");if(dj)window.focus();} else if(pj.tagName=='\u0065\u0072\162or'){this.vu("\u0065\u0072r\157\u0072\072\u0020"+ms.ns(pj,"de\163\u0063\u0072"));} else{this.vu("\167\162o\156\u0067\u0020\162\u0065s\160\157n\u0073e");} } } );var _s="";ir.jr(window,'o\u006e\u006c\157a\144',function(){_s=updaterOptions.wroot;new tq.li(({di:$("\u0074\150\162eadli\163t"),status:$("\u0063o\156n\u0073\u0074\u0061\u0074\165\163")} ).hn(updaterOptions||{} ));} ); |