]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_bonus.php
A lot CSS classes rewritten, please update all your themes.
[mailer.git] / inc / modules / admin / what-config_bonus.php
index b6750d4f71e8a31feae45dd461f4efd3a3a30220..8e95c3aaacf065efeed1b74eabd8370a9625a339 100644 (file)
@@ -74,16 +74,8 @@ if (isFormSent()) {
        setConfigEntry('bonus_enable_notify' , postRequestParameter('bonus_enable_notify'));
        setConfigEntry('bonus_disable_notify', postRequestParameter('bonus_disable_notify'));
 } else {
-       // Prepare contants for the template
-       $content['login']  = translateComma(getConfig('login_bonus')        , false);
-       $content['turbo']  = translateComma(getConfig('turbo_bonus')        , false);
-       $content['order']  = translateComma(getConfig('bonus_order')        , false);
-       $content['ref']    = translateComma(getConfig('bonus_ref')          , false);
-       $content['stats']  = translateComma(getConfig('bonus_stats')        , false);
-       $content['notify'] = translateComma(getConfig('bonus_notify_points'), false);
-
        // Transfer options to template
-       $content['member_selection'] = addMemberSelectionBox(getConfig('bonus_userid'), false, true, true, 'bonus_userid');
+       $content['form_selection'] = addMemberSelectionBox(getBonusUserId(), false, true, true, 'bonus_userid');
 
        // Initialize array for the points list
        $RANKS = explode(';', getConfig('turbo_rates'));
@@ -97,7 +89,7 @@ if (isFormSent()) {
        foreach ($RANKS as $k => $rate) {
                if (!empty($rate)) {
                        // Print only when something is in
-                       $OUT .= '<li><input type="text" name="rate[' . ($k + 2) . ']" class="admin_normal" size="4" maxlength="7" value="' . $rate . '" /> <div class="admin_note">({?POINTS?})</div></li>';
+                       $OUT .= '<li><input type="text" name="rate[' . ($k + 2) . ']" class="form_field" size="4" maxlength="7" value="' . $rate . '" /> <div class="notice">({?POINTS?})</div></li>';
                } // END - if
                $cnt++;
        } // END - foreach
@@ -108,7 +100,7 @@ if (isFormSent()) {
 
        // Add more empty fields
        for ($i = $cnt; $i < $max; $i++) {
-               $OUT .= '  <li><input type="text" name="rate[' . ($i+2) . ']" class="admin_normal" size="4" maxlength="7" /> <div class="admin_note">({?POINTS?})</div></li>';
+               $OUT .= '  <li><input type="text" name="rate[' . ($i+2) . ']" class="form_field" size="4" maxlength="7" /> <div class="notice">({?POINTS?})</div></li>';
        } // END - for
        $OUT .= '</ol>';
        $content['trates_list'] = $OUT;