mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-22 21:40:28 +03:00
chat title, fix demothread
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@192 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
a91cac03a9
commit
55d67ed905
BIN
src/messenger/webim/images/webimlogo.gif
Normal file
BIN
src/messenger/webim/images/webimlogo.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
@ -277,6 +277,7 @@ function setup_chatview_for_user($thread,$level) {
|
||||
$page['ct.token'] = $thread['ltoken'];
|
||||
$page['ct.user.name'] = topage($thread['userName']);
|
||||
$page['canChangeName'] = $settings['usercanchangename'] == "1";
|
||||
$page['chat.title'] = topage($settings['chattitle']);
|
||||
|
||||
setup_logo();
|
||||
$page['send_shortcut'] = "Ctrl-Enter";
|
||||
@ -298,6 +299,7 @@ function setup_chatview_for_operator($thread,$operator) {
|
||||
$page['ct.chatThreadId'] = $thread['threadid'];
|
||||
$page['ct.token'] = $thread['ltoken'];
|
||||
$page['ct.user.name'] = topage(get_user_name($thread['userName'],$thread['remote'],$thread['userid']));
|
||||
$page['chat.title'] = topage($settings['chattitle']);
|
||||
|
||||
setup_logo();
|
||||
$page['send_shortcut'] = "Ctrl-Enter";
|
||||
|
@ -428,13 +428,14 @@ function webim_mail($toaddr, $reply_to, $subject, $body) {
|
||||
|
||||
$settings = array(
|
||||
'email' => '', /* inbox for left messages */
|
||||
'title' => 'Company',
|
||||
'title' => 'Your Company',
|
||||
'hosturl' => 'http://webim.sourceforge.net',
|
||||
'logo' => '',
|
||||
'enableban' => '0',
|
||||
'usernamepattern' => '{name}',
|
||||
'usercanchangename' => '1',
|
||||
'chatstyle' => 'default'
|
||||
'chatstyle' => 'default',
|
||||
'chattitle' => 'Live Support'
|
||||
);
|
||||
$settingsloaded = false;
|
||||
$settings_in_db = array();
|
||||
|
@ -36,7 +36,7 @@ function demo_process_thread($act,$outformat,$lastid,$isuser,$canpost,$istyping,
|
||||
"<meta http-equiv=\"Refresh\" content=\"7; URL=$url&sn=11\">\n".
|
||||
"<meta http-equiv=\"Pragma\" content=\"no-cache\">\n".
|
||||
"</head>".
|
||||
"<body bgcolor='#FFFFFF' text='#000000' link='#C28400' vlink='#C28400' alink='#C28400' marginwidth='0' marginheight='0' leftmargin='0' rightmargin='0' topmargin='0' bottommargin='0' onload=\"if( location.hash != '#aend' ){location.hash='#aend';}\">".
|
||||
"<body bgcolor='#FFFFFF' text='#000000' link='#C28400' vlink='#C28400' alink='#C28400' marginwidth='0' marginheight='0' leftmargin='0' rightmargin='0' topmargin='0' bottommargin='0'>".
|
||||
"<table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td valign='top' class='message'>" );
|
||||
}
|
||||
if($lastid == 1) {
|
||||
|
@ -256,6 +256,8 @@ page_avatar.intro=You can upload your photo only in JPG, GIF, PNG or TIF image f
|
||||
page_avatar.title=Upload photo
|
||||
page_search.intro=Search for chat history of a specified user or a specified phrase in a message.
|
||||
page_settings.intro=Specify options affecting chat window and common system behavior
|
||||
settings.chat.title=Title in the chat window
|
||||
settings.chat.title.description=Department of your company for example.
|
||||
settings.chatstyle=Select style for your chat windows
|
||||
settings.chatstyle.description=Preview for all pages of each style is available <a href="preview.php">here</a>
|
||||
settings.company.title=Company title
|
||||
|
@ -256,6 +256,8 @@ page_avatar.intro=
|
||||
page_avatar.title=Загрузка фотографии
|
||||
page_search.intro=На данной странице можно осуществить поиск диалогов по имени пользователя или фразе, встречающейся в сообщении.
|
||||
page_settings.intro=Здесь вы можете задать опции влияющие на отображение чат окна и общее поведение системы
|
||||
settings.chat.title=Çàãîëîâîê â ÷àò îêíå
|
||||
settings.chat.title.description=Íàïðèìåð, íàçâàíèå îòäåëà âàøåé êîìïàíèè
|
||||
settings.chatstyle=Выберите вид вашего чат окна
|
||||
settings.chatstyle.description=Предпросмотр всех страниц каждого стиля доступен <a href="preview.php">здесь</a>
|
||||
settings.company.title=Название компании
|
||||
|
@ -50,6 +50,7 @@ if( $nextOperator ) {
|
||||
$errors[] = "Unknown operator"; // FIXME
|
||||
}
|
||||
|
||||
setup_logo();
|
||||
if( count($errors) > 0 ) {
|
||||
expand("../styles", getchatstyle(), "error.tpl");
|
||||
} else {
|
||||
|
@ -54,6 +54,7 @@ $enableban = $settings['enableban'];
|
||||
$usernamepattern = $settings['usernamepattern'];
|
||||
$usercanchangename = $settings['usercanchangename'];
|
||||
$chatstyle = $settings['chatstyle'];
|
||||
$chattitle = $settings['chattitle'];
|
||||
|
||||
if (isset($_POST['email']) && isset($_POST['title']) && isset($_POST['logo'])) {
|
||||
$email = getparam('email');
|
||||
@ -63,6 +64,7 @@ if (isset($_POST['email']) && isset($_POST['title']) && isset($_POST['logo'])) {
|
||||
$enableban = verifyparam("enableban","/^on$/", "") == "on" ? "1" : "0";
|
||||
$usernamepattern = getparam('usernamepattern');
|
||||
$usercanchangename = verifyparam("usercanchangename", "/^on$/", "") == "on" ? "1" : "0";
|
||||
$chattitle = getparam('chattitle');
|
||||
|
||||
$chatstyle = verifyparam("chatstyle","/^\w+$/", $chatstyle);
|
||||
if(!in_array($chatstyle, $stylelist)) {
|
||||
@ -82,6 +84,7 @@ if (isset($_POST['email']) && isset($_POST['title']) && isset($_POST['logo'])) {
|
||||
$settings['usernamepattern'] = $usernamepattern;
|
||||
$settings['usercanchangename'] = $usercanchangename;
|
||||
$settings['chatstyle'] = $chatstyle;
|
||||
$settings['chattitle'] = $chattitle;
|
||||
update_settings();
|
||||
header("Location: $webimroot/operator/index.php");
|
||||
exit;
|
||||
@ -97,6 +100,7 @@ $page['formenableban'] = $enableban == "1";
|
||||
$page['formusernamepattern'] = topage($usernamepattern);
|
||||
$page['formusercanchangename'] = $usercanchangename == "1";
|
||||
$page['formchatstyle'] = $chatstyle;
|
||||
$page['formchattitle'] = topage($chattitle);
|
||||
$page['availableStyles'] = $stylelist;
|
||||
|
||||
start_html_output();
|
||||
|
@ -62,16 +62,18 @@ var threadParams = { servl:"${webimroot}/thread.php",wroot:"${webimroot}",freque
|
||||
${endif:webimHost}
|
||||
${else:ct.company.chatLogoURL}
|
||||
${if:webimHost}
|
||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">${page:ct.company.name}</a>
|
||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||
<img src="${webimroot}/images/webimlogo.gif" border="0" alt="">
|
||||
</a>
|
||||
${else:webimHost}
|
||||
${page:ct.company.name}
|
||||
<img src="${webimroot}/images/webimlogo.gif" border="0" alt="">
|
||||
${endif:webimHost}
|
||||
${endif:ct.company.chatLogoURL}
|
||||
</td>
|
||||
<td align="right" valign="top" id="banner_orange">
|
||||
<table cellspacing="0" cellpadding="0" border="0" width="460">
|
||||
<tr>
|
||||
<td height="100" align="right" valign="top" style="padding:5px">
|
||||
<td height="30" align="right" valign="top" style="padding:5px">
|
||||
<div id="engineinfo" style="display:none;">
|
||||
</div>
|
||||
<div id="typingdiv" style="display:none;">
|
||||
@ -79,6 +81,12 @@ var threadParams = { servl:"${webimroot}/thread.php",wroot:"${webimroot}",freque
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40" align="right" nowrap style="padding-right:10px"><span style="font-size:16px;font-weight:bold;color:#525252">${page:chat.title}</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="30"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -5,77 +5,65 @@
|
||||
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" type="text/css" href="${webimroot}/chat.css" />
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#C28400" vlink="#C28400" alink="#C28400" marginwidth="0" marginheight="0" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">
|
||||
<style>
|
||||
#header{
|
||||
height:50px;
|
||||
background:url(${tplroot}/bg_domain.gif) repeat-x top;
|
||||
background-color:#5AD66B;
|
||||
width:99.6%;
|
||||
margin:0px 0px 20px 0px;
|
||||
}
|
||||
#header .mmimg{
|
||||
background:url(${tplroot}/quadrat.gif) bottom left no-repeat;
|
||||
}
|
||||
</style>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#C28400" vlink="#C28400" alink="#C28400" style="margin:0px">
|
||||
<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td valign="top">
|
||||
|
||||
<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td height="75"></td>
|
||||
<td class="window">
|
||||
<h1>${msg:chat.error_page.head}</h1>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td height="100%"></td>
|
||||
<td>
|
||||
|
||||
<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0"><tr>
|
||||
<td width="15"><img src='${webimroot}/images/wincrnlt.gif' width="15" height="15" border="0" alt="" /></td>
|
||||
<td width="100%" background="${webimroot}/images/winbg.gif" class="bgcy"><img src='${webimroot}/images/free.gif' width="1" height="1" border="0" alt="" /></td>
|
||||
<td width="15"><img src='${webimroot}/images/wincrnrt.gif' width="15" height="15" border="0" alt="" /></td>
|
||||
</tr><tr><td height="100%" bgcolor="#FED840"><img src='${webimroot}/images/free.gif' width="1" height="1" border="0" alt="" /></td>
|
||||
<td background="${webimroot}/images/winbg.gif" class="bgcy">
|
||||
|
||||
${errors}
|
||||
|
||||
|
||||
</td><td bgcolor="#E8A400"><img src='${webimroot}/images/free.gif' width="1" height="1" border="0" alt="" /></td>
|
||||
</tr><tr><td><img src='${webimroot}/images/wincrnlb.gif' width="15" height="15" border="0" alt="" /></td>
|
||||
<td background="${webimroot}/images/winbg.gif" class="bgcy"><img src='${webimroot}/images/free.gif' width="1" height="1" border="0" alt="" /></td>
|
||||
<td><img src='${webimroot}/images/wincrnrb.gif' width="15" height="15" border="0" alt="" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td height="70"></td>
|
||||
<td>
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td width="100%" align="right">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<td valign="top" style="padding:5px">
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td><a href="javascript:window.close();" title="${msg:chat.error_page.close}"><img src='${webimroot}/images/buttons/back.gif' width="25" height="25" border="0" alt="" /></a></td>
|
||||
<td width="5"></td>
|
||||
<td class="button"><a href="javascript:window.close();" title="${msg:chat.error_page.close}">${msg:chat.error_page.close}</a></td>
|
||||
<td width="100%" height="100" style="padding-left:20px;">
|
||||
${if:ct.company.chatLogoURL}
|
||||
${if:webimHost}
|
||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||
<img src="${page:ct.company.chatLogoURL}" border="0" alt="">
|
||||
</a>
|
||||
${else:webimHost}
|
||||
<img src="${page:ct.company.chatLogoURL}" border="0" alt="">
|
||||
${endif:webimHost}
|
||||
${else:ct.company.chatLogoURL}
|
||||
${if:webimHost}
|
||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">${page:ct.company.name}</a>
|
||||
${else:webimHost}
|
||||
${page:ct.company.name}
|
||||
${endif:webimHost}
|
||||
${endif:ct.company.chatLogoURL}
|
||||
</td>
|
||||
<td nowrap style="padding-right:10px"><span style="font-size:16px;font-weight:bold;color:#525252">${msg:chat.error_page.head}</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellspacing="0" cellpadding="0" border="0" id="header" class="bg_domain">
|
||||
<tr>
|
||||
<td style="padding-left:20px;color:white;" class="mmimg" width="770">
|
||||
|
||||
</td>
|
||||
<td align="right" style="padding-right:17px;padding-left:17px;">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td><a href="javascript:window.close();" title="${msg:chat.error_page.close}"><img src='${webimroot}/images/buttons/back.gif' width="25" height="25" border="0" alt="" /></a></td>
|
||||
<td width="5"></td>
|
||||
<td class="button"><a href="javascript:window.close();" title="${msg:chat.error_page.close}">${msg:chat.error_page.close}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>
|
||||
${errors}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="30"><img src='${webimroot}/images/free.gif' width="30" height="1" border="0" alt="" /></td>
|
||||
<td width="100%"><img src='${webimroot}/images/free.gif' width="540" height="1" border="0" alt="" /></td>
|
||||
<td width="30"><img src='${webimroot}/images/free.gif' width="30" height="1" border="0" alt="" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
</html>
|
@ -59,9 +59,11 @@
|
||||
${endif:webimHost}
|
||||
${else:ct.company.chatLogoURL}
|
||||
${if:webimHost}
|
||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">${page:ct.company.name}</a>
|
||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||
<img src="${webimroot}/images/webimlogo.gif" border="0" alt="">
|
||||
</a>
|
||||
${else:webimHost}
|
||||
${page:ct.company.name}
|
||||
<img src="${webimroot}/images/webimlogo.gif" border="0" alt="">
|
||||
${endif:webimHost}
|
||||
${endif:ct.company.chatLogoURL}
|
||||
</td>
|
||||
|
@ -34,9 +34,11 @@
|
||||
${endif:webimHost}
|
||||
${else:ct.company.chatLogoURL}
|
||||
${if:webimHost}
|
||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">${page:ct.company.name}</a>
|
||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||
<img src="${webimroot}/images/webimlogo.gif" border="0" alt="">
|
||||
</a>
|
||||
${else:webimHost}
|
||||
${page:ct.company.name}
|
||||
<img src="${webimroot}/images/webimlogo.gif" border="0" alt="">
|
||||
${endif:webimHost}
|
||||
${endif:ct.company.chatLogoURL}
|
||||
</td>
|
||||
|
@ -47,10 +47,12 @@
|
||||
<img src="${page:ct.company.chatLogoURL}" border="0" alt="">
|
||||
${endif:webimHost}
|
||||
${else:ct.company.chatLogoURL}
|
||||
${if:webimHost}
|
||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">${page:ct.company.name}</a>
|
||||
${if:webimHost}
|
||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||
<img src="${webimroot}/images/webimlogo.gif" border="0" alt="">
|
||||
</a>
|
||||
${else:webimHost}
|
||||
${page:ct.company.name}
|
||||
<img src="${webimroot}/images/webimlogo.gif" border="0" alt="">
|
||||
${endif:webimHost}
|
||||
${endif:ct.company.chatLogoURL}
|
||||
</td>
|
||||
@ -73,7 +75,7 @@ ${endif:errors}
|
||||
<td style="padding-left: 20px" class="img132" width="270">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td class="text" style="color: white">${msg:mailthread.enter_email}</td>
|
||||
<td class="text" style="color: white" nowrap>${msg:mailthread.enter_email}</td>
|
||||
<td width="10"></td>
|
||||
<td><input type="text" name="email" size="20" value="${form:email}" class="username" /></td>
|
||||
</tr>
|
||||
|
@ -34,9 +34,11 @@
|
||||
${endif:webimHost}
|
||||
${else:ct.company.chatLogoURL}
|
||||
${if:webimHost}
|
||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">${page:ct.company.name}</a>
|
||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||
<img src="${webimroot}/images/webimlogo.gif" border="0" alt="">
|
||||
</a>
|
||||
${else:webimHost}
|
||||
${page:ct.company.name}
|
||||
<img src="${webimroot}/images/webimlogo.gif" border="0" alt="">
|
||||
${endif:webimHost}
|
||||
${endif:ct.company.chatLogoURL}
|
||||
</td>
|
||||
|
@ -34,9 +34,11 @@
|
||||
${endif:webimHost}
|
||||
${else:ct.company.chatLogoURL}
|
||||
${if:webimHost}
|
||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">${page:ct.company.name}</a>
|
||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||
<img src="${webimroot}/images/webimlogo.gif" border="0" alt="">
|
||||
</a>
|
||||
${else:webimHost}
|
||||
${page:ct.company.name}
|
||||
<img src="${webimroot}/images/webimlogo.gif" border="0" alt="">
|
||||
${endif:webimHost}
|
||||
${endif:ct.company.chatLogoURL}
|
||||
</td>
|
||||
|
@ -58,9 +58,11 @@
|
||||
${endif:webimHost}
|
||||
${else:ct.company.chatLogoURL}
|
||||
${if:webimHost}
|
||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">${page:ct.company.name}</a>
|
||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||
<img src="${webimroot}/images/webimlogo.gif" border="0" alt="">
|
||||
</a>
|
||||
${else:webimHost}
|
||||
${page:ct.company.name}
|
||||
<img src="${webimroot}/images/webimlogo.gif" border="0" alt="">
|
||||
${endif:webimHost}
|
||||
${endif:ct.company.chatLogoURL}
|
||||
</td>
|
||||
|
@ -34,9 +34,11 @@
|
||||
${endif:webimHost}
|
||||
${else:ct.company.chatLogoURL}
|
||||
${if:webimHost}
|
||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">${page:ct.company.name}</a>
|
||||
<a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
|
||||
<img src="${webimroot}/images/webimlogo.gif" border="0" alt="">
|
||||
</a>
|
||||
${else:webimHost}
|
||||
${page:ct.company.name}
|
||||
<img src="${webimroot}/images/webimlogo.gif" border="0" alt="">
|
||||
${endif:webimHost}
|
||||
${endif:ct.company.chatLogoURL}
|
||||
</td>
|
||||
|
@ -74,6 +74,10 @@
|
||||
<input type="text" name="title" size="40" value="<?php echo form_value('title') ?>" class="formauth"/>
|
||||
</td><td></td><td class='formauth'><span class='formdescr'> — <?php echo getlocal('settings.company.title.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
|
||||
|
||||
<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'> — <?php echo getlocal('settings.chat.title.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
|
||||
|
||||
<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'> — <?php echo getlocal('settings.logo.description') ?></span></td></tr><tr><td colspan='3' height='10'></td></tr>
|
||||
|
Loading…
Reference in New Issue
Block a user