public static function months($selected, $name = 'filter_month', $attribs = array('class' => 'inputbox', 'size' => '1'), $idtag = null, $allowAll = false) { $list = array(); if ($allowAll) { $list[] = self::option(0, JText::_('All'), 'id', 'title'); } $months = KDate::getMonthNames(); foreach ($months as $key => $month) { $list[] = self::option($key, $month, 'id', 'title'); } return self::genericlist($list, $name, $attribs, 'id', 'title', $selected, $idtag); }