|
|
@ -3203,10 +3203,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); |
|
|
|
$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); |
|
|
|
$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 |
|
|
|
// The title row containing the day |
|
|
|
echo "<tr>\n", "<th width=\"10%\"><a href=\"", $backwardsURL, "\">«</a></th>\n", "<th>"; |
|
|
|
echo "<tr>\n", "<th width=\"10%\"><a href=\"", $backwardsURL, "\">".Display::return_icon('action_prev.png',get_lang('Previous'))."</a></th>\n", "<th>"; |
|
|
|
echo $DaysLong[$day_of_the_week]." ".date("j", $today)." ".$MonthsLong[date("n", $today) - 1]." ".date("Y", $today); |
|
|
|
echo $DaysLong[$day_of_the_week]." ".date("j", $today)." ".$MonthsLong[date("n", $today) - 1]." ".date("Y", $today); |
|
|
|
echo "</th>"; |
|
|
|
echo "</th>"; |
|
|
|
echo "<th width=\"10%\"><a href=\"", $forewardsURL, "\">»</a></th>\n"; |
|
|
|
echo "<th width=\"10%\"><a href=\"", $forewardsURL, "\">".Display::return_icon('action_next.png',get_lang('Next'))."</a></th>"; |
|
|
|
echo "</tr>\n"; |
|
|
|
echo "</tr>\n"; |
|
|
|
// the rows for each half an hour |
|
|
|
// the rows for each half an hour |
|
|
|
for ($i = 10; $i < 48; $i ++) |
|
|
|
for ($i = 10; $i < 48; $i ++) |
|
|
@ -3279,11 +3279,11 @@ function display_weekcalendar($agendaitems, $month, $year, $weekdaynames, $month |
|
|
|
echo "<table class=\"data_table\">\n"; |
|
|
|
echo "<table class=\"data_table\">\n"; |
|
|
|
// The title row containing the the week information (week of the year (startdate of week - enddate of week) |
|
|
|
// The title row containing the the week information (week of the year (startdate of week - enddate of week) |
|
|
|
echo "<tr>\n"; |
|
|
|
echo "<tr>\n"; |
|
|
|
echo "<th width=\"10%\"><a href=\"", $backwardsURL, "\">«</a></th>\n"; |
|
|
|
echo "<th width=\"10%\"><a href=\"", $backwardsURL, "\">".Display::return_icon('action_prev.png',get_lang('Previous'))."</a></th>"; |
|
|
|
echo "<th colspan=\"5\">".get_lang("Week")." ".$week_number; |
|
|
|
echo "<th colspan=\"5\">".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 " (".$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 "</th>"; |
|
|
|
echo "</th>"; |
|
|
|
echo "<th width=\"10%\"><a href=\"", $forewardsURL, "\">»</a></th>\n", "</tr>\n"; |
|
|
|
echo "<th width=\"10%\"><a href=\"", $forewardsURL, "\">".Display::return_icon('action_next.png',get_lang('Next'))."</a></th>", "</tr>"; |
|
|
|
// The second row containing the short names of the days of the week |
|
|
|
// The second row containing the short names of the days of the week |
|
|
|
echo "<tr>\n"; |
|
|
|
echo "<tr>\n"; |
|
|
|
// this is the Day of the month without leading zeros (1 to 31) of the monday of this week |
|
|
|
// this is the Day of the month without leading zeros (1 to 31) of the monday of this week |
|
|
|