X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=0.2.1%2Finc%2Fmodules%2Fadmin%2Fwhat-list_holiday.php;fp=0.2.1%2Finc%2Fmodules%2Fadmin%2Fwhat-list_holiday.php;h=013e97ca474e86b4b9bfa42dc0e40aa77351421f;hp=e7cb6e31b838738b7bd6c7a83a244f90aacd74e4;hb=7bc25dd08431c94ce9edca131d56c1a36b13c28a;hpb=157ee010917df5ca07e6d31b42f67417b2516d74 diff --git a/0.2.1/inc/modules/admin/what-list_holiday.php b/0.2.1/inc/modules/admin/what-list_holiday.php index e7cb6e31b8..013e97ca47 100644 --- a/0.2.1/inc/modules/admin/what-list_holiday.php +++ b/0.2.1/inc/modules/admin/what-list_holiday.php @@ -1,85 +1,85 @@ - 0) -{ - // List all holiday requests - $SW = 2; $OUT = ""; - while (list($id, $uid, $start, $end, $comments, $status, $last) = SQL_FETCHROW($result)) - { - // Add three dashes to comment when it is empty - if (empty($comments)) $comments = "---"; - - // Prepare data for the row template - $content = array( - 'sw' => $SW, - 'id' => $id, - 'uid' => ADMIN_USER_PROFILE_LINK($uid), - 'start' => MAKE_DATETIME($start, "3"), - 'end' => MAKE_DATETIME($end, "3"), - 'comments' => wordwrap($comments, 15), - 'status' => TRANSLATE_STATUS($status), - 'last' => MAKE_DATETIME($last, "3"), - ); - - // Load row template and switch color - $OUT .= LOAD_TEMPLATE("admin_list_holiday_row", true, $content); - $SW = 3 - $SW; - } - - // Free memory - SQL_FREERESULT($result); - define('__HOLIDAY_ROWS', $OUT); - - // Load main template - LOAD_TEMPLATE("admin_list_holiday"); -} - else -{ - // No holiday requests found - LOAD_TEMPLATE("admin_settings_saved", false, HOLIDAY_ADMIN_NOTHING_FOUND); -} -// -?> + 0) +{ + // List all holiday requests + $SW = 2; $OUT = ""; + while (list($id, $uid, $start, $end, $comments, $status, $last) = SQL_FETCHROW($result)) + { + // Add three dashes to comment when it is empty + if (empty($comments)) $comments = "---"; + + // Prepare data for the row template + $content = array( + 'sw' => $SW, + 'id' => $id, + 'uid' => ADMIN_USER_PROFILE_LINK($uid), + 'start' => MAKE_DATETIME($start, "3"), + 'end' => MAKE_DATETIME($end, "3"), + 'comments' => wordwrap($comments, 15), + 'status' => TRANSLATE_STATUS($status), + 'last' => MAKE_DATETIME($last, "3"), + ); + + // Load row template and switch color + $OUT .= LOAD_TEMPLATE("admin_list_holiday_row", true, $content); + $SW = 3 - $SW; + } + + // Free memory + SQL_FREERESULT($result); + define('__HOLIDAY_ROWS', $OUT); + + // Load main template + LOAD_TEMPLATE("admin_list_holiday"); +} + else +{ + // No holiday requests found + LOAD_TEMPLATE("admin_settings_saved", false, HOLIDAY_ADMIN_NOTHING_FOUND); +} +// +?>