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;