diff --git a/plugins/admin/systems/class_divListSystem.inc b/plugins/admin/systems/class_divListSystem.inc
index a0cf16e758510333e03e6d6fbcd431587ada545b..6353c3e4b2d49029ae6fa4a0a0e2c00d05b674ef 100644 (file)
/* Current base */
var $selectedBase = "";
var $departments = array();
+ var $do_iso = FALSE;
/* Regex */
var $Regex = "*";
var $UserRegex = "*";
- /* CheckBoxes */
- var $ShowServers = true;
- var $ShowTerminals = true;
- var $ShowWorkstations = true;
- var $ShowWinWorkstations= true;
- var $ShowPrinters = true;
- var $ShowDevices = true;
- var $ShowPhones = true;
+ /* CheckBoxes, to change default values modify $this->AddCheckBox */
+ var $ShowServers;
+ var $ShowTerminals;
+ var $ShowWorkstations;
+ var $ShowWinWorkstations;
+ var $ShowPrinters;
+ var $ShowDevices;
+ var $ShowPhones;
/* Subsearch checkbox */
- var $SubSearch = false;
+ var $SubSearch;
var $parent ;
var $ui ;
$this->parent = $parent;
$this->ui = get_userinfo();
+ if (search_config($config->data['TABS'], "workgeneric", "ISOCMD")){
+ $this->do_iso= TRUE;
+ }
+
/* Set list strings */
$this->SetTitle(_("List of systems"));
$this->SetSummary(_("List of systems"));
/* set Page header */
$this->AddHeader(array("string"=>" ","attach"=>"style='width:20px;'"));
$this->AddHeader(array("string"=>_("System / Department")));
- $this->AddHeader(array("string"=>_("Actions"),"attach"=>"style='width:60px;border-right:0px;'"));
+ $this->AddHeader(array("string"=>_("Actions"),"attach"=>"style='width:70px;border-right:0px;'"));
/* Text ,Value ,Name ,Is selected */
$this->AddCheckBox("ShowServers", _("Select to see servers"), _("Show servers"), true);
$val['cn'][0]= preg_replace('/\$$/', '', $val['cn'][0]);
// Generate Array to Add
+ $dsc= "";
+ if (isset($val['description'][0])){
+ $dsc= " [".$val['description'][0]."]";
+ }
if((isset($val['is_new']))&&(!empty($val['is_new']))){
- $display= "".$val["cn"][0]." ".$val['is_new'];
+ $display= $val["cn"][0]." ".$val['is_new'].$dsc;
}else{
- $display= "".$val["cn"][0]."";
+ $display= $val["cn"][0].$dsc;
}
if((in_array("gotoTerminal",$val['objectClass']))||(in_array("gotoWorkstation",$val['objectClass']))){
$action2 = "";
}
+ if($this->do_iso && in_array("gotoWorkstation",$val['objectClass'])){
+ $action2= "<input class='center' type='image' src='images/cdrom.png' alt='"._("Create CD")."' name='gen_cd_%KEY%' title='"._("Create FAI CD")."'>".$action2;
+ }
+
+ /* Add Message generated by mangement->reload*/
if(isset($val['message'])){
- $display.= " (".$val['message']." '".$this->config->idepartments[$_SESSION['CurrentMainBase']]."' )";
+ $display.= " (".$val['message'].")";
}
$img = $this->parent->convert_list($val);
$field1 = array("string" => sprintf($img['img'],$val['dn']), "attach" => "style='text-align:center;width:20px;'");
- $field2 = array("string" => sprintf($editlink,$key,$display), "attach" => "style='' title='".@LDAP::fix($val['dn'])."'");
- $field3 = array("string" => preg_replace("/%KEY%/", "$key", $action2.$action), "attach" => "style='width:60px;border-right:0px;text-align:right;'");
+ $field2 = array("string" => sprintf($editlink,$key,$display), "attach" => "style='' title='".preg_replace('/ /', ' ', @LDAP::fix($val['dn']))."'");
+ $field3 = array("string" => preg_replace("/%KEY%/", "$key", $action2.$action), "attach" => "style='width:70px;border-right:0px;text-align:right;'");
$this->AddElement( array($field1,$field2,$field3));
}