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. 5
      main/inc/lib/tracking.lib.php
  3. 4
      main/mySpace/myspace.lib.php

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

@ -3596,13 +3596,14 @@ class Tracking
ta.tms as time,
te.exe_exo_id as quiz_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
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
$where $order $limit";
$sql_query = vsprintf($sql, $whereParams);
// Now browse through the results and get the data
$rs = Database::query($sql_query);
$userIds = array();

@ -366,6 +366,7 @@ class MySpace {
get_lang('Time'),
get_lang('QuestionId'),
get_lang('QuestionTitle'),
get_lang('langWorkDescription'),
get_lang('Answer'),
get_lang('Correct'),
);
@ -383,8 +384,9 @@ class MySpace {
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', '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'=>'correct', 'index'=>'correct', 'align'=>'left', 'search' => 'true', 'wrap_cell' => "true"),
array('name'=>'correct', 'index'=>'correct', 'align'=>'left', 'search' => 'true', 'wrap_cell' => "true"),
);
//get dynamic column names

Loading…
Cancel
Save