function showKimport($option) { $user =& JFactory::getUser(); $firmId = $user->id; $db =& JFactory::getDBO(); $sql = 'SELECT distinct(sinavId) as id FROM #__deneme WHERE firmaId = ' . $firmId . ' ORDER BY sinavId'; $results[] = JHTML::_('select.option', '0', JText::_('New')); $db->setQuery($sql); $data = $db->loadObjectList(); $i = 1; foreach ($data as $row) { $results[] = JHTML::_('select.option', "'" . $i . "'", JText::_('File') . $i); $i++; } //$results=array_merge( $results, $db->loadObjectList() ); $default = "New"; $lists['id'] = JHTML::_('select.genericlist', $results, 'files', 'class="inputbox" size="1"', 'value', 'text', $default); HTML_kimport::showKimport($option, $lists); }
function showKimport($option) { HTML_kimport::showKimport($option); }