From 36717d960b8746f50f248cc6aeb76c846fbee76a Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 10 May 2010 16:47:21 +0200 Subject: [PATCH] Adding nice next, previous icons to calendar --- main/admin/calendar.lib.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/main/admin/calendar.lib.php b/main/admin/calendar.lib.php index 0fe0fa560a..bc449302bd 100755 --- a/main/admin/calendar.lib.php +++ b/main/admin/calendar.lib.php @@ -56,9 +56,9 @@ function display_minimonthcalendar($agendaitems, $month, $year, $monthName) echo "\n", "\n", - "\n", + "\n", "\n", - "\n", "\n"; + "\n", "\n"; echo "\n"; for ($ii = 1; $ii < 8; $ii ++) { @@ -326,9 +326,9 @@ function display_monthcalendar($month, $year) echo "
« ".Display::return_icon('action_prev.png',get_lang('Previous'))." ", $monthName, " ", $year, " »
".Display::return_icon('action_next.png',get_lang('Next'))."
\n", "\n", - "\n", + "\n", "\n", - "\n", + "\n", "\n"; echo "\n"; @@ -1787,10 +1787,10 @@ function display_daycalendar($agendaitems, $day, $month, $year, $weekdaynames, $ $backwardsURL = api_get_self()."?coursePath=".urlencode($course_path)."&courseCode=".Security::remove_XSS($_GET['courseCode'])."&action=view&view=day&day=".date("j", $previousday)."&month=".date("n", $previousday)."&year=".date("Y", $previousday); $forewardsURL = api_get_self()."?coursePath=".urlencode($course_path)."&courseCode=".Security::remove_XSS($_GET['courseCode'])."&action=view&view=day&day=".date("j", $nextday)."&month=".date("n", $nextday)."&year=".date("Y", $nextday); // The title row containing the day - echo "\n", "\n", "\n", "\n", ""; - echo "\n"; + echo "\n"; echo "\n"; // the rows for each half an hour for ($i = 10; $i < 48; $i ++) @@ -1863,11 +1863,11 @@ function display_weekcalendar($agendaitems, $month, $year, $weekdaynames, $month echo "
« ".Display::return_icon('action_prev.png',get_lang('Previous'))."",$MonthsLong[$maand_array_maandnummer]," ",$year," » ".Display::return_icon('action_next.png',get_lang('Next'))."
«"; + echo "
".Display::return_icon('action_prev.png',get_lang('Previous')).""; echo $DaysLong[$day_of_the_week]." ".date("j", $today)." ".$MonthsLong[date("n", $today) - 1]." ".date("Y", $today); echo "»".Display::return_icon('action_next.png',get_lang('Next'))."
\n"; // The title row containing the the week information (week of the year (startdate of week - enddate of week) echo "\n"; - echo "\n"; + echo "\n"; echo ""; - echo "\n", "\n"; + echo "", ""; // The second row containing the short names of the days of the week echo "\n"; // this is the Day of the month without leading zeros (1 to 31) of the monday of this week
«".Display::return_icon('action_prev.png',get_lang('Previous'))."".get_lang("Week")." ".$week_number; echo " (".$DaysShort['1']." ".date("j", $timestamp_first_date_of_week)." ".$MonthsLong[date("n", $timestamp_first_date_of_week) - 1]." ".date("Y", $timestamp_first_date_of_week)." - ".$DaysShort['0']." ".date("j", $timestamp_last_date_of_week)." ".$MonthsLong[date("n", $timestamp_last_date_of_week) - 1]." ".date("Y", $timestamp_last_date_of_week).')'; echo "»
".Display::return_icon('action_next.png',get_lang('Next'))."