X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-del_holiday.php;h=2c8ae73b5558c82c4846ff346d1aa9058df8cb8e;hb=8d0ed5ed9a9ca0e07b9582f2311b44bdcc5a95ea;hp=3425519e1bb92be70f16f925f1c297d8197be06f;hpb=260430dc9cc9e160ff5782f62b6908c7d41df8b6;p=mailer.git diff --git a/inc/modules/admin/what-del_holiday.php b/inc/modules/admin/what-del_holiday.php index 3425519e1b..2c8ae73b55 100644 --- a/inc/modules/admin/what-del_holiday.php +++ b/inc/modules/admin/what-del_holiday.php @@ -14,11 +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, 2010 by Mailer Developer Team * + * 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 * @@ -43,12 +41,12 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { } // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +addYouAreHereLink('admin', __FILE__); // Shall I delete selected holidays??? if (ifPostContainsSelections()) { // Delete multiple holiday requests (for list_holiday) - $cnt = '0'; + $count = '0'; foreach (postRequestParameter('sel') as $id => $sel) { // Get the userid $result = SQL_QUERY_ESC("SELECT @@ -85,13 +83,13 @@ LIMIT 1", array(bigintval($id)), __FILE__, __LINE__); // Send email to user $message = loadEmailTemplate('member_holiday_removed', $content, $content['userid']); sendEmail($content['userid'], '{--ADMIN_HOLIDAY_REMOVED_SUBJECT--}', $message); - $cnt++; + $count++; } // END - if // Free result SQL_FREERESULT($result); } // END - foreach - loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_HOLIDAY_MULTI_DEL', $cnt)); + displayMessage(getMaskedMessage('ADMIN_HOLIDAY_MULTI_DELETE', $count)); } elseif (isGetRequestParameterSet('userid')) { // Set default message $message = '{--ADMIN_HOLIDAY_SINGLE_404--}'; @@ -128,10 +126,10 @@ LIMIT 1", array(bigintval(getRequestParameter('userid'))), __FILE__, __LINE__); SQL_FREERESULT($result_load); // Output message - loadTemplate('admin_settings_saved', false, $message); + displayMessage($message); } else { - // Please call me over other scripts... ;) - loadTemplate('admin_settings_saved', false, '{--HOLIDAY_NO_DIRECT_CALL--}'); + // Add member selection box + addMemberSelectionBox(); } // [EOF]