X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-list_holiday.php;h=d23b431eb17f23fd06ae34973a31f6d0db8e34c4;hb=04b69ac9f33369cbf654396c4a42cb1fff710ff4;hp=83c1a6689b5de3f84e29003d16533c7780237120;hpb=414570c5081d337bb6c28dcf521bd8bca02f69e7;p=mailer.git diff --git a/inc/modules/admin/what-list_holiday.php b/inc/modules/admin/what-list_holiday.php index 83c1a6689b..d23b431eb1 100644 --- a/inc/modules/admin/what-list_holiday.php +++ b/inc/modules/admin/what-list_holiday.php @@ -1,7 +1,7 @@ 0) { // List all holiday requests - $OUT = ""; $SW = 2; + $OUT = ''; $SW = 2; while ($content = SQL_FETCHARRAY($result)) { // Add three dashes to comment when it is empty - if (empty($content['comments'])) $content['comments'] = "---"; + if (empty($content['comments'])) $content['comments'] = '---'; // Prepare data for the row template $content = array( - 'sw' => $SW, - 'id' => $content['id'], - 'uid' => ADMIN_USER_PROFILE_LINK($content['userid']), - 'start' => MAKE_DATETIME($content['holiday_start'], "3"), - 'end' => MAKE_DATETIME($content['holiday_end'], "3"), - 'comments' => wordwrap($content['comments'], 15), - 'status' => TRANSLATE_STATUS($content['status']), - 'last' => MAKE_DATETIME($content['last_online'], "3"), + 'sw' => $SW, + 'id' => $content['id'], + 'userid' => $content['userid'], + 'start' => generateDateTime($content['holiday_start'], 3), + 'end' => generateDateTime($content['holiday_end'], 3), + 'comments' => wordwrap($content['comments'], 15), + 'status' => $content['status'], + 'last_online' => generateDateTime($content['last_online'], 3), ); // Load row template and switch color - $OUT .= LOAD_TEMPLATE("admin_list_holiday_row", true, $content); + $OUT .= loadTemplate('admin_list_holiday_row', true, $content); $SW = 3 - $SW; - } + } // END - while // Free memory SQL_FREERESULT($result); - // @TODO Rewrite this constant - define('__HOLIDAY_ROWS', $OUT); - // Load main template - LOAD_TEMPLATE("admin_list_holiday"); + loadTemplate('admin_list_holiday', false, $OUT); } else { // No holiday requests found - LOAD_TEMPLATE("admin_settings_saved", false, getMessage('HOLIDAY_ADMIN_NOTHING_FOUND')); + loadTemplate('admin_settings_saved', false, '{--HOLIDAY_ADMIN_NOTHING_FOUND--}'); } -// +// [EOF] ?>