|
@@ 3491-3500 (lines=10) @@
|
| 3488 |
|
} |
| 3489 |
|
|
| 3490 |
|
// if the student has specified a course we a add a link to that course |
| 3491 |
|
if ($item['course'] <> "") { |
| 3492 |
|
$url = api_get_path( |
| 3493 |
|
WEB_CODE_PATH |
| 3494 |
|
)."admin/agenda.php?cidReq=".urlencode( |
| 3495 |
|
$item['course'] |
| 3496 |
|
)."&day=$day&month=$month&year=$year#$day"; // RH //Patrick Cool: to highlight the relevant agenda item |
| 3497 |
|
$course_link = "<a href=\"$url\" title=\"".$item['course']."\">".$item['course']."</a>"; |
| 3498 |
|
} else { |
| 3499 |
|
$course_link = ""; |
| 3500 |
|
} |
| 3501 |
|
// Creating the array that will be returned. If we have week or month view we have an array with the date as the key |
| 3502 |
|
// if we have a day_view we use a half hour as index => key 33 = 16h30 |
| 3503 |
|
if ($type !== "day_view") { |
|
@@ 3614-3619 (lines=6) @@
|
| 3611 |
|
} |
| 3612 |
|
|
| 3613 |
|
// if the student has specified a course we a add a link to that course |
| 3614 |
|
if ($item['course'] <> "") { |
| 3615 |
|
$url = api_get_path( |
| 3616 |
|
WEB_CODE_PATH |
| 3617 |
|
)."calendar/agenda.php?cidReq=".urlencode( |
| 3618 |
|
$item['course'] |
| 3619 |
|
)."&day=$day&month=$month&year=$year#$day"; // RH //Patrick Cool: to highlight the relevant agenda item |
| 3620 |
|
$course_link = "<a href=\"$url\" title=\"".$item['course']."\">".$item['course']."</a>"; |
| 3621 |
|
} else { |
| 3622 |
|
$course_link = ""; |