parent = $parent;
$this->ui = get_userinfo();
/* Set default base */
if(!isset($_SESSION['CurrentMainBase'])){
$_SESSION['CurrentMainBase'] = $this->config->current['BASE'];
}
$this->selectedBase = $_SESSION['CurrentMainBase'];
/* Set list strings */
$this->SetTitle(_("List of systems"));
$this->SetSummary(_("List of systems"));
/* Result page will look like a headpage */
$this->SetHeadpageMode();
$this->SetInformation(_("This menu allows you to add, remove and change the properties of specific systems. You can only add systems which have already been started once."));
$this->EnableAplhabet (true);
/* Disable buttonsm */
$this->EnableCloseButton(false);
$this->EnableSaveButton (false);
/* 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;'"));
/* Text ,Value ,Name ,Is selected */
$this->AddCheckBox("ShowServers", _("Select to see servers"), _("Show servers"), true);
$this->AddCheckBox("ShowTerminals", _("Select to see Linux terminals"), _("Show terminals") , true);
$this->AddCheckBox("ShowWorkstations", _("Select to see Linux workstations"), _("Show workstations"), true);
$this->AddCheckBox("ShowWinWorkstations", _("Select to see MicroSoft Windows based workstations"), _("Show windows based workstations"),true);
$this->AddCheckBox("ShowPrinters", _("Select to see network printers"), _("Show network printers") ,true);
$this->AddCheckBox("ShowPhones", _("Select to see VOIP phones"), _("Show phones") , true);
$this->AddCheckBox("ShowDevices", _("Select to see network devices"), _("Show network devices"), true);
/* Name ,Text ,Default , Connect with alphabet */
$this->AddRegex ("Regex", _("Display systems matching"),"*" , true);
$this->AddRegex ("UserRegex", _("Display systems of user"), "*" , false);
}
function GenHeader()
{
/* Prepare departments,
which are shown in the listbox on top of the listbox
*/
$options= "";
foreach ($this->config->idepartments as $key => $value){
if ($this->selectedBase == $key){
$options.= "";
} else {
$options.= "";
}
}
$listhead = "