protected function getInput() { $language = JFactory::getLanguage(); $language->load('com_judirectory', JPATH_ADMINISTRATOR); $isJoomla3x = JUDirectoryHelper::isJoomla3x(); $fieldsGroup = JUDirectoryHelper::getAdvSearchFields(); $html = '<div id="judirectory-field" style="clear: both;">'; if ($isJoomla3x) { $html .= JHtml::_('bootstrap.startTabSet', 'search-form', array('active' => 'fieldgroup-1')); } else { $html .= JHtml::_('tabs.start', 'search-form'); } foreach ($fieldsGroup as $groupField) { if ($isJoomla3x) { $html .= JHtml::_('bootstrap.addTab', 'search-form', 'fieldgroup-' . $groupField->id, $groupField->name, true); } else { $html .= JHtml::_('tabs.panel', $groupField->name, 'fieldgroup-' . $groupField->id); } if (!$isJoomla3x) { $html .= '<fieldset class="adminform">'; $html .= '<ul class="adminformlist">'; } foreach ($groupField->fields as $field) { $value = isset($this->value[$field->id]) ? $this->value[$field->id] : ""; $fieldClass = JUDirectoryFrontHelperField::getField($field); if (JFactory::getApplication()->input->getCmd('view', '') == 'module') { $fieldClass->name = 'jform[params][fields][' . $fieldClass->id . ']'; } if ($isJoomla3x) { $html .= '<div class="control-group">'; $html .= '<div class="control-label">'; $html .= $fieldClass->getLabel(false); $html .= '</div>'; $html .= '<div class="controls">'; $html .= $fieldClass->getDisplayPrefixText() . $fieldClass->getSearchInput($value) . $fieldClass->getDisplaySuffixText(); $html .= "</div>"; $html .= "</div>"; } else { $html .= "<li>"; $html .= $fieldClass->getLabel(false); $html .= $fieldClass->getDisplayPrefixText() . $fieldClass->getSearchInput($value) . $fieldClass->getDisplaySuffixText(); $html .= "</li>"; } } if (!$isJoomla3x) { $html .= '</ul>'; $html .= '</fieldset>'; } if ($isJoomla3x) { $html .= JHtml::_('bootstrap.endTab'); } } if ($isJoomla3x) { $html .= JHtml::_('bootstrap.endTabSet'); } else { $html .= JHtml::_('tabs.end'); } $html .= '</div>'; return $html; }