|
@@ 2974-2983 (lines=10) @@
|
| 2971 |
|
} |
| 2972 |
|
|
| 2973 |
|
// if the student has specified a course we a add a link to that course |
| 2974 |
|
if ($item['course'] <> "") { |
| 2975 |
|
$url = api_get_path( |
| 2976 |
|
WEB_CODE_PATH |
| 2977 |
|
)."admin/agenda.php?cidReq=".urlencode( |
| 2978 |
|
$item['course'] |
| 2979 |
|
)."&day=$day&month=$month&year=$year#$day"; // RH //Patrick Cool: to highlight the relevant agenda item |
| 2980 |
|
$course_link = "<a href=\"$url\" title=\"".$item['course']."\">".$item['course']."</a>"; |
| 2981 |
|
} else { |
| 2982 |
|
$course_link = ""; |
| 2983 |
|
} |
| 2984 |
|
// Creating the array that will be returned. If we have week or month view we have an array with the date as the key |
| 2985 |
|
// if we have a day_view we use a half hour as index => key 33 = 16h30 |
| 2986 |
|
if ($type !== "day_view") { |
|
@@ 3084-3089 (lines=6) @@
|
| 3081 |
|
} |
| 3082 |
|
|
| 3083 |
|
// if the student has specified a course we a add a link to that course |
| 3084 |
|
if ($item['course'] <> "") { |
| 3085 |
|
$url = api_get_path(WEB_CODE_PATH)."calendar/agenda.php?cidReq=".urlencode($item['course'])."&day=$day&month=$month&year=$year#$day"; // RH //Patrick Cool: to highlight the relevant agenda item |
| 3086 |
|
$course_link = "<a href=\"$url\" title=\"".$item['course']."\">".$item['course']."</a>"; |
| 3087 |
|
} else { |
| 3088 |
|
$course_link = ""; |
| 3089 |
|
} |
| 3090 |
|
// Creating the array that will be returned. If we have week or month view we have an array with the date as the key |
| 3091 |
|
// if we have a day_view we use a half hour as index => key 33 = 16h30 |
| 3092 |
|
if ($type !== "day_view") { |