From dc3c6ebdaaf766b95e68fc67c89f350481ccb2c0 Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Thu, 12 Mar 2009 01:07:35 +0000 Subject: [PATCH] Update views with a new layout git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@402 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/messenger/webim/default.css | 437 ++++++++++++++++++ src/messenger/webim/images/footer.gif | Bin 0 -> 162 bytes src/messenger/webim/images/graydot.gif | Bin 0 -> 43 bytes src/messenger/webim/images/header.gif | Bin 0 -> 162 bytes src/messenger/webim/images/li.gif | Bin 0 -> 60 bytes src/messenger/webim/images/logo.gif | Bin 0 -> 300 bytes src/messenger/webim/install/dbinfo.php | 2 +- src/messenger/webim/install/index.php | 2 +- src/messenger/webim/install/view_index.php | 108 ----- .../webim/install/view_installerr.php | 85 ---- src/messenger/webim/install/whatsnew.txt | 5 + src/messenger/webim/js/ie.js | 8 + src/messenger/webim/libs/common.php | 19 +- src/messenger/webim/libs/pagination.php | 10 +- src/messenger/webim/locales/de/properties | 8 +- src/messenger/webim/locales/en/properties | 18 +- src/messenger/webim/locales/fr/properties | 8 +- src/messenger/webim/locales/it/properties | 8 +- src/messenger/webim/locales/lv/properties | 4 +- src/messenger/webim/locales/names/level2 | 2 - src/messenger/webim/locales/pl/properties | 8 +- src/messenger/webim/locales/pt-br/properties | 8 +- src/messenger/webim/locales/ru/properties | 8 +- src/messenger/webim/locales/sp/properties | 8 +- src/messenger/webim/locales/tr/properties | 8 +- src/messenger/webim/locales/ua/properties | 6 +- src/messenger/webim/locales/zh-cn/properties | 8 +- src/messenger/webim/locales/zh-tw/properties | 8 +- src/messenger/webim/operator/preview.php | 1 + src/messenger/webim/view/agent.php | 172 +++---- src/messenger/webim/view/agents.php | 135 ++---- src/messenger/webim/view/avatar.php | 158 +++---- src/messenger/webim/view/blocked_visitors.php | 206 ++++----- src/messenger/webim/view/features.php | 129 +++--- src/messenger/webim/view/gen_button.php | 179 +++---- src/messenger/webim/view/inc_errors.php | 15 + src/messenger/webim/view/inc_locales.php | 19 + src/messenger/webim/view/inc_main.php | 50 ++ src/messenger/webim/view/inc_menu.php | 39 ++ src/messenger/webim/view/install_err.php | 30 ++ src/messenger/webim/view/install_index.php | 59 +++ src/messenger/webim/view/login.php | 159 +++---- src/messenger/webim/view/menu.php | 120 +++-- src/messenger/webim/view/permissions.php | 115 ++--- src/messenger/webim/view/preview.php | 133 +++--- src/messenger/webim/view/settings.php | 216 ++++----- src/messenger/webim/view/thread_search.php | 178 ++++--- src/messenger/webim/view/updates.php | 100 ++-- 48 files changed, 1548 insertions(+), 1451 deletions(-) create mode 100644 src/messenger/webim/default.css create mode 100644 src/messenger/webim/images/footer.gif create mode 100644 src/messenger/webim/images/graydot.gif create mode 100644 src/messenger/webim/images/header.gif create mode 100644 src/messenger/webim/images/li.gif create mode 100644 src/messenger/webim/images/logo.gif delete mode 100644 src/messenger/webim/install/view_index.php delete mode 100644 src/messenger/webim/install/view_installerr.php create mode 100644 src/messenger/webim/js/ie.js create mode 100644 src/messenger/webim/view/inc_errors.php create mode 100644 src/messenger/webim/view/inc_locales.php create mode 100644 src/messenger/webim/view/inc_main.php create mode 100644 src/messenger/webim/view/inc_menu.php create mode 100644 src/messenger/webim/view/install_err.php create mode 100644 src/messenger/webim/view/install_index.php diff --git a/src/messenger/webim/default.css b/src/messenger/webim/default.css new file mode 100644 index 00000000..3f265cf9 --- /dev/null +++ b/src/messenger/webim/default.css @@ -0,0 +1,437 @@ +/* + This file is part of Web Instant Messenger project. + + Copyright (c) 2005-2009 Web Messenger Community + All rights reserved. This program and the accompanying materials + are made available under the terms of the Eclipse Public License v1.0 + which accompanies this distribution, and is available at + http://www.eclipse.org/legal/epl-v10.html + +*/ + +/* reset all */ + +html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote, pre, form, fieldset, table, th, td { margin: 0; padding: 0; } +table { border-collapse:collapse; border-spacing:0; } +fieldset,img { border:0; } +ol,ul { list-style:none; } +h1,h2,h3,h4,h5,h6 { font-size:100%; font-weight:normal; } +q:before,q:after { content:''; } + +body { + background: #FFFFFF url(images/header.gif) repeat-x; + font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; + font-size: 0.8em; + line-height: 140%; + color: #333333; +} + +/* 100% height with footer, 200 px sidebar */ + +html, body { + height: 100%; +} + +body { + min-width: 700px; +} + +a { + color: #2f7599; +} + +#wrap { + position:relative; + width: 100%; + margin: 0px auto -41px; + height:auto !important; + height:100%; + min-height:100%; + min-width:700px; +} + +.contentdiv { + float:left; + width: 100%; +} + +.contentinner { + margin-right: 210px; + padding: 10px 60px 10px 20px; +} + +.empty_inner { + height:40px; +} + +#footer { + background: white url(images/footer.gif) bottom repeat-x; + font-size:11px; + position:relative; + + min-height: 40px; + height:40px; + vertical-align:middle; + + width:100%; + text-align: center; +} + +#legal { + clear: both; + line-height: 30px; + padding-top:10px; + text-align: center; + color: #375C69; + margin-bottom: 0px; +} + +#footer .flink { + color: #2f7599; + text-decoration: underline; +} + +/* Header */ + +#header { + width: 100%; + height: 32px; + margin: 0px auto 10px auto; + padding-top: 10px; + padding-bottom: 5px; + background: url(images/graydot.gif) repeat-x left bottom; + display: block; +} + +#header { + float: left; +} + +img.left { + float: left; + margin-right: 15px; +} + +#header h1 { + font-size: 2em; + line-height: 32px; + color: #494949; + margin-left: 40px; +} + +#header h1 a { + color: #494949; +} + +#header a { + text-decoration: none; +} + +#title { + float: left; + display: inline; +} + +#path { + float: right; + padding: 10px 20px 0px 0px; + line-height: 22px; + display: inline; +} + +/* Sidebar */ + +#sidebar { + float: left; + width: 185px; + margin-left: -210px; + margin-top: 20px; + position:relative; + line-height: 180% +} + +#sidebar ul { + margin: 0; + padding: 0; + list-style: none; +} + +#sidebar li { + margin-bottom: 20px; +} + +#sidebar li ul { +} + +#sidebar li li { + margin: 0; +} + +#sidebar h2 { + text-transform: lowercase; + margin-bottom: 10px; + background: url(images/graydot.gif) repeat-x left bottom; + font-size: 1.3em; +} + +.locales a { + color: #2f7599; + font-size: 1em; + text-decoration: none; +} + +.locales .active a { + color: #555; +} + +.locales a:hover { + text-decoration: underline; +} + +.submenu a { + padding-left: 15px; + color: #2f7599; + font-size: 1em; + text-decoration: none; +} + +.submenu .active a { + background: url(images/li.gif) no-repeat left 1px; + color: #555; +} + +.submenu a:hover { + text-decoration: underline; +} + +/* form, tabbed form */ + +.mform { + background: url(images/loginbg.gif); + clear: both; +} + +.tabs { + float: right; + display: inline; + margin-right: 15px; +} + +.tabs li { + display: inline; +} + +.tabs a { + display: block; + float: left; + padding: 2px 9px 3px 9px; + font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; + font-size: 11px; + color: #2f7599; +} + +.tabs li.active a { + background: url(images/loginbg.gif); + border-left:1px solid #bbbbbb;border-top:1px solid #bbbbbb;border-right:1px solid #bbbbbb; + color: #000; + text-decoration: none; +} + +.formtop, .formbottom, .formtopi, .formbottomi { height: 15px;} +.formtop { background: url(images/logincrnrt.gif) no-repeat top right;} +.formtopi { background: url(images/logincrnlt.gif) no-repeat top left; } +.formbottom { background: url(images/logincrnrb.gif) no-repeat bottom right; } +.formbottomi { background: url(images/logincrnlb.gif) no-repeat bottom left; } +.forminner { margin: 0px 15px;} +.forminner p { margin-bottom: 1em; } + +/* fieldForm */ + +.fieldForm { + font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; + font-size: 11px; + width: 100%; +} + +div.errinfo { + color: #c13030; +} + +.field { + width: 100%; + margin-top: 5px; +} + +.flabel { + position: relative; + margin: 8px auto 2px; + color: black; +} + +.fleftlabel { + float: left; + width: 100px; +} + +.flabel span.required { + font-size:8.0pt; + color:red; + font-weight: bold; +} + +.fvalue { + float: left; +} + +.fvaluewithta { + float: left; + width: 67%; +} + +.fvaluewithta textarea { + width: 100%; +} + +.fvaluenodesc { +} + +.fvalueframe { + overflow: auto; + width: 100%; +} + +.fvalueframe iframe { + border: solid 1px #999; +} + +.fdescr { + float:left; + padding-left:10px; + color: #676767; + font-size: 10px; + min-width: 200px; +} + +.fbutton { + background: url(images/formline.gif) repeat-x; + margin-top: 20px; + padding-top: 10px; +} + +.formauth { +} + +input.formauth { + border: 1px solid #878787; + color: #333; + margin-right:15px; + padding-right: 0px; +} + +#formmessage { + border: 1px solid #4C96D4; + background-color: #E7F1F9; + padding: 8px 11px; + font-size: 11px; + font-weight:bold; + width : 400px; + margin: 0px 2px 10px; + color: #515151; +} + +.asterisk { + padding: 10px 20px; +} + +/* tables */ + +.tabletool { + float: right; +} + +.tabletool a { + color: #296685; + vertical-align: top; + padding-left: 4px; +} + +table.list { + font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif; + background: #fff; + width: 100%; + border-collapse: collapse; + text-align: left; +} + +table.list th { + font-size: 1.2em; + font-weight: normal; + color: #1D485E; + padding: 10px 8px; + border-bottom: 2px solid #2F7598; +} + +table.list td { + color: #2f7599; + padding: 10px 8px; + border-bottom: 1px solid #ccc; +} + +table.list td a.man { + background: url(images/tbliclogin.gif) no-repeat left center; + padding-left: 15px; +} + +table.list tbody tr:hover td, table.list tbody tr:hover td a { + color: #1D485E; +} + +/* search */ + +#searchtext { + float:left; + display: inline; + margin:7px 20px 5px 0px; + width:75%; + padding-right:5px; +} + +#searchtext input { + width: 100%; + margin: 0px; +} + +#searchbutton { + float:left; +} + +/* login */ + +#loginpane { + width: 350px; +} + +/* dashboard */ + +.dashitem { + width: 200px; + height: 7em; + margin: 0px 2em 2em 0px; + padding: 5px 5px; + float: left; +} + +.dashitem a { + background: url(images/graydot.gif) repeat-x left bottom; + padding-bottom: 10px; + margin-bottom: 10px; + display: block; +} + +/* install */ + +#install li { + list-style-type: circle; + list-style-position: inside; + margin-left: 2em; +} diff --git a/src/messenger/webim/images/footer.gif b/src/messenger/webim/images/footer.gif new file mode 100644 index 0000000000000000000000000000000000000000..ba2b1a331bc1fb9bf11eccd36a2020fc3a756418 GIT binary patch literal 162 zcmZ?wbhEHbWMt4_IKlt||NsB@owV)Wzkh%K{{8dk&+p&AfBpLP^XJbWKYo1w{{7px zZ(qND{qp6@=g*%%efsqAYb{@uHGZ{NOs^XAR#*RNl_diC<<%NH+R0F440 zi69hzvM@3*NHOSugg|yWu*xR{sPLJ}c$e_DG-{kx4vjbYb{@uHGZ{NOs^XAR#*RNl_diC<<%NH+R0F440 zi69hzvM@3*NHOSugg|yWu*xTxnQ|sNo;HjL`C@P?P=K*4bjlN}vx`(ZniI_=SezKF E0cQqTQvd(} literal 0 HcmV?d00001 diff --git a/src/messenger/webim/images/li.gif b/src/messenger/webim/images/li.gif new file mode 100644 index 0000000000000000000000000000000000000000..29e032662dc1c07d6992e2bcac4ab0b56d2febb3 GIT binary patch literal 60 zcmZ?wbhEHbUwOLsflyDn7Q@Dk MedgyIJQx|Q0on@??EnA( literal 0 HcmV?d00001 diff --git a/src/messenger/webim/images/logo.gif b/src/messenger/webim/images/logo.gif new file mode 100644 index 0000000000000000000000000000000000000000..d904da6e2038923a022cdd9c287853b3557debcc GIT binary patch literal 300 zcmZ?wbhEHbRA5kGIKse?v`r;#hgQ*EtLj7Ub%%Xgj)!&}k6d=GdFA!?&3C45zdLK^ zy*YayENk&cEFA=G)WvKVE+R`S$DYPe1>B`~Uwx174u`lZBIkL5x8MqzYsw z1MA8Ks(mS$^D5CNZ>G81b*m*Ev&hs}`Of_!o?7Yzo+?<^DZSC&d zT|K?*0s`C)+|zh?T&GUwW?``?pE%pSn3q>jP-LCRG=BcNj@4_|Z|vB$yTfUZo$Y>0 e6D2OL!$*{lTbwjKbM~Owg>wv-&uJ+#SOWm73wQzm literal 0 HcmV?d00001 diff --git a/src/messenger/webim/install/dbinfo.php b/src/messenger/webim/install/dbinfo.php index f50433d2..f60ce81a 100644 --- a/src/messenger/webim/install/dbinfo.php +++ b/src/messenger/webim/install/dbinfo.php @@ -110,7 +110,7 @@ function show_install_err($text) { ); $errors = array($text); start_html_output(); - require('view_installerr.php'); + require('../view/install_err.php'); exit; } diff --git a/src/messenger/webim/install/index.php b/src/messenger/webim/install/index.php index 21bdfed5..7571215d 100644 --- a/src/messenger/webim/install/index.php +++ b/src/messenger/webim/install/index.php @@ -150,5 +150,5 @@ function check_status() { check_status(); start_html_output(); -require('view_index.php'); +require('../view/install_index.php'); ?> \ No newline at end of file diff --git a/src/messenger/webim/install/view_index.php b/src/messenger/webim/install/view_index.php deleted file mode 100644 index d43a0db4..00000000 --- a/src/messenger/webim/install/view_index.php +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - - - - - - - <?php echo getlocal("install.title") ?> - <?php echo getlocal("app.title") ?> - - -"> -"> - - - - - - - - -
- -

- - - -
-
- 0 ) { ?> - - - - - - -
- 0 ) { - print getlocal("errors.header"); - foreach( $errors as $e ) { - print getlocal("errors.prefix"); - print $e; - print getlocal("errors.suffix"); - } - print getlocal("errors.footer"); - } ?> - -
- - - -
- - - -
- -
    - -
  • - -
-
- -
    -
  • -

    - -
  • -
-
- - - - - - - - - - - - -
- -«Open Web Messenger» - -
- - - - diff --git a/src/messenger/webim/install/view_installerr.php b/src/messenger/webim/install/view_installerr.php deleted file mode 100644 index 0a81c122..00000000 --- a/src/messenger/webim/install/view_installerr.php +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - - - - - - <?php echo getlocal("install.err.title") ?> - <?php echo getlocal("app.title") ?> - - -"> -"> - - - - - - - - -
- -

- - - 0 ) { ?> - - - - - - -
- 0 ) { - print getlocal("errors.header"); - foreach( $errors as $e ) { - print getlocal("errors.prefix"); - print $e; - print getlocal("errors.suffix"); - } - print getlocal("errors.footer"); - } ?> - -
- - -
- - - - - - - - - - - - -
- -«Open Web Messenger» - -
- - - - diff --git a/src/messenger/webim/install/whatsnew.txt b/src/messenger/webim/install/whatsnew.txt index cccecb1e..51e9cee7 100644 --- a/src/messenger/webim/install/whatsnew.txt +++ b/src/messenger/webim/install/whatsnew.txt @@ -1,3 +1,8 @@ + 1.6.0 + ----- + [+] main page: warning if database is outdated (after install) + [+] "Updates" tab in settings + 1.5.2 ----- [+] Ability to disable sound notifications for chat (toolbar button) diff --git a/src/messenger/webim/js/ie.js b/src/messenger/webim/js/ie.js new file mode 100644 index 00000000..d3d48682 --- /dev/null +++ b/src/messenger/webim/js/ie.js @@ -0,0 +1,8 @@ +window.attachEvent('onload', mkwidth); +window.attachEvent('onresize', mkwidth); + +var minwidth = 700; + +function mkwidth(){ + document.getElementById("wrap").style.width = document.documentElement.clientWidth < minwidth ? minwidth+"px" : "100%"; +}; \ No newline at end of file diff --git a/src/messenger/webim/libs/common.php b/src/messenger/webim/libs/common.php index d0d3426e..ceda8311 100644 --- a/src/messenger/webim/libs/common.php +++ b/src/messenger/webim/libs/common.php @@ -82,6 +82,7 @@ function get_available_locales() { } closedir($handle); } + sort($list); return $list; } @@ -135,15 +136,13 @@ $output_encoding = array(); function get_locale_links($href) { global $current_locale; - $localeLinks = ""; + $localeLinks = array(); $allLocales = get_available_locales(); + if(count($allLocales) < 2) { + return null; + } foreach($allLocales as $k) { - if( strlen($localeLinks) > 0 ) - $localeLinks .= " • "; - if( $k == $current_locale ) - $localeLinks .= getlocal_($k, "names"); - else - $localeLinks .= "".getlocal_($k, "names").""; + $localeLinks[$k] = getlocal_($k, "names"); } return $localeLinks; } @@ -345,13 +344,13 @@ function wrong_field($key) { function get_popup($href,$jshref,$message,$title,$wndName,$options) { if(!$jshref) { $jshref = "'$href'"; } - return "$message"; + return "$message"; } function get_image($href,$width,$height) { if( $width != 0 && $height != 0 ) - return ""; - return ""; + return "\"\"/"; + return "\"\"/"; } function get_gifimage_size($filename) { diff --git a/src/messenger/webim/libs/pagination.php b/src/messenger/webim/libs/pagination.php index 3212bd3c..01f216e5 100644 --- a/src/messenger/webim/libs/pagination.php +++ b/src/messenger/webim/libs/pagination.php @@ -19,12 +19,12 @@ function generate_pagination_link($page,$title) { $lnk = $_SERVER['REQUEST_URI']; $href = preg_replace("/\?page=\d+\&/", "?", preg_replace("/\&page=\d+/", "", $lnk)); $href .= strstr($href,"?") ? "&page=$page" : "?page=$page"; - return "$title"; + return "$title"; } -function generate_pagination_image($id) { +function generate_pagination_image($id,$alt) { global $webimroot; - return ""; + return "\"".htmlspecialchars($alt)."\"/"; } function setup_pagination($items,$default_items_per_page=15) { @@ -79,7 +79,7 @@ function generate_pagination($pagination,$bottom=true) { $maxPage = min( $curr_page + $links_on_page, $pagination['total'] ); if( $curr_page > 1 ) { - $result .= generate_pagination_link($curr_page-1, generate_pagination_image("prevpage")).$pagination_spacing; + $result .= generate_pagination_link($curr_page-1, generate_pagination_image("prevpage", "previous")).$pagination_spacing; } for($i = $minPage; $i <= $maxPage; $i++ ) { @@ -93,7 +93,7 @@ function generate_pagination($pagination,$bottom=true) { } if( $curr_page < $pagination['total'] ) { - $result .= $pagination_spacing.generate_pagination_link($curr_page+1, generate_pagination_image("nextpage")); + $result .= $pagination_spacing.generate_pagination_link($curr_page+1, generate_pagination_image("nextpage", "next")); } $result.=""; } diff --git a/src/messenger/webim/locales/de/properties b/src/messenger/webim/locales/de/properties index 19f8e295..eda3689d 100644 --- a/src/messenger/webim/locales/de/properties +++ b/src/messenger/webim/locales/de/properties @@ -80,8 +80,8 @@ demo.chat.welcome=Hallo, wie kann ich ihnen helfen ? errors.failed.uploading.file=Fehler beim Datei Upload "{0}": "{1}". errors.file.move.error=Fehler beim verschieben der Datei errors.file.size.exceeded=max. Upload Größe überschritten. -errors.footer= -errors.header=Fehler korrigieren:
    +errors.footer=
+errors.header=Fehler korrigieren:
    errors.invalid.file.type=Falscher Dateityp errors.prefix=
  • errors.required=Bitte "{0}" ausfüllen. @@ -111,7 +111,7 @@ form.field.password=Passwort form.field.password_confirm.description=Neues Passwort bestätigen. form.field.password_confirm=Bestätigung form.field.translation=Übersetzung -harderrors.header=Fehlgeschlagen:
      +harderrors.header=Fehlgeschlagen:
        install.1.connected=Sie sind verbunden mit MySQL Server Version {0} leavemail.body=Sie haben eine Nachricht von {0}:\n\n{2}\n\nSeine email: {1}\n{3}\n--- \nIhr Support Team leavemail.subject=Frage von {0} @@ -158,8 +158,6 @@ page.gen_button.intro=Hier kann der HTML Code generieren. page.gen_button.sample=Beispiel page.gen_button.secure_links=Sichere Links (https) ? page.gen_button.title=Button HTML Code generieren -page.main_layout.meta_description=Live chat, live help, and live support for websites -page.main_layout.meta_keyword=live chat,live help,live support page.preview.agentchat=Chat Fenster (Agenten-Modus) page.preview.agentrochat=Chatfenster anschauen (Lesen-Only-Modus) page.preview.chatsimple=Einfaches Chatfenster, Nachrichten aktualisieren (IE 5, Opera 7) diff --git a/src/messenger/webim/locales/en/properties b/src/messenger/webim/locales/en/properties index b58df151..2ef6408c 100644 --- a/src/messenger/webim/locales/en/properties +++ b/src/messenger/webim/locales/en/properties @@ -4,7 +4,7 @@ output_encoding=utf-8 admin.content.client_agents=Create, delete company agents. Manage theirs permissions. admin.content.client_gen_button=Button HTML code generation. admin.content.client_settings=Specify options affecting chat window and common system behavior -admin.content.description=Functions available for power users. +admin.content.description=Functions available for site operators. agent.not_logged_in=Your session is expired please login again app.title=Web Instant Messenger ban.error.duplicate=The specified address is already in use, click here if you want to edit it. @@ -83,8 +83,8 @@ demo.chat.welcome=Hello, how may I help you? errors.failed.uploading.file=Error uploading file "{0}": {1}. errors.file.move.error=Error moving file errors.file.size.exceeded=Uploaded file size exceeded -errors.footer=
      -errors.header=Correct the mistakes:
        +errors.footer=
      +errors.header=Correct the mistakes:
        errors.invalid.file.type=Invalid file type errors.prefix=
      • errors.required=Please fill "{0}". @@ -106,16 +106,16 @@ form.field.ban_comment=Comment form.field.ban_days.description=Numbers of days this address is blocked form.field.ban_days=Days form.field.email=Your email -form.field.login.description=Login can consist of small Latin letters
        and underscore. +form.field.login.description=Login can consist of small Latin letters and underscore. form.field.login=Login form.field.message=Message form.field.name=Your name -form.field.password.description=Enter new password or leave the
        field empty to keep previous one. +form.field.password.description=Enter new password or leave the field empty to keep previous one. form.field.password=Password form.field.password_confirm.description=Confirm new password. form.field.password_confirm=Confirmation form.field.translation=Translation -harderrors.header=Cannot execute:
          +harderrors.header=Cannot execute:
            image.button.delete=/locales/en/images/delete.gif image.button.login=/locales/en/images/login.gif image.button.save=/locales/en/images/save.gif @@ -191,8 +191,6 @@ page.gen_button.intro=You can generate HTML code to place at your site here. page.gen_button.sample=Example page.gen_button.secure_links=Use secure links (https) page.gen_button.title=Button HTML code generation -page.main_layout.meta_description=Live chat, live help, and live support for websites -page.main_layout.meta_keyword=live chat,live help,live support page.preview.agentchat=Chat window (agent-mode) page.preview.agentrochat=View Chat window (agent in readonly mode) page.preview.chatsimple=Simple chat window, refresh to post messages (IE 5, Opera 7) @@ -244,6 +242,7 @@ page_bans.title=Blocked page_bans.to=Till page_client.pending_users=You can find awaiting visitors. page_login.error=Entered login/password is incorrect +page_login.intro=Login to access administrative tools, see your visitors and browse the history. page_login.login=Login: page_login.password=Password: page_login.remember=Remember @@ -305,8 +304,9 @@ tag.pagination.no_items=Found 0 elements thread.back_to_search=Go to search thread.chat_log=Chat log thread.intro=The page displays chat -topMenu.admin=Administration +topMenu.admin=Home topMenu.logoff=Exit +topMenu.main=Home topMenu.users=Visitors translate.direction=Direction: translate.show.all=All strings diff --git a/src/messenger/webim/locales/fr/properties b/src/messenger/webim/locales/fr/properties index f7f452b5..8709b2db 100644 --- a/src/messenger/webim/locales/fr/properties +++ b/src/messenger/webim/locales/fr/properties @@ -81,8 +81,8 @@ demo.chat.welcome=Bienvenue, que puis-je faire pour vous? errors.failed.uploading.file=Erreur de tlchargement "{0}": "{1}". errors.file.move.error=Erreur de transfert de fichier errors.file.size.exceeded=Taille excessive du fichier tlcharg -errors.footer=
          -errors.header=Corrigez les erreurs:
            +errors.footer=
          +errors.header=Corrigez les erreurs:
            errors.invalid.file.type=Type de fichier non valide errors.prefix=
          • errors.required=Please fill "{0}". @@ -112,7 +112,7 @@ form.field.password=Mot de Passe form.field.password_confirm.description=Confirmez le nouveau mot de passe. form.field.password_confirm=Confirmation form.field.translation=Traduire -harderrors.header=Excution impossible:
              +harderrors.header=Excution impossible:
                image.button.delete=/locales/fr/images/delete.gif image.button.login=/locales/fr/images/login.gif image.button.save=/locales/fr/images/save.gif @@ -187,8 +187,6 @@ page.gen_button.intro=Vous pouvez g page.gen_button.sample=Exemple page.gen_button.secure_links=Lien scuris utilis (https) page.gen_button.title=Gnrer code HTML du Bouton -page.main_layout.meta_description=Support en direct, aide directe sur site web -page.main_layout.meta_keyword=Support en direct,aide,messagerie instantane page.preview.agentchat=Fentre de dialogue (mode-agent) page.preview.agentrochat=Aperu de la fentre de dialogue de l'Agent page.preview.chatsimple=Simple fentre de discussion, actualiser pour envoyer des messages (IE 5, Opera 7) diff --git a/src/messenger/webim/locales/it/properties b/src/messenger/webim/locales/it/properties index b9297790..d88938a0 100644 --- a/src/messenger/webim/locales/it/properties +++ b/src/messenger/webim/locales/it/properties @@ -81,8 +81,8 @@ demo.chat.welcome=Ciao, come posso aiutarti? errors.failed.uploading.file=Errore caricando il file "{0}": {1}. errors.file.move.error=Errore muovendo il file errors.file.size.exceeded=La dimensione del file da caricare è troppo grande -errors.footer=
              -errors.header=Correggere gli errori:
                +errors.footer=
              +errors.header=Correggere gli errori:
                errors.invalid.file.type=Tipo di file non valido errors.prefix=
              • errors.required=Compilare "{0}". @@ -113,7 +113,7 @@ form.field.password=Password form.field.password_confirm.description=Conferma la nuova password. form.field.password_confirm=Conferma form.field.translation=Traduzione -harderrors.header=Non eseguito:
                  +harderrors.header=Non eseguito:
                    image.button.delete=/locales/it/images/delete.gif image.button.login=/locales/it/images/login.gif image.button.save=/locales/it/images/save.gif @@ -188,8 +188,6 @@ page.gen_button.intro=Puoi generare il codice HTML da inserire nel sito. page.gen_button.sample=Esempio page.gen_button.secure_links=Usa link sicuro (https) page.gen_button.title=Bottone per generare il codice HTML -page.main_layout.meta_description=Chat dal vivo, help dal vivo, supporto sitoweb dal vivo -page.main_layout.meta_keyword=chat dal vivo, help dal vivo, supporto dal vivo page.preview.agentchat=Finestra chat (agent-mode) page.preview.agentrochat=Visualizza finestra chat (readonly mode) page.preview.chatsimple=Finestra chat semplice, aggiorna per inviare un messaggio (IE 5, Opera 7) diff --git a/src/messenger/webim/locales/lv/properties b/src/messenger/webim/locales/lv/properties index e9ec2571..9eeae767 100644 --- a/src/messenger/webim/locales/lv/properties +++ b/src/messenger/webim/locales/lv/properties @@ -57,8 +57,8 @@ clients.title=Gaidījušo apmeklētāju saraksts common.asterisk_explanation=* - laukumi, obligātai aizpildīšanai content.history=Meklēšana pēc dialogu vēsturi content.logoff=Atstāt sistēmu. -errors.footer=
                  -errors.header=Izlabojiet kļūdas:
                    +errors.footer=
                  +errors.header=Izlabojiet kļūdas:
                    errors.prefix=
                  • errors.required=Aizpildiet laukumu "{0}". errors.suffix=
                  • diff --git a/src/messenger/webim/locales/names/level2 b/src/messenger/webim/locales/names/level2 index 62e13a32..e4cef1bf 100644 --- a/src/messenger/webim/locales/names/level2 +++ b/src/messenger/webim/locales/names/level2 @@ -67,8 +67,6 @@ page.analysis.search.head_operator page.analysis.search.head_time page.analysis.userhistory.intro page.analysis.userhistory.title -page.main_layout.meta_description -page.main_layout.meta_keyword page_analysis.full.text.search page_analysis.search.title page_ban.intro diff --git a/src/messenger/webim/locales/pl/properties b/src/messenger/webim/locales/pl/properties index 17048235..91e19fbe 100644 --- a/src/messenger/webim/locales/pl/properties +++ b/src/messenger/webim/locales/pl/properties @@ -83,8 +83,8 @@ demo.chat.welcome=Witam, w czym mogę pomóc? errors.failed.uploading.file=Błąd podczas przesyłania pliku "{0}": {1}. errors.file.move.error=Błąd przesuwania pliku errors.file.size.exceeded=Przekroczony rozmiar przesyłanego pliku -errors.footer=
                  -errors.header=Popraw błędy:
                    +errors.footer=
                  +errors.header=Popraw błędy:
                    errors.invalid.file.type=Nieprawidłowy typ pliku errors.prefix=
                  • errors.required=Proszę wypełnić "{0}". @@ -115,7 +115,7 @@ form.field.password=Hasło form.field.password_confirm.description=Potwierdź nowe hasło. form.field.password_confirm=Potwierdzenie form.field.translation=Tłumaczenie -harderrors.header=Nie można wykonać:
                      +harderrors.header=Nie można wykonać:
                        image.button.delete=/locales/pl/images/delete.gif image.button.login=/locales/pl/images/login.gif image.button.save=/locales/pl/images/save.gif @@ -190,8 +190,6 @@ page.gen_button.intro=Tutaj możesz wygenerować a następnie wstawić przycisk page.gen_button.sample=Przykład page.gen_button.secure_links=Użyj bezpiecznego połączenia (https) page.gen_button.title=Generowanie kodu przycisku HTML -page.main_layout.meta_description=Live chat, pomoc na żywo oraz wsparcie techniczne z poziomu strony -page.main_layout.meta_keyword=live chat,pomoz na żywo, wsparcie techniczne online page.preview.agentchat=Okno rozmowy (tryb przedstawiciela) page.preview.agentrochat=Pokaż Okno Rozmowy (tryb przedstawiciela tylko do odczytu) page.preview.chatsimple=Proste okno rozmowy, odśwież aby wysłać wiadomości (IE 5, Opera 7) diff --git a/src/messenger/webim/locales/pt-br/properties b/src/messenger/webim/locales/pt-br/properties index 62faa817..2a1f1f9a 100644 --- a/src/messenger/webim/locales/pt-br/properties +++ b/src/messenger/webim/locales/pt-br/properties @@ -83,8 +83,8 @@ demo.chat.welcome=Olá, Como posso lhe ajudar? errors.failed.uploading.file=Erro ao fazer upload do arquivo "{0}": "{1}". errors.file.move.error=Erro ao mover arquivo errors.file.size.exceeded=Tamanho do arquivo excedido. -errors.footer=
                      -errors.header=Corrija os erros:
                        +errors.footer=
                      +errors.header=Corrija os erros:
                        errors.invalid.file.type=Tipo de arquivo inválido errors.prefix=
                      • errors.required=Por favor, preencha "{0}". @@ -115,7 +115,7 @@ form.field.password=Senha form.field.password_confirm.description=Confirme a nova senha. form.field.password_confirm=Confirmação form.field.translation=Tradução -harderrors.header=Impossivel executar:
                          +harderrors.header=Impossivel executar:
                            image.button.delete=/locales/pt-br/images/delete.gif image.button.login=/locales/pt-br/images/login.gif image.button.save=/locales/pt-br/images/save.gif @@ -190,8 +190,6 @@ page.gen_button.intro=Você pode gerar o código HTML para colocar no seu site a page.gen_button.sample=Exemplo page.gen_button.secure_links=Usar link seguro (https) page.gen_button.title=Gerador do código HTML do botão -page.main_layout.meta_description= -page.main_layout.meta_keyword= page.preview.agentchat=Janela do Chat (agent-mode) page.preview.agentrochat=Ver janela do chat (Modo de leitura) page.preview.chatsimple=Janela de chat simples, atualize para mandar mensagens (IE 5, Opera 7) diff --git a/src/messenger/webim/locales/ru/properties b/src/messenger/webim/locales/ru/properties index 718a2c16..085df561 100644 --- a/src/messenger/webim/locales/ru/properties +++ b/src/messenger/webim/locales/ru/properties @@ -83,8 +83,8 @@ demo.chat.welcome= errors.failed.uploading.file= "{0}": {1}. errors.file.move.error= errors.file.size.exceeded= -errors.footer=
                          -errors.header= :
                            +errors.footer=
                          +errors.header= :
                            errors.invalid.file.type= errors.prefix=
                          • errors.required= "{0}". @@ -115,7 +115,7 @@ form.field.password= form.field.password_confirm.description= . form.field.password_confirm= form.field.translation= -harderrors.header= :
                              +harderrors.header= :
                                image.button.delete=/locales/ru/images/delete.gif image.button.login=/locales/ru/images/login.gif image.button.save=/locales/ru/images/save.gif @@ -190,8 +190,6 @@ page.gen_button.intro= page.gen_button.sample= page.gen_button.secure_links= (https) page.gen_button.title= HTML- -page.main_layout.meta_description= , , , online , , -page.main_layout.meta_keyword= , , , , , , , , , , , , , ,,, ,online ,online , online ,online ,online , , , ,-,crm page.preview.agentchat=Chat window (agent-mode) page.preview.agentrochat=View Chat window (agent in readonly mode) page.preview.chatsimple=Simple chat window, refresh to post messages (IE 5, Opera 7) diff --git a/src/messenger/webim/locales/sp/properties b/src/messenger/webim/locales/sp/properties index ffa234c7..7efd42a9 100644 --- a/src/messenger/webim/locales/sp/properties +++ b/src/messenger/webim/locales/sp/properties @@ -81,8 +81,8 @@ demo.chat.welcome=Hola, errors.failed.uploading.file=Error al subir el archivo "{0}": "{1}". errors.file.move.error=Error al mover el archivo errors.file.size.exceeded=Ha excedido el tamao de archivo para subir -errors.footer=
                              -errors.header=Corregir los errores:
                                +errors.footer=
                              +errors.header=Corregir los errores:
                                errors.invalid.file.type=Tipo de archivo invalido errors.prefix=
                              • errors.required=Por favor rellene "{0}". @@ -113,7 +113,7 @@ form.field.password=Password form.field.password_confirm.description=Confirmar nueva contrasea form.field.password_confirm=Confirmacin form.field.translation=Traduccin -harderrors.header=No se puede ejecutar:
                                  +harderrors.header=No se puede ejecutar:
                                    image.button.delete=/locales/sp/images/delete.gif image.button.login=/locales/sp/images/login.gif image.button.save=/locales/sp/images/save.gif @@ -188,8 +188,6 @@ page.gen_button.intro=Puede generar el c page.gen_button.sample=Ejemplo page.gen_button.secure_links=Usa enlace seguro (https) page.gen_button.title=Genera cdigo boton HTML -page.main_layout.meta_description=conversacin , ayuda y soporte en vivo para su sitio web -page.main_layout.meta_keyword=conversacin , ayuda y soporte en vivo page.preview.agentchat=Ventana de Chat (modo-operador) page.preview.agentrochat=Ver ventana de Chat (operador en modo lectura) page.preview.chatsimple=Simple ventana de Chat, enviar mensajes de actualizacin (IE 5, Opera 7) diff --git a/src/messenger/webim/locales/tr/properties b/src/messenger/webim/locales/tr/properties index 34d29975..9f52dec2 100644 --- a/src/messenger/webim/locales/tr/properties +++ b/src/messenger/webim/locales/tr/properties @@ -79,8 +79,8 @@ content.logoff= errors.failed.uploading.file=Ykleme hatas "{0}": {1}. errors.file.move.error=Tama hatas errors.file.size.exceeded=Boyut yksek -errors.footer=
                                  -errors.header=Dzeltilmesi Gereken Hatalar:
                                    +errors.footer=
                                  +errors.header=Dzeltilmesi Gereken Hatalar:
                                    errors.invalid.file.type=Yanl dosya format errors.prefix=
                                  • errors.required="{0}" alannn doldurulmas gerek. @@ -110,7 +110,7 @@ form.field.password= form.field.password_confirm.description=ifreyi tekrar girin form.field.password_confirm=ifre (Tekrar) form.field.translation=eviri -harderrors.header=altrlamad:
                                      +harderrors.header=altrlamad:
                                        image.button.delete=/locales/tr/images/delete.gif image.button.login=/locales/tr/images/login.gif image.button.save=/locales/tr/images/save.gif @@ -184,8 +184,6 @@ page.gen_button.intro=HTML Kod olu page.gen_button.sample=rnek page.gen_button.secure_links=Secure Link kullan (https) page.gen_button.title=HTML Kod oluturucu -page.main_layout.meta_description=Mteri Hizmetleri -page.main_layout.meta_keyword=Mteri Hizmetleri page.preview.agentchat=Mteri Destek Ekran page.preview.agentrochat=Mteri Destek Ekran (Sadece Okunabilir) page.preview.chatsimple=Simple chat window, refresh to post messages (IE 5, Opera 7) diff --git a/src/messenger/webim/locales/ua/properties b/src/messenger/webim/locales/ua/properties index 70bf9c02..46b60906 100644 --- a/src/messenger/webim/locales/ua/properties +++ b/src/messenger/webim/locales/ua/properties @@ -55,8 +55,8 @@ common.asterisk_explanation=* - company.title=Web Messenger Community content.history= content.logoff= . -errors.footer=
                                      -errors.header= :
                                        +errors.footer=
                                      +errors.header= :
                                        errors.prefix=
                                      • errors.required= "{0}". errors.suffix=
                                      • @@ -140,8 +140,6 @@ page.gen_button.intro= page.gen_button.sample= page.gen_button.secure_links= ' (https) page.gen_button.title= HTML- -page.main_layout.meta_description= , , , online , , -page.main_layout.meta_keyword= , , , , 볺, , , , , , , , , ,,, ,online ,online , online ,online ,online , , 볺, ,-,crm page_agent.create_new= page_agent.error.duplicate_login= , .. . page_agent.intro= diff --git a/src/messenger/webim/locales/zh-cn/properties b/src/messenger/webim/locales/zh-cn/properties index c14963fb..ac6d084c 100644 --- a/src/messenger/webim/locales/zh-cn/properties +++ b/src/messenger/webim/locales/zh-cn/properties @@ -81,8 +81,8 @@ demo.chat.welcome=您好,有什麽可以协助您的吗? errors.failed.uploading.file=无法上传档案 "{0}": "{1}". errors.file.move.error=无法移动档案 errors.file.size.exceeded=上传档案尺寸过大 -errors.footer=
                                      -errors.header=修正错误:
                                        +errors.footer=
                                      +errors.header=修正错误:
                                        errors.invalid.file.type=无效的档案格式 errors.prefix=
                                      • errors.required=请输入 "{0}". @@ -113,7 +113,7 @@ form.field.password=密码 form.field.password_confirm.description=再输入一次密码确保密码正确。 form.field.password_confirm=确认密码 form.field.translation=翻译 -harderrors.header=无法执行:
                                          +harderrors.header=无法执行:
                                            image.button.delete=/locales/zh-tw/images/delete.gif image.button.login=/locales/zh-tw/images/login.gif image.button.save=/locales/zh-tw/images/save.gif @@ -188,8 +188,6 @@ page.gen_button.intro=您可以产生 HTML 语法并放在您的网站上. page.gen_button.sample=范例 page.gen_button.secure_links=使用安全连结 (https) page.gen_button.title=产生客服HTML按钮 -page.main_layout.meta_description=Live chat, live help, and live support for websites,即时客服,线上客服系统,直接在网站与客服通话 -page.main_layout.meta_keyword=live chat,live help,live support,即时聊天,即时客服,即时服务,线上服务,线上客服 page.preview.agentchat=对谈视窗 (客服模式) page.preview.agentrochat=检视对谈视窗 (客服唯读模式) page.preview.chatsimple=简单对谈视窗, 更新送出讯息 (IE 5, Opera 7) diff --git a/src/messenger/webim/locales/zh-tw/properties b/src/messenger/webim/locales/zh-tw/properties index 78e2d6ea..abac0d0d 100644 --- a/src/messenger/webim/locales/zh-tw/properties +++ b/src/messenger/webim/locales/zh-tw/properties @@ -81,8 +81,8 @@ demo.chat.welcome=您好,有什麼可以協助您的嗎? errors.failed.uploading.file=無法上傳檔案 "{0}": "{1}". errors.file.move.error=無法移動檔案 errors.file.size.exceeded=上傳檔案尺寸過大 -errors.footer=
                                          -errors.header=修正錯誤:
                                            +errors.footer=
                                          +errors.header=修正錯誤:
                                            errors.invalid.file.type=無效的檔案格式 errors.prefix=
                                          • errors.required=請輸入 "{0}". @@ -113,7 +113,7 @@ form.field.password=密碼 form.field.password_confirm.description=再輸入一次密碼確保密碼正確。 form.field.password_confirm=確認密碼 form.field.translation=翻譯 -harderrors.header=無法執行:
                                              +harderrors.header=無法執行:
                                                image.button.delete=/locales/zh-tw/images/delete.gif image.button.login=/locales/zh-tw/images/login.gif image.button.save=/locales/zh-tw/images/save.gif @@ -188,8 +188,6 @@ page.gen_button.intro=您可以產生 HTML 語法並放在您的網站上. page.gen_button.sample=範例 page.gen_button.secure_links=使用安全連結 (https) page.gen_button.title=產生客服HTML按鈕 -page.main_layout.meta_description=Live chat, live help, and live support for websites,即時客服,線上客服系統,直接在網站與客服通話 -page.main_layout.meta_keyword=live chat,live help,live support,即時聊天,即時客服,即時服務,線上服務,線上客服 page.preview.agentchat=對談視窗 (客服模式) page.preview.agentrochat=檢視對談視窗 (客服唯讀模式) page.preview.chatsimple=簡單對談視窗, 更新送出訊息 (IE 5, Opera 7) diff --git a/src/messenger/webim/operator/preview.php b/src/messenger/webim/operator/preview.php index 9f1f8c64..d7b74f9f 100644 --- a/src/messenger/webim/operator/preview.php +++ b/src/messenger/webim/operator/preview.php @@ -47,6 +47,7 @@ if($showerrors) { 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"); $page['mailLink'] = "$webimroot/operator/preview.php?preview=$preview&show=mail"; + $page['info'] = ""; expand("../styles", "$preview", "$show.tpl"); exit; } diff --git a/src/messenger/webim/view/agent.php b/src/messenger/webim/view/agent.php index 010cd550..4f022102 100644 --- a/src/messenger/webim/view/agent.php +++ b/src/messenger/webim/view/agent.php @@ -11,34 +11,13 @@ * Contributors: * Evgeny Gryaznov - initial API and implementation */ + +require_once("inc_menu.php"); +$page['title'] = getlocal("page_agent.title"); +$page['menuid'] = "operators"; + +function tpl_content() { global $page, $webimroot, $errors; ?> - - - - - - - - - - - <?php echo getlocal("page_agent.title") ?> - <?php echo getlocal("app.title") ?> - - -"> -"> - - - - - - - - -
                                                - -
                                                -

                                                -
                                                |">|">
                                                - @@ -48,86 +27,87 @@

                                                - 0 ) { ?> - - - - - - -
                                                - 0 ) { - print getlocal("errors.header"); - foreach( $errors as $e ) { - print getlocal("errors.prefix"); - print $e; - print getlocal("errors.suffix"); - } - print getlocal("errors.footer"); - } ?> - -
                                                - +
                                                - + +
                                                -
                                                +
                                                  + + $v) { if($v) { ?> +
                                                • + +
                                                • +
                                                -
                                                $v) { if($v) { ?>
                                                - +
                                                -
                                                +
                                                +
                                                +
                                                *
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                -
                                                +
                                                +
                                                *
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                - +
                                                +
                                                *
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                - +
                                                +
                                                *
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                *
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                + +
                                                + +
                                                - - - - - -
                                                *
                                                - -
                                                *
                                                - -
                                                *
                                                - -
                                                *
                                                - -
                                                *
                                                - -
                                                - - -
                                                - - - - - - - - - - - - - - -
                                                - + + +
                                                + + +
                                                + +
                                                -
                                                - - - + diff --git a/src/messenger/webim/view/agents.php b/src/messenger/webim/view/agents.php index b8da0590..feb24241 100644 --- a/src/messenger/webim/view/agents.php +++ b/src/messenger/webim/view/agents.php @@ -11,105 +11,60 @@ * Contributors: * Evgeny Gryaznov - initial API and implementation */ + +require_once("inc_menu.php"); +$page['title'] = getlocal("page_agents.title"); +$page['menuid'] = "operators"; + +function tpl_content() { global $page, $webimroot; ?> - - + + +
                                                +
                                                + +
                                                + + "> + + +
                                                +
                                                - - - - - - - <?php echo getlocal("page_agents.title") ?> - <?php echo getlocal("app.title") ?> - - -"> -"> - - - - - - - - +
                                                - -
                                                -

                                                -
                                                |">
                                                - - - - -

                                                - - - - - - - - - -
                                                - - - - - - -
                                                - "> - - -
                                                -
                                                - - - - - - +
                                                + + + + + - - - + + - -
                                                + + + + + +
                                                - - - - - -
                                                - '> - - -
                                                -
                                                - - - - - -
                                                -
                                                - - - - - -
                                                +
                                                + + + + + + +
                                                -
                                                - - + diff --git a/src/messenger/webim/view/avatar.php b/src/messenger/webim/view/avatar.php index 827631eb..2457ecee 100644 --- a/src/messenger/webim/view/avatar.php +++ b/src/messenger/webim/view/avatar.php @@ -11,119 +11,79 @@ * Contributors: * Evgeny Gryaznov - initial API and implementation */ + +require_once("inc_menu.php"); +$page['title'] = getlocal("page_avatar.title"); +$page['menuid'] = "operators"; + +function tpl_content() { global $page, $webimroot, $errors; ?> - - - - - - - - - - <?php echo getlocal("page_avatar.title") ?> - <?php echo getlocal("app.title") ?> - - -"> -"> - - - - - - - - -
                                                - -
                                                -

                                                -
                                                |">|">
                                                - - - +

                                                - - 0 ) { ?> - - - - - - -
                                                - 0 ) { - print getlocal("errors.header"); - foreach( $errors as $e ) { - print getlocal("errors.prefix"); - print $e; - print getlocal("errors.suffix"); - } - print getlocal("errors.footer"); - } ?> - -
                                                - +
                                                - + +
                                                -
                                                - -
                                                $v) { if($v) { ?>
                                                - - - - +
                                                  - -
                                                - + +
                                                +
                                                + + - +
                                                +
                                                *
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                - - - - - -
                                                - -
                                                - -
                                                - &delete=true'> + $v) { if($v) { ?> +
                                              • + +
                                              • + + +
                                                + +

                                                + +

                                                + +
                                                + + +
                                                +
                                                +
                                                *
                                                - -
                                                - - -
                                                - - - - - - - - - - - - - - -
                                                +
                                                + +
                                                + +
                                                + +
                                                + +
                                                -
                                                - - - + diff --git a/src/messenger/webim/view/blocked_visitors.php b/src/messenger/webim/view/blocked_visitors.php index b833626f..1fed42f3 100644 --- a/src/messenger/webim/view/blocked_visitors.php +++ b/src/messenger/webim/view/blocked_visitors.php @@ -11,137 +11,93 @@ * Contributors: * Evgeny Gryaznov - initial API and implementation */ + +require_once("inc_menu.php"); +$page['title'] = getlocal("page_bans.title"); +$page['menuid'] = "blocked"; + +function tpl_content() { global $page, $webimroot; ?> - - + +
                                                +
                                                +
                                                + + "> + + +
                                                +
                                                - + - - - - <?php echo getlocal("page_bans.title") ?> - <?php echo getlocal("app.title") ?> - - -"> -"> - - - - - - - +
                                                - -
                                                -

                                                -
                                                |">
                                                - - - -
                                                -
                                                - 0 ) { ?> - - - - - - -
                                                - 0 ) { - print getlocal("errors.header"); - foreach( $errors as $e ) { - print getlocal("errors.prefix"); - print $e; - print getlocal("errors.suffix"); - } - print getlocal("errors.footer"); - } ?> - -
                                                - - - - - - - - - - -
                                                - - - - - - -
                                                <?php echo getlocal(">"> - -
                                                -
                                                - - - - - - - - - - - - - - - - - - - - -
                                                - - - - - - -
                                                - - - - - - - 30 ) { ?> - ... - - - - - - - - -
                                                -
                                                - - - -
                                                - -
                                                - - -
                                                + + + + + + + + + + + + + + + + + +
                                                + + + + + + +
                                                + + + + + + + 30 ) { + echo htmlspecialchars(substr(topage($b['comment']),0,30)); + } else { + echo htmlspecialchars(topage($b['comment'])); + } +?> + + + remove + +
                                                + +
                                                +"; + echo generate_pagination($page['pagination']); + } +} +?> - - + \ No newline at end of file diff --git a/src/messenger/webim/view/features.php b/src/messenger/webim/view/features.php index 6caa0a14..824dc0ff 100644 --- a/src/messenger/webim/view/features.php +++ b/src/messenger/webim/view/features.php @@ -11,95 +11,78 @@ * Contributors: * Evgeny Gryaznov - initial API and implementation */ + +require_once("inc_menu.php"); +$page['title'] = getlocal("settings.title"); +$page['menuid'] = "settings"; + +function tpl_content() { global $page, $webimroot; ?> - - - - - - - - - - <?php echo getlocal("settings.title") ?> - <?php echo getlocal("app.title") ?> - - -"> -"> - - - - - - - - -
                                                - -
                                                -

                                                -
                                                |">
                                                - - - +

                                                - 0 ) { ?> - - - - - - -
                                                - 0 ) { - print getlocal("errors.header"); - foreach( $errors as $e ) { - print getlocal("errors.prefix"); - print $e; - print getlocal("errors.suffix"); - } - print getlocal("errors.footer"); - } ?> - -
                                                - +
                                                - +
                                                -
                                                +
                                                  + + $v) { if($v) { ?> +
                                                • + +
                                                • +
                                                -
                                                $v) { if($v) { ?>
                                                - +
                                                -
                                                +
                                                +
                                                +
                                                +
                                                + /> +
                                                +
                                                +
                                                +
                                                -
                                                +
                                                +
                                                +
                                                + /> +
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                +
                                                + /> +
                                                +
                                                +
                                                +
                                                - - - - +
                                                + +
                                                -
                                                - /> -
                                                - /> -
                                                - /> -
                                                - -
                                                + + +
                                                +
                                                -
                                                - - - + \ No newline at end of file diff --git a/src/messenger/webim/view/gen_button.php b/src/messenger/webim/view/gen_button.php index 6ed71f00..4b020966 100644 --- a/src/messenger/webim/view/gen_button.php +++ b/src/messenger/webim/view/gen_button.php @@ -11,127 +11,82 @@ * Contributors: * Evgeny Gryaznov - initial API and implementation */ + +require_once("inc_menu.php"); +$page['title'] = getlocal("page.gen_button.title"); +$page['menuid'] = "getcode"; + +function tpl_content() { global $page, $webimroot; ?> - - - - - - - - - - <?php echo getlocal("page.gen_button.title") ?> - <?php echo getlocal("app.title") ?> - - -"> -"> - - - - - - - - -
                                                - -
                                                -

                                                -
                                                |">
                                                - - - +

                                                -
                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
                                                + +
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                + +
                                                +
                                                +
                                                + +
                                                +
                                                + +
                                                +
                                                +
                                                + +
                                                +
                                                + +
                                                +
                                                +
                                                + onchange="this.form.submit();"/> +
                                                +
                                                + -
                                                - - - - - - - + +
                                                +
                                                +
                                                + onchange="this.form.submit();"/> +
                                                +
                                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                - -
                                                - -
                                                - -
                                                - onchange="this.form.submit();"/> -
                                                - onchange="this.form.submit();"/> -
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                +
                                                + +
                                                +
                                                + + +
                                                -
                                                - - + \ No newline at end of file diff --git a/src/messenger/webim/view/inc_errors.php b/src/messenger/webim/view/inc_errors.php new file mode 100644 index 00000000..8e8eb670 --- /dev/null +++ b/src/messenger/webim/view/inc_errors.php @@ -0,0 +1,15 @@ + 0 ) { ?> +
                                                + + +
                                                +
                                                + diff --git a/src/messenger/webim/view/inc_locales.php b/src/messenger/webim/view/inc_locales.php new file mode 100644 index 00000000..9ed2e6f8 --- /dev/null +++ b/src/messenger/webim/view/inc_locales.php @@ -0,0 +1,19 @@ +\n

                                                locales

                                                \n
                                                  \n"; + foreach($page['localeLinks'] as $id => $title) { + $page['right_menu'] .= "$title\n"; + } + $page['right_menu'] .= "
                                                \n"; +} +?> \ No newline at end of file diff --git a/src/messenger/webim/view/inc_main.php b/src/messenger/webim/view/inc_main.php new file mode 100644 index 00000000..18d599ae --- /dev/null +++ b/src/messenger/webim/view/inc_main.php @@ -0,0 +1,50 @@ + + + + + + + <?php echo $page['title'] ?> - <?php echo getlocal("app.title") ?> + + + + + +
                                                + + +
                                                + +
                                                +
                                                + +
                                                +
                                                + + + + +
                                                 
                                                + +
                                                 
                                                +
                                                + + + \ No newline at end of file diff --git a/src/messenger/webim/view/inc_menu.php b/src/messenger/webim/view/inc_menu.php new file mode 100644 index 00000000..4b2b042a --- /dev/null +++ b/src/messenger/webim/view/inc_menu.php @@ -0,0 +1,39 @@ + +
                                              • +

                                                main

                                                + +
                                              • +
                                              • +

                                                administration

                                                + +
                                              • +
                                              • +

                                                other

                                                + +
                                              • + diff --git a/src/messenger/webim/view/install_err.php b/src/messenger/webim/view/install_err.php new file mode 100644 index 00000000..7e2c053d --- /dev/null +++ b/src/messenger/webim/view/install_err.php @@ -0,0 +1,30 @@ + + + + + + \ No newline at end of file diff --git a/src/messenger/webim/view/install_index.php b/src/messenger/webim/view/install_index.php new file mode 100644 index 00000000..dc8e6f1c --- /dev/null +++ b/src/messenger/webim/view/install_index.php @@ -0,0 +1,59 @@ + + +
                                                +
                                                + + + + +
                                                +
                                                + +
                                                  + +
                                                • + +
                                                + +

                                                + +
                                                  +
                                                • +

                                                  + +
                                                • +
                                                + +
                                                +
                                                + + +
                                                + + + + \ No newline at end of file diff --git a/src/messenger/webim/view/login.php b/src/messenger/webim/view/login.php index 47a1076d..5cad58b9 100644 --- a/src/messenger/webim/view/login.php +++ b/src/messenger/webim/view/login.php @@ -11,115 +11,80 @@ * Contributors: * Evgeny Gryaznov - initial API and implementation */ + +require_once('inc_locales.php'); +$page['title'] = getlocal("page_login.title"); + +function rightmenu_content() { global $page, $webimroot, $errors, $current_locale; + $message = get_image(get_app_location(false,false)."/button.php?image=webim&lang=$current_locale", 0, 0); + $code = generate_button("",$current_locale,"",$message,false,false); ?> - - +
                                              • +

                                                contact us

                                                + +
                                              • + + +
                                                +
                                                - - - - - - - <?php echo getlocal("page_login.title") ?> - <?php echo getlocal("app.title") ?> - - -"> -"> - - - - - - - - -
                                                - -

                                                - - - - - - 0 ) { ?> - - - - - - -
                                                - 0 ) { - print getlocal("errors.header"); - foreach( $errors as $e ) { - print getlocal("errors.prefix"); - print $e; - print getlocal("errors.suffix"); - } - print getlocal("errors.footer"); - } ?> - -
                                                - +
                                                -
                                                - - - +
                                                + +
                                                - + + +
                                                - - +
                                                + +
                                                - -
                                                - - - - - - + +
                                                +
                                                -
                                                - - +
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                +
                                                -
                                                - - - - +
                                                +
                                                +
                                                + +
                                                +
                                                +
                                                - - - +
                                                +
                                                 
                                                +
                                                + +
                                                +
                                                +
                                                - - - - - -
                                                - - - - - - -
                                                />
                                                -
                                                -
                                                -
                                                +
                                                -
                                                Open Web Messenger» -
                                                - - - + \ No newline at end of file diff --git a/src/messenger/webim/view/menu.php b/src/messenger/webim/view/menu.php index 5446a66f..b89d6634 100644 --- a/src/messenger/webim/view/menu.php +++ b/src/messenger/webim/view/menu.php @@ -11,84 +11,78 @@ * Contributors: * Evgeny Gryaznov - initial API and implementation */ + +require_once("inc_menu.php"); +$page['title'] = getlocal("topMenu.admin"); +$page['menuid'] = "main"; + +function tpl_content() { global $page, $webimroot; ?> - - - - - - - - - - - <?php echo getlocal("topMenu.admin") ?> - <?php echo getlocal("app.title") ?> - - -"> -"> - - - - - - - - -
                                                - -
                                                -

                                                -
                                                - -
                                                -
                                                +
                                                +

                                                - +
                                                - -
                                                - - +
                                                + + + +
                                                - - - - - +
                                                + + + +
                                                - + +
                                                + + + +
                                                + - +
                                                + +
                                                + + + +
                                                + +
                                                + + + +
                                                + +
                                                + + + +
                                                - +
                                                -





















                                                +
                                                + + + +
                                                - - - - - - - - - - -
                                                - -«Open Web Messenger» - -
                                                - - - + + + \ No newline at end of file diff --git a/src/messenger/webim/view/permissions.php b/src/messenger/webim/view/permissions.php index 764ad248..4f34ab28 100644 --- a/src/messenger/webim/view/permissions.php +++ b/src/messenger/webim/view/permissions.php @@ -11,96 +11,55 @@ * Contributors: * Evgeny Gryaznov - initial API and implementation */ + +require_once("inc_menu.php"); +$page['title'] = getlocal("permissions.title"); +$page['menuid'] = "operators"; + +function tpl_content() { global $page, $webimroot; ?> - - - - - - - - - - <?php echo getlocal("permissions.title") ?> - <?php echo getlocal("app.title") ?> - - -"> -"> - - - - - - - - -
                                                - -
                                                -

                                                -
                                                |">|">
                                                - - - +

                                                - - 0 ) { ?> - - - - - - -
                                                - 0 ) { - print getlocal("errors.header"); - foreach( $errors as $e ) { - print getlocal("errors.prefix"); - print $e; - print getlocal("errors.suffix"); - } - print getlocal("errors.footer"); - } ?> - -
                                                - +
                                                - + +
                                                -
                                                - -
                                                $v) { if($v) { ?>
                                                - - - - +
                                                  + $v) { if($v) { ?> +
                                                • + +
                                                • +
                                                + +
                                                + +

                                                + +

                                                -
                                                - - + +
                                                - - - - +
                                                + +
                                                -
                                                - -
                                                - -
                                                - - -
                                                +
                                                +
                                                -
                                                - - - + \ No newline at end of file diff --git a/src/messenger/webim/view/preview.php b/src/messenger/webim/view/preview.php index 61247022..90b9bc20 100644 --- a/src/messenger/webim/view/preview.php +++ b/src/messenger/webim/view/preview.php @@ -11,98 +11,73 @@ * Contributors: * Evgeny Gryaznov - initial API and implementation */ + +require_once("inc_menu.php"); +$page['title'] = getlocal("page.preview.title"); +$page['menuid'] = "settings"; + +function tpl_content() { global $page, $webimroot; ?> - - - - - - - - - - <?php echo getlocal("page.preview.title") ?> - <?php echo getlocal("app.title") ?> - - -"> -"> - - - - - - - - -
                                                - -
                                                -

                                                -
                                                |">
                                                - - - +

                                                - +
                                                -
                                                +
                                                  + + $v) { if($v) { ?> +
                                                • + +
                                                • +
                                                -
                                                $v) { if($v) { ?>
                                                - - - - - - - - - - - - - - - +
                                                + +
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                -
                                                - - - - - - - +
                                                +
                                                +
                                                + onchange="this.form.submit();"/> +
                                                +
                                                - - - - - - - - + + -
                                                - -
                                                - -
                                                - onchange="this.form.submit();"/> -
                                                - link -
                                                - -
                                                + + +
                                                +
                                                -
                                                - - + diff --git a/src/messenger/webim/view/settings.php b/src/messenger/webim/view/settings.php index a9999426..19dad91e 100644 --- a/src/messenger/webim/view/settings.php +++ b/src/messenger/webim/view/settings.php @@ -11,135 +11,137 @@ * Contributors: * Evgeny Gryaznov - initial API and implementation */ + +require_once("inc_menu.php"); +$page['title'] = getlocal("settings.title"); +$page['menuid'] = "settings"; + +function tpl_content() { global $page, $webimroot, $errors; ?> - - - - - - - - - - <?php echo getlocal("settings.title") ?> - <?php echo getlocal("app.title") ?> - - -"> -"> - - - - - - - - -
                                                - -
                                                -

                                                -
                                                |">
                                                - - - +

                                                - 0 ) { ?> - - - - - - -
                                                - 0 ) { - print getlocal("errors.header"); - foreach( $errors as $e ) { - print getlocal("errors.prefix"); - print $e; - print getlocal("errors.suffix"); - } - print getlocal("errors.footer"); - } ?> - -
                                                - +
                                                - + +
                                                -
                                                +
                                                  + + $v) { if($v) { ?> +
                                                • + +
                                                • +
                                                -
                                                $v) { if($v) { ?>
                                                - +
                                                -
                                                +
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                -
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                - +
                                                +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                - +
                                                +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                - +
                                                +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                - +
                                                +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                - +
                                                +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                - +
                                                +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                - - - - - -
                                                - -
                                                - -
                                                - -
                                                - -
                                                - -
                                                - -
                                                - -
                                                - -
                                                - -
                                                - -
                                                - - - - - - - - - - - - - - -
                                                +
                                                + +
                                                + + +
                                                + + +
                                                + +
                                                -
                                                - - - + \ No newline at end of file diff --git a/src/messenger/webim/view/thread_search.php b/src/messenger/webim/view/thread_search.php index 025c3f6a..2d52fb5b 100644 --- a/src/messenger/webim/view/thread_search.php +++ b/src/messenger/webim/view/thread_search.php @@ -11,105 +11,103 @@ * Contributors: * Evgeny Gryaznov - initial API and implementation */ + +require_once("inc_menu.php"); +$page['title'] = getlocal("page_analysis.search.title"); +$page['menuid'] = "history"; + +function tpl_content() { global $page, $webimroot; ?> - - - - - - - - - - <?php echo getlocal("page_analysis.search.title") ?> - <?php echo getlocal("app.title") ?> - - -"> -"> - - - - - - - - + + + + + +
                                                - -
                                                -

                                                -
                                                |">
                                                - - - +

                                                - - -
                                                -
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                +
                                                + +
                                                + +
                                                + + + + +
                                                + + + + + + - - - - - - - + + + + -
                                                + + + + + + + + + +
                                                - + + + + + + + + + + ,
                                                - - -
                                                - - - - - - - - - - - - - - - - - - - -
                                                - - - - - - - - - , -
                                                -
                                                - - - -

                                                -
                                                - - - -
                                                - - -
                                                + +
                                                +"; + echo generate_pagination($page['pagination']); + } +} +?> - - + \ No newline at end of file diff --git a/src/messenger/webim/view/updates.php b/src/messenger/webim/view/updates.php index e7b42ef3..dcd9436b 100644 --- a/src/messenger/webim/view/updates.php +++ b/src/messenger/webim/view/updates.php @@ -11,81 +11,51 @@ * Contributors: * Evgeny Gryaznov - initial API and implementation */ + +require_once("inc_menu.php"); +$page['title'] = getlocal("updates.title"); +$page['menuid'] = "settings"; + +function tpl_content() { global $page, $webimroot; ?> - - - - - - - - - - <?php echo getlocal("updates.title") ?> - <?php echo getlocal("app.title") ?> - - -"> -"> - - - - - - - - -
                                                - -
                                                -

                                                -
                                                |">
                                                - - - +

                                                - - +
                                                -
                                                +
                                                  + + $v) { if($v) { ?> +
                                                • + +
                                                • +
                                                -
                                                $v) { if($v) { ?>
                                                - - - - - - - - - - - - - - - - - - - - - - - -
                                                You are using:
                                                +
                                                + + You are using:
                                                «Open Web Messenger» -
                                                Installed localizations:
                                                + +

                                                + + Installed localizations:
                                                -
                                                Environment:
                                                + +

                                                + + Environment:
                                                PHP -
                                                + +
                                                + +
                                                + -
                                                - - - +