X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_rallye_prices.php;h=c3c160ab39fd7ea0fb65f9061f3aa52073c2882a;hp=96d315663e7e4e9bc629f0dee13f185e58340b35;hb=596c8ab32594401ca84abfbfe35513ddfff31bec;hpb=63f159414369b5ea19a8ca75d8cd8033c45d8341 diff --git a/inc/modules/admin/what-config_rallye_prices.php b/inc/modules/admin/what-config_rallye_prices.php index 96d315663e..c3c160ab39 100644 --- a/inc/modules/admin/what-config_rallye_prices.php +++ b/inc/modules/admin/what-config_rallye_prices.php @@ -55,7 +55,7 @@ if (isGetRequestElementSet('rallye_id')) { // Ok, new price level entered! SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_rallye_prices` -(`rallye_id`,`price_level`,`points`,`info`) +(`rallye_id`, `price_level`, `points`, `info`) VALUES (%s, %s, '%s', '%s')", array( @@ -147,7 +147,7 @@ LIMIT 1", $content['rallye_content'] = generateOptions('rallye_data', 'id', 'title', $content['rallye_id']); // Load row template and switch color - $OUT .= loadTemplate('admin_edit_rallye_prices_row', true, $content); + $OUT .= loadTemplate('admin_edit_rallye_prices_row', TRUE, $content); } // END - foreach // Remember row content @@ -157,7 +157,7 @@ LIMIT 1", $content['rallye_id'] = bigintval(getRequestElement('rallye_id')); // Load main template - loadTemplate('admin_edit_rallye_prices', false, $content); + loadTemplate('admin_edit_rallye_prices', FALSE, $content); } else { // Nothing selected displayMessage('{%message,ADMIN_RALLYE_NO_PRICES_SELECTED=' . getRequestElement('rallye_id') . '%}'); @@ -189,7 +189,7 @@ LIMIT 1", SQL_FREERESULT($result); // Load row template and switch color - $OUT .= loadTemplate('admin_delete_rallye_prices_row', true, $content); + $OUT .= loadTemplate('admin_delete_rallye_prices_row', TRUE, $content); } // END - foreach $content['rows'] = $OUT; @@ -197,7 +197,7 @@ LIMIT 1", $content['rallye_id'] = bigintval(getRequestElement('rallye_id')); // Load main template - loadTemplate('admin_delete_rallye_prices', false, $content); + loadTemplate('admin_delete_rallye_prices', FALSE, $content); } else { // Nothing selected $content = '{--RALLYE_NO_PRICES_SELECTED_1--}{--RALLYE_NO_PRICES_SELECTED_2--}{--RALLYE_NO_PRICES_SELECTED_3--}'; @@ -205,7 +205,7 @@ LIMIT 1", } } else { // A rallye was selected, so check if there are already prices assigned... - $result = SQL_QUERY_ESC("SELECT `id`,`price_level`,`points`,`info` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `rallye_id`=%s ORDER BY `price_level` ASC", + $result = SQL_QUERY_ESC("SELECT `id`, `price_level`, `points`, `info` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `rallye_id`=%s ORDER BY `price_level` ASC", array(bigintval(getRequestElement('rallye_id'))), __FILE__, __LINE__); if (!SQL_HASZERONUMS($result)) { @@ -213,7 +213,7 @@ LIMIT 1", $OUT = ''; while ($content = SQL_FETCHARRAY($result)) { // Load row template and switch color - $OUT .= loadTemplate('admin_list_rallye_prices_simple_row', true, $content); + $OUT .= loadTemplate('admin_list_rallye_prices_simple_row', TRUE, $content); } // END - while // Free memory @@ -226,13 +226,13 @@ LIMIT 1", $content['rallye_id'] = bigintval(getRequestElement('rallye_id')); // Load main template - loadTemplate('admin_list_rallye_prices_simple', false, $content); + loadTemplate('admin_list_rallye_prices_simple', FALSE, $content); } // END - if } // Add form for adding new price level if ((!isFormSent('edit')) && (!isFormSent('delete'))) { - loadTemplate('admin_add_rallye_prices', false, getRequestElement('rallye_id')); + loadTemplate('admin_add_rallye_prices', FALSE, getRequestElement('rallye_id')); } // END - if } else { // No rallye selected so display all available without prices @@ -261,14 +261,14 @@ ORDER BY $content['end_time'] = generateDateTime($content['end_time'] , '3'); // Load row template and switch color - $OUT .= loadTemplate('admin_list_rallye_prices_row', true, $content); + $OUT .= loadTemplate('admin_list_rallye_prices_row', TRUE, $content); } // END - while // Free memory SQL_FREERESULT($result); // Load main template - loadTemplate('admin_list_rallye_prices', false, $OUT); + loadTemplate('admin_list_rallye_prices', FALSE, $OUT); } else { // No rallyes setup so far displayMessage('{--ADMIN_RALLYE_NO_RALLYES_SETUP--}');