Source for file course_information.php
Documentation is available at course_information.php
// $Id: course_information.php 12903 2007-08-29 14:04:04Z elixir_julian $
==============================================================================
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
$language_file = 'admin';
require ('../inc/global.inc.php');
require_once(api_get_path(LIBRARY_PATH). 'sortabletable.class.php');
$sql = "SELECT * FROM $table WHERE code='". $course_code. "'";
/*****************************************************************/
if (!isset ($_GET['code']))
$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array ("url" => 'course_list.php', "name" => get_lang('Courses'));
$sql = "SELECT * FROM $table_course WHERE code = '". $code. "'";
$tool_name = $course->title. ' ('. $course->code. ')';
//api_display_tool_title($tool_name);
<a href="course_create_content.php?course_code= <?php echo $course->code ?>"> <?php echo get_lang('AddDummyContentToCourse') ?></a>
echo '<h4>'. get_lang('CourseUsage'). '</h4>';
$table->set_additional_parameters(array ('code' => $_GET['code']));
$table->set_other_tables(array('user_table','class_table'));
$table->set_header(0,get_lang('Tool'), true);
$table->set_header(1,get_lang('NumberOfItems'), true);
* Show all users subscribed in this course
$sql = 'SELECT *,cu.status as course_status FROM '. $table_course_user. ' cu, '. $table_user. " u WHERE cu.user_id = u.user_id AND cu.course_code = '". $code. "' ";
$user[] = $obj->official_code;
$user[] = $obj->firstname;
$user[] = $obj->lastname;
$user[] = '<a href="user_information.php?user_id='. $obj->user_id. '"><img src="../img/synthese_view.gif" border="0" /></a>';
$table->set_additional_parameters(array ('code' => $_GET['code']));
$table->set_other_tables(array('usage_table','class_table'));
$table->set_header(0,get_lang('OfficialCode'), true);
$table->set_header(1,get_lang('FirstName'), true);
$table->set_header(2,get_lang('LastName'), true);
$table->set_header(3,get_lang('Email'), true);
$table->set_header(4,get_lang('Status'), true);
$table->set_header(5,'', false);
* Show all classes subscribed in this course
$sql = 'SELECT * FROM '. $table_course_class. ' cc, '. $table_class. ' c WHERE cc.class_id = c.id AND cc.course_code = '. "'". $_GET['code']. "'";
$row[] = '<a href="class_information.php?id='. $class->id. '"><img src="../img/synthese_view.gif" border="0" /></a>';
echo '<p><b>'. get_lang('AdminClasses'). '</b></p>';
$table->set_additional_parameters(array ('code' => $_GET['code']));
$table->set_other_tables(array('usage_table','user_table'));
$table->set_header(0,get_lang('Title'));
$table->set_header(1,'');
echo '<p>'. get_lang('NoClassesForThisCourse'). '</p>';
==============================================================================
==============================================================================
|