]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_rallyes.php
Renamed function, used more "pool functions":
[mailer.git] / inc / modules / admin / what-list_rallyes.php
index 73087c8421bd4f680de1ec71040b6e62fb3cb289..3ef8993c1f4a0996a2872e2d9df294afbdd9aeb4 100644 (file)
@@ -138,8 +138,8 @@ if (isGetRequestElementSet('rallye_id')) {
                        $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
@@ -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']);