function AddEntry($Label = '', $Value = '', $Default = FALSE) { $NewValue = $this->JumpKey . $Value; if ($Default == TRUE || $Value == $this->ListBoxDefaultValue) { $NewDefault = TRUE; } else { $NewDefault = FALSE; } ListBox::AddEntry($this->listLabels->Label($Label), $NewValue, $NewDefault); }
function ListBox($Key, $Name = '', $DefaultValue = '', $NumRows = '1', $Parameters = '') { // // $Key is the Identifier of the ListBox you want to create. $this->LoadData($Key); $NewList = new ListBox($Name, $DefaultValue, $NumRows, $Parameters); for ($Indx = 0; $Indx < count($this->Labels); $Indx++) { $NewList->AddEntry($this->Labels[$Indx], $this->Values[$Indx]); } return $NewList; }