public static function listBox($name, $select, $data, $htmlOptions = array())
    {
        if (isset($htmlOptions['multiple'])) {
            if (substr($name, -2) !== '[]') {
                $name .= '[]';
            }
        }
        TbArray::defaultValue('displaySize', 4, $htmlOptions);
        return self::dropDownList($name, $select, $data, $htmlOptions);
    }
public static function listBox($name, $select, $data, $htmlOptions = array())
    {
        if (isset($htmlOptions['multiple'])) {
            if (substr($name, -2) !== '[]') {
                $name .= '[]';
            }
        }
        TbArray::defaultValue('displaySize', 4, $htmlOptions);
        return self::dropDownList($name, $select, $data, $htmlOptions);
    }
public static function listBox ( $ name , $ select , $ data , $ htmlOptions = array ( ) ) { if ( isset ( $ htmlOptions [ 'multiple' ] ) ) { if ( substr ( $ name , - 2 ) !== '[]' ) { $ name .= '[]' ; } } TbArray :: defaultValue ( 'displaySize' , 4 , $ htmlOptions ) ; return self :: dropDownList ( $ name , $ select , $ data , $ htmlOptions ) ; }
Generates a list box.
@param string $name the input name.
@param string $select the selected value(s).
@param array $data data for generating the list options (value=>display).
@param array $htmlOptions additional HTML attributes.
@return string the generated list box
Generates a list box .