diff --git a/views/bootstrap/class.Categories.php b/views/bootstrap/class.Categories.php index e373c27a9..fbc3513f9 100644 --- a/views/bootstrap/class.Categories.php +++ b/views/bootstrap/class.Categories.php @@ -31,80 +31,37 @@ require_once("class.Bootstrap.php"); */ class SeedDMS_View_Categories extends SeedDMS_Bootstrap_Style { - function show() { /* {{{ */ - $dms = $this->params['dms']; - $user = $this->params['user']; - $categories = $this->params['categories']; - - $this->htmlStartPage(getMLText("admin_tools")); - $this->globalNavigation(); - $this->contentStart(); - $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); + function js() { /* {{{ */ + $selcat = $this->params['selcategory']; ?> - - +$(document).ready( function() { + $( "#selector" ).change(function() { + $('div.ajax').trigger('update', {categoryid: $(this).val()}); + }); +}); contentHeading(getMLText("global_document_categories")); -?> -
-
-
-: - + function info() { /* {{{ */ + $dms = $this->params['dms']; + $selcat = $this->params['selcategory']; -
-
+ if($selcat) { + $this->contentHeading(getMLText("category_info")); + $documents = $selcat->getDocumentsByCategory(); + echo "\n"; + echo "\n"; + echo "
".getMLText('document_count')."".(count($documents))."
"; + } + } /* }}} */ -
-
- - - - -getID()."\" style=\"display : none;\">"; + function showCategoryForm($category) { /* {{{ */ ?>
isUsed()) { + if($category && !$category->isUsed()) { ?>
@@ -125,28 +82,68 @@ function showCategories(selectObj) {
: + + + + -   + +  
- - - -
-
+params['selcategory']; + + $this->showCategoryForm($selcat); + } /* }}} */ + + function show() { /* {{{ */ + $dms = $this->params['dms']; + $user = $this->params['user']; + $categories = $this->params['categories']; + $selcat = $this->params['selcategory']; + + $this->htmlStartPage(getMLText("admin_tools")); + $this->globalNavigation(); + $this->contentStart(); + $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); + + $this->contentHeading(getMLText("global_document_categories")); +?> +
+
+
+: + +
+
getID()."\"" : "") ?>>
+
+ +
+
+
getID()."\"" : "") ?>>
+ +
+
- htmlEndPage(); } /* }}} */