From 60bf1756fd323e55faef5aa38b1d3ccf5a0b9c2c Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 29 Jul 2010 10:15:51 +0000 Subject: [PATCH] Updated post handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19212 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../class_singleUserSelect.inc | 66 +++++++++---------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/gosa-core/plugins/admin/groups/singleUserSelect/class_singleUserSelect.inc b/gosa-core/plugins/admin/groups/singleUserSelect/class_singleUserSelect.inc index 5133828c8..20c8b9b11 100644 --- a/gosa-core/plugins/admin/groups/singleUserSelect/class_singleUserSelect.inc +++ b/gosa-core/plugins/admin/groups/singleUserSelect/class_singleUserSelect.inc @@ -23,40 +23,40 @@ class singleUserSelect extends management { - protected $skipFooter = TRUE; - protected $skipHeader = TRUE; - - var $plHeadline = "User selection"; - - function __construct($config,$ui) - { - $this->config = $config; - $this->ui = $ui; - - $this->storagePoints = array(get_ou("core", "userRDN")); - - // Build filter - if (session::global_is_set(get_class($this)."_filter")){ - $filter= session::global_get(get_class($this)."_filter"); - } else { - $filter = new filter(get_template_path("singleUser-filter.xml", true, dirname(__FILE__))); - $filter->setObjectStorage($this->storagePoints); + protected $skipFooter = TRUE; + protected $skipHeader = TRUE; + + var $plHeadline = "User selection"; + + function __construct($config,$ui) + { + $this->config = $config; + $this->ui = $ui; + + $this->storagePoints = array(get_ou("core", "userRDN")); + + // Build filter + if (session::global_is_set(get_class($this)."_filter")){ + $filter= session::global_get(get_class($this)."_filter"); + } else { + $filter = new filter(get_template_path("singleUser-filter.xml", true, dirname(__FILE__))); + $filter->setObjectStorage($this->storagePoints); + } + $this->setFilter($filter); + + // Build headpage + $headpage = new listing(get_template_path("singleUser-list.xml", true, dirname(__FILE__))); + $headpage->setFilter($filter); + parent::__construct($config, $ui, "users", $headpage); + } + + // Inject user actions + function detectPostActions() + { + $action = management::detectPostActions(); + if(isset($_POST['add_users_save'])) $action['action'] = "userSelected"; + return($action);; } - $this->setFilter($filter); - - // Build headpage - $headpage = new listing(get_template_path("singleUser-list.xml", true, dirname(__FILE__))); - $headpage->setFilter($filter); - parent::__construct($config, $ui, "users", $headpage); - } - - // Inject user actions - function detectPostActions() - { - $action = management::detectPostActions(); - if(isset($_POST['add_users_save'])) $action['action'] = "userSelected"; - return($action);; - } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> -- 2.30.2