|
|
|
@ -1121,7 +1121,7 @@ if (!empty($studentId)) { |
|
|
|
|
WHERE |
|
|
|
|
quiz.c_id = ".$courseInfo['real_id']." AND |
|
|
|
|
active IN (0, 1) |
|
|
|
|
$sessionCondition |
|
|
|
|
$sessionCondition |
|
|
|
|
ORDER BY quiz.title ASC "; |
|
|
|
|
|
|
|
|
|
$result_exercices = Database::query($sql); |
|
|
|
@ -1268,7 +1268,7 @@ if (!empty($studentId)) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!empty($survey_list)) { |
|
|
|
|
$table = new HTML_Table(['class' => 'data_table']); |
|
|
|
|
$table = new HTML_Table(['class' => 'table table-hover table-striped data_table']); |
|
|
|
|
$header_names = [get_lang('Survey'), get_lang('Answered')]; |
|
|
|
|
$row = 0; |
|
|
|
|
$column = 0; |
|
|
|
@ -1404,8 +1404,8 @@ $nom_hor = $horaire_id['official_code']; |
|
|
|
|
$course_code_real = $_course['real_id']; |
|
|
|
|
//avec le nom d'horaire= official code, on trouve le nombre de jour a faire |
|
|
|
|
$sql = "SELECT * FROM $TABLECALHORAIRE |
|
|
|
|
where |
|
|
|
|
name = '$nom_hor' and |
|
|
|
|
where |
|
|
|
|
name = '$nom_hor' and |
|
|
|
|
c_id = $course_code_real "; |
|
|
|
|
|
|
|
|
|
$res = Database::query($sql); |
|
|
|
@ -1460,10 +1460,10 @@ while ($a_courses = Database::fetch_array($result2)) { |
|
|
|
|
$lp_item_id = $resulta['id']; |
|
|
|
|
$Req3 = "SELECT MAX(id) |
|
|
|
|
FROM c_lp_item_view |
|
|
|
|
WHERE |
|
|
|
|
lp_item_id = $lp_item_id AND |
|
|
|
|
lp_view_id = $lp_id_view AND |
|
|
|
|
c_id = $c_id_view AND |
|
|
|
|
WHERE |
|
|
|
|
lp_item_id = $lp_item_id AND |
|
|
|
|
lp_view_id = $lp_id_view AND |
|
|
|
|
c_id = $c_id_view AND |
|
|
|
|
status = 'completed' |
|
|
|
|
"; |
|
|
|
|
$res3 = Database::query($Req3); |
|
|
|
@ -1471,8 +1471,8 @@ while ($a_courses = Database::fetch_array($result2)) { |
|
|
|
|
$max = $resul['0']; |
|
|
|
|
$Req4 = "SELECT COUNT( id ) |
|
|
|
|
FROM c_lp_item_view |
|
|
|
|
WHERE |
|
|
|
|
id = $max AND |
|
|
|
|
WHERE |
|
|
|
|
id = $max AND |
|
|
|
|
c_id = $c_id_view"; |
|
|
|
|
$res4 = Database::query($Req4); |
|
|
|
|
while ($resultat = Database::fetch_array($res4)) { |
|
|
|
@ -1504,9 +1504,9 @@ while ($jour_agenda == '') { |
|
|
|
|
$tour++; |
|
|
|
|
$date = date("Y-m-d", mktime(0, 0, 0, date("m"), date("d") - $tour, date("Y"))); |
|
|
|
|
$sql4 = "SELECT * FROM $tbl_personal_agenda |
|
|
|
|
WHERE |
|
|
|
|
user = $studentId AND |
|
|
|
|
text='Pour le calendrier, ne pas effacer' AND |
|
|
|
|
WHERE |
|
|
|
|
user = $studentId AND |
|
|
|
|
text='Pour le calendrier, ne pas effacer' AND |
|
|
|
|
date like '".$date." %:%' "; |
|
|
|
|
$result4 = Database::query($sql4); |
|
|
|
|
$res4 = Database::fetch_array($result4); |
|
|
|
@ -1531,7 +1531,7 @@ $goto = $num_days + $diff2; |
|
|
|
|
$goto = number_format($goto); |
|
|
|
|
$sqlgo = "SELECT * FROM $tbl_personal_agenda |
|
|
|
|
WHERE user = $studentId |
|
|
|
|
AND title = '".$goto."' |
|
|
|
|
AND title = '".$goto."' |
|
|
|
|
"; |
|
|
|
|
$result7 = Database::query($sqlgo); |
|
|
|
|
$res7 = Database::fetch_array($result7); |
|
|
|
@ -1543,7 +1543,7 @@ if ($end_date < '2010-01-01') { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
?> |
|
|
|
|
<table class="data_table"> |
|
|
|
|
<table class="table table-hover table-striped data_table"> |
|
|
|
|
<th rowspan="6"> |
|
|
|
|
<?php |
|
|
|
|
//on récupere les points de controle de l'élève |
|
|
|
@ -1632,7 +1632,7 @@ if ($end_date < '2010-01-01') { |
|
|
|
|
<hr> |
|
|
|
|
<br> |
|
|
|
|
<form action="create_intervention.php" method="post" name="create_intervention"> |
|
|
|
|
<table class='data_table'> |
|
|
|
|
<table class='table table-hover table-striped data_table'> |
|
|
|
|
<tr> |
|
|
|
|
<th colspan="6"> |
|
|
|
|
<?php echo get_lang('create_interventions_commentaires'); |
|
|
|
@ -1666,7 +1666,7 @@ if ($end_date < '2010-01-01') { |
|
|
|
|
// formulaire d'édition des commentaires |
|
|
|
|
?> |
|
|
|
|
<form> |
|
|
|
|
<table class='data_table'> |
|
|
|
|
<table class='table table-hover table-striped data_table'> |
|
|
|
|
<tr> |
|
|
|
|
<th><?php echo get_lang('level'); ?> </th>
|
|
|
|
|
<th> |
|
|
|
@ -1684,10 +1684,10 @@ if ($end_date < '2010-01-01') { |
|
|
|
|
$tbl_stats_exercices = Database:: get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES); |
|
|
|
|
$sqlinter = "SELECT * |
|
|
|
|
FROM $tbl_stats_exercices |
|
|
|
|
WHERE |
|
|
|
|
exe_user_id = $studentId AND |
|
|
|
|
WHERE |
|
|
|
|
exe_user_id = $studentId AND |
|
|
|
|
level != 0 |
|
|
|
|
ORDER BY exe_date ASC, level ASC |
|
|
|
|
ORDER BY exe_date ASC, level ASC |
|
|
|
|
"; |
|
|
|
|
$resultinter = Database::query($sqlinter); |
|
|
|
|
$mod_no = null; |
|
|
|
@ -1703,8 +1703,8 @@ if ($end_date < '2010-01-01') { |
|
|
|
|
<td> |
|
|
|
|
$inter_date |
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
|
<td>$inter_coment |
|
|
|
|
|
|
|
|
|
<td>$inter_coment |
|
|
|
|
</td> |
|
|
|
|
"; |
|
|
|
|
$exe_id = $a_inter['exe_id']; ?> |
|
|
|
@ -1793,7 +1793,7 @@ if (empty($_GET['details'])) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Courses |
|
|
|
|
echo '<table class="data_table">'; |
|
|
|
|
echo '<table class="table table-hover table-striped data_table">'; |
|
|
|
|
echo '<h3>'.$title.'</h3>'; |
|
|
|
|
echo '<tr> |
|
|
|
|
<th>'.get_lang('Course').'</th> |
|
|
|
@ -1823,7 +1823,7 @@ if (empty($_GET['details'])) { |
|
|
|
|
|
|
|
|
|
// firts connection date |
|
|
|
|
$sql2 = 'SELECT STR_TO_DATE(access_date,"%Y-%m-%d") |
|
|
|
|
FROM '.$tbl_stats_access.' |
|
|
|
|
FROM '.$tbl_stats_access.' |
|
|
|
|
WHERE access_user_id = '.$studentId.' |
|
|
|
|
AND c_id = '.$c_id.' |
|
|
|
|
ORDER BY access_id ASC LIMIT 0,1 |
|
|
|
@ -1860,9 +1860,9 @@ if (empty($_GET['details'])) { |
|
|
|
|
$nombre_jours_module = number_format($nombre_jours_module, 0); |
|
|
|
|
//on trouve la date de fin de chaque module AND date = date_format('$first_connection_date_to_module','%Y-%m-%d') |
|
|
|
|
$sql = "SELECT * FROM `c_cal_dates` |
|
|
|
|
WHERE |
|
|
|
|
horaire_name = '$nom_hor' AND |
|
|
|
|
c_id = '$course_code_real' AND |
|
|
|
|
WHERE |
|
|
|
|
horaire_name = '$nom_hor' AND |
|
|
|
|
c_id = '$course_code_real' AND |
|
|
|
|
STR_TO_DATE(date,'%Y-%m-%d') >= STR_TO_DATE('$first_connection_date_to_module','%Y-%m-%d') |
|
|
|
|
ORDER BY STR_TO_DATE(date, '%Y-%m-%d') ASC "; |
|
|
|
|
$res = Database::query($sql); |
|
|
|
@ -1997,7 +1997,7 @@ if (empty($_GET['details'])) { |
|
|
|
|
if (Database:: num_rows($rs_lp) > 0) { |
|
|
|
|
?> |
|
|
|
|
<!-- LPs--> |
|
|
|
|
<table class="data_table"> |
|
|
|
|
<table class="table table-hover table-striped data_table"> |
|
|
|
|
<tr> |
|
|
|
|
<th><?php echo get_lang('Learnpaths'); ?></th>
|
|
|
|
|
<th><?php echo get_lang('FirstConnexion'); ?></th>
|
|
|
|
@ -2041,7 +2041,7 @@ if (empty($_GET['details'])) { |
|
|
|
|
|
|
|
|
|
// firts connection date |
|
|
|
|
$sql2 = 'SELECT access_date |
|
|
|
|
FROM '.$tbl_stats_access.' |
|
|
|
|
FROM '.$tbl_stats_access.' |
|
|
|
|
WHERE access_user_id = '.$studentId.' |
|
|
|
|
AND c_id = '.$c_id.' |
|
|
|
|
ORDER BY access_id ASC LIMIT 0,1 |
|
|
|
@ -2207,7 +2207,7 @@ if (empty($_GET['details'])) { |
|
|
|
|
} ?> |
|
|
|
|
</table> |
|
|
|
|
<!-- line about exercises --> |
|
|
|
|
<table class="data_table"> |
|
|
|
|
<table class="table table-hover table-striped data_table"> |
|
|
|
|
<tr> |
|
|
|
|
<th><?php echo get_lang('Exercises'); ?></th>
|
|
|
|
|
<th><?php echo get_lang('LearningPath'); ?></th>
|
|
|
|
@ -2367,7 +2367,7 @@ if (empty($_GET['details'])) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!empty($survey_list)) { |
|
|
|
|
$table = new HTML_Table(['class' => 'data_table']); |
|
|
|
|
$table = new HTML_Table(['class' => 'table table-hover table-striped data_table']); |
|
|
|
|
$header_names = [get_lang('Survey'), get_lang('Answered')]; |
|
|
|
|
$row = 0; |
|
|
|
|
$column = 0; |
|
|
|
@ -2394,7 +2394,7 @@ if (empty($_GET['details'])) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// line about other tools |
|
|
|
|
echo '<table class="data_table">'; |
|
|
|
|
echo '<table class="table table-hover table-striped data_table">'; |
|
|
|
|
|
|
|
|
|
$csv_content[] = []; |
|
|
|
|
$nb_assignments = Tracking::count_student_assignments($studentId, $course_code, $session_id); |
|
|
|
@ -2475,7 +2475,7 @@ if ($export_csv) { |
|
|
|
|
?> |
|
|
|
|
<br> |
|
|
|
|
<form action="create_exam.php" method="post" name="create_exam"> |
|
|
|
|
<table class='data_table'> |
|
|
|
|
<table class='table table-hover table-striped data_table'> |
|
|
|
|
<tr> |
|
|
|
|
<th colspan="6"> |
|
|
|
|
<?php echo get_lang('Title'); |
|
|
|
@ -2533,7 +2533,7 @@ if ($export_csv) { |
|
|
|
|
</form> |
|
|
|
|
|
|
|
|
|
<form name="save_exam"> |
|
|
|
|
<table class='data_table'> |
|
|
|
|
<table class='table table-hover table-striped data_table'> |
|
|
|
|
<tr> |
|
|
|
|
<th colspan="6"> |
|
|
|
|
<?php echo get_lang('result_exam_title'); |
|
|
|
@ -2607,12 +2607,12 @@ if ($export_csv) { |
|
|
|
|
</form> |
|
|
|
|
<strong><?php echo get_lang('imprime_sommaire'); ?> </strong>
|
|
|
|
|
<?php |
|
|
|
|
echo '<a target="_blank" |
|
|
|
|
echo '<a target="_blank" |
|
|
|
|
href="print_myStudents.php?student='.$studentId.'&details=true&course='.$course_code.'&origin=tracking_course"> |
|
|
|
|
<img src="'.api_get_path(WEB_IMG_PATH).'printmgr.gif" border="0" /></a>'; |
|
|
|
|
// tableau pour date de fin prévue pour chaque module |
|
|
|
|
?> |
|
|
|
|
<table class='data_table'> |
|
|
|
|
<table class='table table-hover table-striped data_table'> |
|
|
|
|
<tr> |
|
|
|
|
<th colspan="6"> |
|
|
|
|
<?php echo get_lang('fin_mod_prevue'); |
|
|
|
|