mirror of
https://github.com/Mibew/java.git
synced 2025-01-23 01:50:34 +03:00
News all ready! eh sorry inspirer about adding it to branches folder... my svn's messed up....
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@324 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
cbf8c0a543
commit
d54e50d228
@ -31,8 +31,8 @@ function setup_settings_tabs($active) {
|
||||
$page['tabs'] = array(
|
||||
getlocal("page_settings.tab.main") => $active != 0 ? "$webimroot/operator/settings.php" : "",
|
||||
getlocal("page_settings.tab.features") => $active != 1 ? "$webimroot/operator/features.php" : "",
|
||||
getlocal("page_settings.tab.departments") => $active != 2 ? "$webimroot/operator/departments.php" : "",
|
||||
getlocal("page_settings.tab.themes") => $active != 3 ? "$webimroot/operator/preview.php" : "",
|
||||
getlocal("page_settings.tab.themes") => $active != 2 ? "$webimroot/operator/preview.php" : "",
|
||||
getlocal("page_settings.tab.news") => $active != 3 ? "$webimroot/operator/news.php" : "",
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,6 @@ errors.required=Please fill "{0}".
|
||||
errors.suffix=</li>
|
||||
errors.wrong_field=Please fill "{0}" correctly.
|
||||
features.saved=Features activated
|
||||
departments.saved.Departments Saved
|
||||
form.field.address.description=Ex: 12.23.45.123 or todo.com
|
||||
form.field.address=Visitor's Address
|
||||
form.field.agent_commonname.description=This name will be seen by your visitors.
|
||||
@ -173,9 +172,6 @@ page.analysis.search.head_messages=Visitor's messages
|
||||
page.analysis.search.head_name=Name
|
||||
page.analysis.search.head_operator=Operator
|
||||
page.analysis.search.head_time=Time in chat
|
||||
page.analysis.search.head_geo=Geo
|
||||
page.analysis.search.user_agent=Browser <br/><small>Details in the tooltip</small>
|
||||
page.analysis.search.head_os=Operation System
|
||||
page.analysis.userhistory.intro=You can find chat history of your visitors here.
|
||||
page.analysis.userhistory.title=Visits history
|
||||
page.chat.old_browser.close=Close...
|
||||
@ -251,7 +247,7 @@ page_login.remember=Remember
|
||||
page_login.title=Login
|
||||
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
|
||||
page_settings.tab.departments=Departments
|
||||
page_settings.tab.news=News
|
||||
page_settings.tab.features=Optional Services
|
||||
page_settings.tab.main=General
|
||||
page_settings.tab.themes=Themes preview
|
||||
@ -308,7 +304,3 @@ topMenu.admin=Administration
|
||||
topMenu.logoff=Exit
|
||||
topMenu.users=Visitors
|
||||
typing.remote=Remote user is typing...
|
||||
|
||||
departments.add=Add a department
|
||||
departments.add.description= Add a department for users to contact one user.
|
||||
|
||||
|
29
src/messenger/webim/operator/news.php
Normal file
29
src/messenger/webim/operator/news.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Web Instant Messenger project.
|
||||
*
|
||||
* Copyright (c) 2005-2008 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('../libs/common.php');
|
||||
require_once('../libs/operator.php');
|
||||
require_once('../libs/settings.php');
|
||||
require_once('../libs/config.php');
|
||||
|
||||
$operator = check_login();
|
||||
|
||||
$page = array('agentId' => '');
|
||||
$errors = array();
|
||||
|
||||
|
||||
setup_settings_tabs(3);
|
||||
start_html_output();
|
||||
require('../view/news.php');
|
||||
?>
|
96
src/messenger/webim/view/news.php
Normal file
96
src/messenger/webim/view/news.php
Normal file
@ -0,0 +1,96 @@
|
||||
<?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("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") ?>
|
||||
<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['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'>
|
||||
<?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'>
|
||||
<?php
|
||||
$curl = curl_init();
|
||||
curl_setopt ($curl, CURLOPT_URL, "http://openwebim.org/news.xml");
|
||||
curl_exec ($curl);
|
||||
curl_close ($curl);
|
||||
?></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>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user