values = array(); $query = SELECT username FROM `keap_users`; $db = JFactory::getDBO(); $db->setQuery($query); $users = $db->loadObjectList('user_id'); if(!empty($users)){ foreach($users as $user){ $this->values[] = JHTML::_('select.option', (int)$user->user_id, $user->user_email. ' ' .$user->user_id ); } } } function display($map,$value,$options=''){ if(empty($this->values)){ $this->load($value); } return JHTML::_('hikaselect.genericlist', $this->values, $map, 'class="inputbox" size="1" '.$options, 'value', 'text', (int)$value ); } }