- if ($PAGES > 1)
- {
- define('__TOP_EMAIL_NAV' , ADD_EMAIL_NAV($PAGES, $CONFIG['mails_page'], true , "3", true));
- define('__BOTTOM_EMAIL_NAV', ADD_EMAIL_NAV($PAGES, $CONFIG['mails_page'], false, "3", true));
- }
- else
- {
- define('__TOP_EMAIL_NAV' , "");
- define('__BOTTOM_EMAIL_NAV', "");
- }
-
- $SW = 2; $OUT = "";
- while ($pool = SQL_FETCHROW($result))
- {
+ $content['top_email_nav'] = '';
+ $content['bottom_email_nav'] = '';
+ if ($pages > 1) {
+ $content['top_email_nav'] = addEmailNavigation($pages, getConfig('mails_page'), true , '3', true);
+ $content['bottom_email_nav'] = addEmailNavigation($pages, getConfig('mails_page'), false, '3', true);
+ } // END - if
+
+ $OUT = ''; $SW = 2;
+ // @TODO Rewrite to SQL_FETCHARRAY()
+ while ($pool = SQL_FETCHROW($result)) {