|
@@ 3506-3515 (lines=10) @@
|
| 3503 |
|
} |
| 3504 |
|
|
| 3505 |
|
// if the student has specified a course we a add a link to that course |
| 3506 |
|
if ($item['course'] <> "") { |
| 3507 |
|
$url = api_get_path( |
| 3508 |
|
WEB_CODE_PATH |
| 3509 |
|
)."admin/agenda.php?cidReq=".urlencode( |
| 3510 |
|
$item['course'] |
| 3511 |
|
)."&day=$day&month=$month&year=$year#$day"; // RH //Patrick Cool: to highlight the relevant agenda item |
| 3512 |
|
$course_link = "<a href=\"$url\" title=\"".$item['course']."\">".$item['course']."</a>"; |
| 3513 |
|
} else { |
| 3514 |
|
$course_link = ""; |
| 3515 |
|
} |
| 3516 |
|
// Creating the array that will be returned. If we have week or month view we have an array with the date as the key |
| 3517 |
|
// if we have a day_view we use a half hour as index => key 33 = 16h30 |
| 3518 |
|
if ($type !== "day_view") { |
|
@@ 3629-3634 (lines=6) @@
|
| 3626 |
|
} |
| 3627 |
|
|
| 3628 |
|
// if the student has specified a course we a add a link to that course |
| 3629 |
|
if ($item['course'] <> "") { |
| 3630 |
|
$url = api_get_path( |
| 3631 |
|
WEB_CODE_PATH |
| 3632 |
|
)."calendar/agenda.php?cidReq=".urlencode( |
| 3633 |
|
$item['course'] |
| 3634 |
|
)."&day=$day&month=$month&year=$year#$day"; // RH //Patrick Cool: to highlight the relevant agenda item |
| 3635 |
|
$course_link = "<a href=\"$url\" title=\"".$item['course']."\">".$item['course']."</a>"; |
| 3636 |
|
} else { |
| 3637 |
|
$course_link = ""; |