You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
3.0 KiB
88 lines
3.0 KiB
|
8 years ago
|
<?php
|
||
|
|
/*
|
||
|
|
==============================================================================
|
||
|
|
|
||
|
|
==============================================================================
|
||
|
|
INIT SECTION
|
||
|
|
==============================================================================
|
||
|
|
*/
|
||
|
|
$pathopen = isset($_REQUEST['pathopen']) ? $_REQUEST['pathopen'] : null;
|
||
|
|
// name of the language file that needs to be included
|
||
|
|
|
||
|
|
$language_file[] = 'tracking';
|
||
|
|
$language_file[] = 'scorm';
|
||
|
|
|
||
|
|
include('../inc/global.inc.php');
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
//includes for SCORM and LP
|
||
|
|
require_once('../lp/learnpath.class.php');
|
||
|
|
require_once('../lp/learnpathItem.class.php');
|
||
|
|
require_once('../lp/learnpathList.class.php');
|
||
|
|
require_once('../lp/scorm.class.php');
|
||
|
|
require_once('../lp/scormItem.class.php');
|
||
|
|
require_once(api_get_path(LIBRARY_PATH).'tracking.lib.php');
|
||
|
|
require_once(api_get_path(LIBRARY_PATH).'course.lib.php');
|
||
|
|
require_once(api_get_path(LIBRARY_PATH).'usermanager.lib.php');
|
||
|
|
require_once (api_get_path(LIBRARY_PATH).'export.lib.inc.php');
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
$htmlHeadXtra[] = "<style type='text/css'>
|
||
|
|
/*<![CDATA[*/
|
||
|
|
.secLine {background-color : #E6E6E6;}
|
||
|
|
.content {padding-left : 15px;padding-right : 15px; }
|
||
|
|
.specialLink{color : #0000FF;}
|
||
|
|
/*]]>*/
|
||
|
|
</style>
|
||
|
|
<style media='print' type='text/css'>
|
||
|
|
|
||
|
|
</style>";
|
||
|
|
|
||
|
|
|
||
|
|
/*
|
||
|
|
-----------------------------------------------------------
|
||
|
|
Constants and variables
|
||
|
|
-----------------------------------------------------------
|
||
|
|
*/
|
||
|
|
// regroup table names for maintenance purpose
|
||
|
|
$TABLETRACK_ACCESS = Database::get_main_table(TABLE_STATISTIC_TRACK_E_LASTACCESS);
|
||
|
|
$tbl_stats_exercices = Database :: get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);
|
||
|
|
$TABLETRACK_LINKS = Database::get_main_table(TABLE_STATISTIC_TRACK_E_LINKS);
|
||
|
|
$TABLETRACK_DOWNLOADS = Database::get_main_table(TABLE_STATISTIC_TRACK_E_DOWNLOADS);
|
||
|
|
$TABLETRACK_ACCESS_2 = Database::get_main_table("track_e_access");
|
||
|
|
$TABLECOURSUSER = Database::get_main_table(TABLE_MAIN_COURSE_USER);
|
||
|
|
$TABLECOURSE = Database::get_main_table(TABLE_MAIN_COURSE);
|
||
|
|
$TABLECOURSE_LINKS = Database::get_course_table(TABLE_LINK);
|
||
|
|
$table_user = Database::get_main_table(TABLE_MAIN_USER);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
$tbl_learnpath_main = Database::get_course_table('lp');
|
||
|
|
$tbl_learnpath_item = Database::get_course_table('lp_item');
|
||
|
|
$tbl_learnpath_view = Database::get_course_table('lp_view');
|
||
|
|
$tbl_learnpath_item_view = Database::get_course_table('lp_item_view');
|
||
|
|
|
||
|
|
$view = $_REQUEST['view'];
|
||
|
|
|
||
|
|
include(api_get_path(LIBRARY_PATH)."statsUtils.lib.inc.php");
|
||
|
|
include("../resourcelinker/resourcelinker.inc.php");
|
||
|
|
|
||
|
|
$ex_id =isset($_POST['exe_id'])?$_POST['exe_id']:"";
|
||
|
|
$student_id =isset($_POST['student_id'])?$_POST['student_id']:"";
|
||
|
|
$inter_coment=isset($_POST['inter_coment'])?$_POST['inter_coment']:"";
|
||
|
|
|
||
|
|
foreach($_POST as $index => $valeur) {
|
||
|
|
$$index = Database::escape_string(trim($valeur));
|
||
|
|
}
|
||
|
|
$sql4 = "UPDATE $tbl_stats_exercices SET inter_coment='$inter_coment'
|
||
|
|
WHERE exe_id = '$ex_id'
|
||
|
|
";
|
||
|
|
api_sql_query($sql4); //OR die("<p>Erreur Mysql2<br/>$sql4<br/>".mysql_error()."</p>");
|
||
|
|
header("location:../mySpace/myStudents.php?student=$student_id");
|
||
|
|
?>
|