} // 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);
} 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)
;
}
// 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']);
// 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
$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);
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