@@ 1306-1309 (lines=4) @@ | ||
1303 | */ |
|
1304 | public static function two_digit_months_dropdown_options() { |
|
1305 | $options = array(); |
|
1306 | for ( $x = 1; $x <= 12; $x++ ) { |
|
1307 | $mm = str_pad( $x, 2, '0', STR_PAD_LEFT ); |
|
1308 | $options[ (string)$mm ] = (string)$mm; |
|
1309 | } |
|
1310 | return EEH_Form_Fields::prep_answer_options( $options ); |
|
1311 | } |
|
1312 | ||
@@ 1325-1328 (lines=4) @@ | ||
1322 | $options = array(); |
|
1323 | $current_year = date('y'); |
|
1324 | $next_decade = $current_year + 10; |
|
1325 | for ( $x = $current_year; $x <= $next_decade; $x++ ) { |
|
1326 | $yy = str_pad( $x, 2, '0', STR_PAD_LEFT ); |
|
1327 | $options[ (string)$yy ] = (string)$yy; |
|
1328 | } |
|
1329 | return EEH_Form_Fields::prep_answer_options( $options ); |
|
1330 | } |
|
1331 |