echo $translate->_("Message Center");
            ?>
 is currently empty.</p>
			</div>
		<?php 
        }
    }
    switch ($_SESSION["permissions"][$ENTRADA_USER->getAccessId()]["group"]) {
        case "medtech":
        case "student":
            $BREADCRUMB[] = array("url" => ENTRADA_RELATIVE . "/dashboard", "title" => "Student Dashboard");
            /**
             * How did this person not get assigned this already? Mak'em new.
             */
            if (!isset($cohort) || !$cohort) {
                $query = "SELECT *\n\t\t\t\t\t\tFROM `groups`\n\t\t\t\t\t\tWHERE `group_id` = " . $db->qstr(fetch_first_cohort());
                $cohort = $db->GetRow($query);
            }
            $HEAD[] = "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Notices\" href=\"" . ENTRADA_URL . "/notices/" . $cohort["group_id"] . "\" />";
            if (!isset($_SESSION[APPLICATION_IDENTIFIER]["tmp"]["dstamp"])) {
                $_SESSION[APPLICATION_IDENTIFIER]["tmp"]["dstamp"] = time();
            }
            $display_schedule_tabs = false;
            if ($ENTRADA_ACL->amIAllowed("clerkship", "read")) {
                $query = "SELECT a.*, c.`region_name`, d.`aschedule_id`, d.`apartment_id`, e.`rotation_title`\n\t\t\t\t\t\t\tFROM `" . CLERKSHIP_DATABASE . "`.`events` AS a\n\t\t\t\t\t\t\tLEFT JOIN `" . CLERKSHIP_DATABASE . "`.`event_contacts` AS b\n\t\t\t\t\t\t\tON b.`event_id` = a.`event_id`\n\t\t\t\t\t\t\tLEFT JOIN `" . CLERKSHIP_DATABASE . "`.`regions` AS c\n\t\t\t\t\t\t\tON c.`region_id` = a.`region_id`\n\t\t\t\t\t\t\tLEFT JOIN `" . CLERKSHIP_DATABASE . "`.`apartment_schedule` AS d\n\t\t\t\t\t\t\tON d.`event_id` = a.`event_id`\n\t\t\t\t\t\t\tAND d.`proxy_id` = " . $db->qstr($ENTRADA_USER->getActiveId()) . "\n\t\t\t\t\t\t\tAND d.`aschedule_status` = 'published'\n\t\t\t\t\t\t\tLEFT JOIN `" . CLERKSHIP_DATABASE . "`.`global_lu_rotations` AS e\n\t\t\t\t\t\t\tON e.`rotation_id` = a.`rotation_id`\n\t\t\t\t\t\t\tWHERE a.`event_finish` >= " . $db->qstr(strtotime("00:00:00")) . "\n\t\t\t\t\t\t\tAND (a.`event_status` = 'published' OR a.`event_status` = 'approval')\n\t\t\t\t\t\t\tAND b.`econtact_type` = 'student'\n\t\t\t\t\t\t\tAND b.`etype_id` = " . $db->qstr($ENTRADA_USER->getActiveId()) . "\n\t\t\t\t\t\t\tORDER BY a.`event_start` ASC";
                $clerkship_schedule = $db->GetAll($query);
                if ($clerkship_schedule) {
                    $display_schedule_tabs = true;
                }
            }
            if ($display_schedule_tabs) {
/**
 * Function used to create the default filter settings for Learning Events
 *
 * @param int $proxy_id
 * @param string $group
 * @param string $role
 * @return array Containing the default filters.
 */
function events_filters_faculty($course_id = 0, $group = "", $role = "", $organisation = 0)
{
    $filters = array();
    switch ($group) {
        case "staff":
        case "resident":
        case "medtech":
        case "faculty":
            /**
             * Teaching faculty see events which they are involved with by default.
             */
            if (in_array($role, array("director", "lecturer", "teacher", "staff", "admin"))) {
                $filters["course"][0] = (int) $course_id;
            }
            break;
        default:
            $first_cohort = (int) fetch_first_cohort();
            if ($first_cohort) {
                $filters["group"][0] = $first_cohort;
            }
            break;
    }
    if (!empty($filters)) {
        ksort($filters);
    }
    return $filters;
}