* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 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 *
adminSaveSettingsFromPostData();
} else {
// Add userid selection
- $content['coupon_userid'] = addMemberSelectionBox(getConfig('coupon_userid'), false, true, true, 'coupon_userid');
-
- // Init all other template entries
- foreach (array('payment_method_ref', 'payment_method_direct', 'points_account_order', 'points_account_general', 'locked_points_mode_locked', 'locked_points_mode_unlocked') as $entry) {
- $content['coupon_' . $entry] = '';
- } // END - foreach
-
- // Set current selections
- foreach (array('payment_method', 'points_account', 'locked_points_mode') as $entry) {
- $content['coupon_' . $entry . '_' . strtolower(getConfig('coupon_' . $entry))] = ' checked="checked"';
- } // END - foreach
+ $content['coupon_userid'] = addMemberSelectionBox(getCouponUserid(), FALSE, TRUE, TRUE, 'coupon_userid');
// Prepare some template data
$content['coupon_default_time_selection'] = createConfigurationTimeSelections('coupon_default_time' , 'WDh');
$content['coupon_autopurge_time_selection'] = createConfigurationTimeSelections('coupon_autopurge_time', 'WDh');
// Load template
- loadTemplate('admin_config_coupon', false, $content);
+ loadTemplate('admin_config_coupon', FALSE, $content);
}
// [EOF]