-define('_END_SEC' , ADD_SELECTION('sec' , '0' , 'end'));
-define('_END_MIN' , ADD_SELECTION('min' , '0' , 'end'));
-define('_END_HOUR' , ADD_SELECTION('hour' , date('G', time()), 'end'));
-define('_END_DAY' , ADD_SELECTION('day' , $D , 'end'));
-define('_END_MONTH', ADD_SELECTION('month', $M , 'end'));
-define('_END_YEAR' , ADD_SELECTION('year' , $Y , 'end'));
-
-// Transfer (maybe found) templates into constant for the template
-define('_TEMPLATES', RALLYE_TEMPLATE_SELECTION());
+$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');