X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fuser_functions.php;h=5041a8c3a66b6f509535af2a3b2ec032f563c283;hp=fbf7c455ddd9d78659ae8ebe40b859534c2b8dad;hb=a15d5de4bf1d4e4c58558a6e7623479b9adcd195;hpb=6dfd19ff3324ab739e9056193a017d064d4f945b diff --git a/inc/libs/user_functions.php b/inc/libs/user_functions.php index fbf7c455dd..5041a8c3a6 100644 --- a/inc/libs/user_functions.php +++ b/inc/libs/user_functions.php @@ -971,24 +971,7 @@ function doDisplayGenericUserRegistrationForm () { } // 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'] = '';