X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_bonus.php;h=2c67f0258c40fed48b49f5d73eded169b248bb5a;hb=f1cd2b7ae65e988f5be106f415136aaf92d60538;hp=b52da3c58a9fdcfaca1000a3acc0f0850eb26d37;hpb=e5fe5afb17a5c8106f4c890234dfa39419e70f5d;p=mailer.git diff --git a/inc/modules/admin/what-config_bonus.php b/inc/modules/admin/what-config_bonus.php index b52da3c58a..2c67f0258c 100644 --- a/inc/modules/admin/what-config_bonus.php +++ b/inc/modules/admin/what-config_bonus.php @@ -1,7 +1,7 @@ \n"; - $cnt = '0'; + $OUT = '
    '; + $count = '0'; foreach ($RANKS as $k => $rate) { - if (!empty($rate)) { + if (!empty($rate)) { // Print only when something is in - $OUT .= "
  1.  
    ({?POINTS?})\n"; + $OUT .= '
  2. ({?POINTS?})
  3. '; } // END - if - $cnt++; + $count++; } // END - foreach // Maxmium entries $max = 10; - if ($cnt >= 8) $max = $cnt+3; + if ($count >= 8) $max = $count+3; // Add more empty fields - for ($i = $cnt; $i < $max; $i++) { - $OUT .= "
  4.  
    ({?POINTS?})
  5. \n"; + for ($i = $count; $i < $max; $i++) { + $OUT .= '
  6. ({?POINTS?})
  7. '; } // END - for - $OUT .= "
\n"; + $OUT .= ''; $content['trates_list'] = $OUT; // Selection boxes - $content['login_timeout_selection'] = createTimeSelections(getConfig('login_timeout') , 'login_timeout' , 'WDh'); - $content['bonus_timeout_selection'] = createTimeSelections(getConfig('bonus_timeout') , 'bonus_timeout' , 'WDh'); - $content['wait_selection'] = createTimeSelections(getConfig('bonus_notify_wait'), 'bonus_notify_wait', 'ms' ); - - // Init Y/N selections - foreach (array('active','login_yn','stats_yn','order_yn','ref_yn','click_yn','en_notify','di_notify','new_mem_notify','include_own') as $entry) { - $content[$entry . '_y'] = ''; - $content[$entry . '_n'] = ''; - $content[$entry . '_' . strtolower(getConfig('bonus_' . $entry))] = ' checked="checked"'; - } // END - foreach + $content['login_timeout_selection'] = createConfigurationTimeSelections('login_timeout' , 'WDh'); + $content['bonus_timeout_selection'] = createConfigurationTimeSelections('bonus_timeout' , 'WDh'); + $content['wait_selection'] = createConfigurationTimeSelections('bonus_notify_wait', 'ms' ); // Load final template - loadTemplate('admin_config_bonus', false, $content); + loadTemplate('admin_config_bonus', FALSE, $content); } // [EOF]