'); } // END - if } if ((isExtensionActive('bonus')) && (empty($WHO))) { // Load bonus mails only when extension is active if (!SQL_HASZERONUMS($result_bonus)) { // Calculate pages $numPages = round(SQL_NUMROWS($result_bonus) / getConfig('mails_page') + 0.5); // List emails $OUT = ''; while ($content = SQL_FETCHARRAY($result_bonus)) { // Add link to list_unconfirmed what-file $content['unconfirmed'] = generateUnconfirmedAdminLink($content['id'], $content['unconfirmed']); // 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, getConfig('mails_page'), 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 loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MAILS_IN_POOL--}'); } // END - if // [EOF] ?>