X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=inc%2Fmodules%2Fadmin%2Fwhat-list_wernis.php;h=418e8c11e5386f1176fcc169e732124ecd7cf8cb;hb=cf3765c38cf0a76f396aca291f71858936e92956;hp=b9e0521e4d80ff37eda1531f36c1fc0d74ad065c;hpb=75ad748a68473ace540251427a74fb781b1145e9;p=mailer.git diff --git a/inc/modules/admin/what-list_wernis.php b/inc/modules/admin/what-list_wernis.php index b9e0521e4d..418e8c11e5 100644 --- a/inc/modules/admin/what-list_wernis.php +++ b/inc/modules/admin/what-list_wernis.php @@ -1,7 +1,7 @@ 0) { + // List all entries + $OUT = ''; + while ($content = SQL_FETCHARRAY($result)) { + // Translate some data and add color + $content['wernis_timestamp'] = generateDateTime($content['wernis_timestamp'], 2); + + // Fix empty message and status + if (empty($content['wernis_api_status'])) $content['wernis_api_status'] = 'OK'; + + // Append it and switch colors + $OUT .= loadTemplate('admin_list_wernis_row', true, $content); + } // END - while + + // Load main template + loadTemplate('admin_list_wernis_main', false, $OUT); +} else { + // Nothing to display! + loadTemplate('admin_settings_saved', false, '{--ADMIN_WERNIS_NO_TRANSFERS--}'); +} + +// Free the result +SQL_FREERESULT($result); -// +// [EOF] ?>