]> git.mxchange.org Git - mailer.git/commitdiff
Fixed calls of addSelectionBox()
authorRoland Häder <roland@mxchange.org>
Thu, 17 Jan 2013 01:23:38 +0000 (01:23 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 17 Jan 2013 01:23:38 +0000 (01:23 +0000)
inc/modules/admin/what-add_rallye.php
inc/modules/admin/what-config_mediadata.php
inc/modules/admin/what-list_rallyes.php
inc/modules/guest/what-register.php
inc/modules/member/what-holiday.php
inc/modules/member/what-mydata.php

index 431d4ccf31d078acf17185d1f0ef838d98da2d76..dc42366a2ec6a7edf4dceca70cedac5ec0deb0a1 100644 (file)
@@ -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);
index 5a94024dd3be2ac6fefca8ad06eec2fbfbbe9383..114934d3ff345070c622973c996a4d16292c4555 100644 (file)
@@ -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)
                ;
        }
 
index 73087c8421bd4f680de1ec71040b6e62fb3cb289..94e8f6f68a4cfcef3129aff74f195f148f2eaa69 100644 (file)
@@ -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']);
index 4b30681ebc76935a764662bad5c1297cd1971845..5dea2a845743aacb21cfc42aaf7ddf9e68a0c8d0 100644 (file)
@@ -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
 
index 95e3f651d5b0c615c89c3a84d3b5d444422dc4ab..713119e5b66c8a0f718283ed586d64433e939093 100644 (file)
@@ -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);
index 6f61788d35d3bc97d76a4c478942edcb2237639c..0b5fe7d183986863b3b206856596bc0b79cc3c80 100644 (file)
@@ -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