From: cajus Date: Thu, 13 Aug 2009 15:57:10 +0000 (+0000) Subject: Added rendering for action menu X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3654000069256d0fb3b4cbb31bd2bd5478f163f2;p=gosa.git Added rendering for action menu git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14058 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index afe75ff91..2e776bfee 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -169,7 +169,7 @@ echo "filter for images, action menu, sorting, department browsing, filter base } // Assign action menu - $smarty->assign("ACTIONS", "TBD"); + $smarty->assign("ACTIONS", $this->renderActionMenu()); // Assign separator $smarty->assign("SEPARATOR", "-"); @@ -345,6 +345,12 @@ echo "filter for images, action menu, sorting, department browsing, filter base } + function filterActions() + { + return "TBD"; + } + + function filterLink() { $result= " "; @@ -483,6 +489,69 @@ echo "filter for images, action menu, sorting, department browsing, filter base return $result; } + + function renderActionMenu() + { + // Don't send anything if the menu is not defined + if (!isset($this->xmlData['actionmenu']['action'])){ + return ""; + } + + // Load shortcut + $actions= &$this->xmlData['actionmenu']['action']; + $result= "
"; + } + + + function recurseActions($actions) + { + static $level= 2; + $result= ""; + return $result; + } + + } ?>