'; $cnt = '0'; foreach ($RANKS as $k => $rate) { if (!empty($rate)) { // Print only when something is in $OUT .= '
  • ({?POINTS?})
  • '; } // END - if $cnt++; } // END - foreach // Maxmium entries $max = 10; if ($cnt >= 8) $max = $cnt+3; // Add more empty fields for ($i = $cnt; $i < $max; $i++) { $OUT .= '
  • ({?POINTS?})
  • '; } // END - for $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','enable_notify','disable_notify','new_member_notify','include_own') as $entry) { $content[$entry . '_y'] = ''; $content[$entry . '_n'] = ''; $content[$entry . '_' . strtolower(getConfig('bonus_' . $entry))] = ' checked="checked"'; } // END - foreach // Load final template loadTemplate('admin_config_bonus', false, $content); } // [EOF] ?>