From: hickert Date: Tue, 28 Feb 2006 06:26:51 +0000 (+0000) Subject: Added depselect to glpi user select X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3111c0e8a9dbe99d12c7b9c067a1b650e3739eff;p=gosa.git Added depselect to glpi user select git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2757 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_glpiSelectUser.inc b/plugins/admin/systems/class_glpiSelectUser.inc index 85de38d3e..42f353830 100644 --- a/plugins/admin/systems/class_glpiSelectUser.inc +++ b/plugins/admin/systems/class_glpiSelectUser.inc @@ -39,6 +39,10 @@ class glpiSelectUser extends plugin /* Call parent execute */ plugin::execute(); + if(isset($_POST['depselect'])){ + $_SESSION['glpi_user_filter']['base'] = $_POST['depselect']; + } + $filter = $_SESSION['glpi_user_filter']; /* Filter settings, remove double* */ @@ -139,6 +143,18 @@ class glpiSelectUser extends plugin } + /* Prepare departments, + which are shown in the listbox on top of the listbox + */ + $options= ""; + foreach ($this->config->idepartments as $key => $value){ + if ($_SESSION['glpi_user_filter']['base'] == $key){ + $options.= ""; + } else { + $options.= ""; + } + } + $listhead = "
". "  ". @@ -146,6 +162,10 @@ class glpiSelectUser extends plugin align='middle' title='"._("Go to root department")."' name='dep_root' alt='"._("Root")."'> ". "  ". +"  "._("Base")." ". + " ". + "  ". "
";