'); } // END - if } // END - if if ((isExtensionActive('bonus')) && (empty($WHO))) { // Load bonus mails only when extension is active if (!ifSqlHasZeroNumRows($result_bonus)) { // Calculate pages $numPages = round(sqlNumRows($result_bonus) / getMailsPage() + 0.5); // List emails $OUT = ''; while ($content = sqlFetchArray($result_bonus)) { // Add link to list_unconfirmed what-file $content['unconfirmed'] = generateUnconfirmedAdminLink($content['id'], $content['unconfirmed'], 'bonus'); // Prepare content $content['timestamp'] = generateDateTime($content['timestamp'], 0); // Load row template $OUT .= loadTemplate('admin_list_bonus_emails_row', TRUE, $content); } // END - while // Add navigation (without change box but with colspan=3) $content['nav'] = addEmailNavigation($numPages, getMailsPage(), FALSE, 3, TRUE); // Prepare content $content['rows'] = $OUT; // Load main template loadTemplate('admin_list_bonus_emails', FALSE, $content); $MAIL = TRUE; } // END - if } // END - if if ($MAIL === FALSE) { // No mail orders fond displayMessage('{--ADMIN_NO_MAILS_IN_POOL--}'); } // END - if // [EOF] ?>