* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* $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 - 2013 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 *
* *
* 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 *
FROM
`{?_MYSQL_PREFIX?}_user_holidays`
WHERE
`id`=%s
LIMIT 1", array(bigintval($id)), __FILE__, __LINE__);
FROM
`{?_MYSQL_PREFIX?}_user_holidays`
WHERE
`id`=%s
LIMIT 1", array(bigintval($id)), __FILE__, __LINE__);
LIMIT 1", array(bigintval($content['userid'])), __FILE__, __LINE__);
// Remove holiday
LIMIT 1", array(bigintval($content['userid'])), __FILE__, __LINE__);
// Remove holiday
`{?_MYSQL_PREFIX?}_user_holidays`
WHERE
`id`=%s
LIMIT 1", array(bigintval($id)), __FILE__, __LINE__);
// Prepare loaded data for the
`{?_MYSQL_PREFIX?}_user_holidays`
WHERE
`id`=%s
LIMIT 1", array(bigintval($id)), __FILE__, __LINE__);
// Prepare loaded data for the
- $content['holiday_start'] = generateDateTime($content['holiday_start'], 3);
- $content['holiday_end'] = generateDateTime($content['holiday_end'] , 3);
+ $content['holiday_start'] = generateDateTime($content['holiday_start'], '3');
+ $content['holiday_end'] = generateDateTime($content['holiday_end'] , '3');
- loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_HOLIDAY_MULTI_DELETE', $count));
-} elseif (isGetRequestParameterSet('userid')) {
+
+ // Display final message
+ displayMessage('{%message,ADMIN_HOLIDAY_MULTI_DELETE=' . $count . '%}');
+} elseif (isGetRequestElementSet('userid')) {
- $result_load = SQL_QUERY_ESC("SELECT
- `holiday_start` AS start, `holiday_end` AS `end`
+ $result_load = sqlQueryEscaped("SELECT
+ `holiday_start` AS `start`,
+ `holiday_end` AS `end`
- array(bigintval(getRequestParameter('userid'))), __FILE__, __LINE__);
- if (SQL_NUMROWS($result_load) == 1) {
+ array(bigintval(getRequestElement('userid'))), __FILE__, __LINE__);
+ if (sqlNumRows($result_load) == 1) {
-LIMIT 1", array(bigintval(getRequestParameter('userid'))), __FILE__, __LINE__);
+LIMIT 1", array(bigintval(getRequestElement('userid'))), __FILE__, __LINE__);
- $message = loadEmailTemplate('member_holiday_removed', $content, getRequestParameter('userid'));
- sendEmail(getRequestParameter('userid'), '{--ADMIN_HOLIDAY_REMOVED_SUBJECT--}', $message);
+ $message = loadEmailTemplate('member_holiday_removed', $content, getRequestElement('userid'));
+ sendEmail(getRequestElement('userid'), '{--ADMIN_HOLIDAY_REMOVED_SUBJECT--}', $message);