<option value="moderators" <?php if ($this->settings['test_who_can_add'] == "moderators") { echo " SELECTED"; } ?> ><?php echo JText::_('MODERATORS_ONLY'); ?> </option> <!-- add access levels here too --> <?php if (FST_Helper::Is16()) { ?> <?php FSTAdminHelper::LoadAccessLevels(); $options = FSTAdminHelper::$access_levels; foreach ($options as $option) { ?> <option value="<?php echo $option->value; ?> " <?php if ($this->settings['test_who_can_add'] == $option->value) { echo " SELECTED"; } ?> >ACL: <?php echo $option->text; ?> </option>
static function LA_Filter($nolangs = false) { if (!FSTAdminHelper::Is16()) { return; } if (empty(FSTAdminHelper::$access_levels)) { FSTAdminHelper::LoadAccessLevels(); } if (!$nolangs && empty(FSTAdminHelper::$langs)) { FSTAdminHelper::LoadLanguages(); } if (empty(FSTAdminHelper::$filter_lang)) { FSTAdminHelper::LA_GetFilterState(); } $options = FSTAdminHelper::$access_levels; array_unshift($options, JHtml::_('select.option', 0, JText::_('JOPTION_SELECT_ACCESS'))); echo JHTML::_('select.genericlist', $options, 'fst_filter_access', 'class="inputbox" size="1" onchange="document.adminForm.submit( );"', 'value', 'text', FSTAdminHelper::$filter_access); if (!$nolangs) { $options = FSTAdminHelper::$langs; array_unshift($options, JHtml::_('select.option', '', JText::_('JOPTION_SELECT_LANGUAGE'))); echo JHTML::_('select.genericlist', $options, 'fst_filter_language', 'class="inputbox" size="1" onchange="document.adminForm.submit( );"', 'value', 'text', FSTAdminHelper::$filter_lang); } }