Beispiel #1
0
 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);
     }
 }