From a91cac03a9452c0bb6edf86dd83ddc6e8a1ecb51 Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Fri, 7 Nov 2008 23:24:45 +0000 Subject: [PATCH] new default style: green git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@191 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/messenger/js/users.js | 6 +- src/messenger/webim/client.php | 1 + src/messenger/webim/js/users.js | 2 +- src/messenger/webim/leavemessage.php | 2 + src/messenger/webim/libs/chat.php | 16 +- src/messenger/webim/libs/expand.php | 9 +- src/messenger/webim/libs/operator.php | 2 +- src/messenger/webim/locales/en/properties | 5 +- src/messenger/webim/locales/ru/properties | 5 +- src/messenger/webim/mail.php | 2 + src/messenger/webim/operator/preview.php | 26 ++- src/messenger/webim/styles/default/bg_btn.gif | Bin 0 -> 112 bytes .../webim/styles/default/bg_domain.gif | Bin 0 -> 272 bytes src/messenger/webim/styles/default/butbg.gif | Bin 0 -> 93 bytes src/messenger/webim/styles/default/chat.tpl | 215 +++++++++--------- .../webim/styles/default/chatsimple.tpl | 6 +- src/messenger/webim/styles/default/error.tpl | 2 +- .../webim/styles/default/leavemessage.tpl | 192 +++++++++------- .../webim/styles/default/leavemessagesent.tpl | 118 ++++------ src/messenger/webim/styles/default/mail.tpl | 189 ++++++++------- .../webim/styles/default/mailsent.tpl | 123 ++++------ src/messenger/webim/styles/default/nochat.tpl | 119 +++++----- .../webim/styles/default/quadrat.gif | Bin 0 -> 47 bytes .../webim/styles/default/redirect.tpl | 164 +++++++------ .../webim/styles/default/redirected.tpl | 125 +++++----- src/messenger/webim/styles/original/.htaccess | 1 + src/messenger/webim/styles/original/chat.tpl | 4 +- .../webim/styles/original/chatsimple.tpl | 2 +- src/messenger/webim/styles/original/error.tpl | 2 +- .../webim/styles/original/leavemessage.tpl | 2 +- .../styles/original/leavemessagesent.tpl | 2 +- src/messenger/webim/styles/original/mail.tpl | 2 +- .../webim/styles/original/mailsent.tpl | 2 +- .../webim/styles/original/nochat.tpl | 5 +- .../webim/styles/original/redirect.tpl | 2 +- .../webim/styles/original/redirected.tpl | 2 +- src/messenger/webim/view/thread_search.php | 2 +- src/messenger/webim/view/userhistory.php | 2 +- 38 files changed, 676 insertions(+), 683 deletions(-) create mode 100644 src/messenger/webim/styles/default/bg_btn.gif create mode 100644 src/messenger/webim/styles/default/bg_domain.gif create mode 100644 src/messenger/webim/styles/default/butbg.gif create mode 100644 src/messenger/webim/styles/default/quadrat.gif create mode 100644 src/messenger/webim/styles/original/.htaccess diff --git a/src/messenger/js/users.js b/src/messenger/js/users.js index ec21e839..3dde6f6a 100644 --- a/src/messenger/js/users.js +++ b/src/messenger/js/users.js @@ -99,17 +99,17 @@ var HtmlGenerationUtils = { var cellsCount = 2; var link = servlet+"?thread="+id; var gen = ''; - gen += HtmlGenerationUtils.popupLink( (cantakenow||!canview) ? link : link+"&viewonly=true", localized[canopen ? 0 : 1], "ImCenter"+id, username, 600, 420, ban); + gen += HtmlGenerationUtils.popupLink( (cantakenow||!canview) ? link : link+"&viewonly=true", localized[canopen ? 0 : 1], "ImCenter"+id, username, 640, 480, ban); gen += ''; if( canopen ) { gen += ''; - gen += HtmlGenerationUtils.popupLink( link, localized[0], "ImCenter"+id, ''+localized[0]+'', 600, 420, null); + gen += HtmlGenerationUtils.popupLink( link, localized[0], "ImCenter"+id, ''+localized[0]+'', 640, 480, null); gen += ''; cellsCount++; } if( canview ) { gen += ''; - gen += HtmlGenerationUtils.popupLink( link+"&viewonly=true", localized[1], "ImCenter"+id, ''+localized[1]+'', 600, 420, null); + gen += HtmlGenerationUtils.popupLink( link+"&viewonly=true", localized[1], "ImCenter"+id, ''+localized[1]+'', 640, 480, null); gen += ''; cellsCount++; } diff --git a/src/messenger/webim/client.php b/src/messenger/webim/client.php index fc1edb6c..ab122a2c 100644 --- a/src/messenger/webim/client.php +++ b/src/messenger/webim/client.php @@ -26,6 +26,7 @@ if( !isset($_GET['token']) || !isset($_GET['thread']) ) { if( !$thread ) { if(!has_online_operators()) { + setup_logo(); expand("styles", getchatstyle(), "leavemessage.tpl"); exit; } diff --git a/src/messenger/webim/js/users.js b/src/messenger/webim/js/users.js index 80583bfc..88db27f8 100644 --- a/src/messenger/webim/js/users.js +++ b/src/messenger/webim/js/users.js @@ -1 +1 @@ -sq.qi=mn.nn();mn.sn(sq.qi,sq.lq,{qn:function(pq){this.oq(pq);this.pq.onComplete=this.ot.on(this);this.pq.jr=this.pt.on(this);this.pq.hr=this._q.on(this);this.pq.timeout=(3262+1738);this.frequency=(this.pq.frequency||2);this.dt={} ;this.xt();} ,pt:function(yt,zt){if(this.pq.iu)this.pq.iu("\u006fffli\156\u0065\054\040\162\u0065\143\u006f\156n\u0065c\u0074\151\156g");this._t();this.mu=setTimeout(this.xt.on(this),(723+277));} ,_q:function(yt){if(this.pq.iu)this.pq.iu("\164i\u006de\157\165\164\u002c\u0020\162\145c\157\u006e\156\u0065c\u0074i\u006e\147");this._t();this.mu=setTimeout(this.xt.on(this),(692+308));} ,_t:function(){if(this.dt.pq)this.dt.pq.onComplete=undefined;clearTimeout(this.mu);} ,xt:function(){if(this.pq.ri)this.pq.fq=(this.pq.ri)();this.dt=new sq.vq(this.pq.url,this.pq);} ,ot:function(ou){try{var uu=sq.uq(ou);if(uu){(this.pq.hu||sq.kq)(uu);} else{if(this.pq.iu)this.pq.iu("\u0072e\u0063onne\143\u0074\u0069\156\u0067");} } catch(e){} this.mu=setTimeout(this.xt.on(this),this.frequency*(667+333));} } );var si={ti:function(es){var ws=es.insertCell(-1);ws.style.backgroundImage='\u0075\u0072\154('+st+'/\151mag\145\163\057ta\142l\u0065\144i\u0076\u0033\056gi\146\u0029';ws.innerHTML='\u003ci\u006d\147\040src\075"'+st+'\057\u0069\155a\u0067es\u002f\u0066r\145\u0065\056\147\u0069\u0066"\040\u0077\151\144\u0074\u0068\075"\063"\040h\u0065\151\u0067\150t\u003d"\u0031"\u0020\142ord\145r="0"\040\u0061\154t\u003d""\u003e';} ,ui:function(ds,hi){ds.deleteRow(hi+2);ds.deleteRow(hi+1);ds.deleteRow(hi);} ,ii:function(ds,hi){var ji=ds.insertRow(hi);var ws=ji.insertCell(-1);ws.colSpan=015;ws.height=2;ji=ds.insertRow(hi);ws=ji.insertCell(-1);ws.colSpan=(12+1);ws.style.backgroundColor='\043\u00451E\u0031E1';ws.innerHTML='\u003c\u0069\155g \163\u0072\143\075"'+st+'/i\u006d\141\u0067\145\u0073/f\u0072\145e\u002e\u0067\u0069f" \u0077\u0069dt\u0068\075"\061"\040\150e\u0069g\u0068\164\u003d"\061" \142or\u0064e\u0072="\u0030" \u0061\154t=""\076';ji=ds.insertRow(hi);ws=ji.insertCell(-1);ws.colSpan=(9+4);ws.height=2;} ,ki:function(link,title,li,oi,width,height,pi){return'\074a \150r\u0065\u0066="'+link+'"'+(pi!=null?'\u0020\u0063l\141\163s\u003d"'+pi+'"':'')+' t\141\162\u0067e\164\075"\u005fb\u006can\153" \u0074i\u0074\154\145="'+title+'" onc\154i\u0063\u006b="\u0074\150\u0069s\056\156\145\u0077\127\151nd\157\167 \u003d \u0077i\156dow\u002e\157\160\145n\u0028\''+link+'\'\u002c\u0020\''+li+'\'\u002c\040\'\164oo\u006c\u0062a\u0072\075\060\054s\u0063\162\u006fl\154\u0062\u0061r\163\u003d\060,loc\141t\u0069on\u003d\u0030,s\u0074at\165s\075\061,\u006d\u0065\u006eu\142\141\162\u003d\u0030\054\u0077\u0069dt\u0068\075'+width+',\150eig\u0068\164='+height+',\162e\u0073i\172\u0061\142le\u003d\u0031\');\u0074h\u0069\u0073\056\u006eew\u0057ind\u006fw.\146\157c\165\163\u0028\u0029\u003bt\u0068\u0069\163\u002e\156\u0065\167\u0057\u0069\156d\157w\056o\u0070e\156e\162\u003d\167\151\u006e\u0064\157w;\u0072e\u0074urn \u0066\u0061\u006cs\u0065;"\u003e'+oi+'\074\u002f\u0061>';} ,di:function(content){return'\074\u0074ab\u006c\145 w\u0069dth\075"\06100%"\040ce\u006cl\u0073\u0070a\143\u0069ng\u003d"\u0030"\u0020\u0063e\154\u006c\u0070\141dd\u0069\156g\u003d"\060"\040bo\162d\145\162\u003d"\u0030"\076\074\164r\u003e'+content+'\074/\164\141\142le>';} ,ei:function(fi,gi,id,ai,bi,ci,ct,vi){var wi=2;var link=gi+"\077\164\150\162e\141\u0064\075"+id;var xi='\074t\u0064\u0020c\154a\163s\075"ta\u0062l\u0065"\040\u0073\164\u0079le\u003d"\160a\144\u0064\151ng-\u006ce\u0066t\u003a0p\170\073\040\u0070\141\144ding-\162i\147\150t\072\u0030\u0070x\u003b"\076';xi+=si.ki((vi||!ai)?link:link+"\046\u0076\151ew\u006f\156\154y=\164ru\u0065",localized[bi?0:1],"I\155Ce\u006e\u0074er"+id,fi,01130,0644,ci);xi+='\074/\164d\076<\057\164d\u003e';if(bi){xi+='';xi+=si.ki(link,localized[0],"ImCe\156\u0074\145r"+id,'\074\151m\147\u0020sr\143\075"'+st+'\u002fi\u006dag\u0065\u0073\u002ft\142li\143\u006c\u0073\160\u0065ak\u002e\147i\146"\040\u0077i\u0064t\u0068\u003d"\061\065"\040\u0068\145\151\u0067\u0068\164\u003d"1\u0035" bo\u0072de\u0072="0"\040\141\154\164\u003d"'+localized[0]+'"\076',01130,0644,null);xi+='<\057\u0074d\076';wi++;} if(ai){xi+='';xi+=si.ki(link+"\046v\151\u0065wo\u006e\u006c\u0079=\u0074ru\u0065",localized[1],"\u0049\u006d\u0043\u0065n\164e\u0072"+id,'\074\u0069\u006d\u0067 \163\u0072\143="'+st+'\057\151m\141\147e\163\u002ft\u0062\154i\143lr\145a\144\056gif"\040\167\u0069d\u0074\150="\0615"\u0020\150e\u0069ght="\061\065" \u0062or\144\145\u0072\075"\u0030"\u0020\141\154t\075"'+localized[1]+'"\076',0x258,0644,null);xi+='\074/\164\144\076';wi++;} if(ct!=""){xi+='\074/tr>\074\164\u0072\u003e<\164\144\u0020\u0063\154\141s\u0073="\146\151rstme\u0073\163\141g\145"\u0020al\151\147n\u003d"r\u0069\u0067h\164"\040\143ols\160\u0061\156\u003d"'+wi+'">\074\141\u0020h\u0072\145f="\152\u0061v\u0061sc\u0072ipt:\166\157\u0069\u0064\0500\u0029"\040t\151\164\u006ce="'+ct+'" o\156\u0063l\151\u0063\153\075"a\u006ce\162\u0074\u0028t\150\u0069\u0073.\164\u0069\164\u006ce\u0029\073\u0072\145\u0074urn f\141\u006c\u0073\145;">';xi+=ct.length>036?ct.substring(0,0x1e)+'.\056\056':ct;xi+='<\u002fa><\057\u0074d>';} return si.di(xi);} ,yi:function(id){return'<\u0074\144 \u0077i\144\u0074\u0068="\u0033\060"\u0020\141\u006c\u0069\u0067\156="\u0063e\156\u0074\145\162">'+si.ki(st+'\u002f\157\160\u0065\u0072\141t\157\162/\142a\156.\160\150p?\u0074\150r\u0065\u0061\u0064\075'+id,localized[2],"\142a\156"+id,'\u003ci\u006d\147\040\u0073\162\143="'+st+'\u002f\u0069\u006d\u0061g\u0065\u0073\057\u0062\u0061\156.\147\u0069f"\u0020\167id\u0074\150\u003d"\061\u0035" \u0068eigh\164\075"15"\u0020b\157r\144\145\u0072\u003d"\060"\u0020al\164="'+localized[2]+'">',0x226,0670,null)+'=fj.rowIndex)){si.ui(this.t,ji.rowIndex+1);this.t.deleteRow(ji.rowIndex);this._i[id]=null;ji=null;} if(ji==null){ji=this.t.insertRow(ej.rowIndex+1);si.ii(this.t,ej.rowIndex+2);ji.id="t\u0068\162"+id;this._i[id]=new Array(lj,pj,sj);ls.insertCell(ji,"\156\141m\145","\u0074ab\u006ce",null,036,si.ei(jj,this.pq.agentservl,id,ai,bi,ci,ct,sj!='\143h\141t'));si.ti(ji);ls.insertCell(ji,"\143ontid","\164\141bl\145","ce\u006et\u0065\162",null,kj);si.ti(ji);ls.insertCell(ji,"state","\u0074ab\u006ce","\u0063\u0065\156\u0074e\u0072",null,tj);si.ti(ji);ls.insertCell(ji,"\u006f\160","t\u0061\u0062l\145","c\u0065nt\145\162",null,oj);si.ti(ji);ls.insertCell(ji,"\164\u0069\155\145","\164a\u0062\154\u0065","c\145\u006e\u0074e\u0072",null,this.gj(lj));si.ti(ji);ls.insertCell(ji,"\u0077ai\u0074","\164ab\154\145","\u0063\u0065nt\u0065\u0072",null,(sj!='c\150a\164'?this.gj(pj):'\u002d'));si.ti(ji);ls.insertCell(ji,"etc","\u0074\141\142le","ce\u006eter",null,dj);if(sj=='w\141\u0069\164'||sj=='p\u0072i\157')return true;} else{this._i[id]=new Array(lj,pj,sj);hj(this.t,ji,"n\141\u006d\145",si.ei(jj,this.pq.agentservl,id,ai,bi,ci,ct,sj!='\143\u0068at'));hj(this.t,ji,"cont\u0069d",kj);hj(this.t,ji,"\u0073\164a\u0074\145",tj);hj(this.t,ji,"\157\u0070",oj);hj(this.t,ji,"\164\151m\u0065",this.gj(lj));hj(this.t,ji,"\u0077\u0061\151t",(sj!='c\150\u0061t'?this.gj(pj):'\055'));hj(this.t,ji,"\u0065\164c",dj);} return false;} ,aj:function(){function bj(t,id,cj){var ej=t.rows[id];var fj=t.rows[id+"end"];if(ej==null||fj==null)return;var vj=fj.cells["\163ta\u0074u\163"];if(vj==null)return;vj.innerHTML=(ej.rowIndex+1==fj.rowIndex)?cj:"";vj.height=(ej.rowIndex+1==fj.rowIndex)?(27+3):012;} bj(this.t,"\167\141it",this.pq.noclients);bj(this.t,"p\162io",this.pq.noclients);bj(this.t,"\u0063\u0068\u0061t",this.pq.noclients);} ,gj:function(wj){var xj=Math.floor(((new Date()).getTime()-wj-this.mj)/01750);var yj=Math.floor(xj/(55+5));var zj="";xj=xj%074;if(xj<(8+2))xj="\u0030"+xj;if(yj>=0x3c){var $j=Math.floor(yj/(41+19));yj=yj%074;if(yj<012)yj="0"+yj;zj=$j+"\u003a";} return zj+yj+"\u003a"+xj;} ,_j:function(){for(var i in this._i){if(this._i[i]!=null){var value=this._i[i];var ji=ls.os("\164\150\162"+i,this.t);if(ji!=null){function hj(ds,ji,id,ij){var ws=ls.fs(id,ji,ds);if(ws)ws.innerHTML=ij;} hj(this.t,ji,"\164i\155\u0065",this.gj(value[0]));hj(this.t,ji,"\167\u0061it",(value[2]!='cha\u0074'?this.gj(value[1]):'-'));} } } } ,hu:function(mk){var nk=false;if(mk.tagName=='\164\150r\145ads'){var qk=qs.ks(mk,"t\u0069\155\145");var rk=qs.ks(mk,"\u0072e\166\151si\u006f\u006e");if(qk)this.mj=(new Date()).getTime()-qk;if(rk)this.pq.$i=rk;for(var i=0;i';} ,di:function(content){return'\074\u0074ab\u006c\145 w\u0069dth\075"\06100%"\040ce\u006cl\u0073\u0070a\143\u0069ng\u003d"\u0030"\u0020\u0063e\154\u006c\u0070\141dd\u0069\156g\u003d"\060"\040bo\162d\145\162\u003d"\u0030"\076\074\164r\u003e'+content+'\074/\164\141\142le>';} ,ei:function(fi,gi,id,ai,bi,ci,ct,vi){var wi=2;var link=gi+"\077\164\150\162e\141\u0064\075"+id;var xi='\074t\u0064\u0020c\154a\163s\075"ta\u0062l\u0065"\040\u0073\164\u0079le\u003d"\160a\144\u0064\151ng-\u006ce\u0066t\u003a0p\170\073\040\u0070\141\144ding-\162i\147\150t\072\u0030\u0070x\u003b"\076';xi+=si.ki((vi||!ai)?link:link+"\046\u0076\151ew\u006f\156\154y=\164ru\u0065",localized[bi?0:1],"I\155Ce\u006e\u0074er"+id,fi,01200,0740,ci);xi+='\074/\164d\076<\057\164d\u003e';if(bi){xi+='';xi+=si.ki(link,localized[0],"ImCe\156\u0074\145r"+id,'\074\151m\147\u0020sr\143\075"'+st+'\u002fi\u006dag\u0065\u0073\u002ft\142li\143\u006c\u0073\160\u0065ak\u002e\147i\146"\040\u0077i\u0064t\u0068\u003d"\061\065"\040\u0068\145\151\u0067\u0068\164\u003d"1\u0035" bo\u0072de\u0072="0"\040\141\154\164\u003d"'+localized[0]+'"\076',01200,0740,null);xi+='<\057\u0074d\076';wi++;} if(ai){xi+='';xi+=si.ki(link+"\046v\151\u0065wo\u006e\u006c\u0079=\u0074ru\u0065",localized[1],"\u0049\u006d\u0043\u0065n\164e\u0072"+id,'\074\u0069\u006d\u0067 \163\u0072\143="'+st+'\057\151m\141\147e\163\u002ft\u0062\154i\143lr\145a\144\056gif"\040\167\u0069d\u0074\150="\0615"\u0020\150e\u0069ght="\061\065" \u0062or\144\145\u0072\075"\u0030"\u0020\141\154t\075"'+localized[1]+'"\076',0x280,0740,null);xi+='\074/\164\144\076';wi++;} if(ct!=""){xi+='\074/tr>\074\164\u0072\u003e<\164\144\u0020\u0063\154\141s\u0073="\146\151rstme\u0073\163\141g\145"\u0020al\151\147n\u003d"r\u0069\u0067h\164"\040\143ols\160\u0061\156\u003d"'+wi+'">\074\141\u0020h\u0072\145f="\152\u0061v\u0061sc\u0072ipt:\166\157\u0069\u0064\0500\u0029"\040t\151\164\u006ce="'+ct+'" o\156\u0063l\151\u0063\153\075"a\u006ce\162\u0074\u0028t\150\u0069\u0073.\164\u0069\164\u006ce\u0029\073\u0072\145\u0074urn f\141\u006c\u0073\145;">';xi+=ct.length>036?ct.substring(0,0x1e)+'.\056\056':ct;xi+='<\u002fa><\057\u0074d>';} return si.di(xi);} ,yi:function(id){return'<\u0074\144 \u0077i\144\u0074\u0068="\u0033\060"\u0020\141\u006c\u0069\u0067\156="\u0063e\156\u0074\145\162">'+si.ki(st+'\u002f\157\160\u0065\u0072\141t\157\162/\142a\156.\160\150p?\u0074\150r\u0065\u0061\u0064\075'+id,localized[2],"\142a\156"+id,'\u003ci\u006d\147\040\u0073\162\143="'+st+'\u002f\u0069\u006d\u0061g\u0065\u0073\057\u0062\u0061\156.\147\u0069f"\u0020\167id\u0074\150\u003d"\061\u0035" \u0068eigh\164\075"15"\u0020b\157r\144\145\u0072\u003d"\060"\u0020al\164="'+localized[2]+'">',0x226,0670,null)+'=fj.rowIndex)){si.ui(this.t,ji.rowIndex+1);this.t.deleteRow(ji.rowIndex);this._i[id]=null;ji=null;} if(ji==null){ji=this.t.insertRow(ej.rowIndex+1);si.ii(this.t,ej.rowIndex+2);ji.id="t\u0068\162"+id;this._i[id]=new Array(lj,pj,sj);ls.insertCell(ji,"\156\141m\145","\u0074ab\u006ce",null,036,si.ei(jj,this.pq.agentservl,id,ai,bi,ci,ct,sj!='\143h\141t'));si.ti(ji);ls.insertCell(ji,"\143ontid","\164\141bl\145","ce\u006et\u0065\162",null,kj);si.ti(ji);ls.insertCell(ji,"state","\u0074ab\u006ce","\u0063\u0065\156\u0074e\u0072",null,tj);si.ti(ji);ls.insertCell(ji,"\u006f\160","t\u0061\u0062l\145","c\u0065nt\145\162",null,oj);si.ti(ji);ls.insertCell(ji,"\164\u0069\155\145","\164a\u0062\154\u0065","c\145\u006e\u0074e\u0072",null,this.gj(lj));si.ti(ji);ls.insertCell(ji,"\u0077ai\u0074","\164ab\154\145","\u0063\u0065nt\u0065\u0072",null,(sj!='c\150a\164'?this.gj(pj):'\u002d'));si.ti(ji);ls.insertCell(ji,"etc","\u0074\141\142le","ce\u006eter",null,dj);if(sj=='w\141\u0069\164'||sj=='p\u0072i\157')return true;} else{this._i[id]=new Array(lj,pj,sj);hj(this.t,ji,"n\141\u006d\145",si.ei(jj,this.pq.agentservl,id,ai,bi,ci,ct,sj!='\143\u0068at'));hj(this.t,ji,"cont\u0069d",kj);hj(this.t,ji,"\u0073\164a\u0074\145",tj);hj(this.t,ji,"\157\u0070",oj);hj(this.t,ji,"\164\151m\u0065",this.gj(lj));hj(this.t,ji,"\u0077\u0061\151t",(sj!='c\150\u0061t'?this.gj(pj):'\055'));hj(this.t,ji,"\u0065\164c",dj);} return false;} ,aj:function(){function bj(t,id,cj){var ej=t.rows[id];var fj=t.rows[id+"end"];if(ej==null||fj==null)return;var vj=fj.cells["\163ta\u0074u\163"];if(vj==null)return;vj.innerHTML=(ej.rowIndex+1==fj.rowIndex)?cj:"";vj.height=(ej.rowIndex+1==fj.rowIndex)?(27+3):012;} bj(this.t,"\167\141it",this.pq.noclients);bj(this.t,"p\162io",this.pq.noclients);bj(this.t,"\u0063\u0068\u0061t",this.pq.noclients);} ,gj:function(wj){var xj=Math.floor(((new Date()).getTime()-wj-this.mj)/01750);var yj=Math.floor(xj/(55+5));var zj="";xj=xj%074;if(xj<(8+2))xj="\u0030"+xj;if(yj>=0x3c){var $j=Math.floor(yj/(41+19));yj=yj%074;if(yj<012)yj="0"+yj;zj=$j+"\u003a";} return zj+yj+"\u003a"+xj;} ,_j:function(){for(var i in this._i){if(this._i[i]!=null){var value=this._i[i];var ji=ls.os("\164\150\162"+i,this.t);if(ji!=null){function hj(ds,ji,id,ij){var ws=ls.fs(id,ji,ds);if(ws)ws.innerHTML=ij;} hj(this.t,ji,"\164i\155\u0065",this.gj(value[0]));hj(this.t,ji,"\167\u0061it",(value[2]!='cha\u0074'?this.gj(value[1]):'-'));} } } } ,hu:function(mk){var nk=false;if(mk.tagName=='\164\150r\145ads'){var qk=qs.ks(mk,"t\u0069\155\145");var rk=qs.ks(mk,"\u0072e\166\151si\u006f\u006e");if(qk)this.mj=(new Date()).getTime()-qk;if(rk)this.pq.$i=rk;for(var i=0;i 0 ) { $page['formname'] = topage($visitor_name); $page['formemail'] = $email; $page['formmessage'] = topage($message); + setup_logo(); expand("styles", getchatstyle(), "leavemessage.tpl"); exit; } @@ -53,5 +54,6 @@ if($inbox_mail) { webim_mail($inbox_mail, $email, $subject, $body); } +setup_logo(); expand("styles", getchatstyle(), "leavemessagesent.tpl"); ?> \ No newline at end of file diff --git a/src/messenger/webim/libs/chat.php b/src/messenger/webim/libs/chat.php index 297d702e..1c52639c 100644 --- a/src/messenger/webim/libs/chat.php +++ b/src/messenger/webim/libs/chat.php @@ -254,6 +254,14 @@ function needsFramesrc() { return strstr($useragent,"safari/"); } +function setup_logo() { + global $page, $settings; + loadsettings(); + $page['ct.company.name'] = topage($settings['title']); + $page['ct.company.chatLogoURL'] = topage($settings['logo']); + $page['webimHost'] = topage($settings['hosturl']); +} + function setup_chatview_for_user($thread,$level) { global $page, $webimroot, $settings; loadsettings(); @@ -270,9 +278,7 @@ function setup_chatview_for_user($thread,$level) { $page['ct.user.name'] = topage($thread['userName']); $page['canChangeName'] = $settings['usercanchangename'] == "1"; - $page['ct.company.name'] = topage($settings['title']); - $page['ct.company.chatLogoURL'] = topage($settings['logo']); - $page['webimHost'] = topage($settings['hosturl']); + setup_logo(); $page['send_shortcut'] = "Ctrl-Enter"; $params = "thread=".$thread['threadid']."&token=".$thread['ltoken']; @@ -293,9 +299,7 @@ function setup_chatview_for_operator($thread,$operator) { $page['ct.token'] = $thread['ltoken']; $page['ct.user.name'] = topage(get_user_name($thread['userName'],$thread['remote'],$thread['userid'])); - $page['ct.company.name'] = topage($settings['title']); - $page['ct.company.chatLogoURL'] = topage($settings['logo']); - $page['webimHost'] = topage($settings['hosturl']); + setup_logo(); $page['send_shortcut'] = "Ctrl-Enter"; $page['isOpera95'] = is_agent_opera95(); $page['neediframesrc'] = needsFramesrc(); diff --git a/src/messenger/webim/libs/expand.php b/src/messenger/webim/libs/expand.php index 07f93e94..42394a9d 100644 --- a/src/messenger/webim/libs/expand.php +++ b/src/messenger/webim/libs/expand.php @@ -14,6 +14,7 @@ $ifregexp = "/\\\${(if|ifnot):([\w\.]+)}(.*?)(\\\${else:\\2}.*?)?\\\${endif:\\2}/s"; $expand_include_path = ""; +$current_style = ""; function check_condition($condition) { global $errors, $page; @@ -35,12 +36,14 @@ function expand_condition($matches) { } function expand_var($matches) { - global $page, $webimroot, $errors; + global $page, $webimroot, $errors, $current_style; $prefix = $matches[1]; $var = $matches[2]; if(!$prefix) { if($var == 'webimroot') { return $webimroot; + } else if($var == 'tplroot') { + return "$webimroot/styles/$current_style"; } else if($var == 'pagination') { return generate_pagination($page['pagination']); } else if($var == 'errors') { @@ -90,15 +93,17 @@ function expandtext($text) { } function expand($basedir,$style,$filename) { - global $expand_include_path; + global $expand_include_path, $current_style; start_html_output(); if(!is_dir("$basedir/$style")) { $style = "default"; } $expand_include_path = "$basedir/$style/"; + $current_style = $style; $contents = @file_get_contents($expand_include_path.$filename); if($contents === false) { $expand_include_path = "$basedir/default/"; + $current_style = "default"; $contents = @file_get_contents($expand_include_path.$filename) or die("cannot load template"); } echo expandtext($contents); diff --git a/src/messenger/webim/libs/operator.php b/src/messenger/webim/libs/operator.php index 1eae52d1..56ebabd4 100644 --- a/src/messenger/webim/libs/operator.php +++ b/src/messenger/webim/libs/operator.php @@ -114,7 +114,7 @@ function get_operator_name($operator) { function generate_button($title,$locale,$inner,$showhost,$forcesecure) { $link = get_app_location($showhost,$forcesecure)."/client.php". ($locale?"?locale=".$locale : ""); - $temp = get_popup($link, $inner, $title, "webim", "toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width=600,height=420,resizable=1" ); + $temp = get_popup($link, $inner, $title, "webim", "toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width=640,height=480,resizable=1" ); return "".$temp.""; } diff --git a/src/messenger/webim/locales/en/properties b/src/messenger/webim/locales/en/properties index 91b2010c..e5be5b44 100644 --- a/src/messenger/webim/locales/en/properties +++ b/src/messenger/webim/locales/en/properties @@ -44,7 +44,8 @@ chat.error_page.head=Error occurred: chat.error_page.close=Close... page.chat.old_browser.title=Please, use newer browser page.chat.old_browser.close=Close... -page.chat.old_browser.content=Your web browser is not fully supported by Web Messenger. \nPlease, use one of the following web browsers: \n

    \n
  • Internet Explorer 5.5+\n
  • Firefox 1.0+\n
  • Opera 8.0+\n
  • Mozilla 1.4+\n
  • Netscape 7.1+\n
  • Safari 1.2+\n

\nAlso, we support some old browsers:\n

    \n
  • Internet Explorer 5.0\n
  • Opera 7.0\n

+page.chat.old_browser.problem=Your web browser is not fully supported by Web Messenger. \nPlease, use one of the following web browsers: +page.chat.old_browser.list=

    \n
  • Internet Explorer 5.5+\n
  • Firefox 1.0+\n
  • Opera 8.0+\n
  • Mozilla 1.4+\n
  • Netscape 7.1+\n
  • Safari 1.2+\n

\nAlso, we support some old browsers:\n

    \n
  • Internet Explorer 5.0\n
  • Opera 7.0\n

chat.wait=Thank you for contacting us. An operator will be with you shortly... chat.predefined_answers=Hello, how may I help you?\nHello! Welcome to our support. How may I help you? mailthread.title=Send chat history
by mail @@ -256,7 +257,7 @@ page_avatar.title=Upload photo page_search.intro=Search for chat history of a specified user or a specified phrase in a message. page_settings.intro=Specify options affecting chat window and common system behavior settings.chatstyle=Select style for your chat windows -settings.chatstyle.description= +settings.chatstyle.description=Preview for all pages of each style is available here settings.company.title=Company title settings.company.title.description=Enter your company title settings.email=Email diff --git a/src/messenger/webim/locales/ru/properties b/src/messenger/webim/locales/ru/properties index 811f60bd..b4bafe95 100644 --- a/src/messenger/webim/locales/ru/properties +++ b/src/messenger/webim/locales/ru/properties @@ -44,7 +44,8 @@ chat.error_page.head= chat.error_page.close=Закрыть... page.chat.old_browser.title=Используйте более новый browser page.chat.old_browser.close=Закрыть... -page.chat.old_browser.content=К сожалению, для работы этой страницы необходим более новый браузер. Для лучшего просмотра используйте:\n

    \n
  • Internet Explorer 5.5+\n
  • Firefox 1.0+\n
  • Opera 8.0+\n
  • Mozilla 1.4+\n
  • Netscape 7.1+\n
  • Safari 1.2+\n

\nТакже поддерживаются некоторые старые браузеры:\n

    \n
  • Internet Explorer 5.0\n
  • Opera 7.0\n

+page.chat.old_browser.problem=К сожалению, для работы этой страницы необходим более новый браузер. Для лучшего просмотра используйте: +page.chat.old_browser.list=

    \n
  • Internet Explorer 5.5+\n
  • Firefox 1.0+\n
  • Opera 8.0+\n
  • Mozilla 1.4+\n
  • Netscape 7.1+\n
  • Safari 1.2+\n

\nТакже поддерживаются некоторые старые браузеры:\n

    \n
  • Internet Explorer 5.0\n
  • Opera 7.0\n

chat.wait=Пожалуйста, подождите немного, к Вам присоединится оператор.. chat.predefined_answers=Здравствуйте! Чем я могу Вам помочь?\nПодождите секунду, я переключу Вас на другого оператора.\nВы не могли бы уточнить, что Вы имеете ввиду..\nУдачи, до свиданья! mailthread.title=Отправить историю разговора
на почтовый ящик @@ -256,7 +257,7 @@ page_avatar.title= page_search.intro=На данной странице можно осуществить поиск диалогов по имени пользователя или фразе, встречающейся в сообщении. page_settings.intro=Здесь вы можете задать опции влияющие на отображение чат окна и общее поведение системы settings.chatstyle=Выберите вид вашего чат окна -settings.chatstyle.description= +settings.chatstyle.description=Предпросмотр всех страниц каждого стиля доступен здесь settings.company.title=Название компании settings.company.title.description=Введите название Вашей компании settings.email=Адрес электронной почты diff --git a/src/messenger/webim/mail.php b/src/messenger/webim/mail.php index 6c764628..3eacfbdb 100644 --- a/src/messenger/webim/mail.php +++ b/src/messenger/webim/mail.php @@ -41,6 +41,7 @@ if( count($errors) > 0 ) { $page['ct.chatThreadId'] = $thread['threadid']; $page['ct.token'] = $thread['ltoken']; $page['level'] = ""; + setup_logo(); expand("styles", getchatstyle(), "mail.tpl"); exit; } @@ -57,5 +58,6 @@ $body = getstring2("mail.user.history.body", array($thread['userName'],$history) webim_mail($email, $webim_from_email, $subject, $body); +setup_logo(); expand("styles", getchatstyle(), "mailsent.tpl"); ?> \ No newline at end of file diff --git a/src/messenger/webim/operator/preview.php b/src/messenger/webim/operator/preview.php index da4fa7e1..93ba0ed3 100644 --- a/src/messenger/webim/operator/preview.php +++ b/src/messenger/webim/operator/preview.php @@ -37,6 +37,11 @@ if(!in_array($preview, $stylelist)) { } $show = verifyparam("show", "/^(chat|chatsimple|nochat|mail|mailsent|leavemessage|leavemessagesent|redirect|redirected|agentchat|agentrochat)$/", ""); +$showerrors = verifyparam("showerr", "/^true$/", "") == "true"; +$errors = array(); +if($showerrors) { + $errors[] = "Test error"; +} if($show == 'chat' || $show == 'mail' || $show == 'leavemessage' || $show == 'leavemessagesent' || $show == 'chatsimple' || $show == 'nochat') { setup_chatview_for_user(array('threadid' => 0,'userName' => getstring("chat.default.username"), 'ltoken' => 123), "ajaxed"); @@ -46,6 +51,7 @@ if($show == 'chat' || $show == 'mail' || $show == 'leavemessage' || $show == 'le } if($show == 'mailsent') { $page['email'] = "admin@yourdomain.com"; + setup_logo(); expand("../styles", "$preview", "$show.tpl"); exit; } @@ -73,17 +79,17 @@ if($show == 'redirect' || $show == 'redirected' || $show == 'agentchat' || $show } $templateList = array( - array('label' => getlocal("page.preview.userchat"), 'id' => 'chat', 'h' => 420, 'w' => 600), - array('label' => getlocal("page.preview.chatsimple"), 'id' => 'chatsimple', 'h' => 420, 'w' => 600), - array('label' => getlocal("page.preview.nochat"), 'id' => 'nochat', 'h' => 420, 'w' => 600), - array('label' => getlocal("page.preview.leavemessage"), 'id' => 'leavemessage', 'h' => 420, 'w' => 600), - array('label' => getlocal("page.preview.leavemessagesent"), 'id' => 'leavemessagesent', 'h' => 420, 'w' => 600), + array('label' => getlocal("page.preview.userchat"), 'id' => 'chat', 'h' => 480, 'w' => 640), + array('label' => getlocal("page.preview.chatsimple"), 'id' => 'chatsimple', 'h' => 480, 'w' => 640), + array('label' => getlocal("page.preview.nochat"), 'id' => 'nochat', 'h' => 480, 'w' => 640), + array('label' => getlocal("page.preview.leavemessage"), 'id' => 'leavemessage', 'h' => 480, 'w' => 640), + array('label' => getlocal("page.preview.leavemessagesent"), 'id' => 'leavemessagesent', 'h' => 480, 'w' => 640), array('label' => getlocal("page.preview.mail"), 'id' => 'mail', 'h' => 254, 'w' => 603), array('label' => getlocal("page.preview.mailsent"), 'id' => 'mailsent', 'h' => 254, 'w' => 603), - array('label' => getlocal("page.preview.redirect"), 'id' => 'redirect', 'h' => 420, 'w' => 600), - array('label' => getlocal("page.preview.redirected"), 'id' => 'redirected', 'h' => 420, 'w' => 600), - array('label' => getlocal("page.preview.agentchat"), 'id' => 'agentchat', 'h' => 420, 'w' => 600), - array('label' => getlocal("page.preview.agentrochat"), 'id' => 'agentrochat', 'h' => 420, 'w' => 600), + array('label' => getlocal("page.preview.redirect"), 'id' => 'redirect', 'h' => 480, 'w' => 640), + array('label' => getlocal("page.preview.redirected"), 'id' => 'redirected', 'h' => 480, 'w' => 640), + array('label' => getlocal("page.preview.agentchat"), 'id' => 'agentchat', 'h' => 480, 'w' => 640), + array('label' => getlocal("page.preview.agentrochat"), 'id' => 'agentrochat', 'h' => 480, 'w' => 640), ); $template = verifyparam("template", "/^\w+$/", "chat"); @@ -100,7 +106,7 @@ $page['availableTemplates'] = array( "all"); $page['operator'] = topage(get_operator_name($operator)); -$page['showlink'] = "$webimroot/operator/preview.php?preview=$preview&show="; +$page['showlink'] = "$webimroot/operator/preview.php?preview=$preview&".($showerrors?"showerr=true&":"")."show="; $page['previewList'] = array(); foreach($templateList as $tpl) { diff --git a/src/messenger/webim/styles/default/bg_btn.gif b/src/messenger/webim/styles/default/bg_btn.gif new file mode 100644 index 0000000000000000000000000000000000000000..57fde8f194f4e1c8c8aa49cdded06d2f494c3678 GIT binary patch literal 112 zcmZ?wbhEHb+{GZo(7?d(|Nno66*h`LSr|Y-2Sk8m7?|99`d6NQ%fEQemMD%-clZ3} zZ|hK-_N;Rm_kwNjxQ~DGx&E#9`LA=||MBy1wI5mZvBO7e`k7^)IeWd9hbXV^DxJ6~ NCivMc-g+(uYXG86F%AF# literal 0 HcmV?d00001 diff --git a/src/messenger/webim/styles/default/bg_domain.gif b/src/messenger/webim/styles/default/bg_domain.gif new file mode 100644 index 0000000000000000000000000000000000000000..28162af55d8948f147548210a017ac4cf53ac6e3 GIT binary patch literal 272 zcmZ?wbhEHbWMnX6xXQo~el;uUc0umLvV>dt!I#o=9+W2C&JVnl9&#lk;#yYr{gUhl zrNNiegD$0~-YHDKTNHaUFZ4=g%#EDr>p4-^a}sam=RPR)yO0`rEj#O8aloatwZbbyrOR>{;a)#K>R`0Am~|Pyhe` literal 0 HcmV?d00001 diff --git a/src/messenger/webim/styles/default/chat.tpl b/src/messenger/webim/styles/default/chat.tpl index 58b028c7..24b9b553 100644 --- a/src/messenger/webim/styles/default/chat.tpl +++ b/src/messenger/webim/styles/default/chat.tpl @@ -13,7 +13,33 @@ var threadParams = { servl:"${webimroot}/thread.php",wroot:"${webimroot}",freque - + + + + @@ -22,16 +48,10 @@ var threadParams = { servl:"${webimroot}/thread.php",wroot:"${webimroot}",freque
-
+ - - @@ -208,9 +213,9 @@ ${if:canpost} ${if:isOpera95} - +
- - - - - - - - - - - ${ifnot:ct.company.chatLogoURL} - - - - ${endif:ct.company.chatLogoURL} -
+ ${if:ct.company.chatLogoURL} ${if:webimHost} @@ -40,89 +60,69 @@ var threadParams = { servl:"${webimroot}/thread.php",wroot:"${webimroot}",freque ${else:webimHost} ${endif:webimHost} + ${else:ct.company.chatLogoURL} + ${if:webimHost} + ${page:ct.company.name} + ${else:webimHost} + ${page:ct.company.name} + ${endif:webimHost} ${endif:ct.company.chatLogoURL} -
- ${if:webimHost} - ${page:ct.company.name} - ${else:webimHost} - ${page:ct.company.name} - ${endif:webimHost}
-
- - -
- - + - - - - +
+
+ + + - - - - - - - -
+
${else:isOpera95} - + ${endif:isOpera95} - @@ -244,20 +249,13 @@ ${endif:canpost}${endif:agent}
+
${msg:chat.window.poweredby} ${msg:chat.window.poweredreftext}${msg:chat.window.poweredby} ${msg:chat.window.poweredreftext} ${if:canpost} - - - - - +
-
- ${msg:chat.window.send_message_short,send_shortcut}
-
${msg:chat.window.send_message_short,send_shortcut}
${endif:canpost} @@ -281,4 +279,3 @@ ${endif:canpost} - diff --git a/src/messenger/webim/styles/default/chatsimple.tpl b/src/messenger/webim/styles/default/chatsimple.tpl index 49167136..d1ed9277 100644 --- a/src/messenger/webim/styles/default/chatsimple.tpl +++ b/src/messenger/webim/styles/default/chatsimple.tpl @@ -8,7 +8,7 @@ - + @@ -17,7 +17,7 @@
-
+ - + diff --git a/src/messenger/webim/styles/default/error.tpl b/src/messenger/webim/styles/default/error.tpl index b7b84ce2..8626bda7 100644 --- a/src/messenger/webim/styles/default/error.tpl +++ b/src/messenger/webim/styles/default/error.tpl @@ -5,7 +5,7 @@ - +
@@ -75,7 +75,7 @@ MailMail Refresh
diff --git a/src/messenger/webim/styles/default/leavemessage.tpl b/src/messenger/webim/styles/default/leavemessage.tpl index 2a98a0b3..821b7ac8 100644 --- a/src/messenger/webim/styles/default/leavemessage.tpl +++ b/src/messenger/webim/styles/default/leavemessage.tpl @@ -5,24 +5,89 @@ - - + + + + +
-
- - + +
- - - + - - + - - - - - - - - - - - - - - - - +
-

${msg:leavemessage.title}

-
+ + + + + +
+ ${if:ct.company.chatLogoURL} + ${if:webimHost} + + + + ${else:webimHost} + + ${endif:webimHost} + ${else:ct.company.chatLogoURL} + ${if:webimHost} + ${page:ct.company.name} + ${else:webimHost} + ${page:ct.company.name} + ${endif:webimHost} + ${endif:ct.company.chatLogoURL} + ${msg:leavemessage.title}
+ + + + + + +
+
${if:errors} @@ -34,89 +99,42 @@ ${if:errors}
${endif:errors} -
- -
- - - - - - - - - - - - - - - - - - - - - -
${msg:leavemessage.descr}
${msg:form.field.email}:
${msg:form.field.name}:
${msg:form.field.message}:
- -
- -
- - - - - - - - - -
- - - - - - +
-
- ${msg:leavemessage.perform}
-
+ + + + + + + + + + + + + + + +
${msg:form.field.email}:
${msg:form.field.name}:
${msg:form.field.message}: + +
  + + + + +
${msg:mailthread.perform}
+
${msg:chat.window.poweredby} ${msg:chat.window.poweredreftext} - - - - - - -
${msg:leavemessage.close}
-
- -
+
-
+
diff --git a/src/messenger/webim/styles/default/leavemessagesent.tpl b/src/messenger/webim/styles/default/leavemessagesent.tpl index 59ebd6a6..f7c0e6c5 100644 --- a/src/messenger/webim/styles/default/leavemessagesent.tpl +++ b/src/messenger/webim/styles/default/leavemessagesent.tpl @@ -5,81 +5,61 @@ - + + -
- - - - - - - - - - - - - - - - -
-

${msg:leavemessage.sent.title}

-
- - - - - - - - - - - - - - - - - - - -
- - ${msg:leavemessage.sent.message}
-
- -
- - - - - - - - - - - - -
- + - -
+ - - - + + + +
${msg:chat.mailthread.sent.close} + ${if:ct.company.chatLogoURL} + ${if:webimHost} + + + + ${else:webimHost} + + ${endif:webimHost} + ${else:ct.company.chatLogoURL} + ${if:webimHost} + ${page:ct.company.name} + ${else:webimHost} + ${page:ct.company.name} + ${endif:webimHost} + ${endif:ct.company.chatLogoURL} + ${msg:leavemessage.sent.title}
+ + + +
- -
- -
diff --git a/src/messenger/webim/styles/default/mail.tpl b/src/messenger/webim/styles/default/mail.tpl index 62859b03..37fcfdaa 100644 --- a/src/messenger/webim/styles/default/mail.tpl +++ b/src/messenger/webim/styles/default/mail.tpl @@ -5,24 +5,58 @@ - + + -
+ -
- + + - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

${msg:mailthread.title}

-
+ + + + + +
+ ${if:ct.company.chatLogoURL} + ${if:webimHost} + + + + ${else:webimHost} + + ${endif:webimHost} + ${else:ct.company.chatLogoURL} + ${if:webimHost} + ${page:ct.company.name} + ${else:webimHost} + ${page:ct.company.name} + ${endif:webimHost} + ${endif:ct.company.chatLogoURL} + ${msg:mailthread.title}
${if:errors} @@ -34,73 +68,74 @@ ${if:errors}
${endif:errors} -
- -
- - - - - -
${msg:mailthread.enter_email}
- -
- - - - - - -
- - - - - - +
-
- ${msg:mailthread.perform}
-
+ + + + + -
- - - - - - + + +
${msg:mailthread.close}
+ + + + + + + + + + + + + + + + +
+ + + + + + +
+ +
+ +
- -
- - - - - -
- diff --git a/src/messenger/webim/styles/default/mailsent.tpl b/src/messenger/webim/styles/default/mailsent.tpl index d07aede9..95e2fad2 100644 --- a/src/messenger/webim/styles/default/mailsent.tpl +++ b/src/messenger/webim/styles/default/mailsent.tpl @@ -5,85 +5,62 @@ - + + -
- - - - - - - - - - - - - - - - -
-

${msg:chat.mailthread.sent.title}

-
- - - - - - - - - - - - - - - - - - - -
- - ${msg:chat.mailthread.sent.content,email}
- ${msg:chat.mailthread.sent.closewindow} - -
- -
- - - - - - - - - - - - -
- + - -
+ - - - + + + +
${msg:chat.mailthread.sent.close} + ${if:ct.company.chatLogoURL} + ${if:webimHost} + + + + ${else:webimHost} + + ${endif:webimHost} + ${else:ct.company.chatLogoURL} + ${if:webimHost} + ${page:ct.company.name} + ${else:webimHost} + ${page:ct.company.name} + ${endif:webimHost} + ${endif:ct.company.chatLogoURL} + ${msg:chat.mailthread.sent.title}
+ + + +
- -
- -
- - + \ No newline at end of file diff --git a/src/messenger/webim/styles/default/nochat.tpl b/src/messenger/webim/styles/default/nochat.tpl index 61eb81b3..8347e2d1 100644 --- a/src/messenger/webim/styles/default/nochat.tpl +++ b/src/messenger/webim/styles/default/nochat.tpl @@ -1,80 +1,69 @@ -${msg:page.chat.old_browser.title} +${msg:chat.window.title.user} - + + -
- - - - - - - - - - - - - - - - -
-
- - - - - - - - - - - -
- - ${msg:page.chat.old_browser.content} - -
- -
- - - - - - - - - - - - -
- + - -
+ - - - + +
${msg:page.chat.old_browser.close} + ${if:ct.company.chatLogoURL} + ${if:webimHost} + + + + ${else:webimHost} + + ${endif:webimHost} + ${else:ct.company.chatLogoURL} + ${if:webimHost} + ${page:ct.company.name} + ${else:webimHost} + ${page:ct.company.name} + ${endif:webimHost} + ${endif:ct.company.chatLogoURL} + ${msg:page.chat.old_browser.title}
+ + + + + + +

+ ${msg:page.chat.old_browser.list} +

- -
- - -
- - + \ No newline at end of file diff --git a/src/messenger/webim/styles/default/quadrat.gif b/src/messenger/webim/styles/default/quadrat.gif new file mode 100644 index 0000000000000000000000000000000000000000..0b85d2ac517e835704810787f99106b9aedc3f1b GIT binary patch literal 47 vcmZ?wbhEHbWMN=oXkcXc4+e@qSr{1@7#VaJfB+=Jz{KXlCzi>>%3uuuLL>^M literal 0 HcmV?d00001 diff --git a/src/messenger/webim/styles/default/redirect.tpl b/src/messenger/webim/styles/default/redirect.tpl index c1dbf408..e7720254 100644 --- a/src/messenger/webim/styles/default/redirect.tpl +++ b/src/messenger/webim/styles/default/redirect.tpl @@ -5,106 +5,102 @@ - - + + + + +
- +
- - - - - - - - - - - - - - - - - - -
- - - - - -

${msg:chat.redirect.title}

-

${msg:chat.redirect.choose_operator}

-
-
-
- - - - - - - - - - - - - - - - - - - -
- - + + + + - -
+ - + + +
- -
    +
+ ${if:ct.company.chatLogoURL} + ${if:webimHost} + + + + ${else:webimHost} + + ${endif:webimHost} + ${else:ct.company.chatLogoURL} + ${if:webimHost} + ${page:ct.company.name} + ${else:webimHost} + ${page:ct.company.name} + ${endif:webimHost} + ${endif:ct.company.chatLogoURL} + ${msg:chat.redirect.title}
+ + + + + + +
+
    ${page:pagination_list} -
- -
- +
- -
- - - - - - -
- ${pagination} + - - - - - - -
${msg:chat.redirect.back}
-
- -
+
- diff --git a/src/messenger/webim/styles/default/redirected.tpl b/src/messenger/webim/styles/default/redirected.tpl index 5c9da09b..f9d2f354 100644 --- a/src/messenger/webim/styles/default/redirected.tpl +++ b/src/messenger/webim/styles/default/redirected.tpl @@ -1,89 +1,66 @@ -${msg:chat.window.title.agent} +${msg:chat.window.title.user} - + + -
- - - - - - - - - - - - - - - - -
-

${msg:chat.redirected.title}

-
- - - - - - - - - - - - - - - - - - - -
- - ${msg:chat.redirected.content,nextAgent}
- ${msg:chat.redirected.closewindow} - -
- -
- - - - - - - - - - - - -
- + - -
+ - - - + + + +
${msg:chat.redirected.close} + ${if:ct.company.chatLogoURL} + ${if:webimHost} + + + + ${else:webimHost} + + ${endif:webimHost} + ${else:ct.company.chatLogoURL} + ${if:webimHost} + ${page:ct.company.name} + ${else:webimHost} + ${page:ct.company.name} + ${endif:webimHost} + ${endif:ct.company.chatLogoURL} + ${msg:chat.redirected.title}
+ + + +
- -
- -
- - + \ No newline at end of file diff --git a/src/messenger/webim/styles/original/.htaccess b/src/messenger/webim/styles/original/.htaccess new file mode 100644 index 00000000..14249c50 --- /dev/null +++ b/src/messenger/webim/styles/original/.htaccess @@ -0,0 +1 @@ +Deny from all \ No newline at end of file diff --git a/src/messenger/webim/styles/original/chat.tpl b/src/messenger/webim/styles/original/chat.tpl index 9ebee7f6..a8b246f9 100644 --- a/src/messenger/webim/styles/original/chat.tpl +++ b/src/messenger/webim/styles/original/chat.tpl @@ -13,7 +13,7 @@ var threadParams = { servl:"${webimroot}/thread.php",wroot:"${webimroot}",freque - + @@ -133,7 +133,7 @@ ${endif:agent} ${if:user} - + ${endif:user} ${if:agent} ${if:canpost} diff --git a/src/messenger/webim/styles/original/chatsimple.tpl b/src/messenger/webim/styles/original/chatsimple.tpl index 5ad1b128..49167136 100644 --- a/src/messenger/webim/styles/original/chatsimple.tpl +++ b/src/messenger/webim/styles/original/chatsimple.tpl @@ -8,7 +8,7 @@ - +
Mail Mail 
diff --git a/src/messenger/webim/styles/original/error.tpl b/src/messenger/webim/styles/original/error.tpl index 8626bda7..b7b84ce2 100644 --- a/src/messenger/webim/styles/original/error.tpl +++ b/src/messenger/webim/styles/original/error.tpl @@ -5,7 +5,7 @@ - +
diff --git a/src/messenger/webim/styles/original/leavemessage.tpl b/src/messenger/webim/styles/original/leavemessage.tpl index d1cc4be5..2a98a0b3 100644 --- a/src/messenger/webim/styles/original/leavemessage.tpl +++ b/src/messenger/webim/styles/original/leavemessage.tpl @@ -5,7 +5,7 @@ - +
diff --git a/src/messenger/webim/styles/original/leavemessagesent.tpl b/src/messenger/webim/styles/original/leavemessagesent.tpl index 88d1495b..59ebd6a6 100644 --- a/src/messenger/webim/styles/original/leavemessagesent.tpl +++ b/src/messenger/webim/styles/original/leavemessagesent.tpl @@ -5,7 +5,7 @@ - +
diff --git a/src/messenger/webim/styles/original/mail.tpl b/src/messenger/webim/styles/original/mail.tpl index 8080adca..62859b03 100644 --- a/src/messenger/webim/styles/original/mail.tpl +++ b/src/messenger/webim/styles/original/mail.tpl @@ -5,7 +5,7 @@ - +
diff --git a/src/messenger/webim/styles/original/mailsent.tpl b/src/messenger/webim/styles/original/mailsent.tpl index b061b7ea..d07aede9 100644 --- a/src/messenger/webim/styles/original/mailsent.tpl +++ b/src/messenger/webim/styles/original/mailsent.tpl @@ -5,7 +5,7 @@ - +
diff --git a/src/messenger/webim/styles/original/nochat.tpl b/src/messenger/webim/styles/original/nochat.tpl index 79e807a2..98117ec4 100644 --- a/src/messenger/webim/styles/original/nochat.tpl +++ b/src/messenger/webim/styles/original/nochat.tpl @@ -5,7 +5,7 @@ - + diff --git a/src/messenger/webim/styles/original/redirect.tpl b/src/messenger/webim/styles/original/redirect.tpl index b9b2a39c..c1dbf408 100644 --- a/src/messenger/webim/styles/original/redirect.tpl +++ b/src/messenger/webim/styles/original/redirect.tpl @@ -5,7 +5,7 @@ - +
@@ -29,7 +29,8 @@
- ${msg:page.chat.old_browser.content} + ${msg:page.chat.old_browser.problem} + ${msg:page.chat.old_browser.list}
diff --git a/src/messenger/webim/styles/original/redirected.tpl b/src/messenger/webim/styles/original/redirected.tpl index 986d028c..5c9da09b 100644 --- a/src/messenger/webim/styles/original/redirected.tpl +++ b/src/messenger/webim/styles/original/redirected.tpl @@ -5,7 +5,7 @@ - +
diff --git a/src/messenger/webim/view/thread_search.php b/src/messenger/webim/view/thread_search.php index 8e3be04a..68085193 100644 --- a/src/messenger/webim/view/thread_search.php +++ b/src/messenger/webim/view/thread_search.php @@ -76,7 +76,7 @@
- + diff --git a/src/messenger/webim/view/userhistory.php b/src/messenger/webim/view/userhistory.php index a8574b8e..ef35fb7c 100644 --- a/src/messenger/webim/view/userhistory.php +++ b/src/messenger/webim/view/userhistory.php @@ -56,7 +56,7 @@
- +