X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Ffai%2Fclass_faiManagement.inc;h=55e8499b1ef067f51692e48c21cb6685af0ca6ba;hb=8e89e901eb67f63011a49553de75353330a3871e;hp=9d11242dc68952db729452bc3f9876000de32431;hpb=bf70914688502c7abee5f0625158d6a47b37de96;p=gosa.git diff --git a/plugins/admin/fai/class_faiManagement.inc b/plugins/admin/fai/class_faiManagement.inc index 9d11242dc..55e8499b1 100644 --- a/plugins/admin/fai/class_faiManagement.inc +++ b/plugins/admin/fai/class_faiManagement.inc @@ -25,7 +25,6 @@ require "tabsScript.inc"; require "tabsProfile.inc"; require "tabsPackage.inc"; - class faiManagement extends plugin { /* Definitions */ @@ -263,6 +262,7 @@ class faiManagement extends plugin $a_setup = ($this->get_type($entry)); $this->dn = $entry['dn']; + add_lock ($this->dn, $this->ui->dn); $this->dialog= new $a_setup[0]($this->config, $this->config->data['TABS'][$a_setup[2]],$this->dn); @@ -337,7 +337,7 @@ class faiManagement extends plugin } /* Department select */ - if(isset($_POST['base'])){ + if((isset($_POST['base']))&&($s_action=="")){ $faifilter['base']=$_POST['base']; } @@ -353,6 +353,7 @@ class faiManagement extends plugin $this->dialog=NULL; $this->is_dialog = false; unset($_SESSION['objectinfo']); + del_lock ($this->dn); } /* This check if the given tab could be saved @@ -366,6 +367,7 @@ class faiManagement extends plugin print_red($msg); } }else{ + del_lock ($this->dn); $this->dialog->save(); unset($this->dialog); $this->dialog=NULL; @@ -387,14 +389,14 @@ class faiManagement extends plugin }elseif(((isset($this->dialog->current))&&(!$this->dialog->by_object[$this->dialog->current]->is_dialog))){ $display.= "

\n"; - $display.= "\n"; + $display.= "\n"; $display.= " \n"; - $display.= "\n"; + $display.= "\n"; $display.= "

"; }elseif(!isset($this->dialog->current)){ $display.= "

\n"; - $display.= " "; - $display.= "\n"; + $display.= " "; + $display.= "\n"; $display.= "

"; } return($display); @@ -410,7 +412,7 @@ class faiManagement extends plugin $options= ""; foreach ($this->config->idepartments as $key => $value){ if ($faifilter['base'] == $key){ - $options.= ""; + $options.= ""; } else { $options.= ""; } @@ -422,44 +424,44 @@ class faiManagement extends plugin $faihead = "
 ". - " ". - " ". - " ". - "\"\" ". + "\"\" ". - "  ". - "\"\" ". + "\"\" ". - "  ". - "  ". - "  ". - "  ". - "  ". - "  ". - "  ". + "  ". - _("Current base")." ". - "  ". + _("Current base")." ". + "  ". "
"; @@ -477,10 +479,10 @@ class faiManagement extends plugin array("string" => _("Actions"), "attach" => "style='width:60px;border-right:0px;text-align:right;'"))); - $action = ""; - $action .= ""; + $action = ""; + $action .= ""; - $editlink ="%NAME%"; + $editlink ="%NAME%"; $linkopen = "%s"; foreach($this->departments as $key => $val) { @@ -520,53 +522,53 @@ class faiManagement extends plugin if(!$faifilter['ShowPartitions']){ $abort = true; } - $img="PT"; + $img="PT"; $info = _("Partition table"); break; case "FAIpackageList" : if(!$faifilter['ShowPackages']){ $abort = true; } - $img="PL"; + $img="PL"; $info = _("Package list"); break; case "FAIscript" : if(!$faifilter['ShowScripts']){ $abort = true; } - $img="S"; + $img="S"; $info = _("Scripts"); break; case "FAIvariable" : if(!$faifilter['ShowVariables']){ $abort = true; } - $img="V"; + $img="V"; $info = _("Variables"); break; case "FAIhook" : if(!$faifilter['ShowHooks']){ $abort = true; } - $img="H"; + $img="H"; $info = _("Hooks"); break; case "FAIprofile" : if(!$faifilter['ShowProfiles']){ $abort = true; } - $img="P"; + $img="P"; $info = _("Profile"); break; case "FAItemplate" : if(!$faifilter['ShowTemplates']){ $abort = true; } - $img="T"; + $img="T"; $info = _("Templates"); break; default : - $img="";$info = "";break; + $img="";$info = "";break; } @@ -603,6 +605,7 @@ class faiManagement extends plugin $smarty->assign("alphabet" , generate_alphabet()); $smarty->assign("apply" , apply_filter()); $smarty->assign("search_image" , get_template_path('images/search.png')); + $smarty->assign("hint", print_sizelimit_warning()); $display = $smarty->fetch(get_template_path('headpage.tpl', TRUE, dirname(__FILE__))); return ($display); @@ -643,10 +646,10 @@ class faiManagement extends plugin } ksort($tmp); foreach($tmp as $value){ - if($value["description"][0]!=".."){ + if(isset($value["description"][0])){ $this->departments[$value['dn']]=convert_department_dn2($value['dn'])." - [".$value["description"][0]."]"; }else{ - $this->departments[$value['dn']]=$value["description"][0]; + $this->departments[$value['dn']]=convert_department_dn2($value['dn']);//$value["description"][0]; } }