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, '{--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 = '{--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'), '{--HOLIDAY_ADMIN_REMOVED_SUBJ--}', $message);
+ sendEmail(getRequestParameter('userid'), '{--ADMIN_HOLIDAY_REMOVED_SUBJECT--}', $message);
// Set message
- $message = '{--HOLIDAY_ADMIN_SINGLE_DELETED--}';
+ $message = '{--ADMIN_HOLIDAY_SINGLE_DELETED--}';
} // END - if
// Free memory