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