X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-send_bonus.php;h=20514fd4ac11b58f13b240f5b52faf9c6d456a08;hb=101e5f161c0c367c022c9288398226a57f3919d7;hp=06bf39e7d1d4cce9acb60c99db048358a9922dac;hpb=e5fe5afb17a5c8106f4c890234dfa39419e70f5d;p=mailer.git diff --git a/inc/modules/admin/what-send_bonus.php b/inc/modules/admin/what-send_bonus.php index 06bf39e7d1..20514fd4ac 100644 --- a/inc/modules/admin/what-send_bonus.php +++ b/inc/modules/admin/what-send_bonus.php @@ -14,10 +14,9 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -42,28 +41,25 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { } // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +addYouAreHereLink('admin', __FILE__); if (!isExtensionActive('order')) { - loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('order')); + displayMessage(generateExtensionInactiveNotInstalledMessage('order')); return; } // END - if -// Set empty mode to "select" -if (!isGetRequestElementSet('mode')) setRequestGetElement('mode', "select"); +// 'mode' is not set by default +if (!isGetRequestParameterSet('mode')) { + // Set empty mode to "select" + setGetRequestParameter('mode', 'select'); +} // END - if if (isFormSent()) { // Deliver bonus mail - addNewBonusMail(postRequestArray(), getRequestElement('mode')); + addNewBonusMail(postRequestArray(), getRequestParameter('mode')); } else { - // Get all available users - $content['all'] = translateComma(getTotalReceivers(getRequestElement('mode'))); - - // Prepare option lines - $content['options_lines'] = generateCategoryOptionsList(getRequestElement('mode')); - // Store send mode - $content['mode'] = getRequestElement('mode'); + $content['mode'] = getRequestParameter('mode'); $content['html_select'] = ''; if (isExtensionActive('html_mail')) { @@ -72,7 +68,7 @@ if (isFormSent()) { } // END - if // Select template - switch(getRequestElement('mode')) { + switch(getRequestParameter('mode')) { case 'html': // HTML mails case 'normal': // Normal mails $template = 'admin_send_bonus_form'; @@ -81,7 +77,7 @@ if (isFormSent()) { case 'select': // Selection $template = 'admin_send_bonus_select'; break; - } // END - if + } // END - switch // Load template loadTemplate($template, false, $content);