add a column description - refs BT#

1.9.x
Francis Gonzales 12 years ago
parent 1b90601424
commit f0d66c766d
  1. 1
      main/inc/ajax/model.ajax.php
  2. 3
      main/inc/lib/tracking.lib.php
  3. 2
      main/mySpace/myspace.lib.php

@ -643,6 +643,7 @@ switch ($action) {
'time', 'time',
'question_id', 'question_id',
'question', 'question',
'description',
'answer', 'answer',
'correct', 'correct',
); );

@ -3596,7 +3596,8 @@ class Tracking
ta.tms as time, ta.tms as time,
te.exe_exo_id as quiz_id, te.exe_exo_id as quiz_id,
CONCAT ('c', q.c_id, '_e', q.id) as exercise_id, CONCAT ('c', q.c_id, '_e', q.id) as exercise_id,
q.title as quiz_title q.title as quiz_title,
q.description
FROM $ttrack_exercises te, $ttrack_attempt ta, $tquiz q FROM $ttrack_exercises te, $ttrack_attempt ta, $tquiz q
WHERE te.exe_cours_id = '$whereCourseCode' ".(empty($whereSessionParams)?'':"AND te.session_id IN ($whereSessionParams)")." WHERE te.exe_cours_id = '$whereCourseCode' ".(empty($whereSessionParams)?'':"AND te.session_id IN ($whereSessionParams)")."
AND ta.exe_id = te.exe_id AND q.c_id = $courseIdx AND q.id = te.exe_exo_id AND ta.exe_id = te.exe_id AND q.c_id = $courseIdx AND q.id = te.exe_exo_id

@ -366,6 +366,7 @@ class MySpace {
get_lang('Time'), get_lang('Time'),
get_lang('QuestionId'), get_lang('QuestionId'),
get_lang('QuestionTitle'), get_lang('QuestionTitle'),
get_lang('langWorkDescription'),
get_lang('Answer'), get_lang('Answer'),
get_lang('Correct'), get_lang('Correct'),
); );
@ -383,6 +384,7 @@ class MySpace {
array('name'=>'time', 'index'=>'time', 'align'=>'left', 'search' => 'true', 'wrap_cell' => "true"), array('name'=>'time', 'index'=>'time', 'align'=>'left', 'search' => 'true', 'wrap_cell' => "true"),
array('name'=>'question_id', 'index'=>'question_id', 'align'=>'left', 'search' => 'true'), array('name'=>'question_id', 'index'=>'question_id', 'align'=>'left', 'search' => 'true'),
array('name'=>'question', 'index'=>'question', 'align'=>'left', 'search' => 'true', 'wrap_cell' => "true"), array('name'=>'question', 'index'=>'question', 'align'=>'left', 'search' => 'true', 'wrap_cell' => "true"),
array('name'=>'description', 'index'=>'description', 'align'=>'left', 'search' => 'true', 'wrap_cell' => "true"),
array('name'=>'answer', 'index'=>'answer', 'align'=>'left', 'search' => 'true', 'wrap_cell' => "true"), array('name'=>'answer', 'index'=>'answer', 'align'=>'left', 'search' => 'true', 'wrap_cell' => "true"),
array('name'=>'correct', 'index'=>'correct', 'align'=>'left', 'search' => 'true', 'wrap_cell' => "true"), array('name'=>'correct', 'index'=>'correct', 'align'=>'left', 'search' => 'true', 'wrap_cell' => "true"),
); );

Loading…
Cancel
Save