]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_rallyes.php
Fixed calls of addSelectionBox()
[mailer.git] / inc / modules / admin / what-list_rallyes.php
index 14c2124e01451da752ae8e4431ed8ff7b87d8e5b..94e8f6f68a4cfcef3129aff74f195f148f2eaa69 100644 (file)
@@ -56,13 +56,13 @@ if (isGetRequestElementSet('rallye_id')) {
                switch (getRequestElement('activate')) {
                        case '1': // Activate
                                addSql(SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET `is_active`='Y' WHERE `id`=%s AND `is_active`='N' LIMIT 1",
-                                       array(bigintval(getRequestElement('rallye_id'))), __FILE__, __LINE__, false)
+                                       array(bigintval(getRequestElement('rallye_id'))), __FILE__, __LINE__, FALSE)
                                );
                                break;
 
                        case '0': // Deactivate
                                addSql(SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET `is_active`='N' WHERE `id`=%s AND `is_active`='Y' LIMIT 1",
-                                       array(bigintval(getRequestElement('rallye_id'))), __FILE__, __LINE__, false)
+                                       array(bigintval(getRequestElement('rallye_id'))), __FILE__, __LINE__, FALSE)
                                );
                                break;
                } // END - switch
@@ -71,13 +71,13 @@ if (isGetRequestElementSet('rallye_id')) {
                switch (getRequestElement('notify')) {
                        case '1': // Activate
                                addSql(SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET `send_notify`='Y' WHERE `id`=%s AND `send_notify`='N' LIMIT 1",
-                                       array(bigintval(getRequestElement('rallye_id'))), __FILE__, __LINE__, false)
+                                       array(bigintval(getRequestElement('rallye_id'))), __FILE__, __LINE__, FALSE)
                                );
                                break;
 
                        case '0': // Deactivate
                                addSql(SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET `send_notify`='N' WHERE `id`=%s AND `send_notify`='Y' LIMIT 1",
-                                       array(bigintval(getRequestElement('rallye_id'))), __FILE__, __LINE__, false)
+                                       array(bigintval(getRequestElement('rallye_id'))), __FILE__, __LINE__, FALSE)
                                );
                                break;
                } // END - switch
@@ -86,13 +86,13 @@ if (isGetRequestElementSet('rallye_id')) {
                switch (getRequestElement('auto')) {
                        case '1': // Activate
                                addSql(SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET `auto_add_new_user`='Y' WHERE `id`=%s AND `auto_add_new_user`='N' LIMIT 1",
-                                       array(bigintval(getRequestElement('rallye_id'))), __FILE__, __LINE__, false)
+                                       array(bigintval(getRequestElement('rallye_id'))), __FILE__, __LINE__, FALSE)
                                );
                                break;
 
                        case '0': // Deactivate
                                addSql(SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET `auto_add_new_user`='N' WHERE `id`=%s AND `auto_add_new_user`='Y' LIMIT 1",
-                                       array(bigintval(getRequestElement('rallye_id'))), __FILE__, __LINE__, false)
+                                       array(bigintval(getRequestElement('rallye_id'))), __FILE__, __LINE__, FALSE)
                                );
                                break;
                } // END - switch
@@ -110,11 +110,11 @@ if (isGetRequestElementSet('rallye_id')) {
                foreach (postRequestElement('sel') as $id => $selected) {
                        // Remove selected rallye entirely...
                        addSql(SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_rallye_data` WHERE `id`=%s LIMIT 1",
-                               array(bigintval($id)), __FILE__, __LINE__, false));
+                               array(bigintval($id)), __FILE__, __LINE__, FALSE));
                        addSql(SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `rallye_id`=%s",
-                               array(bigintval($id)), __FILE__, __LINE__, false));
+                               array(bigintval($id)), __FILE__, __LINE__, FALSE));
                        addSql(SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_rallye_users` WHERE `rallye_id`=%s",
-                               array(bigintval($id)), __FILE__, __LINE__, false));
+                               array(bigintval($id)), __FILE__, __LINE__, FALSE));
                } // END - foreach
 
                // Run SQLS
@@ -164,7 +164,7 @@ LIMIT 1",
                                bigintval(postRequestElement('min_users', $id)),
                                bigintval(postRequestElement('min_prices', $id)),
                                $id
-                       ), __FILE__, __LINE__, false));
+                       ), __FILE__, __LINE__, FALSE));
                }
 
                // Run SQLS
@@ -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']);
@@ -241,11 +241,11 @@ LIMIT 1",
                        $content['rallye_id']         = bigintval($id);
 
                        // Output row
-                       $OUT .= loadTemplate('admin_' . $mode . '_rallyes_row', true, $content);
+                       $OUT .= loadTemplate('admin_' . $mode . '_rallyes_row', TRUE, $content);
                } // END - foreach
 
                // Load final template
-               loadTemplate('admin_' . $mode . '_rallyes', false, $OUT);
+               loadTemplate('admin_' . $mode . '_rallyes', FALSE, $OUT);
        } else {
                // Nothing selected to edit
                displayMessage('{--ADMIN_RALLYE_NO_RALLYES_SELECTED--}');
@@ -281,7 +281,7 @@ ORDER BY
                        } // END - if
 
                        // Get user points
-                       $points = countSumTotalData($row['userid'], 'user_points', 'points', 'userid', false, " AND `ref_depth`=1");
+                       $points = countSumTotalData($row['userid'], 'user_points', 'points', 'userid', FALSE, " AND `ref_depth`=1");
                        //* DEBUG: */ debugOutput(basename(__FILE__).':userid='.$row['userid'].',points='.$points.',opoints='.$row['curr_points']);
 
                        // Prepare content
@@ -295,7 +295,7 @@ ORDER BY
                        );
 
                        // Load row template and switch color
-                       $OUT .= loadTemplate('admin_list_rallye_usr_row', true, $row);
+                       $OUT .= loadTemplate('admin_list_rallye_usr_row', TRUE, $row);
                } // END - while
 
                // Remember rows
@@ -306,7 +306,7 @@ ORDER BY
                SQL_FREERESULT($result);
 
                // Load template
-               loadTemplate('admin_list_rallye_usr', false, $content);
+               loadTemplate('admin_list_rallye_usr', FALSE, $content);
        } else {
                // No entries found?
                displayMessage('{--ADMIN_RALLYE_USERS_404--}');
@@ -338,7 +338,7 @@ ORDER BY
                $OUT = '';
                while ($data = SQL_FETCHARRAY($result)) {
                        // Count joined userids
-                       $users = countSumTotalData($data['rallye_id'], 'rallye_users', 'rallye_id', 'rallye_id', true);
+                       $users = countSumTotalData($data['rallye_id'], 'rallye_users', 'rallye_id', 'rallye_id', TRUE);
 
                        // Did some users joined this rallye?
                        if ($users > 0) {
@@ -360,7 +360,7 @@ ORDER BY
                                'send_notify'       => $data['send_notify'],
                                'auto_add_new_user' => $data['auto_add_new_user'],
                                'notified'          => $data['notified'],
-                               'prices_cnt'        => countSumTotalData($data['rallye_id'], 'rallye_prices', 'rallye_id', 'rallye_id', true),
+                               'prices_cnt'        => countSumTotalData($data['rallye_id'], 'rallye_prices', 'rallye_id', 'rallye_id', TRUE),
                                'descr'             => $data['descr'],
                                'min_users'         => $data['min_users'],
                                'min_prices'        => $data['min_prices'],
@@ -408,7 +408,7 @@ ORDER BY
                        } // END - switch
 
                        // Output row
-                       $OUT .= loadTemplate('admin_list_rallyes_row', true, $row);
+                       $OUT .= loadTemplate('admin_list_rallyes_row', TRUE, $row);
                } // END - while
 
                // Free memory
@@ -418,7 +418,7 @@ ORDER BY
                $content['rows'] = $OUT;
 
                // Load template
-               loadTemplate('admin_list_rallyes', false, $content);
+               loadTemplate('admin_list_rallyes', FALSE, $content);
        } else {
                // No rallyes setup so far
                displayMessage('{--ADMIN_RALLYE_NO_RALLYES_SETUP--}');