X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_holiday.php;h=b03ce7aef0fed0cfe8036f757f56d4855fd15b09;hb=1d22c70e65e858422ee0d17a7612f4b5c0757a42;hp=865c27fdaa93d3e496ec5c96626ea009d2954d0c;hpb=09f5758c42a33a56bdd461c946ffe759a59c54aa;p=mailer.git diff --git a/inc/modules/admin/what-config_holiday.php b/inc/modules/admin/what-config_holiday.php index 865c27fdaa..b03ce7aef0 100644 --- a/inc/modules/admin/what-config_holiday.php +++ b/inc/modules/admin/what-config_holiday.php @@ -14,12 +14,10 @@ * $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 * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -43,22 +41,27 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { } // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +addYouAreHereLink('admin', __FILE__); -if (isFormSent()) { +if (isFormSent('save_config')) { // Save settings adminSaveSettingsFromPostData(); } else { // Prepare constants for the template - $content['holiday_locked'] = createTimeSelections(getConfig('holiday_lock') , 'holiday_lock' , 'WDh'); + $content['holiday_lock'] = createConfigurationTimeSelections('holiday_lock', 'WDh'); + + // Init all entries + foreach (array('holiday_mode_direct','holiday_mode_reset') as $entry) { + $content[$entry] = ''; + } // END - foreach // Set all entries foreach (array('holiday_mode') as $entry) { - $content[$entry . '_' . strtolower(getConfig('holiday_mode'))] = ' checked="checked"'; + $content[$entry . '_' . strtolower(getConfig($entry))] = ' checked="checked"'; } // END - if // Load form template - loadTemplate('admin_config_holiday', false, $content); + loadTemplate('admin_config_holiday', FALSE, $content); } // [EOF]