|
|
|
|
@ -1,16 +1,14 @@ |
|
|
|
|
<?php |
|
|
|
|
/* For licensing terms, see /dokeos_license.txt */ |
|
|
|
|
/* For licensing terms, see /license.txt */ |
|
|
|
|
/** |
|
|
|
|
============================================================================== |
|
|
|
|
* @package dokeos.admin |
|
|
|
|
============================================================================== |
|
|
|
|
* @package chamilo.admin |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// name of the language file that needs to be included |
|
|
|
|
$language_file='admin'; |
|
|
|
|
$cidReset=true; |
|
|
|
|
include('../inc/global.inc.php'); |
|
|
|
|
require_once '../inc/global.inc.php'; |
|
|
|
|
|
|
|
|
|
// setting the section (for the tabs) |
|
|
|
|
$this_section=SECTION_PLATFORM_ADMIN; |
|
|
|
|
@ -30,8 +28,7 @@ $sort=in_array($_GET['sort'],array('title','nbr_users'))?$_GET['sort']:'title'; |
|
|
|
|
|
|
|
|
|
$result=Database::query("SELECT name FROM $tbl_session WHERE id='$id_session'"); |
|
|
|
|
|
|
|
|
|
if(!list($session_name)=Database::fetch_row($result)) |
|
|
|
|
{ |
|
|
|
|
if(!list($session_name)=Database::fetch_row($result)) { |
|
|
|
|
header('Location: session_list.php'); |
|
|
|
|
exit(); |
|
|
|
|
} |
|
|
|
|
@ -86,7 +83,8 @@ foreach($Courses as $key=>$enreg) { |
|
|
|
|
$course[] = '<input type="checkbox" name="idChecked[]" value="'.$enreg['code'].'">'; |
|
|
|
|
$course[] = api_htmlentities($enreg['title'],ENT_QUOTES,$charset); |
|
|
|
|
$course[] = '<a href="session_course_user_list.php?id_session='.$id_session.'&course_code='.$enreg['code'].'">'.$enreg['nbr_users'].' '.get_lang('Users').'</a>'; |
|
|
|
|
$course[] = '<a href="session_course_edit.php?id_session='.$id_session.'&page=session_course_list.php&course_code='.$enreg['code'].'">'.Display::return_icon('edit.gif', get_lang('Edit')).'</a> |
|
|
|
|
$course[] = '<a href="'.api_get_path(WEB_COURSE_PATH).$enreg['code'].'/?id_session='.$id_session.'">'.Display::return_icon('course_home.gif', get_lang('Course')).'</a> |
|
|
|
|
<a href="session_course_edit.php?id_session='.$id_session.'&page=session_course_list.php&course_code='.$enreg['code'].'">'.Display::return_icon('edit.gif', get_lang('Edit')).'</a> |
|
|
|
|
<a href="'.api_get_self().'?id_session='.$id_session.'&sort='.$sort.'&action=delete&idChecked[]='.$enreg['code'].'" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang("ConfirmYourChoice"),ENT_QUOTES,$charset)).'\')) return false;">'.Display::return_icon('delete.gif', get_lang('Delete')).'</a>'; |
|
|
|
|
$tableCourses[] = $course; |
|
|
|
|
} |
|
|
|
|
|