-1

我需要 Joomla2.5 结构来使用 Joomla2.5 在基本选项中显示下拉值

4

1 回答 1

0
$query = "SELECT * FROM #__videomanager_categories";
$db->setQuery($query);
$data = $db->loadAssocList();
$options = array();

foreach($data as $key=>$value) :
    $options[] = JHTML::_('select.option', $value['category_value'], $value['video_category']);
endforeach;

$dropdown = JHTML::_('select.genericlist', $options, 'category', 'class="inputbox"', 'value', 'text', 1);

echo $dropdown;
于 2013-05-11T13:03:06.400 回答