X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-sponsor_infos.php;h=ecbfb8a1d9342ecb8c0bd2d4c17c1441e11749b2;hb=c3f2beb3f1d47c9593d262d7f5dac47640b4aa52;hp=24d571776dd863e9cff553a31ef88ed3954a3f7d;hpb=fb7120ffa230b62b54895bcf95952e1cf30f8594;p=mailer.git diff --git a/inc/modules/guest/what-sponsor_infos.php b/inc/modules/guest/what-sponsor_infos.php index 24d571776d..ecbfb8a1d9 100644 --- a/inc/modules/guest/what-sponsor_infos.php +++ b/inc/modules/guest/what-sponsor_infos.php @@ -1,7 +1,7 @@ 0) { // Load all actions - $OUT_ACT = ""; $SW = 2; + $OUT_ACT = ''; $SW = 2; while ($content = SQL_FETCHARRAY($result_act)) { // Prepare data for the row template // @TODO Rewritings: conv->conv_rate,name->conv_name in template @@ -73,39 +75,39 @@ if (SQL_NUMROWS($result_act) > 0) { ); // Load row template and switch color - $OUT_ACT .= LOAD_TEMPLATE("guest_sponsor_act_row", true, $content); + $OUT_ACT .= loadTemplate('guest_sponsor_act_row', true, $content); $SW = 3 - $SW; } // END - while // Check for pay types - $result_pay = SQL_QUERY("SELECT pay_name, pay_rate, pay_min_count, pay_currency FROM `{!_MYSQL_PREFIX!}_sponsor_paytypes` ORDER BY pay_name", __FILE__, __LINE__); + $result_pay = SQL_QUERY('SELECT pay_name, pay_rate, pay_min_count, pay_currency FROM `{?_MYSQL_PREFIX?}_sponsor_paytypes` ORDER BY pay_name', __FILE__, __LINE__); if (SQL_NUMROWS($result_pay) > 0) { // Load all pay types - $OUT_PAY = ""; $SW = 2; + $OUT_PAY = ''; $SW = 2; while ($content = SQL_FETCHARRAY($result_pay)) { // Prepare data for the row template // @TODO Rewritings: name->pay_name,min->pay_min_count,min->pay_min_count,curr->pay_currency $content = array( 'sw' => $SW, 'name' => $content['pay_name'], - 'rate' => TRANSLATE_COMMA($content['pay_rate']), + 'rate' => translateComma($content['pay_rate']), 'min' => $content['pay_min_count'], 'curr' => $content['pay_currency'], - 'price' => TRANSLATE_COMMA($content['pay_min_count']), + 'price' => translateComma($content['pay_min_count']), ); // Load row template and switch color - $OUT_PAY .= LOAD_TEMPLATE("guest_sponsor_pay_row", true, $content); + $OUT_PAY .= loadTemplate('guest_sponsor_pay_row', true, $content); $SW = 3 - $SW; } } else { // No pay types setuped so far! - $OUT_PAY = LOAD_TEMPLATE("guest_sponsor_infos_none_row", LOAD_TEMPLATE("admin_settings_saved", true, getMessage('SPONSOR_NO_ACTIONS_ACTIVATED'))); + $OUT_PAY = loadTemplate('guest_sponsor_infos_none_row', loadTemplate('admin_settings_saved', true, getMessage('SPONSOR_NO_ACTIONS_ACTIVATED'))); } } else { // No actions activated so far! - $OUT_ACT = LOAD_TEMPLATE("guest_sponsor_infos_none_row", LOAD_TEMPLATE("admin_settings_saved", true, getMessage('SPONSOR_NO_ACTIONS_ACTIVATED'))); - $OUT_PAY = LOAD_TEMPLATE("guest_sponsor_infos_none_row", LOAD_TEMPLATE("admin_settings_saved", true, getMessage('SPONSOR_NO_ACTIONS_ACTIVATED'))); + $OUT_ACT = loadTemplate('guest_sponsor_infos_none_row', loadTemplate('admin_settings_saved', true, getMessage('SPONSOR_NO_ACTIONS_ACTIVATED'))); + $OUT_PAY = loadTemplate('guest_sponsor_infos_none_row', loadTemplate('admin_settings_saved', true, getMessage('SPONSOR_NO_ACTIONS_ACTIVATED'))); } // Free memory @@ -119,7 +121,7 @@ $content = array( ); // Load main template -LOAD_TEMPLATE("guest_sponsor_infos", false, $content); +loadTemplate('guest_sponsor_infos', false, $content); -// +// [EOF] ?>