// Get tool id where new events have been recorded since last login if (claro_is_user_authenticated()) { $date = $claro_notifier->get_notification_date(claro_get_current_user_id()); $modified_tools = $claro_notifier->get_notified_tools(claro_get_current_course_id(), $date, claro_get_current_user_id()); } else { $modified_tools = array(); } /** * TOOL LIST */ $is_allowedToEdit = claro_is_allowed_to_edit(); // Fetch the portlets $portletiterator = new CourseHomePagePortletIterator(ClaroCourse::getIdFromCode($cidReq)); // Fetch the session courses (if any) if (ClaroCourse::isSourceCourse($thisCourse->id)) { $sessionCourses = $thisCourse->getSessionCourses(); } else { $sessionCourses = array(); } // Notices for course managers if (claro_is_allowed_to_edit()) { if ($thisCourse->status == 'pending') { $dialogBox->warning(get_lang('This course is deactivated: you can reactive it from your course list')); } elseif ($thisCourse->status == 'date') { if (!empty($thisCourse->publicationDate) && $thisCourse->publicationDate > claro_mktime()) { $dialogBox->warning(get_lang('This course will be enabled on the %date', array('%date' => claro_date('d/m/Y', $thisCourse->publicationDate)))); } if (!empty($thisCourse->expirationDate) && $thisCourse->expirationDate > claro_mktime()) { $dialogBox->warning(get_lang('This course will be disable on the %date', array('%date' => claro_date('d/m/Y', $thisCourse->expirationDate)))); } }
// $Id: index.php 12441 2010-06-11 14:34:16Z abourguignon $ /** * CLAROLINE * * @version 1.10 $Revision: 12441 $ * @copyright (c) 2001-2011, Universite catholique de Louvain (UCL) * @license http://www.gnu.org/copyleft/gpl.html (GPL) GENERAL PUBLIC LICENSE * @package CLHOME * @author Claro Team <*****@*****.**> */ require '../inc/claro_init_global.inc.php'; require_once get_path('incRepositorySys') . '/lib/claroCourse.class.php'; include claro_get_conf_repository() . 'rss.conf.php'; $cid = isset($_REQUEST['cid']) ? $_REQUEST['cid'] : ''; $nameTools = get_lang('Manage session courses'); if (!claro_is_in_a_course() || !claro_is_course_allowed()) { claro_disp_auth_form(true); } $toolRepository = get_path('clarolineRepositoryWeb'); claro_set_display_mode_available(TRUE); if (!empty($cid)) { $course = new ClaroCourse(); $course->load(ClaroCourse::getCodeFromId($cid)); } $sessionCourses = $course->getSessionCourses(); // Display header $template = new CoreTemplate('session_courses.tpl.php'); $template->assign('sessionCourses', $sessionCourses); $template->assign('courseId', $course->id); $claroline->display->body->setContent($template->render()); echo $claroline->display->render();