From 063de2e12baabe23aabf354053cf10c94a331201 Mon Sep 17 00:00:00 2001 From: Ed Date: Sat, 3 Jan 2009 00:12:31 +0000 Subject: [PATCH] Adds Departments tab in Settings. need you to make it work with mysql. i've started with the thing at the bottom of view/departments.php git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@270 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/messenger/webim/libs/settings.php | 1 + src/messenger/webim/operator/departments.php | 29 +++++ src/messenger/webim/view/departments.php | 105 +++++++++++++++++++ 3 files changed, 135 insertions(+) create mode 100644 src/messenger/webim/operator/departments.php create mode 100644 src/messenger/webim/view/departments.php diff --git a/src/messenger/webim/libs/settings.php b/src/messenger/webim/libs/settings.php index 0eeee01f..9013d4f6 100644 --- a/src/messenger/webim/libs/settings.php +++ b/src/messenger/webim/libs/settings.php @@ -31,6 +31,7 @@ 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" : "", ); } diff --git a/src/messenger/webim/operator/departments.php b/src/messenger/webim/operator/departments.php new file mode 100644 index 00000000..91bfe1d0 --- /dev/null +++ b/src/messenger/webim/operator/departments.php @@ -0,0 +1,29 @@ + ''); +$errors = array(); + + +setup_settings_tabs(2); +start_html_output(); +require('../view/departments.php'); +?> \ No newline at end of file diff --git a/src/messenger/webim/view/departments.php b/src/messenger/webim/view/departments.php new file mode 100644 index 00000000..ee5c8ade --- /dev/null +++ b/src/messenger/webim/view/departments.php @@ -0,0 +1,105 @@ + + + + + + + + + + + + <?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) { ?>
+ + + + + + + + + + +
+ +
+ +
+
+ +
+ + + \ No newline at end of file