} // END - if
// Generate birthday selection
- switch (getLanguage()) {
- case 'de': // German date format
- $content['birthday_selection'] = addSelectionBox('da', postRequestElement('day')).addSelectionBox('mo', postRequestElement('month')).addSelectionBox('ye', postRequestElement('year'));
- break;
-
- default: // Default is the US date format... :)
- $content['birthday_selection'] = addSelectionBox('mo', postRequestElement('month')).addSelectionBox('da', postRequestElement('day')).addSelectionBox('ye', postRequestElement('year'));
- break;
- } // END - switch
-
- // Shall I display the refid or shall I make it editable?
- if (isDisplayRefidEnabled()) {
- // Load "hide" form template
- $content['refid_content'] = loadTemplate('guest_register_refid_hide', TRUE);
- } else {
- // Load template to enter it
- $content['refid_content'] = loadTemplate('guest_register_refid', TRUE);
- }
+ $content['birthday_selection'] = generateDayMonthYearSelectionBox(postRequestElement('day'),postRequestElement('month'),postRequestElement('year'));
// ZIP codes are numerical values
$content['zip'] = '';