From 25f9c77e09c581e44f832030ad95e2a54605ee88 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 26 Jul 2010 09:07:09 +0000 Subject: [PATCH] Updated SystemSelect dialog git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19101 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systemSelect/class_systemSelect.inc | 67 ++++++++++--------- 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/systemSelect/class_systemSelect.inc b/gosa-plugins/systems/admin/systems/systemSelect/class_systemSelect.inc index 875a55512..100e8f8be 100644 --- a/gosa-plugins/systems/admin/systems/systemSelect/class_systemSelect.inc +++ b/gosa-plugins/systems/admin/systems/systemSelect/class_systemSelect.inc @@ -22,44 +22,47 @@ class systemSelect extends management { - // Tab definition - protected $skipFooter = TRUE; - protected $skipHeader = TRUE; + // Tab definition + protected $skipFooter = TRUE; + protected $skipHeader = TRUE; - public $plHeadline = "System selection"; + public $plHeadline = "System selection"; - function __construct($config,$ui) - { - $this->config = $config; - $this->ui = $ui; - $this->storagePoints = array(get_ou("servgeneric", "serverRDN"), get_ou("workgeneric", "workstationRDN"), get_ou("termgeneric", "terminalRDN")); + function __construct($config,$ui) + { + $this->config = $config; + $this->ui = $ui; + $this->storagePoints = array( + get_ou("servgeneric", "serverRDN"), + get_ou("workgeneric", "workstationRDN"), + get_ou("termgeneric", "terminalRDN")); - // 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("selectSystem-filter.xml", true, dirname(__FILE__))); - $filter->setObjectStorage($this->storagePoints); - } - $this->setFilter($filter); + // 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("selectSystem-filter.xml", true, dirname(__FILE__))); + $filter->setObjectStorage($this->storagePoints); + } + $this->setFilter($filter); - // Build headpage - $headpage = new listing(get_template_path("selectSystem-list.xml", true, dirname(__FILE__))); - $headpage->setFilter($filter); - parent::__construct($config, $ui, "object", $headpage); - } + // Build headpage + $headpage = new listing(get_template_path("selectSystem-list.xml", true, dirname(__FILE__))); + $headpage->setFilter($filter); + parent::__construct($config, $ui, "object", $headpage); + } - function save() - { - $act = $this->detectPostActions(); - $headpage = $this->getHeadpage(); - if(!isset($act['targets'])) return(array()); - $ret = array(); - foreach($act['targets'] as $dn){ - $ret[] = $headpage->getEntry($dn); + function save() + { + $act = $this->detectPostActions(); + $headpage = $this->getHeadpage(); + if(!isset($act['targets'])) return(array()); + $ret = array(); + foreach($act['targets'] as $dn){ + $ret[] = $headpage->getEntry($dn); + } + return($ret); } - return($ret); - } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> -- 2.30.2