addMenuDescription('admin', __FILE__);
// Shall I delete selected holidays???
-if (countPostSelection() > 0) {
+if (ifPostContainsSelections()) {
// Delete multiple holiday requests (for list_holiday)
$cnt = '0';
foreach (postRequestParameter('sel') as $id => $sel) {
// Send email to user
$message = loadEmailTemplate('member_holiday_removed', $content, $userid);
- sendEmail($userid, getMessage('HOLIDAY_ADMIN_REMOVED_SUBJ'), $message);
+ sendEmail($userid, '{--ADMIN_HOLIDAY_REMOVED_SUBJECT--}', $message);
$cnt++;
}
}
- loadTemplate('admin_settings_saved', false, getMaskedMessage('HOLIDAY_ADMIN_MULTI_DEL', $cnt));
+ loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_HOLIDAY_MULTI_DEL', $cnt));
} elseif (isGetRequestParameterSet('userid')) {
// Set default message
- $message = getMessage('HOLIDAY_ADMIN_SINGLE_404');
+ $message = '{--ADMIN_HOLIDAY_SINGLE_404--}';
// Fetch data
$result_load = SQL_QUERY_ESC("SELECT
// Send email to user
$message = loadEmailTemplate('member_holiday_removed', $content, getRequestParameter('userid'));
- sendEmail(getRequestParameter('userid'), getMessage('HOLIDAY_ADMIN_REMOVED_SUBJ'), $message);
+ sendEmail(getRequestParameter('userid'), '{--ADMIN_HOLIDAY_REMOVED_SUBJECT--}', $message);
// Set message
- $message = getMessage('HOLIDAY_ADMIN_SINGLE_DELETED');
- }
+ $message = '{--ADMIN_HOLIDAY_SINGLE_DELETED--}';
+ } // END - if
// Free memory
SQL_FREERESULT($result_load);
loadTemplate('admin_settings_saved', false, $message);
} else {
// Please call me over other scripts... ;)
- loadTemplate('admin_settings_saved', false, getMessage('HOLIDAY_NO_DIRECT_CALL'));
+ loadTemplate('admin_settings_saved', false, '{--HOLIDAY_NO_DIRECT_CALL--}');
}
// [EOF]