Code

Added base selection support
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Oct 2005 13:21:57 +0000 (13:21 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Oct 2005 13:21:57 +0000 (13:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1514 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiManagement.inc

index 900d1bd2b838fba4d94b53c7ad900e996edb71fb..c6663ea20c5875974ec5068a8a9fcc0dfc7ea398 100644 (file)
@@ -396,6 +396,16 @@ class faiManagement extends plugin
                 * Assign all reguired vars to template engine
                 */
 
+               /* Prepare departments */
+               $options= "";
+               foreach ($this->config->idepartments as $key => $value){
+                       if ($faifilter['base'] == $key){
+                               $options.= "<option selected value='$key'>$value</option>";
+                       } else {
+                               $options.= "<option value='$key'>$value</option>";
+                       }
+               }
+
                /* Create listhead, it will be shown on top of the divlist. 
                 * It provides general navigation and object creation
                 */
@@ -435,6 +445,11 @@ class faiManagement extends plugin
 
                        " <input type='image' src='images/fai_new_packages.png' align='middle' 
                        title='"._("New package list")."' name='Create_package' alt='"._("PK")."'>&nbsp;".
+
+                       " <img src='images/list_seperator.png' align='middle' alt='' height='16' width='1'>&nbsp;".
+
+                       _("Current base")."&nbsp;<select name='base' onChange='mainform.submit()'>$options</select>".
+                       " <input type='image' src='images/list_submit.png' align='middle' title='"._("Submit department")."' name='submit_department' alt='"._("Submit")."'>&nbsp;".
                        
                        "</div>";