X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-email_details.php;h=effc1b8c72885a342de235389fb8b4d54e193616;hp=1795e056ab26b951004b153f71310932e11cc191;hb=9270eabb4c34f6fe04d56e7e702cf000849358d3;hpb=1e6d7b906ac9481fc5120d7a1a5e6a4d7a509296 diff --git a/inc/modules/admin/what-email_details.php b/inc/modules/admin/what-email_details.php index 1795e056ab..effc1b8c72 100644 --- a/inc/modules/admin/what-email_details.php +++ b/inc/modules/admin/what-email_details.php @@ -60,8 +60,7 @@ ORDER BY timestamp DESC"; $WHO = _ALL; $SQL2 = ""; -if (!empty($_GET['mid'])) -{ +if (!empty($_GET['mid'])) { // Only a specific mail shall be displayed // 0 1 2 3 4 5 6 7 8 9 10 $SQL = "SELECT id, sender, subject, text, receivers, payment_id, data_type, timestamp, url, target_send, cat_id @@ -69,9 +68,7 @@ if (!empty($_GET['mid'])) WHERE id='".bigintval($_GET['mid'])."' LIMIT 1"; $WHO = MAIL_ID.": ".$_GET['mid']; -} - elseif (!empty($_GET['u_id'])) -{ +} elseif (!empty($_GET['u_id'])) { // All mails by a specific member shall be displayed // 0 1 2 3 4 5 6 7 8 9 10 $SQL = "SELECT id, sender, subject, text, receivers, payment_id, data_type, timestamp, url, target_send, cat_id @@ -101,8 +98,7 @@ if (empty($_GET['page'])) $_GET['page'] = "1"; if (empty($_GET['offset'])) $_GET['offset'] = getConfig('mails_page'); // Add limitation to SQL string -if (empty($_GET['mid'])) -{ +if (empty($_GET['mid'])) { // Create limitation line $ADD = " LIMIT ".(bigintval($_GET['offset']) * bigintval($_GET['page']) - bigintval($_GET['offset'])).", ".bigintval($_GET['offset']); @@ -111,7 +107,7 @@ if (empty($_GET['mid'])) // For bonus mails if (!empty($SQL2)) $SQL2 .= $ADD; -} +} // END - if // Run SQL query for normal mails $result_list = SQL_QUERY($SQL, __FILE__, __LINE__); @@ -211,7 +207,7 @@ if ((EXT_IS_ACTIVE("bonus")) && ($WHO == _ALL)) { // Load row template $OUT .= LOAD_TEMPLATE("admin_list_bonus_emails_row", true, $content); - } + } // END - while // Add navigation (without change box but with colspan=3) $content['nav'] = ""; @@ -223,13 +219,13 @@ if ((EXT_IS_ACTIVE("bonus")) && ($WHO == _ALL)) { // Load main template LOAD_TEMPLATE("admin_list_bonus_emails", false, $content); $MAIL = true; - } -} + } // END - if +} // END - if if (!$MAIL) { // No mail orders fond - OUTPUT_HTML("".ADMIN_NO_MAILS_IN_POOL.""); -} + LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_NO_MAILS_IN_POOL); +} // END - if // ?>