芝麻web文件管理V1.00
编辑当前文件:/home/asmplong/www/ancien-site-2019/site/libraries/joomla/form/fields/combo.php
element['class'] ? ' class="combobox '.(string) $this->element['class'].'"' : ' class="combobox"'; $attr .= ((string) $this->element['readonly'] == 'true') ? ' readonly="readonly"' : ''; $attr .= ((string) $this->element['disabled'] == 'true') ? ' disabled="disabled"' : ''; $attr .= $this->element['size'] ? ' size="'.(int) $this->element['size'].'"' : ''; // Initialize JavaScript field attributes. $attr .= $this->element['onchange'] ? ' onchange="'.(string) $this->element['onchange'].'"' : ''; // Get the field options. $options = $this->getOptions(); // Load the combobox behavior. JHtml::_('behavior.combobox'); // Build the input for the combo box. $html[] = '
'; // Build the list for the combo box. $html[] = '
'; foreach ($options as $option) { $html[] = '
'.$option->text.'
'; } $html[] = '
'; return implode($html); } }