Update views with a new layout

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@402 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2009-03-12 01:07:35 +00:00
parent 5f60d241a2
commit dc3c6ebdaa
48 changed files with 1548 additions and 1451 deletions

View File

@ -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;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

View File

@ -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;
}

View File

@ -150,5 +150,5 @@ function check_status() {
check_status();
start_html_output();
require('view_index.php');
require('../view/install_index.php');
?>

View File

@ -1,108 +0,0 @@
<?php
/*
* 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
*
* Contributors:
* Evgeny Gryaznov - initial API and implementation
*/
?>
<html>
<head>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo getlocal("install.title") ?> - <?php echo getlocal("app.title") ?>
</title>
<meta http-equiv="keywords" content="<?php echo getlocal("page.main_layout.meta_keyword") ?>">
<meta http-equiv="description" content="<?php echo getlocal("page.main_layout.meta_description") ?>">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#2971C1" vlink="#2971C1" alink="#2971C1">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td valign="top" class="text">
<h1><?php echo getlocal("install.title") ?></h1>
<?php echo getlocal("install.message") ?>
<br />
<br />
<?php if( isset($errors) && count($errors) > 0 ) { ?>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top"><img src='<?php echo $webimroot ?>/images/icon_err.gif' width="40" height="40" border="0" alt="" /></td>
<td width="10"></td>
<td class="text">
<?php if( isset($errors) && count($errors) > 0 ) {
print getlocal("errors.header");
foreach( $errors as $e ) {
print getlocal("errors.prefix");
print $e;
print getlocal("errors.suffix");
}
print getlocal("errors.footer");
} ?>
</td>
</tr>
</table>
<?php } ?>
<?php if( $page['done'] ) { ?>
<table cellspacing='0' cellpadding='0' border='0'><tr><td background='<?php echo $webimroot ?>/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrt.gif' width='16' height='16' border='0' alt=''></td></tr><tr><td></td><td align='center'><table border='0' cellspacing='0' cellpadding='0'><tr><td align="left" class="text">
<?php echo getlocal("install.done") ?>
<ul>
<?php foreach( $page['done'] as $info ) { ?>
<li><?php echo $info ?></li>
<?php } ?>
</ul>
</td></tr>
<?php if( $page['nextstep'] ) { ?>
<tr><td align="left" class="text">
<?php echo getlocal("install.next") ?>
<ul>
<li>
<?php if( $page['nextnotice'] ) { ?><?php echo $page['nextnotice'] ?><br/><br/><?php } ?>
<a href="<?php echo $page['nextstepurl'] ?>"><?php echo $page['nextstep'] ?></a>
</li>
</ul>
</td></tr>
<?php } ?>
</table></td><td></td></tr><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table>
<?php } ?>
<table width="200" cellspacing="0" cellpadding="0" border="0">
<tr>
<td height="20"></td>
</tr>
<tr>
<td bgcolor="#D6D6D6"><img src='<?php echo $webimroot ?>/images/free.gif' height="1" width="1" border="0" alt=""></td>
</tr>
<tr>
<td height="7"></td>
</tr>
</table>
&laquo;<span style="color:#bb5500;">Open</span> Web Messenger&raquo; <?php echo $page['version'] ?> &bull; <?php echo $page['localeLinks'] ?> &bull; <a href="<?php echo $webimroot ?>/epl-v10.html" target="_blank"><?php echo getlocal("install.license") ?></a>
</td>
</tr>
</table>
</body>
</html>

View File

@ -1,85 +0,0 @@
<?php
/*
* 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
*
* Contributors:
* Evgeny Gryaznov - initial API and implementation
*/
?>
<html>
<head>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo getlocal("install.err.title") ?> - <?php echo getlocal("app.title") ?>
</title>
<meta http-equiv="keywords" content="<?php echo getlocal("page.main_layout.meta_keyword") ?>">
<meta http-equiv="description" content="<?php echo getlocal("page.main_layout.meta_description") ?>">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#2971C1" vlink="#2971C1" alink="#2971C1">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td valign="top" class="text">
<h1><?php echo getlocal("install.err.title") ?></h1>
<?php if( isset($errors) && count($errors) > 0 ) { ?>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top"><img src='<?php echo $webimroot ?>/images/icon_err.gif' width="40" height="40" border="0" alt="" /></td>
<td width="10"></td>
<td class="text">
<?php if( isset($errors) && count($errors) > 0 ) {
print getlocal("errors.header");
foreach( $errors as $e ) {
print getlocal("errors.prefix");
print $e;
print getlocal("errors.suffix");
}
print getlocal("errors.footer");
} ?>
</td>
</tr>
</table>
<?php } ?>
<br/>
<?php echo getlocal("install.err.back") ?>
<table width="200" cellspacing="0" cellpadding="0" border="0">
<tr>
<td height="20"></td>
</tr>
<tr>
<td bgcolor="#D6D6D6"><img src='<?php echo $webimroot ?>/images/free.gif' height="1" width="1" border="0" alt=""></td>
</tr>
<tr>
<td height="7"></td>
</tr>
</table>
&laquo;<span style="color:#bb5500;">Open</span> Web Messenger&raquo; <?php echo $page['version'] ?> &bull; <?php echo $page['localeLinks'] ?> &bull; <a href="<?php echo $webimroot ?>/epl-v10.html" target="_blank"><?php echo getlocal("install.license") ?></a>
</td>
</tr>
</table>
</body>
</html>

View File

@ -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)

View File

@ -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%";
};

View File

@ -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 .= " &bull; ";
if( $k == $current_locale )
$localeLinks .= getlocal_($k, "names");
else
$localeLinks .= "<a href=\"$href?locale=$k\">".getlocal_($k, "names")."</a>";
$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 "<a href=\"$href\" target=\"_blank\" ".($title?"title=\"$title\" ":"")."onclick=\"if(navigator.userAgent.toLowerCase().indexOf('opera') != -1 && window.event.preventDefault) window.event.preventDefault();this.newWindow = window.open($jshref, '$wndName', '$options');this.newWindow.focus();this.newWindow.opener=window;return false;\">$message</a>";
return "<a href=\"$href\" target=\"_blank\" ".($title?"title=\"$title\" ":"")."onclick=\"if(navigator.userAgent.toLowerCase().indexOf('opera') != -1 &amp;&amp; window.event.preventDefault) window.event.preventDefault();this.newWindow = window.open($jshref, '$wndName', '$options');this.newWindow.focus();this.newWindow.opener=window;return false;\">$message</a>";
}
function get_image($href,$width,$height) {
if( $width != 0 && $height != 0 )
return "<img src=\"$href\" border=\"0\" width=\"$width\" height=\"$height\"/>";
return "<img src=\"$href\" border=\"0\"/>";
return "<img src=\"$href\" border=\"0\" width=\"$width\" height=\"$height\" alt=\"\"/>";
return "<img src=\"$href\" border=\"0\" alt=\"\"/>";
}
function get_gifimage_size($filename) {

View File

@ -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 "<a href=\"$href\" class=\"pagelink\">$title</a>";
return "<a href=\"".htmlspecialchars($href)."\" class=\"pagelink\">$title</a>";
}
function generate_pagination_image($id) {
function generate_pagination_image($id,$alt) {
global $webimroot;
return "<img src=\"$webimroot/images/$id.gif\" border=\"0\"/>";
return "<img src=\"$webimroot/images/$id.gif\" border=\"0\" alt=\"".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.="</div>";
}

View File

@ -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=</ul></font>
errors.header=<font color="#c13030"><b>Fehler korrigieren:</b><br/><ul>
errors.footer=</ul>
errors.header=<b>Fehler korrigieren:</b><br/><ul>
errors.invalid.file.type=Falscher Dateityp
errors.prefix=<li class="error">
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=<font color="#c13030"><b>Fehlgeschlagen:</b><br/><ul>
harderrors.header=<b>Fehlgeschlagen:</b><br/><ul>
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)

View File

@ -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 <a href="ban.php?id={1}">here</a> 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=</ul></font>
errors.header=<font color="#c13030"><b>Correct the mistakes:</b><br/><ul>
errors.footer=</ul>
errors.header=<b>Correct the mistakes:</b><br/><ul>
errors.invalid.file.type=Invalid file type
errors.prefix=<li class="error">
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<br/> 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 <br/>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=<font color="#c13030"><b>Cannot execute:</b><br/><ul>
harderrors.header=<b>Cannot execute:</b><br/><ul>
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

View File

@ -81,8 +81,8 @@ demo.chat.welcome=Bienvenue, que puis-je faire pour vous?
errors.failed.uploading.file=Erreur de téléchargement "{0}": "{1}".
errors.file.move.error=Erreur de transfert de fichier
errors.file.size.exceeded=Taille excessive du fichier téléchargé
errors.footer=</ul></font>
errors.header=<font color="#c13030"><b>Corrigez les erreurs:</b><br/><ul>
errors.footer=</ul>
errors.header=<b>Corrigez les erreurs:</b><br/><ul>
errors.invalid.file.type=Type de fichier non valide
errors.prefix=<li class="error">
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=<font color="#c13030"><b>Exécution impossible:</b><br/><ul>
harderrors.header=<b>Exécution impossible:</b><br/><ul>
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 sécurisé utilisé (https)
page.gen_button.title=Générer 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 instantanée
page.preview.agentchat=Fenêtre de dialogue (mode-agent)
page.preview.agentrochat=Aperçu de la fenêtre de dialogue de l'Agent
page.preview.chatsimple=Simple fenêtre de discussion, actualiser pour envoyer des messages (IE 5, Opera 7)

View File

@ -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=</ul></font>
errors.header=<font color="#c13030"><b>Correggere gli errori:</b><br/><ul>
errors.footer=</ul>
errors.header=<b>Correggere gli errori:</b><br/><ul>
errors.invalid.file.type=Tipo di file non valido
errors.prefix=<li class="error">
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=<font color="#c13030"><b>Non eseguito:</b><br/><ul>
harderrors.header=<b>Non eseguito:</b><br/><ul>
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)

View File

@ -57,8 +57,8 @@ clients.title=Gaidījušo apmeklētāju saraksts
common.asterisk_explanation=<b><font class="red">*</font></b> - laukumi, obligātai aizpildīšanai
content.history=Meklēšana pēc dialogu vēsturi
content.logoff=Atstāt sistēmu.
errors.footer=</ul></font>
errors.header=<font color="#c13030"><b>Izlabojiet kļūdas:</b><br/><ul>
errors.footer=</ul>
errors.header=<b>Izlabojiet kļūdas:</b><br/><ul>
errors.prefix=<li class="error">
errors.required=Aizpildiet laukumu "{0}".
errors.suffix=</li>

View File

@ -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

View File

@ -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=</ul></font>
errors.header=<font color="#c13030"><b>Popraw błędy:</b><br/><ul>
errors.footer=</ul>
errors.header=<b>Popraw błędy:</b><br/><ul>
errors.invalid.file.type=Nieprawidłowy typ pliku
errors.prefix=<li class="error">
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=<font color="#c13030"><b>Nie można wykonać:</b><br/><ul>
harderrors.header=<b>Nie można wykonać:</b><br/><ul>
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)

View File

@ -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=</ul></font>
errors.header=<font color="#c13030"><b>Corrija os erros:</b><br/><ul>
errors.footer=</ul>
errors.header=<b>Corrija os erros:</b><br/><ul>
errors.invalid.file.type=Tipo de arquivo inválido
errors.prefix=<li class="error">
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=<font color="#c13030"><b>Impossivel executar:</b><br/><ul>
harderrors.header=<b>Impossivel executar:</b><br/><ul>
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)

View File

@ -83,8 +83,8 @@ demo.chat.welcome=
errors.failed.uploading.file=Îøèáêà âûãðóçêè ôàéëà "{0}": {1}.
errors.file.move.error=Îøèáêà êîïèðîâàíèÿ ôàéëà
errors.file.size.exceeded=Ïðåâûøåí äîïóñòèìûé ðàçìåð ôàéëà
errors.footer=</ul></font>
errors.header=<font color="#c13030"><b>Исправьте ошибки:</b><br/><ul>
errors.footer=</ul>
errors.header=<b>Èñïðàâüòå îøèáêè:</b><br/><ul>
errors.invalid.file.type=Íåäîïóñòèìûé ôîðìàò ôàéëà
errors.prefix=<li class="error">
errors.required=Çàïîëíèòå ïîëå "{0}".
@ -115,7 +115,7 @@ form.field.password=
form.field.password_confirm.description=Ïîäòâåðäèòå ââåäåííûé ïàðîëü.
form.field.password_confirm=Ïîäòâåðæäåíèå
form.field.translation=Òåêñò ïåðåâîäà
harderrors.header=<font color="#c13030"><b>Невозможно выполнить:</b><br/><ul>
harderrors.header=<b>Íåâîçìîæíî âûïîëíèòü:</b><br/><ul>
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)

View File

@ -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 tamaño de archivo para subir
errors.footer=</ul></font>
errors.header=<font color="#c13030"><b>Corregir los errores:</b><br/><ul>
errors.footer=</ul>
errors.header=<b>Corregir los errores:</b><br/><ul>
errors.invalid.file.type=Tipo de archivo invalido
errors.prefix=<li class="error">
errors.required=Por favor rellene "{0}".
@ -113,7 +113,7 @@ form.field.password=Password
form.field.password_confirm.description=Confirmar nueva contraseña
form.field.password_confirm=Confirmación
form.field.translation=Traducción
harderrors.header=<font color="#c13030"><b>No se puede ejecutar:</b><br/><ul>
harderrors.header=<b>No se puede ejecutar:</b><br/><ul>
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 código boton HTML
page.main_layout.meta_description=conversación , ayuda y soporte en vivo para su sitio web
page.main_layout.meta_keyword=conversación , 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 actualización (IE 5, Opera 7)

View File

@ -79,8 +79,8 @@ content.logoff=
errors.failed.uploading.file=Yükleme hatasý "{0}": {1}.
errors.file.move.error=Taþýma hatasý
errors.file.size.exceeded=Boyut yüksek
errors.footer=</ul></font>
errors.header=<font color="#c13030"><b>Düzeltilmesi Gereken Hatalar:</b><br/><ul>
errors.footer=</ul>
errors.header=<b>Düzeltilmesi Gereken Hatalar:</b><br/><ul>
errors.invalid.file.type=Yanlýþ dosya formatý
errors.prefix=<li class="error">
errors.required="{0}" alanýnýn 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=<font color="#c13030"><b>Çalýþtýrýlamadý:</b><br/><ul>
harderrors.header=<b>Çalýþtýrýlamadý:</b><br/><ul>
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 oluþturucu
page.main_layout.meta_description=Müþteri Hizmetleri
page.main_layout.meta_keyword=Müþteri Hizmetleri
page.preview.agentchat=Müþteri Destek Ekraný
page.preview.agentrochat=Müþteri Destek Ekraný (Sadece Okunabilir)
page.preview.chatsimple=Simple chat window, refresh to post messages (IE 5, Opera 7)

View File

@ -55,8 +55,8 @@ common.asterisk_explanation=<b><font class="red">*</font></b> -
company.title=Web Messenger Community
content.history=Ïîøóê ïî ³ñòî𳿠ä³àëîã³â
content.logoff=Çàëèøèòè ñèñòåìó.
errors.footer=</ul></font>
errors.header=<font color="#c13030"><b>Виправте помилки:</b><br/><ul>
errors.footer=</ul>
errors.header=<b>Âèïðàâòå ïîìèëêè:</b><br/><ul>
errors.prefix=<li class="error">
errors.required=Çàïîâí³òü ïîëå "{0}".
errors.suffix=</li>
@ -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=Íà ö³é ñòîð³íö³ Âè ìîæåòå â³äðåäàãóâàòè äàí³ îïåðàòîð³â

View File

@ -81,8 +81,8 @@ demo.chat.welcome=您好,有什麽可以协助您的吗?
errors.failed.uploading.file=无法上传档案 "{0}": "{1}".
errors.file.move.error=无法移动档案
errors.file.size.exceeded=上传档案尺寸过大
errors.footer=</ul></font>
errors.header=<font color="#c13030"><b>修正错误:</b><br/><ul>
errors.footer=</ul>
errors.header=<b>修正错误:</b><br/><ul>
errors.invalid.file.type=无效的档案格式
errors.prefix=<li class="error">
errors.required=请输入 "{0}".
@ -113,7 +113,7 @@ form.field.password=密码
form.field.password_confirm.description=再输入一次密码确保密码正确。
form.field.password_confirm=确认密码
form.field.translation=翻译
harderrors.header=<font color="#c13030"><b>无法执行:</b><br/><ul>
harderrors.header=<b>无法执行:</b><br/><ul>
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)

View File

@ -81,8 +81,8 @@ demo.chat.welcome=您好,有什麼可以協助您的嗎?
errors.failed.uploading.file=無法上傳檔案 "{0}": "{1}".
errors.file.move.error=無法移動檔案
errors.file.size.exceeded=上傳檔案尺寸過大
errors.footer=</ul></font>
errors.header=<font color="#c13030"><b>修正錯誤:</b><br/><ul>
errors.footer=</ul>
errors.header=<b>修正錯誤:</b><br/><ul>
errors.invalid.file.type=無效的檔案格式
errors.prefix=<li class="error">
errors.required=請輸入 "{0}".
@ -113,7 +113,7 @@ form.field.password=密碼
form.field.password_confirm.description=再輸入一次密碼確保密碼正確。
form.field.password_confirm=確認密碼
form.field.translation=翻譯
harderrors.header=<font color="#c13030"><b>無法執行:</b><br/><ul>
harderrors.header=<b>無法執行:</b><br/><ul>
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)

View File

@ -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&amp;show=mail";
$page['info'] = "";
expand("../styles", "$preview", "$show.tpl");
exit;
}

View File

@ -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;
?>
<html>
<head>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo getlocal("page_agent.title") ?> - <?php echo getlocal("app.title") ?>
</title>
<meta http-equiv="keywords" content="<?php echo getlocal("page.main_layout.meta_keyword") ?>">
<meta http-equiv="description" content="<?php echo getlocal("page.main_layout.meta_description") ?>">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#2971C1" vlink="#2971C1" alink="#2971C1">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td valign="top" class="text">
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" valign="top">
<h1><?php echo getlocal("page_agent.title") ?></h1>
</td><td align="right" class="text" valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td class="textform"><?php echo getlocal2("menu.operator",array($page['operator'])) ?></td><td class="textform"><img src='<?php echo $webimroot ?>/images/topdiv.gif' width="25" height="15" border="0" alt="|" /></td><td class="textform"><a href="<?php echo $webimroot ?>/operator/operators.php" title="<?php echo getlocal("menu.agents") ?>"><?php echo getlocal("menu.agents") ?></a></td><td class="textform"><img src='<?php echo $webimroot ?>/images/topdiv.gif' width="25" height="15" border="0" alt="|" /></td><td class="textform"><a href="<?php echo $webimroot ?>/operator/index.php" title="<?php echo getlocal("menu.main") ?>"><?php echo getlocal("menu.main") ?></a></td></tr></table></td></tr></table>
<?php if( $page['opid'] ) { ?>
<?php echo getlocal("page_agent.intro") ?>
@ -48,86 +27,87 @@
<?php } ?>
<br />
<br />
<?php if( isset($errors) && count($errors) > 0 ) { ?>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top"><img src='<?php echo $webimroot ?>/images/icon_err.gif' width="40" height="40" border="0" alt="" /></td>
<td width="10"></td>
<td class="text">
<?php if( isset($errors) && count($errors) > 0 ) {
print getlocal("errors.header");
foreach( $errors as $e ) {
print getlocal("errors.prefix");
print $e;
print getlocal("errors.suffix");
}
print getlocal("errors.footer");
} ?>
</td>
</tr>
</table>
<?php } ?>
<?php
require_once('inc_errors.php');
?>
<form name="agentForm" method="post" action="<?php echo $webimroot ?>/operator/operator.php">
<table cellspacing='0' cellpadding='0' border='0'>
<input type="hidden" name="opid" value="<?php echo $page['opid'] ?>"/>
<div>
<?php if($page['tabs']) { ?>
<tr><td align="right" style="padding-right:16px;"><table cellspacing="0" cellpadding="0" border="0"><tr><?php foreach($page['tabs'] as $k => $v) { if($v) { ?><td class="textform" style="padding: 2px 9px 3px 9px;"><a href="<?php echo $v ?>"><?php echo $k ?></a></td><?php } else { ?><td class="textform" background="<?php echo $webimroot ?>/images/loginbg.gif" style="border-left:1px solid #bbbbbb;border-top:1px solid #bbbbbb;border-right:1px solid #bbbbbb;padding: 2px 9px 3px 9px;"><?php echo $k ?></td><?php }} ?></tr></table></td></tr>
<ul class="tabs">
<?php foreach($page['tabs'] as $k => $v) { if($v) { ?>
<li><a href="<?php echo $v ?>"><?php echo $k ?></a></li>
<?php } else { ?>
<li class="active"><a href="#"><?php echo $k ?></a></li><?php }} ?>
</ul>
<?php } ?>
<tr><td background='<?php echo $webimroot ?>/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrt.gif' width='16' height='16' border='0' alt=''></td></tr><tr><td></td><td align='center'><table border='0' cellspacing='0' cellpadding='0' width="700">
<tr><td class='formauth'><?php echo getlocal('form.field.login') ?><b><span style='font-size:8.0pt;color:red'>*</span></b></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
<input type="text" name="login" size="40" value="<?php echo form_value('login') ?>" class="formauth"/>
</td><td></td><td class='formauth'><span class='formdescr'> &mdash; <?php echo getlocal('form.field.login.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
<tr><td class='formauth'><?php echo getlocal('form.field.password') ?><b><span style='font-size:8.0pt;color:red'>*</span></b></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
<input type="password" name="password" size="40" value="" class="formauth"/>
</td><td></td><td class='formauth'><span class='formdescr'> &mdash; <?php echo getlocal('form.field.password.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
<div class="fieldForm">
<div class="field">
<div class="flabel"><?php echo getlocal('form.field.login') ?><span class="required">*</span></div>
<div class="fvalue">
<input type="text" name="login" size="40" value="<?php echo form_value('login') ?>" class="formauth"/>
</div>
<div class="fdescr"> &mdash; <?php echo getlocal('form.field.login.description') ?></div>
<br clear="left"/>
</div>
<tr><td class='formauth'><?php echo getlocal('form.field.password_confirm') ?><b><span style='font-size:8.0pt;color:red'>*</span></b></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
<input type="password" name="passwordConfirm" size="40" value="" class="formauth"/>
</td><td></td><td class='formauth'><span class='formdescr'> &mdash; <?php echo getlocal('form.field.password_confirm.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
<div class="field">
<div class="flabel"><?php echo getlocal('form.field.password') ?><?php if( !$page['opid'] ) { ?><span class="required">*</span><?php } ?></div>
<div class="fvalue">
<input type="password" name="password" size="40" value="" class="formauth"/>
</div>
<div class="fdescr"> &mdash; <?php echo getlocal('form.field.password.description') ?></div>
<br clear="left"/>
</div>
<tr><td class='formauth'><?php echo getlocal('form.field.agent_name') ?><b><span style='font-size:8.0pt;color:red'>*</span></b></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
<input type="text" name="name" size="40" value="<?php echo form_value('name') ?>" class="formauth"/>
</td><td></td><td class='formauth'><span class='formdescr'> &mdash; <?php echo getlocal('form.field.agent_name.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
<div class="field">
<div class="flabel"><?php echo getlocal('form.field.password_confirm') ?><?php if( !$page['opid'] ) { ?><span class="required">*</span><?php } ?></div>
<div class="fvalue">
<input type="password" name="passwordConfirm" size="40" value="" class="formauth"/>
</div>
<div class="fdescr"> &mdash; <?php echo getlocal('form.field.password_confirm.description') ?></div>
<br clear="left"/>
</div>
<tr><td class='formauth'><?php echo getlocal('form.field.agent_commonname') ?><b><span style='font-size:8.0pt;color:red'>*</span></b></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
<input type="text" name="commonname" size="40" value="<?php echo form_value('commonname') ?>" class="formauth"/>
</td><td></td><td class='formauth'><span class='formdescr'> &mdash; <?php echo getlocal('form.field.agent_commonname.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
<div class="field">
<div class="flabel"><?php echo getlocal('form.field.agent_name') ?><span class="required">*</span></div>
<div class="fvalue">
<input type="text" name="name" size="40" value="<?php echo form_value('name') ?>" class="formauth"/>
</div>
<div class="fdescr"> &mdash; <?php echo getlocal('form.field.agent_name.description') ?></div>
<br clear="left"/>
</div>
<div class="field">
<div class="flabel"><?php echo getlocal('form.field.agent_commonname') ?><span class="required">*</span></div>
<div class="fvalue">
<input type="text" name="commonname" size="40" value="<?php echo form_value('commonname') ?>" class="formauth"/>
</div>
<div class="fdescr"> &mdash; <?php echo getlocal('form.field.agent_commonname.description') ?></div>
<br clear="left"/>
</div>
<div class="fbutton">
<input type="image" name="save" value="" src='<?php echo $webimroot.getlocal("image.button.save") ?>' alt='<?php echo getlocal("button.save") ?>'/>
</div>
<tr><td colspan='3' height='20'></td></tr><tr><td colspan='3' background='<?php echo $webimroot ?>/images/formline.gif'><img src='<?php echo $webimroot ?>/images/formline.gif' width='1' height='2' border='0' alt=''></td></tr><tr><td colspan='3' height='10'></td></tr>
<tr>
<td class="formauth" colspan="3">
<input type="hidden" name="opid" value="<?php echo $page['opid'] ?>"/>
<input type="image" name="" src='<?php echo $webimroot.getlocal("image.button.save") ?>' border="0" alt='<?php echo getlocal("button.save") ?>'/>
</td>
</tr>
</table></td><td></td></tr><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="2" height="10"></td>
</tr>
<tr>
<td width="30"></td>
<td class="formauth"><span class="formdescr"><?php echo getlocal("common.asterisk_explanation") ?></span></td>
</tr>
</table>
</div>
</div><div class="formbottom"><div class="formbottomi"></div></div></div>
</div>
<div class="asterisk">
<?php echo getlocal("common.asterisk_explanation") ?>
</div>
</form>
</td>
</tr>
</table>
</body>
</html>
<?php
} /* content */
require_once('inc_main.php');
?>

View File

@ -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;
?>
<html>
<head>
<?php echo getlocal("page_agents.intro") ?>
<br />
<br />
<div class="tabletool">
<img src='<?php echo $webimroot ?>/images/buttons/createagent.gif' border="0" alt="" />
<a href='<?php echo $webimroot ?>/operator/operator.php' title="<?php echo getlocal("page_agents.new_agent") ?>">
<?php echo getlocal("page_agents.new_agent") ?>
</a>
</div>
<br clear="all"/>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo getlocal("page_agents.title") ?> - <?php echo getlocal("app.title") ?>
</title>
<meta http-equiv="keywords" content="<?php echo getlocal("page.main_layout.meta_keyword") ?>">
<meta http-equiv="description" content="<?php echo getlocal("page.main_layout.meta_description") ?>">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#2971C1" vlink="#2971C1" alink="#2971C1">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td valign="top" class="text">
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" valign="top">
<h1><?php echo getlocal("page_agents.title") ?></h1>
</td><td align="right" class="text" valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td class="textform"><?php echo getlocal2("menu.operator",array($page['operator'])) ?></td><td class="textform"><img src='<?php echo $webimroot ?>/images/topdiv.gif' width="25" height="15" border="0" alt="|" /></td><td class="textform"><a href="<?php echo $webimroot ?>/operator/index.php" title="<?php echo getlocal("menu.main") ?>"><?php echo getlocal("menu.main") ?></a></td></tr></table></td></tr></table>
<?php echo getlocal("page_agents.intro") ?>
<br><br>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="text"><b><?php echo getlocal("page_agents.agents") ?></b></td>
<td align="right">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src='<?php echo $webimroot ?>/images/buttons/createagent.gif' border="0" altKey="page_agents.new_agent" /></td>
<td width="10"></td>
<td class="text">
<a href='<?php echo $webimroot ?>/operator/operator.php' title="<?php echo getlocal("page_agents.new_agent") ?>">
<?php echo getlocal("page_agents.new_agent") ?>
</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" height="15"></td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td class='table' bgcolor='#276db8' height='30'><span class='header'><?php echo getlocal("page_agents.login") ?></span></td><td width='3'></td>
<td class='table' bgcolor='#276db8' height='30'><span class='header'><?php echo getlocal("page_agents.agent_name") ?></span></td><td width='3'></td>
<td class='table' bgcolor='#276db8' height='30'><span class='header'><?php echo getlocal("page_agents.agent_commonname") ?></span></td>
<table class="list">
<thead>
<tr class="header">
<th>
<?php echo getlocal("page_agents.login") ?>
</th><th>
<?php echo getlocal("page_agents.agent_name") ?>
</th><th>
<?php echo getlocal("page_agents.agent_commonname") ?>
</th>
</tr>
</thead>
<tbody>
<?php foreach( $page['allowedAgents'] as $a ) { ?>
<tr>
<td height='45' class='table'>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src='<?php echo $webimroot ?>/images/tbliclogin.gif' width="10" height="15" border="0" alt="" /></td>
<td class="table">
<a href='<?php echo $webimroot ?>/operator/operator.php?op=<?php echo $a['operatorid'] ?>'>
<?php echo htmlspecialchars(topage($a['vclogin'])) ?>
</a>
</td>
</tr>
</table>
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
<td height='45' class='table'>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src='<?php echo $webimroot ?>/images/tbllabyel.gif' width="5" height="5" border="0" alt="" /></td>
<td class="table"><?php echo htmlspecialchars(topage($a['vclocalename'])) ?></td>
</tr>
</table>
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
<td height='45' class='table'>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src='<?php echo $webimroot ?>/images/tbllabyel.gif' width="5" height="5" border="0" alt="" /></td>
<td class="table"><?php echo htmlspecialchars(topage($a['vccommonname'])) ?></td>
</tr>
</table>
<td class="notlast">
<a href="<?php echo $webimroot ?>/operator/operator.php?op=<?php echo $a['operatorid'] ?>" class="man">
<?php echo htmlspecialchars(topage($a['vclogin'])) ?>
</a>
</td>
<td class="notlast">
<?php echo htmlspecialchars(topage($a['vclocalename'])) ?>
</td>
<td>
<?php echo htmlspecialchars(topage($a['vccommonname'])) ?>
</td>
</tr>
<tr><td height='2' colspan='7'></td></tr><tr><td bgcolor='#e1e1e1' colspan='7'><img width='1' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td></tr><tr><td height='2' colspan='7'></td></tr>
<?php } ?>
</table>
</td>
</tr>
</tbody>
</table>
</body>
</html>
<?php
} /* content */
require_once('inc_main.php');
?>

View File

@ -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;
?>
<html>
<head>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo getlocal("page_avatar.title") ?> - <?php echo getlocal("app.title") ?>
</title>
<meta http-equiv="keywords" content="<?php echo getlocal("page.main_layout.meta_keyword") ?>">
<meta http-equiv="description" content="<?php echo getlocal("page.main_layout.meta_description") ?>">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#2971C1" vlink="#2971C1" alink="#2971C1">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td valign="top" class="text">
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" valign="top">
<h1><?php echo getlocal("page_avatar.title") ?></h1>
</td><td align="right" class="text" valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td class="textform"><?php echo getlocal2("menu.operator",array($page['operator'])) ?></td><td class="textform"><img src='<?php echo $webimroot ?>/images/topdiv.gif' width="25" height="15" border="0" alt="|" /></td><td class="textform"><a href="<?php echo $webimroot ?>/operator/operators.php" title="<?php echo getlocal("menu.agents") ?>"><?php echo getlocal("menu.agents") ?></a></td><td class="textform"><img src='<?php echo $webimroot ?>/images/topdiv.gif' width="25" height="15" border="0" alt="|" /></td><td class="textform"><a href="<?php echo $webimroot ?>/operator/index.php" title="<?php echo getlocal("menu.main") ?>"><?php echo getlocal("menu.main") ?></a></td></tr></table></td></tr></table>
<?php echo getlocal("page_avatar.intro") ?>
<?php echo getlocal("page_avatar.intro") ?>
<br />
<br />
<?php if( isset($errors) && count($errors) > 0 ) { ?>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top"><img src='<?php echo $webimroot ?>/images/icon_err.gif' width="40" height="40" border="0" alt="" /></td>
<td width="10"></td>
<td class="text">
<?php if( isset($errors) && count($errors) > 0 ) {
print getlocal("errors.header");
foreach( $errors as $e ) {
print getlocal("errors.prefix");
print $e;
print getlocal("errors.suffix");
}
print getlocal("errors.footer");
} ?>
</td>
</tr>
</table>
<?php } ?>
<?php
require_once('inc_errors.php');
?>
<form name="avatarForm" method="post" action="<?php echo $webimroot ?>/operator/avatar.php" enctype="multipart/form-data">
<table cellspacing='0' cellpadding='0' border='0'>
<input type="hidden" name="op" value="<?php echo $page['op'] ?>"/>
<div>
<?php if($page['tabs']) { ?>
<tr><td align="right" style="padding-right:16px;"><table cellspacing="0" cellpadding="0" border="0"><tr><?php foreach($page['tabs'] as $k => $v) { if($v) { ?><td class="textform" style="padding: 2px 9px 3px 9px;"><a href="<?php echo $v ?>"><?php echo $k ?></a></td><?php } else { ?><td class="textform" background="<?php echo $webimroot ?>/images/loginbg.gif" style="border-left:1px solid #bbbbbb;border-top:1px solid #bbbbbb;border-right:1px solid #bbbbbb;padding: 2px 9px 3px 9px;"><?php echo $k ?></td><?php }} ?></tr></table></td></tr>
<?php } ?>
<tr><td background='<?php echo $webimroot ?>/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrt.gif' width='16' height='16' border='0' alt=''></td></tr><tr><td></td><td align='center'><table border='0' cellspacing='0' cellpadding='0' width="700">
<tr>
<td class="formauth" colspan="3">
<b><?php echo $page['currentop'] ?></b>
</td>
</tr>
<tr><td colspan="3" height="15"></td></tr>
<ul class="tabs">
<?php if( $page['avatar'] ) { ?>
<tr><td class='formauth'><?php echo getlocal('form.field.avatar.current') ?></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
<img src="<?php echo $page['avatar'] ?>"/>
<br/>
<a class="formauth" href='<?php echo $webimroot ?>/operator/avatar.php?op=<?php echo $page['op'] ?>&delete=true'>
<?php foreach($page['tabs'] as $k => $v) { if($v) { ?>
<li><a href="<?php echo $v ?>"><?php echo $k ?></a></li>
<?php } else { ?>
<li class="active"><a href="#"><?php echo $k ?></a></li><?php }} ?>
</ul>
<?php } ?>
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
<p>
<b><?php echo $page['currentop'] ?></b>
</p>
<div class="fieldForm">
<?php if( $page['avatar'] ) { ?>
<div class="field">
<div class="flabel"><?php echo getlocal('form.field.avatar.current') ?></div>
<div class="fvalue">
<img src="<?php echo $page['avatar'] ?>" alt="cannot load avatar"/><br/>
<a class="formauth" href='<?php echo $webimroot ?>/operator/avatar.php?op=<?php echo $page['op'] ?>&amp;delete=true'>
<?php echo getlocal("page_agent.clear_avatar") ?>
</a>
</td><td></td><td class='formauth'><span class='formdescr'> &mdash; <?php echo getlocal('form.field.avatar.current.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
<?php } ?>
</div>
<div class="fdescr"> &mdash; <?php echo getlocal('form.field.avatar.current.description') ?></div>
<br clear="left"/>
</div>
<?php } ?>
<tr><td class='formauth'><?php echo getlocal('form.field.avatar.upload') ?><b><span style='font-size:8.0pt;color:red'>*</span></b></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
<input type="file" name="avatarFile" size="40" value="<?php echo form_value('avatarFile') ?>" class="formauth"/>
</td><td></td><td class='formauth'><span class='formdescr'> &mdash; <?php echo getlocal('form.field.avatar.upload.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
<div class="field">
<div class="flabel"><?php echo getlocal('form.field.avatar.upload') ?><span class="required">*</span></div>
<div class="fvalue">
<input type="file" name="avatarFile" size="40" value="<?php echo form_value('avatarFile') ?>" class="formauth"/>
</div>
<div class="fdescr"> &mdash; <?php echo getlocal('form.field.avatar.upload.description') ?></div>
<br clear="left"/>
</div>
<tr><td colspan='3' height='20'></td></tr><tr><td colspan='3' background='<?php echo $webimroot ?>/images/formline.gif'><img src='<?php echo $webimroot ?>/images/formline.gif' width='1' height='2' border='0' alt=''></td></tr><tr><td colspan='3' height='10'></td></tr>
<tr>
<td class="formauth" colspan="3">
<input type="hidden" name="op" value="<?php echo $page['op'] ?>"/>
<input type="image" name="" src='<?php echo $webimroot.getlocal("image.button.save") ?>' border="0" alt='<?php echo getlocal("button.save") ?>'/>
</td>
</tr>
</table></td><td></td></tr><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="2" height="10"></td>
</tr>
<tr>
<td width="30"></td>
<td class="formauth"><span class="formdescr"><?php echo getlocal("common.asterisk_explanation") ?></span></td>
</tr>
</table>
<div class="fbutton">
<input type="image" name="save" value="" src='<?php echo $webimroot.getlocal("image.button.save") ?>' alt='<?php echo getlocal("button.save") ?>'/>
</div>
</div>
</div><div class="formbottom"><div class="formbottomi"></div></div></div>
</div>
<div class="asterisk">
<?php echo getlocal("common.asterisk_explanation") ?>
</div>
</form>
</td>
</tr>
</table>
</body>
</html>
<?php
} /* content */
require_once('inc_main.php');
?>

View File

@ -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;
?>
<html>
<head>
<?php echo getlocal("page_ban.intro") ?>
<br />
<br />
<div class="tabletool">
<img src="<?php echo $webimroot ?>/images/buttons/createban.gif" border="0" alt=""/>
<a href="<?php echo $webimroot ?>/operator/ban.php" title="<?php echo getlocal("page_bans.add") ?>">
<?php echo getlocal("page_bans.add") ?>
</a>
</div>
<br clear="all"/>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
<?php if( $page['pagination'] ) { ?>
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo getlocal("page_bans.title") ?> - <?php echo getlocal("app.title") ?>
</title>
<meta http-equiv="keywords" content="<?php echo getlocal("page.main_layout.meta_keyword") ?>">
<meta http-equiv="description" content="<?php echo getlocal("page.main_layout.meta_description") ?>">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#2971C1" vlink="#2971C1" alink="#2971C1">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td valign="top" class="text">
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" valign="top">
<h1><?php echo getlocal("page_bans.title") ?></h1>
</td><td align="right" class="text" valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td class="textform"><?php echo getlocal2("menu.operator",array($page['operator'])) ?></td><td class="textform"><img src='<?php echo $webimroot ?>/images/topdiv.gif' width="25" height="15" border="0" alt="|" /></td><td class="textform"><a href="<?php echo $webimroot ?>/operator/index.php" title="<?php echo getlocal("menu.main") ?>"><?php echo getlocal("menu.main") ?></a></td></tr></table></td></tr></table>
<?php echo getlocal("page_ban.intro") ?>
<br/>
<br/>
<?php if( isset($errors) && count($errors) > 0 ) { ?>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top"><img src='<?php echo $webimroot ?>/images/icon_err.gif' width="40" height="40" border="0" alt="" /></td>
<td width="10"></td>
<td class="text">
<?php if( isset($errors) && count($errors) > 0 ) {
print getlocal("errors.header");
foreach( $errors as $e ) {
print getlocal("errors.prefix");
print $e;
print getlocal("errors.suffix");
}
print getlocal("errors.footer");
} ?>
</td>
</tr>
</table>
<?php } ?>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="text"><b><?php echo getlocal("page_bans.list") ?></b></td>
<td align="right">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src="<?php echo $webimroot ?>/images/buttons/createban.gif"
border="0" alt="<?php echo getlocal("page_bans.add") ?>"></td>
<td width="10"></td>
<td class="text"><a href="<?php echo $webimroot ?>/operator/ban.php" title="<?php echo getlocal("page_bans.add") ?>">
<?php echo getlocal("page_bans.add") ?>
</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" height="15"></td>
</tr>
</table>
<?php if( $page['pagination'] && $page['pagination.items'] ) { ?>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td class='table' bgcolor='#276db8' height='30'><span class='header'>
<?php echo getlocal("form.field.address") ?>
</span></td><td width='3'></td>
<td class='table' bgcolor='#276db8' height='30'><span class='header'>
<?php echo getlocal("page_bans.to") ?>
</span></td><td width='3'></td>
<td class='table' bgcolor='#276db8' height='30'><span class='header'>
<?php echo getlocal("form.field.ban_comment") ?>
</span></td><td width='3'></td>
<td class='table' bgcolor='#276db8' height='30'><span class='header'>
</span></td>
</tr>
<?php foreach( $page['pagination.items'] as $b ) { ?>
<tr>
<td height='45' class='table'>
<a href="ban.php?id=<?php echo $b['banid'] ?>">
<?php echo htmlspecialchars($b['address']) ?>
</a>
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
<td height='45' class='table'>
<?php echo strftime("%B, %d %Y %H:%M:%S", $b['till']) ?>
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
<td height='45' class='table'>
<?php if( strlen(topage($b['comment'])) > 30 ) { ?>
<?php echo htmlspecialchars(substr(topage($b['comment']),0,30)) ?>...
<?php } ?>
<?php if( strlen(topage($b['comment'])) <= 30 ) { ?>
<?php echo htmlspecialchars(topage($b['comment'])) ?>
<?php } ?>
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
<td height='45' class='table'>
<a href="<?php echo $webimroot ?>/operator/blocked.php?act=del&id=<?php echo $b['banid'] ?>">
<input type="image" name="" src='<?php echo $webimroot.getlocal("image.button.delete") ?>' border="0" alt='<?php echo getlocal("button.delete") ?>'/>
</a>
</td>
</tr>
<tr><td height='2' colspan='9'></td></tr><tr><td bgcolor='#e1e1e1' colspan='9'><img width='1' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td></tr><tr><td height='2' colspan='9'></td></tr>
<?php } ?>
</table>
<br />
<?php echo generate_pagination($page['pagination']) ?>
<?php } ?>
<?php if( $page['pagination'] && !$page['pagination.items'] ) { ?>
<table cellspacing='0' cellpadding='0' border='0'><tr><td background='<?php echo $webimroot ?>/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrt.gif' width='16' height='16' border='0' alt=''></td></tr><tr><td></td><td align='center'><table border='0' cellspacing='0' cellpadding='0'>
<span class="table"> <?php echo getlocal("tag.pagination.no_items.elements") ?> </span>
</table></td><td></td></tr><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table>
<?php } ?>
</td>
<table class="list">
<thead>
<tr class="header">
<th>
<?php echo getlocal("form.field.address") ?>
</th><th>
<?php echo getlocal("page_bans.to") ?>
</th><th>
<?php echo getlocal("form.field.ban_comment") ?>
</th><th>
</th>
</tr>
</thead>
<tbody>
<?php
if( $page['pagination.items'] ) {
foreach( $page['pagination.items'] as $b ) { ?>
<tr>
<td class="notlast">
<a href="ban.php?id=<?php echo $b['banid'] ?>" class="man">
<?php echo htmlspecialchars($b['address']) ?>
</a>
</td>
<td class="notlast">
<?php echo strftime("%B, %d %Y %H:%M:%S", $b['till']) ?>
</td>
<td>
<?php
if( strlen(topage($b['comment'])) > 30 ) {
echo htmlspecialchars(substr(topage($b['comment']),0,30));
} else {
echo htmlspecialchars(topage($b['comment']));
}
?>
</td>
<td>
<a href="<?php echo $webimroot ?>/operator/blocked.php?act=del&amp;id=<?php echo $b['banid'] ?>">
remove
</a>
</td>
</tr>
<?php
}
} else {
?>
<tr>
<td colspan="4">
<?php echo getlocal("tag.pagination.no_items.elements") ?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
<?php
if( $page['pagination.items'] ) {
echo "<br/>";
echo generate_pagination($page['pagination']);
}
}
?>
</body>
</html>
<?php
} /* content */
require_once('inc_main.php');
?>

View File

@ -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;
?>
<html>
<head>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo getlocal("settings.title") ?> - <?php echo getlocal("app.title") ?>
</title>
<meta http-equiv="keywords" content="<?php echo getlocal("page.main_layout.meta_keyword") ?>">
<meta http-equiv="description" content="<?php echo getlocal("page.main_layout.meta_description") ?>">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#2971C1" vlink="#2971C1" alink="#2971C1">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td valign="top" class="text">
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" valign="top">
<h1><?php echo getlocal("settings.title") ?></h1>
</td><td align="right" class="text" valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td class="textform"><?php echo getlocal2("menu.operator",array($page['operator'])) ?></td><td class="textform"><img src='<?php echo $webimroot ?>/images/topdiv.gif' width="25" height="15" border="0" alt="|" /></td><td class="textform"><a href="<?php echo $webimroot ?>/operator/index.php" title="<?php echo getlocal("menu.main") ?>"><?php echo getlocal("menu.main") ?></a></td></tr></table></td></tr></table>
<?php echo getlocal("page_settings.intro") ?>
<?php echo getlocal("page_settings.intro") ?>
<br />
<br />
<?php if( isset($errors) && count($errors) > 0 ) { ?>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top"><img src='<?php echo $webimroot ?>/images/icon_err.gif' width="40" height="40" border="0" alt="" /></td>
<td width="10"></td>
<td class="text">
<?php if( isset($errors) && count($errors) > 0 ) {
print getlocal("errors.header");
foreach( $errors as $e ) {
print getlocal("errors.prefix");
print $e;
print getlocal("errors.suffix");
}
print getlocal("errors.footer");
} ?>
</td>
</tr>
</table>
<?php } ?>
<?php
require_once('inc_errors.php');
?>
<?php if( $page['stored'] ) { ?>
<div id="formmessage"><?php echo getlocal("features.saved") ?></div>
<?php } ?>
<form name="features" method="post" action="<?php echo $webimroot ?>/operator/features.php">
<input type="hidden" name="sent" value="true"/>
<table cellspacing='0' cellpadding='0' border='0'>
<div>
<?php if($page['tabs']) { ?>
<tr><td align="right" style="padding-right:16px;"><table cellspacing="0" cellpadding="0" border="0"><tr><?php foreach($page['tabs'] as $k => $v) { if($v) { ?><td class="textform" style="padding: 2px 9px 3px 9px;"><a href="<?php echo $v ?>"><?php echo $k ?></a></td><?php } else { ?><td class="textform" background="<?php echo $webimroot ?>/images/loginbg.gif" style="border-left:1px solid #bbbbbb;border-top:1px solid #bbbbbb;border-right:1px solid #bbbbbb;padding: 2px 9px 3px 9px;"><?php echo $k ?></td><?php }} ?></tr></table></td></tr>
<ul class="tabs">
<?php foreach($page['tabs'] as $k => $v) { if($v) { ?>
<li><a href="<?php echo $v ?>"><?php echo $k ?></a></li>
<?php } else { ?>
<li class="active"><a href="#"><?php echo $k ?></a></li><?php }} ?>
</ul>
<?php } ?>
<tr><td background='<?php echo $webimroot ?>/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrt.gif' width='16' height='16' border='0' alt=''></td></tr><tr><td></td><td align='center'><table border='0' cellspacing='0' cellpadding='0' width="700">
<tr><td class='formauth'><?php echo getlocal('settings.usercanchangename') ?></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
<input type="checkbox" name="usercanchangename" value="on"<?php echo form_value_cb('usercanchangename') ? " checked=\"checked\"" : "" ?>/>
</td><td></td><td class='formauth'><span class='formdescr'> &mdash; <?php echo getlocal('settings.usercanchangename.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
<tr><td class='formauth'><?php echo getlocal('settings.enableban') ?></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
<input type="checkbox" name="enableban" value="on"<?php echo form_value_cb('enableban') ? " checked=\"checked\"" : "" ?>/>
</td><td></td><td class='formauth'><span class='formdescr'> &mdash; <?php echo getlocal('settings.enableban.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
<div class="fieldForm">
<div class="field">
<div class="flabel"><?php echo getlocal('settings.usercanchangename') ?></div>
<div class="fvalue">
<input type="checkbox" name="usercanchangename" value="on"<?php echo form_value_cb('usercanchangename') ? " checked=\"checked\"" : "" ?>/>
</div>
<div class="fdescr"> &mdash; <?php echo getlocal('settings.usercanchangename.description') ?></div>
<br clear="left"/>
</div>
<tr><td class='formauth'><?php echo getlocal('settings.enablessl') ?></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
<input type="checkbox" name="enablessl" value="on"<?php echo form_value_cb('enablessl') ? " checked=\"checked\"" : "" ?>/>
</td><td></td><td class='formauth'><span class='formdescr'> &mdash; <?php echo getlocal('settings.enablessl.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
<div class="field">
<div class="flabel"><?php echo getlocal('settings.enableban') ?></div>
<div class="fvalue">
<input type="checkbox" name="enableban" value="on"<?php echo form_value_cb('enableban') ? " checked=\"checked\"" : "" ?>/>
</div>
<div class="fdescr"> &mdash; <?php echo getlocal('settings.enableban.description') ?></div>
<br clear="left"/>
</div>
<div class="field">
<div class="flabel"><?php echo getlocal('settings.enablessl') ?></div>
<div class="fvalue">
<input type="checkbox" name="enablessl" value="on"<?php echo form_value_cb('enablessl') ? " checked=\"checked\"" : "" ?>/>
</div>
<div class="fdescr"> &mdash; <?php echo getlocal('settings.enablessl.description') ?></div>
<br clear="left"/>
</div>
<tr><td colspan='3' height='20'></td></tr><tr><td colspan='3' background='<?php echo $webimroot ?>/images/formline.gif'><img src='<?php echo $webimroot ?>/images/formline.gif' width='1' height='2' border='0' alt=''></td></tr><tr><td colspan='3' height='10'></td></tr>
<tr>
<td class="formauth" colspan="3">
<input type="image" name="" src='<?php echo $webimroot.getlocal("image.button.save") ?>' border="0" alt='<?php echo getlocal("button.save") ?>'/>
</td>
</tr>
<div class="fbutton">
<input type="image" name="save" value="" src='<?php echo $webimroot.getlocal("image.button.save") ?>' alt='<?php echo getlocal("button.save") ?>'/>
</div>
</table></td><td></td></tr><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table>
</div>
</div><div class="formbottom"><div class="formbottomi"></div></div></div>
</div>
</form>
</td>
</tr>
</table>
</body>
</html>
<?php
} /* content */
require_once('inc_main.php');
?>

View File

@ -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;
?>
<html>
<head>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo getlocal("page.gen_button.title") ?> - <?php echo getlocal("app.title") ?>
</title>
<meta http-equiv="keywords" content="<?php echo getlocal("page.main_layout.meta_keyword") ?>">
<meta http-equiv="description" content="<?php echo getlocal("page.main_layout.meta_description") ?>">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#2971C1" vlink="#2971C1" alink="#2971C1">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td valign="top" class="text">
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" valign="top">
<h1><?php echo getlocal("page.gen_button.title") ?></h1>
</td><td align="right" class="text" valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td class="textform"><?php echo getlocal2("menu.operator",array($page['operator'])) ?></td><td class="textform"><img src='<?php echo $webimroot ?>/images/topdiv.gif' width="25" height="15" border="0" alt="|" /></td><td class="textform"><a href="<?php echo $webimroot ?>/operator/index.php" title="<?php echo getlocal("menu.main") ?>"><?php echo getlocal("menu.main") ?></a></td></tr></table></td></tr></table>
<?php echo getlocal("page.gen_button.intro") ?>
<?php echo getlocal("page.gen_button.intro") ?>
<br />
<br />
<form name="buttonCodeForm" method="get" action="<?php echo $webimroot ?>/operator/getcode.php">
<table cellspacing='0' cellpadding='0' border='0'><tr><td background='<?php echo $webimroot ?>/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrt.gif' width='16' height='16' border='0' alt=''></td></tr><tr><td></td><td align='center'><table border='0' cellspacing='0' cellpadding='0'>
<tr>
<td colspan="3" class="formauth"><?php echo getlocal("page.gen_button.choose_image") ?></td>
</tr>
<tr><td colspan="3" height="2"></td></tr>
<tr>
<td colspan="3">
<select name="image" onchange="this.form.submit();"><?php foreach($page['availableImages'] as $k) { echo "<option value=\"".$k."\"".($k == form_value("image") ? " selected=\"selected\"" : "").">".$k."</option>"; } ?></select>
</td>
</tr>
<tr><td colspan="3" height="5"></td></tr>
<tr>
<td colspan="3" class="formauth"><?php echo getlocal("page.gen_button.choose_locale") ?></td>
</tr>
<tr><td colspan="3" height="2"></td></tr>
<tr>
<td colspan="3">
<select name="lang" onchange="this.form.submit();"><?php foreach($page['availableLocales'] as $k) { echo "<option value=\"".$k."\"".($k == form_value("lang") ? " selected=\"selected\"" : "").">".$k."</option>"; } ?></select>
</td>
</tr>
<tr><td colspan="3" height="5"></td></tr>
<tr>
<td colspan="3" class="formauth"><?php echo getlocal("page.gen_button.choose_style") ?></td>
</tr>
<tr><td colspan="3" height="2"></td></tr>
<tr>
<td colspan="3">
<select name="style" onchange="this.form.submit();"><?php foreach($page['availableStyles'] as $k => $v) { echo "<option value=\"".$k."\"".($k == form_value("style") ? " selected=\"selected\"" : "").">".$v."</option>"; } ?></select>
</td>
</tr>
<tr><td colspan="3" height="5"></td></tr>
<tr>
<td colspan="3" class="formauth"><?php echo getlocal("page.gen_button.include_site_name") ?></td>
</tr>
<tr><td colspan="3" height="2"></td></tr>
<tr>
<td colspan="3">
<input type="checkbox" name="hostname" value="on"<?php echo form_value_cb('hostname') ? " checked=\"checked\"" : "" ?> onchange="this.form.submit();"/>
</td>
</tr>
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
<div class="fieldForm">
<div class="field">
<div class="flabel"><?php echo getlocal("page.gen_button.choose_image") ?></div>
<div class="fvaluenodesc">
<select name="image" onchange="this.form.submit();"><?php foreach($page['availableImages'] as $k) { echo "<option value=\"".$k."\"".($k == form_value("image") ? " selected=\"selected\"" : "").">".$k."</option>"; } ?></select>
</div>
</div>
<div class="field">
<div class="flabel"><?php echo getlocal("page.gen_button.choose_locale") ?></div>
<div class="fvaluenodesc">
<select name="lang" onchange="this.form.submit();"><?php foreach($page['availableLocales'] as $k) { echo "<option value=\"".$k."\"".($k == form_value("lang") ? " selected=\"selected\"" : "").">".$k."</option>"; } ?></select>
</div>
</div>
<div class="field">
<div class="flabel"><?php echo getlocal("page.gen_button.choose_style") ?></div>
<div class="fvaluenodesc">
<select name="style" onchange="this.form.submit();"><?php foreach($page['availableStyles'] as $k => $v) { echo "<option value=\"".$k."\"".($k == form_value("style") ? " selected=\"selected\"" : "").">".$v."</option>"; } ?></select>
</div>
</div>
<div class="field">
<div class="flabel"><?php echo getlocal("page.gen_button.include_site_name") ?></div>
<div class="fvaluenodesc">
<input type="checkbox" name="hostname" value="on"<?php echo form_value_cb('hostname') ? " checked=\"checked\"" : "" ?> onchange="this.form.submit();"/>
</div>
</div>
<?php if( $page['formhostname'] ) { ?>
<tr><td colspan="3" height="5"></td></tr>
<tr>
<td colspan="3" class="formauth"><?php echo getlocal("page.gen_button.secure_links") ?></td>
</tr>
<tr><td colspan="3" height="2"></td></tr>
<tr>
<td colspan="3">
<input type="checkbox" name="secure" value="on"<?php echo form_value_cb('secure') ? " checked=\"checked\"" : "" ?> onchange="this.form.submit();"/>
</td>
</tr>
<div class="field">
<div class="flabel"><?php echo getlocal("page.gen_button.secure_links") ?></div>
<div class="fvaluenodesc">
<input type="checkbox" name="secure" value="on"<?php echo form_value_cb('secure') ? " checked=\"checked\"" : "" ?> onchange="this.form.submit();"/>
</div>
</div>
<?php } ?>
<tr><td colspan="3" height="5"></td></tr>
<tr>
<td class="formauth"><?php echo getlocal("page.gen_button.code") ?></td>
<td width="10"><img src="<?php echo $webimroot ?>/images/free.gif" width="10" height="1" border="0" alt=""></td>
<td></td>
</tr>
<tr><td colspan="3" height="2"></td></tr>
<tr>
<td><textarea cols="60" rows="15"><?php echo $page['buttonCode'] ?></textarea></td>
<td></td>
<td class="formauth" valign="top" nowrap><span class="formdescr"><?php echo getlocal("page.gen_button.code.description") ?></span></td>
</tr>
<tr>
<td colspan="3" height="10"></td>
</tr>
<tr>
<td class="formauth"><?php echo getlocal("page.gen_button.sample") ?></td>
<td></td>
<td></td>
</tr>
<tr>
<td colspan="3" height="2"></td>
</tr>
<tr>
<td><?php echo $page['buttonCode'] ?></td>
<td></td>
<td class="formauth" valign="top" nowrap><span class="formdescr"></span></td>
</tr>
</table></td><td></td></tr><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table>
<div class="field">
<div class="flabel"><?php echo getlocal("page.gen_button.code") ?></div>
<div class="fvaluewithta">
<textarea cols="44" rows="15"><?php echo htmlspecialchars($page['buttonCode']) ?></textarea>
</div>
<div class="fdescr"><?php echo getlocal("page.gen_button.code.description") ?></div>
<br clear="left"/>
</div>
<div class="field">
<div class="flabel"><?php echo getlocal("page.gen_button.sample") ?></div>
<div class="fvaluenodesc">
<?php echo $page['buttonCode'] ?>
</div>
</div>
</div>
</div><div class="formbottom"><div class="formbottomi"></div></div></div>
</form>
</td>
</tr>
</table>
</body>
</html>
<?php
} /* content */
require_once('inc_main.php');
?>

View File

@ -0,0 +1,15 @@
<?php if( isset($errors) && count($errors) > 0 ) { ?>
<div class="errinfo">
<img src='<?php echo $webimroot ?>/images/icon_err.gif' width="40" height="40" border="0" alt="" class="left"/>
<?php
print getlocal("errors.header");
foreach( $errors as $e ) {
print getlocal("errors.prefix");
print $e;
print getlocal("errors.suffix");
}
print getlocal("errors.footer");
?>
</div>
<br clear="all"/>
<?php } ?>

View File

@ -0,0 +1,19 @@
<?php
function menuloc($id) {
global $current_locale;
if($current_locale == $id) {
return " class=\"active\"";
}
return "";
}
$page['right_menu'] = "";
if(isset($page) && isset($page['localeLinks'])) {
$page['right_menu'] .= "<li>\n<h2><b>locales</b></h2>\n<ul class=\"locales\">\n";
foreach($page['localeLinks'] as $id => $title) {
$page['right_menu'] .= "<li".menuloc($id)."><a href=\"?locale=$id\">$title</a></li>\n";
}
$page['right_menu'] .= "</ul>\n</li>";
}
?>

View File

@ -0,0 +1,50 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo $page['title'] ?> - <?php echo getlocal("app.title") ?>
</title>
<link href="<?php echo $webimroot ?>/default.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 6]><script language="JavaScript" type="text/javascript" src="<?php echo $webimroot ?>/js/ie.js"></script><![endif]-->
</head>
<body>
<div id="wrap">
<div id="header">
<div id="title">
<h1><img src="<?php echo $webimroot ?>/images/logo.gif" alt="" width="32" height="32" class="left" />
<a href="#"><?php echo $page['title'] ?></a></h1>
</div>
<?php if(isset($page) && isset($page['operator'])) { ?>
<div id="path"><p><?php echo getlocal2("menu.operator",array($page['operator'])) ?></p></div>
<?php } ?>
</div>
<br clear="all"/>
<div class="contentdiv">
<div class="contentinner">
<?php
tpl_content();
?>
</div>
</div>
<?php if(!isset($page['no_right_menu'])) { ?>
<div id="sidebar">
<ul>
<?php if(function_exists('rightmenu_content')) { rightmenu_content(); } ?>
<?php if(isset($page['right_menu'])) { echo $page['right_menu']; } ?>
</ul>
</div>
<?php } ?>
<div style="clear: both;">&nbsp;</div>
<div class="empty_inner" style="">&#160;</div>
</div>
<div id="footer">
<p id="legal"><a href="http://openwebim.org/" class="flink">Open Web Messenger</a> 1.5.2 | (c) 2009 openwebim.org</p>
</div>
</body>
</html>

View File

@ -0,0 +1,39 @@
<?php
function menuli($name) {
global $page;
if(isset($page) && isset($page['menuid']) && $name == $page['menuid']) {
echo " class=\"active\"";
}
return "";
}
function rightmenu_content() { global $page, $webimroot, $errors;
if(isset($page) && isset($page['operator'])) { ?>
<li>
<h2><b>main</b></h2>
<ul class="submenu">
<li<?php menuli("main")?>><a href='<?php echo $webimroot ?>/operator/index.php'><?php echo getlocal('topMenu.main') ?></a></li>
<li<?php menuli("users")?>><a href='<?php echo $webimroot ?>/operator/users.php'><?php echo getlocal('topMenu.users') ?></a></li>
<li<?php menuli("history")?>><a href='<?php echo $webimroot ?>/operator/history.php'><?php echo getlocal('page_analysis.search.title') ?></a></li>
<li<?php menuli("blocked")?>><a href='<?php echo $webimroot ?>/operator/blocked.php'><?php echo getlocal('menu.blocked') ?></a></li>
</ul>
</li>
<li>
<h2><b>administration</b></h2>
<ul class="submenu">
<li<?php menuli("operators")?>><a href='<?php echo $webimroot ?>/operator/operators.php'><?php echo getlocal('leftMenu.client_agents') ?></a></li>
<li<?php menuli("departments")?>><a href="#">Departments</a></li>
<li<?php menuli("getcode")?>><a href='<?php echo $webimroot ?>/operator/getcode.php'><?php echo getlocal('leftMenu.client_gen_button') ?></a></li>
<li<?php menuli("settings")?>><a href='<?php echo $webimroot ?>/operator/settings.php'><?php echo getlocal('leftMenu.client_settings') ?></a></li>
</ul>
</li>
<li>
<h2><b>other</b></h2>
<ul class="submenu">
<li><a href='<?php echo $webimroot ?>/operator/logout.php'><?php echo getlocal('topMenu.logoff') ?></a></li>
</ul>
</li>
<?php
}
}
?>

View File

@ -0,0 +1,30 @@
<?php
/*
* 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
*
* Contributors:
* Evgeny Gryaznov - initial API and implementation
*/
$page['title'] = getlocal("install.err.title");
$page['no_right_menu'] = true;
function tpl_content() { global $page, $webimroot, $errors;
?>
<?php
require_once('inc_errors.php');
?>
<?php echo getlocal("install.err.back") ?>
<?php
} /* content */
require_once('../view/inc_main.php');
?>

View File

@ -0,0 +1,59 @@
<?php
/*
* 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
*
* Contributors:
* Evgeny Gryaznov - initial API and implementation
*/
require_once('inc_locales.php');
$page['title'] = getlocal("install.title");
function tpl_content() { global $page, $webimroot, $errors;
?>
<?php echo getlocal("install.message") ?>
<br/>
<br/>
<?php
require_once('inc_errors.php');
?>
<?php if( $page['done'] ) { ?>
<div id="install">
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
<?php echo getlocal("install.done") ?>
<ul>
<?php foreach( $page['done'] as $info ) { ?>
<li><?php echo $info ?></li>
<?php } ?>
</ul>
<?php if( $page['nextstep'] ) { ?>
<br/><br/>
<?php echo getlocal("install.next") ?>
<ul>
<li>
<?php if( $page['nextnotice'] ) { ?><?php echo $page['nextnotice'] ?><br/><br/><?php } ?>
<a href="<?php echo $page['nextstepurl'] ?>"><?php echo $page['nextstep'] ?></a>
</li>
</ul>
<?php } ?>
</div><div class="formbottom"><div class="formbottomi"></div></div></div>
</div>
<?php } ?>
<br/>
<a href="<?php echo $webimroot ?>/epl-v10.html" target="_blank"><?php echo getlocal("install.license") ?></a>
<?php
} /* content */
require_once('../view/inc_main.php');
?>

View File

@ -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&amp;lang=$current_locale", 0, 0);
$code = generate_button("",$current_locale,"",$message,false,false);
?>
<html>
<head>
<li>
<h2><b>contact us</b></h2>
<?php echo $code ?>
</li>
<?php
}
function tpl_content() { global $page, $webimroot, $errors;
?>
<?php echo getlocal("page_login.intro") ?>
<br/>
<br/>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo getlocal("page_login.title") ?> - <?php echo getlocal("app.title") ?>
</title>
<meta http-equiv="keywords" content="<?php echo getlocal("page.main_layout.meta_keyword") ?>">
<meta http-equiv="description" content="<?php echo getlocal("page.main_layout.meta_description") ?>">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#2971C1" vlink="#2971C1" alink="#2971C1">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td valign="top" class="text">
<h1><?php echo getlocal("page_login.title") ?></h1>
<?php if( isset($errors) && count($errors) > 0 ) { ?>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top"><img src='<?php echo $webimroot ?>/images/icon_err.gif' width="40" height="40" border="0" alt="" /></td>
<td width="10"></td>
<td class="text">
<?php if( isset($errors) && count($errors) > 0 ) {
print getlocal("errors.header");
foreach( $errors as $e ) {
print getlocal("errors.prefix");
print $e;
print getlocal("errors.suffix");
}
print getlocal("errors.footer");
} ?>
</td>
</tr>
</table>
<?php } ?>
<?php
require_once('inc_errors.php');
?>
<form name="loginForm" method="post" action="<?php echo $webimroot ?>/operator/login.php">
<table cellspacing='0' cellpadding='0' border='0'><tr><td background='<?php echo $webimroot ?>/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrt.gif' width='16' height='16' border='0' alt=''></td></tr><tr><td></td><td align='center'><table border='0' cellspacing='0' cellpadding='0'>
<tr>
<td colspan="2">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="formauth"><?php echo getlocal("page_login.login") ?></td>
<td width="20"></td>
<td><input type="text" name="login" size="20" value="<?php echo form_value('login') ?>" class="formauth"/></td>
</tr>
<input type="hidden" name="backPath" value="<?php echo $page['backPath'] ?>"/>
<div id="loginpane">
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
<tr>
<td colspan="3" height="10"></td>
</tr>
<div class="fieldForm">
<div class="field">
<div class="fleftlabel"><?php echo getlocal("page_login.login") ?></div>
<div class="fvalue">
<input type="text" name="login" size="25" value="<?php echo form_value('login') ?>" class="formauth"/>
</div>
<br clear="left"/>
</div>
<tr>
<td class="formauth"><?php echo getlocal("page_login.password") ?></td>
<td></td>
<td><input type="password" name="password" size="20" value="" class="formauth"/></td>
</tr>
<div class="field">
<div class="fleftlabel"><?php echo getlocal("page_login.password") ?></div>
<div class="fvalue">
<input type="password" name="password" size="25" value="" class="formauth"/>
</div>
<br clear="left"/>
</div>
<tr>
<td colspan="3" height="5"></td>
</tr>
<div class="field">
<div class="fleftlabel">&nbsp;</div>
<div class="fvalue">
<label>
<input type="checkbox" name="isRemember" value="on"<?php echo form_value_cb('isRemember') ? " checked=\"checked\"" : "" ?> />
<?php echo getlocal("page_login.remember") ?></label>
</div>
<br clear="left"/>
</div>
<tr>
<td class="formauth"></td>
<td></td>
<td>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><input type="checkbox" name="isRemember" value="on"<?php echo form_value_cb('isRemember') ? " checked=\"checked\"" : "" ?> /></td>
<td width="5"></td>
<td class="formauth" nowrap><span><?php echo getlocal("page_login.remember") ?></span></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<div class="fbutton">
<input type="image" name="login" src='<?php echo $webimroot.getlocal("image.button.login") ?>' alt='<?php echo getlocal("button.enter") ?>'/>
</div>
<tr><td colspan='2' height='20'></td></tr><tr><td colspan='2' background='<?php echo $webimroot ?>/images/formline.gif'><img src='<?php echo $webimroot ?>/images/formline.gif' width='1' height='2' border='0' alt=''></td></tr><tr><td colspan='2' height='10'></td></tr>
</div>
</div><div class="formbottom"><div class="formbottomi"></div></div></div>
<tr>
<td><input type="hidden" name="backPath" value="<?php echo $page['backPath'] ?>"/> <input type="image" name="" src='<?php echo $webimroot.getlocal("image.button.login") ?>' border="0" alt='<?php echo getlocal("button.enter") ?>'/>
</td>
<div class="asterisk">
<?php echo getlocal("common.asterisk_explanation") ?>
</div>
</tr>
</table></td><td></td></tr><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table>
</div>
</form>
<br/>
&laquo;<span style="color:#bb5500;">Open</span> Web Messenger&raquo; <?php echo $page['version'] ?> &bull; <?php echo $page['localeLinks'] ?>
</td>
</tr>
</table>
</body>
</html>
<?php
} /* content */
require_once('inc_main.php');
?>

View File

@ -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;
?>
<html>
<head>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo getlocal("topMenu.admin") ?> - <?php echo getlocal("app.title") ?>
</title>
<meta http-equiv="keywords" content="<?php echo getlocal("page.main_layout.meta_keyword") ?>">
<meta http-equiv="description" content="<?php echo getlocal("page.main_layout.meta_description") ?>">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#2971C1" vlink="#2971C1" alink="#2971C1">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td valign="top" class="text">
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" valign="top">
<h1><?php echo getlocal("topMenu.admin") ?></h1>
</td><td align="right" class="text" valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td class="textform"><?php echo getlocal2("menu.operator",array($page['operator'])) ?></td></tr></table></td></tr></table>
<?php echo getlocal("admin.content.description") ?>
<br>
<br>
<br/>
<br/>
<?php if( $page['needUpdate'] ) { ?>
<div id="formmessage"><?php echo getlocal2("install.updatedb",array($page['updateWizard'])) ?></div>
<br/>
<?php } ?>
<table cellspacing="0" cellpadding="0" border="0">
<div id="dashboard">
<?php if( $page['showadmin'] ) { ?>
<tr><td width='20' valign='top'><img src='<?php echo $webimroot ?>/images/lidiv.gif' width='5' height='45' border='0' alt=''></td><td valign='top' class='text'><a href='<?php echo $webimroot ?>/operator/operators.php'><?php echo getlocal('leftMenu.client_agents') ?></a><br><img src='<?php echo $webimroot ?>/images/free.gif' width='1' height='10' border='0' alt=''><br><?php echo getlocal('admin.content.client_agents') ?><br></td></tr><tr><td colspan='2' height='20'></td></tr>
<?php } ?>
<tr><td width='20' valign='top'><img src='<?php echo $webimroot ?>/images/lidiv.gif' width='5' height='45' border='0' alt=''></td><td valign='top' class='text'><a href='<?php echo $webimroot ?>/operator/users.php'><?php echo getlocal('topMenu.users') ?></a><br><img src='<?php echo $webimroot ?>/images/free.gif' width='1' height='10' border='0' alt=''><br><?php echo getlocal('page_client.pending_users') ?><br></td></tr><tr><td colspan='2' height='20'></td></tr>
<div class="dashitem">
<a href='<?php echo $webimroot ?>/operator/users.php'>
<?php echo getlocal('topMenu.users') ?></a>
<?php echo getlocal('page_client.pending_users') ?>
</div>
<?php if( $page['showadmin'] ) { ?>
<tr><td width='20' valign='top'><img src='<?php echo $webimroot ?>/images/lidiv.gif' width='5' height='45' border='0' alt=''></td><td valign='top' class='text'><a href='<?php echo $webimroot ?>/operator/getcode.php'><?php echo getlocal('leftMenu.client_gen_button') ?></a><br><img src='<?php echo $webimroot ?>/images/free.gif' width='1' height='10' border='0' alt=''><br><?php echo getlocal('admin.content.client_gen_button') ?><br></td></tr><tr><td colspan='2' height='20'></td></tr>
<?php } ?>
<tr><td width='20' valign='top'><img src='<?php echo $webimroot ?>/images/lidiv.gif' width='5' height='45' border='0' alt=''></td><td valign='top' class='text'><a href='<?php echo $webimroot ?>/operator/history.php'><?php echo getlocal('page_analysis.search.title') ?></a><br><img src='<?php echo $webimroot ?>/images/free.gif' width='1' height='10' border='0' alt=''><br><?php echo getlocal('content.history') ?><br></td></tr><tr><td colspan='2' height='20'></td></tr>
<div class="dashitem">
<a href='<?php echo $webimroot ?>/operator/history.php'>
<?php echo getlocal('page_analysis.search.title') ?></a>
<?php echo getlocal('content.history') ?>
</div>
<?php if( $page['showban'] ) { ?>
<tr><td width='20' valign='top'><img src='<?php echo $webimroot ?>/images/lidiv.gif' width='5' height='45' border='0' alt=''></td><td valign='top' class='text'><a href='<?php echo $webimroot ?>/operator/blocked.php'><?php echo getlocal('menu.blocked') ?></a><br><img src='<?php echo $webimroot ?>/images/free.gif' width='1' height='10' border='0' alt=''><br><?php echo getlocal('content.blocked') ?><br></td></tr><tr><td colspan='2' height='20'></td></tr>
<div class="dashitem">
<a href='<?php echo $webimroot ?>/operator/blocked.php'>
<?php echo getlocal('menu.blocked') ?></a>
<?php echo getlocal('content.blocked') ?>
</div>
<?php } ?>
<?php if( $page['showadmin'] ) { ?>
<tr><td width='20' valign='top'><img src='<?php echo $webimroot ?>/images/lidiv.gif' width='5' height='45' border='0' alt=''></td><td valign='top' class='text'><a href='<?php echo $webimroot ?>/operator/settings.php'><?php echo getlocal('leftMenu.client_settings') ?></a><br><img src='<?php echo $webimroot ?>/images/free.gif' width='1' height='10' border='0' alt=''><br><?php echo getlocal('admin.content.client_settings') ?><br></td></tr><tr><td colspan='2' height='20'></td></tr>
<br clear="all"/>
<div class="dashitem">
<a href='<?php echo $webimroot ?>/operator/operators.php'>
<?php echo getlocal('leftMenu.client_agents') ?></a>
<?php echo getlocal('admin.content.client_agents') ?>
</div>
<div class="dashitem">
<a href='<?php echo $webimroot ?>/operator/getcode.php'>
<?php echo getlocal('leftMenu.client_gen_button') ?></a>
<?php echo getlocal('admin.content.client_gen_button') ?>
</div>
<div class="dashitem">
<a href='<?php echo $webimroot ?>/operator/settings.php'>
<?php echo getlocal('leftMenu.client_settings') ?></a>
<?php echo getlocal('admin.content.client_settings') ?>
</div>
<?php } ?>
<tr><td width='20' valign='top'><img src='<?php echo $webimroot ?>/images/lidiv.gif' width='5' height='45' border='0' alt=''></td><td valign='top' class='text'><a href='<?php echo $webimroot ?>/operator/logout.php'><?php echo getlocal('topMenu.logoff') ?></a><br><img src='<?php echo $webimroot ?>/images/free.gif' width='1' height='10' border='0' alt=''><br><?php echo getlocal('content.logoff') ?><br></td></tr><tr><td colspan='2' height='20'></td></tr>
<br clear="all"/>
</table>
<div class="dashitem">
<a href='<?php echo $webimroot ?>/operator/logout.php'>
<?php echo getlocal('topMenu.logoff') ?></a>
<?php echo getlocal('content.logoff') ?>
</div>
<table width="200" cellspacing="0" cellpadding="0" border="0">
<tr>
<td height="10"></td>
</tr>
<tr>
<td bgcolor="#D6D6D6"><img src='<?php echo $webimroot ?>/images/free.gif' height="1" width="1" border="0" alt=""></td>
</tr>
<tr>
<td height="7"></td>
</tr>
</table>
&laquo;<span style="color:#bb5500;">Open</span> Web Messenger&raquo; <?php echo $page['version'] ?> &bull; <?php echo $page['localeLinks'] ?>
</td>
</tr>
</table>
</body>
</html>
</div>
<?php
} /* content */
require_once('inc_main.php');
?>

View File

@ -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;
?>
<html>
<head>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo getlocal("permissions.title") ?> - <?php echo getlocal("app.title") ?>
</title>
<meta http-equiv="keywords" content="<?php echo getlocal("page.main_layout.meta_keyword") ?>">
<meta http-equiv="description" content="<?php echo getlocal("page.main_layout.meta_description") ?>">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#2971C1" vlink="#2971C1" alink="#2971C1">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td valign="top" class="text">
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" valign="top">
<h1><?php echo getlocal("permissions.title") ?></h1>
</td><td align="right" class="text" valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td class="textform"><?php echo getlocal2("menu.operator",array($page['operator'])) ?></td><td class="textform"><img src='<?php echo $webimroot ?>/images/topdiv.gif' width="25" height="15" border="0" alt="|" /></td><td class="textform"><a href="<?php echo $webimroot ?>/operator/operators.php" title="<?php echo getlocal("menu.agents") ?>"><?php echo getlocal("menu.agents") ?></a></td><td class="textform"><img src='<?php echo $webimroot ?>/images/topdiv.gif' width="25" height="15" border="0" alt="|" /></td><td class="textform"><a href="<?php echo $webimroot ?>/operator/index.php" title="<?php echo getlocal("menu.main") ?>"><?php echo getlocal("menu.main") ?></a></td></tr></table></td></tr></table>
<?php echo getlocal("permissions.intro") ?>
<?php echo getlocal("permissions.intro") ?>
<br />
<br />
<?php if( isset($errors) && count($errors) > 0 ) { ?>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top"><img src='<?php echo $webimroot ?>/images/icon_err.gif' width="40" height="40" border="0" alt="" /></td>
<td width="10"></td>
<td class="text">
<?php if( isset($errors) && count($errors) > 0 ) {
print getlocal("errors.header");
foreach( $errors as $e ) {
print getlocal("errors.prefix");
print $e;
print getlocal("errors.suffix");
}
print getlocal("errors.footer");
} ?>
</td>
</tr>
</table>
<?php } ?>
<?php
require_once('inc_errors.php');
?>
<form name="permissionsForm" method="post" action="<?php echo $webimroot ?>/operator/permissions.php">
<table cellspacing='0' cellpadding='0' border='0'>
<input type="hidden" name="op" value="<?php echo $page['op'] ?>"/>
<div>
<?php if($page['tabs']) { ?>
<tr><td align="right" style="padding-right:16px;"><table cellspacing="0" cellpadding="0" border="0"><tr><?php foreach($page['tabs'] as $k => $v) { if($v) { ?><td class="textform" style="padding: 2px 9px 3px 9px;"><a href="<?php echo $v ?>"><?php echo $k ?></a></td><?php } else { ?><td class="textform" background="<?php echo $webimroot ?>/images/loginbg.gif" style="border-left:1px solid #bbbbbb;border-top:1px solid #bbbbbb;border-right:1px solid #bbbbbb;padding: 2px 9px 3px 9px;"><?php echo $k ?></td><?php }} ?></tr></table></td></tr>
<?php } ?>
<tr><td background='<?php echo $webimroot ?>/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrt.gif' width='16' height='16' border='0' alt=''></td></tr><tr><td></td><td align='center'><table border='0' cellspacing='0' cellpadding='0' width="700">
<tr>
<td class="formauth" colspan="3">
<b><?php echo $page['currentop'] ?></b>
</td>
</tr>
<tr><td colspan="3" height="15"></td></tr>
<ul class="tabs">
<?php foreach($page['tabs'] as $k => $v) { if($v) { ?>
<li><a href="<?php echo $v ?>"><?php echo $k ?></a></li>
<?php } else { ?>
<li class="active"><a href="#"><?php echo $k ?></a></li><?php }} ?>
</ul>
<?php } ?>
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
<p>
<b><?php echo $page['currentop'] ?></b>
</p>
<?php foreach( $page['permissionsList'] as $pm ) { ?>
<tr class="formauth" colspan="3">
<td class="formauth" colspan="3">
<label><input type="checkbox" name="permissions<?php echo $pm['id'] ?>" value="on"<?php echo form_value_mb('permissions',$pm['id']) ? " checked=\"checked\"" : "" ?>/> <?php echo $pm['descr'] ?></label>
</td>
</tr>
<label>
<input type="checkbox" name="permissions<?php echo $pm['id'] ?>" value="on"<?php echo form_value_mb('permissions',$pm['id']) ? " checked=\"checked\"" : "" ?>/> <?php echo $pm['descr'] ?>
</label>
<br/>
<?php } ?>
<tr><td colspan='3' height='20'></td></tr><tr><td colspan='3' background='<?php echo $webimroot ?>/images/formline.gif'><img src='<?php echo $webimroot ?>/images/formline.gif' width='1' height='2' border='0' alt=''></td></tr><tr><td colspan='3' height='10'></td></tr>
<tr>
<td class="formauth" colspan="3">
<input type="hidden" name="op" value="<?php echo $page['op'] ?>"/>
<input type="image" name="" src='<?php echo $webimroot.getlocal("image.button.save") ?>' border="0" alt='<?php echo getlocal("button.save") ?>'/>
</td>
</tr>
<div class="fbutton">
<input type="image" name="save" value="" src='<?php echo $webimroot.getlocal("image.button.save") ?>' alt='<?php echo getlocal("button.save") ?>'/>
</div>
</table></td><td></td></tr><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table>
</div><div class="formbottom"><div class="formbottomi"></div></div></div>
</div>
</form>
</td>
</tr>
</table>
</body>
</html>
<?php
} /* content */
require_once('inc_main.php');
?>

View File

@ -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;
?>
<html>
<head>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo getlocal("page.preview.title") ?> - <?php echo getlocal("app.title") ?>
</title>
<meta http-equiv="keywords" content="<?php echo getlocal("page.main_layout.meta_keyword") ?>">
<meta http-equiv="description" content="<?php echo getlocal("page.main_layout.meta_description") ?>">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#2971C1" vlink="#2971C1" alink="#2971C1">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td valign="top" class="text">
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" valign="top">
<h1><?php echo getlocal("page.preview.title") ?></h1>
</td><td align="right" class="text" valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td class="textform"><?php echo getlocal2("menu.operator",array($page['operator'])) ?></td><td class="textform"><img src='<?php echo $webimroot ?>/images/topdiv.gif' width="25" height="15" border="0" alt="|" /></td><td class="textform"><a href="<?php echo $webimroot ?>/operator/index.php" title="<?php echo getlocal("menu.main") ?>"><?php echo getlocal("menu.main") ?></a></td></tr></table></td></tr></table>
<?php echo getlocal("page.preview.intro") ?>
<?php echo getlocal("page.preview.intro") ?>
<br />
<br />
<form name="preview" method="get" action="<?php echo $webimroot ?>/operator/preview.php">
<table cellspacing='0' cellpadding='0' border='0'>
<div>
<?php if($page['tabs']) { ?>
<tr><td align="right" style="padding-right:16px;"><table cellspacing="0" cellpadding="0" border="0"><tr><?php foreach($page['tabs'] as $k => $v) { if($v) { ?><td class="textform" style="padding: 2px 9px 3px 9px;"><a href="<?php echo $v ?>"><?php echo $k ?></a></td><?php } else { ?><td class="textform" background="<?php echo $webimroot ?>/images/loginbg.gif" style="border-left:1px solid #bbbbbb;border-top:1px solid #bbbbbb;border-right:1px solid #bbbbbb;padding: 2px 9px 3px 9px;"><?php echo $k ?></td><?php }} ?></tr></table></td></tr>
<ul class="tabs">
<?php foreach($page['tabs'] as $k => $v) { if($v) { ?>
<li><a href="<?php echo $v ?>"><?php echo $k ?></a></li>
<?php } else { ?>
<li class="active"><a href="#"><?php echo $k ?></a></li><?php }} ?>
</ul>
<?php } ?>
<tr><td background='<?php echo $webimroot ?>/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrt.gif' width='16' height='16' border='0' alt=''></td></tr><tr><td></td><td align='center'><table border='0' cellspacing='0' cellpadding='0'>
<tr>
<td colspan="3" class="formauth"><?php echo getlocal("page.preview.choose") ?></td>
</tr>
<tr><td colspan="3" height="2"></td></tr>
<tr>
<td colspan="3">
<select name="preview" onchange="this.form.submit();"><?php foreach($page['availablePreviews'] as $k) { echo "<option value=\"".$k."\"".($k == form_value("preview") ? " selected=\"selected\"" : "").">".$k."</option>"; } ?></select>
</td>
</tr>
<tr><td colspan="3" height="10"></td></tr>
<tr>
<td colspan="3" class="formauth"><?php echo getlocal("page.preview.choosetpl") ?></td>
</tr>
<tr><td colspan="3" height="2"></td></tr>
<tr>
<td colspan="3">
<select name="template" onchange="this.form.submit();"><?php foreach($page['availableTemplates'] as $k) { echo "<option value=\"".$k."\"".($k == form_value("template") ? " selected=\"selected\"" : "").">".$k."</option>"; } ?></select>
</td>
</tr>
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
<div class="fieldForm">
<div class="field">
<div class="flabel"><?php echo getlocal("page.preview.choose") ?></div>
<div class="fvaluenodesc">
<select name="preview" onchange="this.form.submit();"><?php foreach($page['availablePreviews'] as $k) { echo "<option value=\"".$k."\"".($k == form_value("preview") ? " selected=\"selected\"" : "").">".$k."</option>"; } ?></select>
</div>
</div>
<div class="field">
<div class="flabel"><?php echo getlocal("page.preview.choosetpl") ?></div>
<div class="fvaluenodesc">
<select name="template" onchange="this.form.submit();"><?php foreach($page['availableTemplates'] as $k) { echo "<option value=\"".$k."\"".($k == form_value("template") ? " selected=\"selected\"" : "").">".$k."</option>"; } ?></select>
</div>
</div>
<?php if( $page['canshowerrors'] ) { ?>
<tr><td colspan="3" height="10"></td></tr>
<tr>
<td colspan="3" class="formauth"><?php echo getlocal("page.preview.showerr") ?></td>
</tr>
<tr><td colspan="3" height="2"></td></tr>
<tr>
<td colspan="3">
<input type="checkbox" name="showerr" value="on"<?php echo form_value_cb('showerr') ? " checked=\"checked\"" : "" ?> onchange="this.form.submit();"/>
</td>
</tr>
<div class="field">
<div class="flabel"><?php echo getlocal("page.preview.showerr") ?></div>
<div class="fvaluenodesc">
<input type="checkbox" name="showerr" value="on"<?php echo form_value_cb('showerr') ? " checked=\"checked\"" : "" ?> onchange="this.form.submit();"/>
</div>
</div>
<?php } ?>
<?php foreach( $page['previewList'] as $pp ) { ?>
<tr><td colspan="3" height="10"></td></tr>
<tr>
<td colspan="3" class="formauth"><?php echo htmlspecialchars($pp['label']) ?>
<a href="<?php echo $page['showlink'] ?><?php echo $pp['id'] ?>" target="_blank" title="in separate window" onclick="this.newWindow = window.open('<?php echo $page['showlink'] ?><?php echo $pp['id'] ?>', '<?php echo $pp['id'] ?>', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,width=<?php echo $pp['w'] ?>,height=<?php echo $pp['h'] ?>,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;">link</a>
</td>
</tr>
<tr><td colspan="3" height="7"></td></tr>
<tr>
<td colspan="3">
<iframe id="sample<?php echo $pp['id'] ?>" width="<?php echo $pp['w'] ?>" height="<?php echo $pp['h'] ?>" src="<?php echo $page['showlink'] ?><?php echo $pp['id'] ?>" frameborder="1" scrolling="no">
No iframes
<div class="field">
<div class="flabel">
<?php echo htmlspecialchars($pp['label']) ?>
<a href="<?php echo $page['showlink'] ?><?php echo $pp['id'] ?>" target="_blank" title="in separate window" onclick="this.newWindow = window.open('<?php echo $page['showlink'] ?><?php echo $pp['id'] ?>', '<?php echo $pp['id'] ?>', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,width=<?php echo $pp['w'] ?>,height=<?php echo $pp['h'] ?>,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;">link</a>
</div>
<div class="fvalueframe">
<iframe id="sample<?php echo $pp['id'] ?>" width="<?php echo $pp['w'] ?>" height="<?php echo $pp['h'] ?>" src="<?php echo $page['showlink'] ?><?php echo $pp['id'] ?>" frameborder="0" scrolling="no">
No iframes
</iframe>
</td>
</tr>
</div>
</div>
<?php } ?>
</table></td><td></td></tr><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table>
</div>
</div><div class="formbottom"><div class="formbottomi"></div></div></div>
</div>
</form>
</td>
</tr>
</table>
</body>
</html>
<?php
} /* content */
require_once('inc_main.php');
?>

View File

@ -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;
?>
<html>
<head>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo getlocal("settings.title") ?> - <?php echo getlocal("app.title") ?>
</title>
<meta http-equiv="keywords" content="<?php echo getlocal("page.main_layout.meta_keyword") ?>">
<meta http-equiv="description" content="<?php echo getlocal("page.main_layout.meta_description") ?>">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#2971C1" vlink="#2971C1" alink="#2971C1">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td valign="top" class="text">
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" valign="top">
<h1><?php echo getlocal("settings.title") ?></h1>
</td><td align="right" class="text" valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td class="textform"><?php echo getlocal2("menu.operator",array($page['operator'])) ?></td><td class="textform"><img src='<?php echo $webimroot ?>/images/topdiv.gif' width="25" height="15" border="0" alt="|" /></td><td class="textform"><a href="<?php echo $webimroot ?>/operator/index.php" title="<?php echo getlocal("menu.main") ?>"><?php echo getlocal("menu.main") ?></a></td></tr></table></td></tr></table>
<?php echo getlocal("page_settings.intro") ?>
<?php echo getlocal("page_settings.intro") ?>
<br />
<br />
<?php if( isset($errors) && count($errors) > 0 ) { ?>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top"><img src='<?php echo $webimroot ?>/images/icon_err.gif' width="40" height="40" border="0" alt="" /></td>
<td width="10"></td>
<td class="text">
<?php if( isset($errors) && count($errors) > 0 ) {
print getlocal("errors.header");
foreach( $errors as $e ) {
print getlocal("errors.prefix");
print $e;
print getlocal("errors.suffix");
}
print getlocal("errors.footer");
} ?>
</td>
</tr>
</table>
<?php } ?>
<?php
require_once('inc_errors.php');
?>
<?php if( $page['stored'] ) { ?>
<div id="formmessage"><?php echo getlocal("settings.saved") ?></div>
<?php } ?>
<form name="settings" method="post" action="<?php echo $webimroot ?>/operator/settings.php">
<table cellspacing='0' cellpadding='0' border='0'>
<div>
<?php if($page['tabs']) { ?>
<tr><td align="right" style="padding-right:16px;"><table cellspacing="0" cellpadding="0" border="0"><tr><?php foreach($page['tabs'] as $k => $v) { if($v) { ?><td class="textform" style="padding: 2px 9px 3px 9px;"><a href="<?php echo $v ?>"><?php echo $k ?></a></td><?php } else { ?><td class="textform" background="<?php echo $webimroot ?>/images/loginbg.gif" style="border-left:1px solid #bbbbbb;border-top:1px solid #bbbbbb;border-right:1px solid #bbbbbb;padding: 2px 9px 3px 9px;"><?php echo $k ?></td><?php }} ?></tr></table></td></tr>
<ul class="tabs">
<?php foreach($page['tabs'] as $k => $v) { if($v) { ?>
<li><a href="<?php echo $v ?>"><?php echo $k ?></a></li>
<?php } else { ?>
<li class="active"><a href="#"><?php echo $k ?></a></li><?php }} ?>
</ul>
<?php } ?>
<tr><td background='<?php echo $webimroot ?>/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrt.gif' width='16' height='16' border='0' alt=''></td></tr><tr><td></td><td align='center'><table border='0' cellspacing='0' cellpadding='0' width="700">
<tr><td class='formauth'><?php echo getlocal('settings.email') ?></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
<input type="text" name="email" size="40" value="<?php echo form_value('email') ?>" class="formauth"/>
</td><td></td><td class='formauth'><span class='formdescr'> &mdash; <?php echo getlocal('settings.email.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
<tr><td class='formauth'><?php echo getlocal('settings.company.title') ?></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
<input type="text" name="title" size="40" value="<?php echo form_value('title') ?>" class="formauth"/>
</td><td></td><td class='formauth'><span class='formdescr'> &mdash; <?php echo getlocal('settings.company.title.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
<div class="fieldForm">
<div class="field">
<div class="flabel"><?php echo getlocal('settings.email') ?></div>
<div class="fvalue">
<input type="text" name="email" size="40" value="<?php echo form_value('email') ?>" class="formauth"/>
</div>
<div class="fdescr"> &mdash; <?php echo getlocal('settings.email.description') ?></div>
<br clear="left"/>
</div>
<tr><td class='formauth'><?php echo getlocal('settings.chat.title') ?></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
<input type="text" name="chattitle" size="40" value="<?php echo form_value('chattitle') ?>" class="formauth"/>
</td><td></td><td class='formauth'><span class='formdescr'> &mdash; <?php echo getlocal('settings.chat.title.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
<div class="field">
<div class="flabel"><?php echo getlocal('settings.company.title') ?></div>
<div class="fvalue">
<input type="text" name="title" size="40" value="<?php echo form_value('title') ?>" class="formauth"/>
</div>
<div class="fdescr"> &mdash; <?php echo getlocal('settings.company.title.description') ?></div>
<br clear="left"/>
</div>
<div class="field">
<div class="flabel"><?php echo getlocal('settings.chat.title') ?></div>
<div class="fvalue">
<input type="text" name="chattitle" size="40" value="<?php echo form_value('chattitle') ?>" class="formauth"/>
</div>
<div class="fdescr"> &mdash; <?php echo getlocal('settings.chat.title.description') ?></div>
<br clear="left"/>
</div>
<tr><td class='formauth'><?php echo getlocal('settings.logo') ?></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
<input type="text" name="logo" size="40" value="<?php echo form_value('logo') ?>" class="formauth"/>
</td><td></td><td class='formauth'><span class='formdescr'> &mdash; <?php echo getlocal('settings.logo.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
<div class="field">
<div class="flabel"><?php echo getlocal('settings.logo') ?></div>
<div class="fvalue">
<input type="text" name="logo" size="40" value="<?php echo form_value('logo') ?>" class="formauth"/>
</div>
<div class="fdescr"> &mdash; <?php echo getlocal('settings.logo.description') ?></div>
<br clear="left"/>
</div>
<tr><td class='formauth'><?php echo getlocal('settings.host') ?></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
<input type="text" name="hosturl" size="40" value="<?php echo form_value('hosturl') ?>" class="formauth"/>
</td><td></td><td class='formauth'><span class='formdescr'> &mdash; <?php echo getlocal('settings.host.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
<div class="field">
<div class="flabel"><?php echo getlocal('settings.host') ?></div>
<div class="fvalue">
<input type="text" name="hosturl" size="40" value="<?php echo form_value('hosturl') ?>" class="formauth"/>
</div>
<div class="fdescr"> &mdash; <?php echo getlocal('settings.host.description') ?></div>
<br clear="left"/>
</div>
<tr><td class='formauth'><?php echo getlocal('settings.geolink') ?></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
<input type="text" name="geolink" size="40" value="<?php echo form_value('geolink') ?>" class="formauth"/>
</td><td></td><td class='formauth'><span class='formdescr'> &mdash; <?php echo getlocal('settings.geolink.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
<div class="field">
<div class="flabel"><?php echo getlocal('settings.geolink') ?></div>
<div class="fvalue">
<input type="text" name="geolink" size="40" value="<?php echo form_value('geolink') ?>" class="formauth"/>
</div>
<div class="fdescr"> &mdash; <?php echo getlocal('settings.geolink.description') ?></div>
<br clear="left"/>
</div>
<tr><td class='formauth'><?php echo getlocal('settings.geolinkparams') ?></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
<input type="text" name="geolinkparams" size="40" value="<?php echo form_value('geolinkparams') ?>" class="formauth"/>
</td><td></td><td class='formauth'><span class='formdescr'> &mdash; <?php echo getlocal('settings.geolinkparams.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
<div class="field">
<div class="flabel"><?php echo getlocal('settings.geolinkparams') ?></div>
<div class="fvalue">
<input type="text" name="geolinkparams" size="40" value="<?php echo form_value('geolinkparams') ?>" class="formauth"/>
</div>
<div class="fdescr"> &mdash; <?php echo getlocal('settings.geolinkparams.description') ?></div>
<br clear="left"/>
</div>
<tr><td class='formauth'><?php echo getlocal('settings.usernamepattern') ?></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
<input type="text" name="usernamepattern" size="40" value="<?php echo form_value('usernamepattern') ?>" class="formauth"/>
</td><td></td><td class='formauth'><span class='formdescr'> &mdash; <?php echo getlocal('settings.usernamepattern.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
<div class="field">
<div class="flabel"><?php echo getlocal('settings.usernamepattern') ?></div>
<div class="fvalue">
<input type="text" name="usernamepattern" size="40" value="<?php echo form_value('usernamepattern') ?>" class="formauth"/>
</div>
<div class="fdescr"> &mdash; <?php echo getlocal('settings.usernamepattern.description') ?></div>
<br clear="left"/>
</div>
<tr><td class='formauth'><?php echo getlocal('settings.chatstyle') ?></td><td width='10'><img width='10' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td><td></td></tr><tr><td height='2' colspan='3'></td></tr><tr><td>
<select name="chatstyle" ><?php foreach($page['availableStyles'] as $k) { echo "<option value=\"".$k."\"".($k == form_value("chatstyle") ? " selected=\"selected\"" : "").">".$k."</option>"; } ?></select>
</td><td></td><td class='formauth'><span class='formdescr'> &mdash; <?php echo getlocal('settings.chatstyle.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
<div class="field">
<div class="flabel"><?php echo getlocal('settings.chatstyle') ?></div>
<div class="fvalue">
<select name="chatstyle" ><?php foreach($page['availableStyles'] as $k) { echo "<option value=\"".$k."\"".($k == form_value("chatstyle") ? " selected=\"selected\"" : "").">".$k."</option>"; } ?></select>
</div>
<div class="fdescr"> &mdash; <?php echo getlocal('settings.chatstyle.description') ?></div>
<br clear="left"/>
</div>
<tr><td colspan='3' height='20'></td></tr><tr><td colspan='3' background='<?php echo $webimroot ?>/images/formline.gif'><img src='<?php echo $webimroot ?>/images/formline.gif' width='1' height='2' border='0' alt=''></td></tr><tr><td colspan='3' height='10'></td></tr>
<tr>
<td class="formauth" colspan="3">
<input type="image" name="" src='<?php echo $webimroot.getlocal("image.button.save") ?>' border="0" alt='<?php echo getlocal("button.save") ?>'/>
</td>
</tr>
</table></td><td></td></tr><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="2" height="10"></td>
</tr>
<tr>
<td width="30"></td>
<td class="formauth"><span class="formdescr"><?php echo getlocal("common.asterisk_explanation") ?></span></td>
</tr>
</table>
<div class="fbutton">
<input type="image" name="save" value="" src='<?php echo $webimroot.getlocal("image.button.save") ?>' alt='<?php echo getlocal("button.save") ?>'/>
</div>
</div>
</div><div class="formbottom"><div class="formbottomi"></div></div></div>
</div>
<div class="asterisk">
<?php echo getlocal("common.asterisk_explanation") ?>
</div>
</form>
</td>
</tr>
</table>
</body>
</html>
<?php
} /* content */
require_once('inc_main.php');
?>

View File

@ -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;
?>
<html>
<head>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo getlocal("page_analysis.search.title") ?> - <?php echo getlocal("app.title") ?>
</title>
<meta http-equiv="keywords" content="<?php echo getlocal("page.main_layout.meta_keyword") ?>">
<meta http-equiv="description" content="<?php echo getlocal("page.main_layout.meta_description") ?>">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#2971C1" vlink="#2971C1" alink="#2971C1">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td valign="top" class="text">
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" valign="top">
<h1><?php echo getlocal("page_analysis.search.title") ?></h1>
</td><td align="right" class="text" valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td class="textform"><?php echo getlocal2("menu.operator",array($page['operator'])) ?></td><td class="textform"><img src='<?php echo $webimroot ?>/images/topdiv.gif' width="25" height="15" border="0" alt="|" /></td><td class="textform"><a href="<?php echo $webimroot ?>/operator/index.php" title="<?php echo getlocal("menu.main") ?>"><?php echo getlocal("menu.main") ?></a></td></tr></table></td></tr></table>
<?php echo getlocal("page_search.intro") ?>
<?php echo getlocal("page_search.intro") ?>
<br />
<br />
<form name="searchForm" method="get" action="<?php echo $webimroot ?>/operator/history.php">
<table cellspacing='0' cellpadding='0' border='0'><tr><td background='<?php echo $webimroot ?>/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrt.gif' width='16' height='16' border='0' alt=''></td></tr><tr><td></td><td align='center'><table border='0' cellspacing='0' cellpadding='0'>
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
<div class="fieldForm">
<div class="field">
<div class="flabel"><?php echo getlocal("page_analysis.full.text.search") ?></div>
<div class="fvaluenodesc">
<div id="searchtext">
<input type="text" name="q" size="80" value="<?php echo form_value('q') ?>" class="formauth"/>
</div>
<div id="searchbutton">
<input type="image" name="search" src='<?php echo $webimroot.getlocal("image.button.search") ?>' alt='<?php echo getlocal("button.search") ?>'/>
</div>
</div>
<br clear="all"/>
</div>
</div>
</div><div class="formbottom"><div class="formbottomi"></div></div></div>
</form>
<br/>
<?php if( $page['pagination'] ) { ?>
<table class="list">
<thead>
<tr class="header">
<th>
<?php echo getlocal("page.analysis.search.head_name") ?>
</th><th>
<?php echo getlocal("page.analysis.search.head_host") ?>
</th><th>
<?php echo getlocal("page.analysis.search.head_operator") ?>
</th><th>
<?php echo getlocal("page.analysis.search.head_messages") ?>
</th><th>
<?php echo getlocal("page.analysis.search.head_time") ?>
</th></tr>
</thead>
<tbody>
<?php
if( $page['pagination.items'] ) {
foreach( $page['pagination.items'] as $chatthread ) { ?>
<tr>
<td class="formauth" colspan="3"><?php echo getlocal("page_analysis.full.text.search") ?></td>
</tr>
<tr><td colspan="3" height="2"></td></tr>
<tr>
<td class="formauth"><input type="text" name="q" size="80" value="<?php echo form_value('q') ?>" class="formauth"/></td>
<td width="10"><img src="<?php echo $webimroot ?>/images/free.gif" width="10" height="1" border="0" alt=""></td>
<td class="formauth">
<input type="image" name="" src='<?php echo $webimroot.getlocal("image.button.search") ?>' border="0" alt='<?php echo getlocal("button.search") ?>'/>
<td>
<a href="<?php echo $webimroot ?>/operator/threadprocessor.php?threadid=<?php echo $chatthread['threadid'] ?>" target="_blank" onclick="this.newWindow = window.open('<?php echo $webimroot ?>/operator/threadprocessor.php?threadid=<?php echo $chatthread['threadid'] ?>', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><?php echo topage(htmlspecialchars($chatthread['userName'])) ?></a>
</td>
<td>
<?php echo get_user_addr(topage($chatthread['remote'])) ?>
</td>
<td>
<?php if( $chatthread['agentName'] ) { ?><?php echo topage(htmlspecialchars($chatthread['agentName'])) ?><?php } ?>
</td>
<td>
<?php echo topage(htmlspecialchars($chatthread['size'])) ?>
</td>
<td>
<?php echo date_diff($chatthread['modified']-$chatthread['created']) ?>, <?php echo strftime("%B, %d %Y %H:%M:%S", $chatthread['created']) ?>
</td>
</tr>
</table></td><td></td></tr><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table>
</form>
<br/>
<?php if( $page['pagination'] && $page['pagination.items'] ) { ?>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td class='table' bgcolor='#276db8' height='30'><span class='header'><?php echo getlocal("page.analysis.search.head_name") ?></span></td><td width='3'></td>
<td class='table' bgcolor='#276db8' height='30'><span class='header'><?php echo getlocal("page.analysis.search.head_host") ?></span></td><td width='3'></td>
<td class='table' bgcolor='#276db8' height='30'><span class='header'><?php echo getlocal("page.analysis.search.head_operator") ?></span></td><td width='3'></td>
<td class='table' bgcolor='#276db8' height='30'><span class='header'><?php echo getlocal("page.analysis.search.head_messages") ?></span></td><td width='3'></td>
<td class='table' bgcolor='#276db8' height='30'><span class='header'><?php echo getlocal("page.analysis.search.head_time") ?></span></td>
</tr>
<?php foreach( $page['pagination.items'] as $chatthread ) { ?>
<tr>
<td height='30' class='table'>
<a href="<?php echo $webimroot ?>/operator/threadprocessor.php?threadid=<?php echo $chatthread['threadid'] ?>" target="_blank" onclick="this.newWindow = window.open('<?php echo $webimroot ?>/operator/threadprocessor.php?threadid=<?php echo $chatthread['threadid'] ?>', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><?php echo topage(htmlspecialchars($chatthread['userName'])) ?></a>
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
<td height='30' class='table'>
<?php echo get_user_addr(topage($chatthread['remote'])) ?>
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
<td height='30' class='table'>
<?php if( $chatthread['agentName'] ) { ?><?php echo topage(htmlspecialchars($chatthread['agentName'])) ?><?php } ?>
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
<td height='30' class='table'>
<?php echo topage(htmlspecialchars($chatthread['size'])) ?>
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
<td height='30' class='table'>
<?php echo date_diff($chatthread['modified']-$chatthread['created']) ?>, <?php echo strftime("%B, %d %Y %H:%M:%S", $chatthread['created']) ?>
</td>
</tr>
<tr><td height='2' colspan='9'></td></tr><tr><td bgcolor='#e1e1e1' colspan='9'><img width='1' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td></tr><tr><td height='2' colspan='9'></td></tr>
<?php } ?>
</table>
<br />
<?php echo generate_pagination($page['pagination']) ?>
<?php } ?>
<?php if( $page['pagination'] && !$page['pagination.items'] ) { ?>
<br/><br/>
<table cellspacing='0' cellpadding='0' border='0'><tr><td background='<?php echo $webimroot ?>/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrt.gif' width='16' height='16' border='0' alt=''></td></tr><tr><td></td><td align='center'><table border='0' cellspacing='0' cellpadding='0'>
<span class="table">
<?php echo getlocal("tag.pagination.no_items") ?>
</span>
</table></td><td></td></tr><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table>
<?php } ?>
</td>
</tr>
<?php
}
} else {
?>
<tr>
<td colspan="5">
<?php echo getlocal("tag.pagination.no_items.elements") ?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
<?php
if( $page['pagination.items'] ) {
echo "<br/>";
echo generate_pagination($page['pagination']);
}
}
?>
</body>
</html>
<?php
} /* content */
require_once('inc_main.php');
?>

View File

@ -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;
?>
<html>
<head>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo getlocal("updates.title") ?> - <?php echo getlocal("app.title") ?>
</title>
<meta http-equiv="keywords" content="<?php echo getlocal("page.main_layout.meta_keyword") ?>">
<meta http-equiv="description" content="<?php echo getlocal("page.main_layout.meta_description") ?>">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#2971C1" vlink="#2971C1" alink="#2971C1">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td valign="top" class="text">
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" valign="top">
<h1><?php echo getlocal("updates.title") ?></h1>
</td><td align="right" class="text" valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td class="textform"><?php echo getlocal2("menu.operator",array($page['operator'])) ?></td><td class="textform"><img src='<?php echo $webimroot ?>/images/topdiv.gif' width="25" height="15" border="0" alt="|" /></td><td class="textform"><a href="<?php echo $webimroot ?>/operator/index.php" title="<?php echo getlocal("menu.main") ?>"><?php echo getlocal("menu.main") ?></a></td></tr></table></td></tr></table>
<?php echo getlocal("updates.intro") ?>
<?php echo getlocal("updates.intro") ?>
<br />
<br />
<table cellspacing='0' cellpadding='0' border='0'>
<div>
<?php if($page['tabs']) { ?>
<tr><td align="right" style="padding-right:16px;"><table cellspacing="0" cellpadding="0" border="0"><tr><?php foreach($page['tabs'] as $k => $v) { if($v) { ?><td class="textform" style="padding: 2px 9px 3px 9px;"><a href="<?php echo $v ?>"><?php echo $k ?></a></td><?php } else { ?><td class="textform" background="<?php echo $webimroot ?>/images/loginbg.gif" style="border-left:1px solid #bbbbbb;border-top:1px solid #bbbbbb;border-right:1px solid #bbbbbb;padding: 2px 9px 3px 9px;"><?php echo $k ?></td><?php }} ?></tr></table></td></tr>
<ul class="tabs">
<?php foreach($page['tabs'] as $k => $v) { if($v) { ?>
<li><a href="<?php echo $v ?>"><?php echo $k ?></a></li>
<?php } else { ?>
<li class="active"><a href="#"><?php echo $k ?></a></li><?php }} ?>
</ul>
<?php } ?>
<tr><td background='<?php echo $webimroot ?>/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrt.gif' width='16' height='16' border='0' alt=''></td></tr><tr><td></td><td align='center'><table border='0' cellspacing='0' cellpadding='0' width="700">
<tr>
<td colspan="3" class="formauth">You are using:</td>
</tr>
<tr><td colspan="3" height="2"></td></tr>
<tr>
<td colspan="3" class="formauth" style="font-size:80%;">
<div class="mform"><div class="formtop"><div class="formtopi"></div></div><div class="forminner">
You are using:<br/>
&laquo;<span style="color:#bb5500;">Open</span> Web Messenger&raquo; <?php echo $page['version'] ?>
</td>
</tr>
<tr><td colspan="3" height="8"></td></tr>
<tr>
<td colspan="3" class="formauth">Installed localizations:</td>
</tr>
<tr><td colspan="3" height="2"></td></tr>
<tr>
<td colspan="3" class="formauth" style="font-size:80%;">
<br/><br/>
Installed localizations:<br/>
<?php foreach( $page['localizations'] as $loc ) { ?>
<?php echo $loc ?>
<?php } ?>
</td>
</tr>
<tr><td colspan="3" height="8"></td></tr>
<tr>
<td colspan="3" class="formauth">Environment:</td>
</tr>
<tr><td colspan="3" height="2"></td></tr>
<tr>
<td colspan="3" class="formauth" style="font-size:80%;">
<br/><br/>
Environment:<br/>
PHP <?php echo $page['phpVersion'] ?>
</td>
</tr>
</table></td><td></td></tr><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table>
<br/>
</div><div class="formbottom"><div class="formbottomi"></div></div></div>
</div>
</td>
</tr>
</table>
</body>
</html>
<?php
} /* content */
require_once('inc_main.php');
?>