]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-sponsor_reg.php
A lot code rewritten:
[mailer.git] / inc / modules / guest / what-sponsor_reg.php
index e9f973a31c2923874e82362ddabe50d89ae3c858..28673055b3ba89b077fdba28637d042dc9a9789b 100644 (file)
@@ -288,18 +288,15 @@ ORDER BY
        if (SQL_NUMROWS($result) > 0) {
                // Load all types...
                // @TODO Swap this HTML code to templates
-               $OUT = "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"300\" class=\"left right top\">\n";
-               $SW = 2;
+               $OUT = '<table border="0" cellspacing="0" cellpadding="0" width="300" class="left right top">';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Prepare content for output
-                       $content['sw']  = $SW;
                        $content['res'] = translateComma($content['pay_rate'] * $content['pay_min_count']);
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('guest_sponsor_payment_row', false, $content);
-                       $SW = 3 - $SW;
-               }
-               $OUT .= "</table>\n";
+               } // END - while
+               $OUT .= '</table>';
 
                // Remember the list in table
                $content['payment_list'] = $OUT;