Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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;
 }