$id = bigintval($id);
// Generate timestamps
- $START = mktime(postRequestElement('start_time_hour', $id), postRequestElement('start_time_min', $id), 0, postRequestElement('start_time_month', $id), postRequestElement('start_time_day', $id), postRequestElement('start_time_year', $id));
- $END = mktime(postRequestElement('end_time_hour', $id) , postRequestElement('end_time_min', $id) , 0, postRequestElement('end_time_month', $id) , postRequestElement('end_time_day', $id) , postRequestElement('end_time_year', $id) );
+ $START = mktime(postRequestElement('start_time_ho', $id), postRequestElement('start_time_mi', $id), 0, postRequestElement('start_time_mo', $id), postRequestElement('start_time_da', $id), postRequestElement('start_time_ye', $id));
+ $END = mktime(postRequestElement('end_time_ho', $id) , postRequestElement('end_time_mi', $id) , 0, postRequestElement('end_time_mo', $id) , postRequestElement('end_time_da', $id) , postRequestElement('end_time_ye', $id) );
// Update entry
addSql(SQL_QUERY_ESC("UPDATE
// 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']);