Exemple #1
0
 protected function getOptions()
 {
     $options = array();
     foreach ($this->element->children() as $option) {
         if ($option->getName() != 'option') {
             continue;
         }
         $tmp = JHtml::_('select.option', (string) $option['value'], JText::alt(trim((string) $option), preg_replace('/[^a-zA-Z0-9_\\-]/', '_', $this->fieldname)), 'value', 'text', (string) $option['disabled'] == 'true');
         $tmp->class = (string) $option['class'];
         $tmp->onclick = (string) $option['onclick'];
         $options[] = $tmp;
     }
     $plugintype = $this->element['plugintype'];
     $_options = JUDirectoryHelper::getPluginOptions($plugintype, 0);
     reset($options);
     if ($_options) {
         $options = array_merge($options, $_options);
     }
     return $options;
 }
?>
</button>
	</div>

	<div class="filter-select">
		<?php 
$options = JUDirectoryHelper::getFieldGroupOptions(false, false);
array_unshift($options, array('value' => '', 'text' => JText::_('COM_JUDIRECTORY_ALL_GROUPS')));
?>
		<div class="pull-right hidden-phone">
			<?php 
echo JHtml::_('select.genericlist', $options, 'filter_group', 'onchange="Joomla.submitform();" class="input-medium"', 'value', 'text', $this->escape($this->state->get('filter.group_id', '')), "filter_group");
?>
		</div>
        <?php 
$options = JUDirectoryHelper::getPluginOptions('field', 0);
array_unshift($options, array('value' => '', 'text' => JText::_('COM_JUDIRECTORY_SELECT_FIELD_TYPE')));
?>
        <div class="pull-right hidden-phone">
            <?php 
echo JHtml::_('select.genericlist', $options, 'filter_plugin', 'onchange="Joomla.submitform();" class="input-medium"', 'value', 'text', $this->escape($this->state->get('filter.plugin_id', '')), "filter_plugin");
?>
        </div>
		<div class="pull-right hidden-phone">
			<label for="directionTable" class="element-invisible"><?php 
echo JText::_('JFIELD_ORDERING_DESC');
?>
</label>
			<select name="directionTable" id="directionTable"
				class="input-medium" onchange="Joomla.orderTable()">
				<option value=""><?php