From d54e50d2280aff0b6ce5de3fefbe536e5ccbdf10 Mon Sep 17 00:00:00 2001 From: Ed Kraus Date: Wed, 14 Jan 2009 02:17:11 +0000 Subject: [PATCH] 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 --- src/messenger/webim/libs/settings.php | 4 +- src/messenger/webim/locales/en/properties | 10 +-- src/messenger/webim/operator/news.php | 29 +++++++ src/messenger/webim/view/news.php | 96 +++++++++++++++++++++++ 4 files changed, 128 insertions(+), 11 deletions(-) create mode 100644 src/messenger/webim/operator/news.php create mode 100644 src/messenger/webim/view/news.php diff --git a/src/messenger/webim/libs/settings.php b/src/messenger/webim/libs/settings.php index e9c48c91..5852313b 100644 --- a/src/messenger/webim/libs/settings.php +++ b/src/messenger/webim/libs/settings.php @@ -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" : "", ); } diff --git a/src/messenger/webim/locales/en/properties b/src/messenger/webim/locales/en/properties index a1b4a805..949a2d27 100644 --- a/src/messenger/webim/locales/en/properties +++ b/src/messenger/webim/locales/en/properties @@ -89,7 +89,6 @@ errors.required=Please fill "{0}". errors.suffix= 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
Details in the tooltip -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. - diff --git a/src/messenger/webim/operator/news.php b/src/messenger/webim/operator/news.php new file mode 100644 index 00000000..f36b54ee --- /dev/null +++ b/src/messenger/webim/operator/news.php @@ -0,0 +1,29 @@ + ''); +$errors = array(); + + +setup_settings_tabs(3); +start_html_output(); +require('../view/news.php'); +?> \ No newline at end of file diff --git a/src/messenger/webim/view/news.php b/src/messenger/webim/view/news.php new file mode 100644 index 00000000..b63b0fda --- /dev/null +++ b/src/messenger/webim/view/news.php @@ -0,0 +1,96 @@ + + + + + + + + + + + + <?php echo getlocal("settings.title") ?> - <?php echo getlocal("app.title") ?> + + +"> +"> + + + + + + + + +
+ +
+

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