From: Roland Häder Date: Thu, 17 Jan 2013 01:23:38 +0000 (+0000) Subject: Fixed calls of addSelectionBox() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5fed4d6d18f6458182276599d6cab6c9134ef4aa;p=mailer.git Fixed calls of addSelectionBox() --- diff --git a/inc/modules/admin/what-add_rallye.php b/inc/modules/admin/what-add_rallye.php index 431d4ccf31..dc42366a2e 100644 --- a/inc/modules/admin/what-add_rallye.php +++ b/inc/modules/admin/what-add_rallye.php @@ -116,21 +116,21 @@ if (isFormSent()) { } // END - if // Starting day -$content['start_min'] = addSelectionBox('min' , 0 , 'start_time'); -$content['start_hour'] = addSelectionBox('hour' , getShortHour() , 'start_time'); -$content['start_day'] = addSelectionBox('day' , getDay() , 'start_time'); -$content['start_month'] = addSelectionBox('month', getMonth() , 'start_time'); -$content['start_year'] = addSelectionBox('year' , getYear() , 'start_time'); +$content['start_min'] = addSelectionBox('mi', 0 , 'start_time'); +$content['start_hour'] = addSelectionBox('ho', getShortHour() , 'start_time'); +$content['start_day'] = addSelectionBox('da', getDay() , 'start_time'); +$content['start_month'] = addSelectionBox('mo', getMonth() , 'start_time'); +$content['start_year'] = addSelectionBox('ye', getYear() , 'start_time'); // Ending timestamp $endingStamp = time() + (getOneDay() * 7); // Ending day -$content['end_min'] = addSelectionBox('min' , 0 , 'end_time'); -$content['end_hour'] = addSelectionBox('hour' , getShortHour() , 'end_time'); -$content['end_day'] = addSelectionBox('day' , getDay($endingStamp) , 'end_time'); -$content['end_month'] = addSelectionBox('month', getMonth($endingStamp), 'end_time'); -$content['end_year'] = addSelectionBox('year' , getYear($endingStamp) , 'end_time'); +$content['end_min'] = addSelectionBox('mi', 0 , 'end_time'); +$content['end_hour'] = addSelectionBox('ho', getShortHour() , 'end_time'); +$content['end_day'] = addSelectionBox('da', getDay($endingStamp) , 'end_time'); +$content['end_month'] = addSelectionBox('mo', getMonth($endingStamp), 'end_time'); +$content['end_year'] = addSelectionBox('ye', getYear($endingStamp) , 'end_time'); // Load template loadTemplate('admin_add_rallye', FALSE, $content); diff --git a/inc/modules/admin/what-config_mediadata.php b/inc/modules/admin/what-config_mediadata.php index 5a94024dd3..114934d3ff 100644 --- a/inc/modules/admin/what-config_mediadata.php +++ b/inc/modules/admin/what-config_mediadata.php @@ -78,9 +78,9 @@ if (isFormSent('save_config')) { } else { // Make start editable $content['mt_start'] = - addSelectionBox('day' , getDay()). - addSelectionBox('month', getMonth()). - addSelectionBox('year', -1) + addSelectionBox('da', getDay()). + addSelectionBox('mo', getMonth()). + addSelectionBox('ye', -1) ; } diff --git a/inc/modules/admin/what-list_rallyes.php b/inc/modules/admin/what-list_rallyes.php index 73087c8421..94e8f6f68a 100644 --- a/inc/modules/admin/what-list_rallyes.php +++ b/inc/modules/admin/what-list_rallyes.php @@ -216,18 +216,18 @@ LIMIT 1", // Only for editing ... if ($mode == 'edit') { // Starting day - $content['s_min'] = addSelectionBox('min' , getMinute($content['start_time']) , 'start_time', $id); - $content['s_hour'] = addSelectionBox('hour' , getShortHour($content['start_time']), 'start_time', $id); - $content['s_day'] = addSelectionBox('day' , getDay($content['start_time']) , 'start_time', $id); - $content['s_month'] = addSelectionBox('month', getMonth($content['start_time']) , 'start_time', $id); - $content['s_year'] = addSelectionBox('year' , getYear($content['start_time']) , 'start_time', $id); + $content['s_min'] = addSelectionBox('mi', getMinute($content['start_time']) , 'start_time', $id); + $content['s_hour'] = addSelectionBox('ho', getShortHour($content['start_time']), 'start_time', $id); + $content['s_day'] = addSelectionBox('da', getDay($content['start_time']) , 'start_time', $id); + $content['s_month'] = addSelectionBox('mo', getMonth($content['start_time']) , 'start_time', $id); + $content['s_year'] = addSelectionBox('ye', getYear($content['start_time']) , 'start_time', $id); // Ending day - $content['e_min'] = addSelectionBox('min' , getMinute($content['end_time']) , 'end_time' , $id); - $content['e_hour'] = addSelectionBox('hour' , getShortHour($content['end_time']) , 'end_time' , $id); - $content['e_day'] = addSelectionBox('day' , getDay($content['end_time']) , 'end_time' , $id); - $content['e_month'] = addSelectionBox('month', getMonth($content['end_time']) , 'end_time' , $id); - $content['e_year'] = addSelectionBox('year' , getYear($content['end_time']) , 'end_time' , $id); + $content['e_min'] = addSelectionBox('mi', getMinute($content['end_time']) , 'end_time' , $id); + $content['e_hour'] = addSelectionBox('ho', getShortHour($content['end_time']) , 'end_time' , $id); + $content['e_day'] = addSelectionBox('da', getDay($content['end_time']) , 'end_time' , $id); + $content['e_month'] = addSelectionBox('mo', getMonth($content['end_time']) , 'end_time' , $id); + $content['e_year'] = addSelectionBox('ye', getYear($content['end_time']) , 'end_time' , $id); // Remember other values $content['templ'] = addReferralRallyeTemplateSelection('templ[' . $id . ']', $content['template']); diff --git a/inc/modules/guest/what-register.php b/inc/modules/guest/what-register.php index 4b30681ebc..5dea2a8457 100644 --- a/inc/modules/guest/what-register.php +++ b/inc/modules/guest/what-register.php @@ -108,11 +108,11 @@ if ((isFormSent()) && (isRegistrationDataComplete())) { // Generate birthday selection switch (getLanguage()) { case 'de': // German date format - $content['birthday_selection'] = addSelectionBox('day', postRequestElement('day')).addSelectionBox('month', postRequestElement('month')).addSelectionBox('year', postRequestElement('year')); + $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('month', postRequestElement('month')).addSelectionBox('day', postRequestElement('day')).addSelectionBox('year', postRequestElement('year')); + $content['birthday_selection'] = addSelectionBox('mo', postRequestElement('month')).addSelectionBox('da', postRequestElement('day')).addSelectionBox('ye', postRequestElement('year')); break; } // END - switch diff --git a/inc/modules/member/what-holiday.php b/inc/modules/member/what-holiday.php index 95e3f651d5..713119e5b6 100644 --- a/inc/modules/member/what-holiday.php +++ b/inc/modules/member/what-holiday.php @@ -307,14 +307,14 @@ LIMIT 1", $endingStamp = $startingStamp + (getOneDay() * getConfig('holiday_max')); // Starting day - $content['start_day'] = addSelectionBox('day' , getDay($startingStamp) , 'start'); - $content['start_month'] = addSelectionBox('month', getMonth($startingStamp), 'start'); - $content['start_year'] = addSelectionBox('year' , getYear($startingStamp) , 'start'); + $content['start_day'] = addSelectionBox('da', getDay($startingStamp) , 'start'); + $content['start_month'] = addSelectionBox('mo', getMonth($startingStamp), 'start'); + $content['start_year'] = addSelectionBox('ye', getYear($startingStamp) , 'start'); // Ending day - $content['end_day'] = addSelectionBox('day' , getDay($endingStamp) , 'end'); - $content['end_month'] = addSelectionBox('month', getMonth($endingStamp), 'end'); - $content['end_year'] = addSelectionBox('year' , getYear($endingStamp) , 'end'); + $content['end_day'] = addSelectionBox('da', getDay($endingStamp) , 'end'); + $content['end_month'] = addSelectionBox('mo', getMonth($endingStamp), 'end'); + $content['end_year'] = addSelectionBox('ye', getYear($endingStamp) , 'end'); // Output form loadTemplate('member_holiday_form', FALSE, $content); diff --git a/inc/modules/member/what-mydata.php b/inc/modules/member/what-mydata.php index 6f61788d35..0b5fe7d183 100644 --- a/inc/modules/member/what-mydata.php +++ b/inc/modules/member/what-mydata.php @@ -165,24 +165,24 @@ LIMIT 1', switch (getLanguage()) { case 'de': // German date format // Day - $content['dob'] .= addSelectionBox('day', $content['birth_day']); + $content['dob'] .= addSelectionBox('da', $content['birth_day']); // Month - $content['dob'] .= addSelectionBox('month', $content['birth_month']); + $content['dob'] .= addSelectionBox('mo', $content['birth_month']); // Year - $content['dob'] .= addSelectionBox('year', $content['birth_year']); + $content['dob'] .= addSelectionBox('ye', $content['birth_year']); break; default: // Default is the US date format... :) // Month - $content['dob'] .= addSelectionBox('month', $content['birth_month']); + $content['dob'] .= addSelectionBox('mo', $content['birth_month']); // Day - $content['dob'] .= addSelectionBox('day', $content['birth_day']); + $content['dob'] .= addSelectionBox('da', $content['birth_day']); // Year - $content['dob'] .= addSelectionBox('year', $content['birth_year']); + $content['dob'] .= addSelectionBox('ye', $content['birth_year']); break; } // END - if