Source for file class_information.php
Documentation is available at class_information.php
<?php // $Id: class_information.php 14280 2008-02-11 10:51:59Z elixir_inter $
==============================================================================
Dokeos - elearning and course management software
Copyright (c) 2004 Dokeos S.A.
Copyright (c) 2003 Ghent University (UGent)
Copyright (c) 2001 Universite catholique de Louvain (UCL)
Copyright (c) Olivier Brouckaert
For a full list of contributors, see "credits.txt".
The full license can be read in "license.txt".
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
See the GNU General Public License for more details.
Contact: Dokeos, 181 rue Royale, B-1000 Brussels, Belgium, info@dokeos.com
==============================================================================
==============================================================================
==============================================================================
==============================================================================
==============================================================================
// name of the language file that needs to be included
require ('../inc/global.inc.php');
require (api_get_path(LIBRARY_PATH). 'classmanager.lib.php');
$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array ("url" => 'class_list.php', "name" => get_lang('AdminClasses'));
$tool_name = $class['name'];
//api_display_tool_title($tool_name);
* Show all users subscribed in this class
$table_header[] = array (get_lang('OfficialCode'), true);
$table_header[] = array (get_lang('FirstName'), true);
$table_header[] = array (get_lang('LastName'), true);
$table_header[] = array (get_lang('Email'), true);
$table_header[] = array (get_lang('Status'), true);
$table_header[] = array ('', false);
foreach($users as $index => $user)
$row[] = $user['official_code'];
$row[] = $user['firstname'];
$row[] = $user['lastname'];
$row[] = '<a href="user_information.php?user_id='. $user['user_id']. '"><img src="../img/synthese_view.gif" border="0" /></a>';
* Show all courses in which this class is subscribed
$header[] = array (get_lang('Code'), true);
$header[] = array (get_lang('Title'), true);
$header[] = array ('', false);
foreach( $courses as $index=> $course)
$row[] = $course['visual_code'];
$row[] = $course['title'];
$row[] = '<a href="course_information.php?code='. $course['code']. '"><img src="../img/info_small.gif" border="0" /></a>'. '<a href="'. api_get_path(WEB_COURSE_PATH). $course['directory']. '"><img src="../img/course_home.gif" border="0"/></a>' .
'<a href="course_edit.php?course_code='. $course['code']. '"><img src="../img/edit.gif" border="0" title="'. get_lang('Edit'). '" alt="'. get_lang('Edit'). '"/></a>';
echo '<p><b>'. get_lang('Courses'). '</b></p>';
echo '<p>'. get_lang('NoCoursesForThisClass'). '</p>';
==============================================================================
==============================================================================
|