MonthList

From Superk

Jump to: navigation, search
/**
 * htmlTools::monthList - Creates dropdown list of months
 *
 * Creates a simple form listbox element for selecting a month.  Full month
 * name will be listed for selection while the padded month number will be
 * passed by the form for handling (ie, 'January' == '01').
 *
 * @author
 */
function monthList()
{
  return $months = array(
    array('01', 'January'),
    array('02', 'February'),
    array('03', 'March'),
    array('04', 'April'),
    array('05', 'May'),
    array('06', 'June'),
    array('07', 'July'),
    array('08', 'August'),
    array('09', 'September'),
    array('10', 'October'),
    array('11', 'November'),
    array('12', 'December')
  );
}
Personal tools