* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * 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 *
addYouAreHereLink('admin', __FILE__);
// Start listing holiday requests
-$result = SQL_QUERY("SELECT
- h.`id`,
- h.`userid`,
- h.`holiday_start`,
- h.`holiday_end`,
- h.`comments`,
+$result = sqlQuery("SELECT
+ `h`.`id`,
+ `h`.`userid`,
+ `h`.`holiday_start`,
+ `h`.`holiday_end`,
+ `h`.`comments`,
`d`.`status`,
`d`.`last_online`
FROM
LEFT JOIN
`{?_MYSQL_PREFIX?}_user_data` AS `d`
ON
- h.`userid`=`d`.`userid`
+ `h`.`userid`=`d`.`userid`
ORDER BY
- h.`userid` ASC", __FILE__, __LINE__);
+ `h`.`userid` ASC", __FILE__, __LINE__);
-if (!SQL_HASZERONUMS($result)) {
+if (!ifSqlHasZeroNums($result)) {
// List all holiday requests
$OUT = '';
- while ($content = SQL_FETCHARRAY($result)) {
+ while ($content = sqlFetchArray($result)) {
// Prepare data for the row template
$content = array(
'id' => $content['id'],
} // END - while
// Free memory
- SQL_FREERESULT($result);
+ sqlFreeResult($result);
// Load main template
loadTemplate('admin_list_holiday', FALSE, $OUT);