parent = $parent; $this->selectedBase = $config->current['BASE']; $this->allowedBases = $onlyAllowThisBases; $this->SetTitle("Base"); $this->SetSummary(_("Choose a base")); $this->SetListHeader("
". "  ". "  ". "  ". "  ". "
"); $this->SetInformation(_("Step in the prefered tree and click save to use the current subtree as base. Or click the image at the end of each entry.")); $this->EnableAplhabet (true); $this->EnableCloseButton(true); $this->EnableSaveButton (true); $this->SetSaveButtonString(_("Use")); $this->SetCloseButtonString(_("Cancel")); $this->AddHeader(array("string"=>" ","attach"=>"style='width:20px;'")); $this->AddHeader(array("string"=>_("Base"))); /* Name ,Text ,Default , Connect with alphabet */ $this->AddRegex ("base_selection_regex",_("Filter entries with this syntax"),"*" , true); } function execute() { $this->ClearElementsList(); $this->AddDepartments($this->selectedBase,2); return($this->Draw()); } function setEntries() { // Do nothing here } function Save() { MultiSelectWindow :: Save(); $this->BaseToUse = $this->selectedBase; } function isSelected() { return($this->BaseToUse); } function setCurrentBase($base) { $this->selectedBase = $base; } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>