|
@@ -191,11 +191,11 @@ echo Display::tag('h1', $session_info['name']);
|
|
|
$url = api_get_path(WEB_AJAX_PATH).'course_home.ajax.php?a=session_courses_lp_default&session_id='.$session_id;
|
|
|
$columns = array(get_lang('Date'),get_lang('Course'), get_lang('LearningPath'));
|
|
|
|
|
|
-$column_model = array(array('name'=>'date', 'index'=>'date', 'width'=>'80', 'align'=>'left', 'sortable'=>'false'),
|
|
|
+$column_model = array(array('name'=>'date', 'index'=>'date', 'width'=>'90', 'align'=>'left', 'sortable'=>'false'),
|
|
|
array('name'=>'course', 'index'=>'course', 'width'=>'500', 'align'=>'left', 'sortable'=>'false'),
|
|
|
array('name'=>'lp', 'index'=>'lp', 'width'=>'200', 'align'=>'center','sortable'=>'false'));
|
|
|
|
|
|
-$extra_params['autowidth'] = 'true'; //use the width of the parent
|
|
|
+//$extra_params['autowidth'] = 'true'; //use the width of the parent
|
|
|
//$extra_params['forceFit'] = 'true'; //use the width of the parent
|
|
|
//$extra_params['altRows'] = 'true'; //zebra style
|
|
|
|
|
@@ -204,15 +204,15 @@ $url_course = api_get_path(WEB_AJAX_PATH).'course_home.ajax.php?a=se
|
|
|
$extra_params_course['grouping'] = 'true';
|
|
|
$extra_params_course['groupingView'] = array('groupField' => array('course'),
|
|
|
'groupColumnShow' => array('false'),
|
|
|
- 'groupText' => array('<b>'.get_lang('Course').' {0} - {1} Item(s)</b>'));
|
|
|
+ 'groupText' => array('<b>'.get_lang('Course').' {0}</b>'));
|
|
|
$extra_params_course['autowidth'] = 'true'; //use the width of the parent
|
|
|
|
|
|
//Per Week grid
|
|
|
$url_week = api_get_path(WEB_AJAX_PATH).'course_home.ajax.php?a=session_courses_lp_by_week&session_id='.$session_id;
|
|
|
-$column_week = array(get_lang('PeriodWeek'), get_lang('Date'),get_lang('Course'), get_lang('LearningPath'));
|
|
|
+$column_week = array(get_lang('PeriodWeek'), get_lang('Date'), get_lang('Course'), get_lang('LearningPath'));
|
|
|
$column_week_model = array(
|
|
|
array('name'=>'week', 'index'=>'week', 'width'=>'80', 'align'=>'left', 'sortable'=>'false'),
|
|
|
- array('name'=>'date', 'index'=>'date', 'width'=>'80', 'align'=>'right','sortable'=>'false'),
|
|
|
+ array('name'=>'date', 'index'=>'date', 'width'=>'90', 'align'=>'right','sortable'=>'false'),
|
|
|
array('name'=>'course', 'index'=>'course', 'width'=>'500','align'=>'left', 'sortable'=>'false'),
|
|
|
array('name'=>'lp', 'index'=>'lp', 'width'=>'200','align'=>'center','sortable'=>'false'));
|
|
|
|
|
@@ -220,21 +220,23 @@ $column_week_model = array(
|
|
|
$extra_params_week['grouping'] = 'true';
|
|
|
$extra_params_week['groupingView'] = array('groupField'=>array('week'),
|
|
|
'groupColumnShow'=>'false',
|
|
|
- 'groupText' => array('<b>'.get_lang('PeriodWeek').' {0} - {1} </b>'));
|
|
|
+ 'groupText' => array('<b>'.get_lang('PeriodWeek').' {0}</b>'));
|
|
|
$extra_params_week['autowidth'] = 'true'; //use the width of the parent
|
|
|
|
|
|
//MyQCM grid
|
|
|
$column_exercise = array(get_lang('Course'),get_lang('Exercise'), get_lang('Attempts'), get_lang('Result'), get_lang('Score'), get_lang('Position'));
|
|
|
-$column_exercise_model = array(array('name'=>'course', 'index'=>'course', 'width'=>'450', 'align'=>'left', 'sortable'=>'false'),
|
|
|
- array('name'=>'exercise', 'index'=>'exercise', 'width'=>'250', 'align'=>'left', 'sortable'=>'false'),
|
|
|
- array('name'=>'attempt', 'index'=>'attempt', 'width'=>'50', 'align'=>'center', 'sortable'=>'false'),
|
|
|
- array('name'=>'result', 'index'=>'result', 'width'=>'50', 'align'=>'center', 'sortable'=>'false'),
|
|
|
- array('name'=>'note', 'index'=>'note', 'width'=>'50', 'align'=>'center', 'sortable'=>'false'),
|
|
|
- array('name'=>'position', 'index'=>'position', 'width'=>'50', 'align'=>'center', 'sortable'=>'false')
|
|
|
+$column_exercise_model = array(
|
|
|
+ array('name'=>'course', 'index'=>'course', 'width'=>'450', 'align'=>'left', 'sortable'=>'true'),
|
|
|
+ array('name'=>'exercise', 'index'=>'exercise', 'width'=>'250', 'align'=>'left', 'sortable'=>'true'),
|
|
|
+ array('name'=>'attempt', 'index'=>'attempt', 'width'=>'50', 'align'=>'center', 'sortable'=>'true'),
|
|
|
+ array('name'=>'result', 'index'=>'result', 'width'=>'50', 'align'=>'center', 'sortable'=>'true'),
|
|
|
+ array('name'=>'note', 'index'=>'note', 'width'=>'50', 'align'=>'center', 'sortable'=>'true'),
|
|
|
+ array('name'=>'position', 'index'=>'position', 'width'=>'50', 'align'=>'center', 'sortable'=>'true')
|
|
|
);
|
|
|
$extra_params_exercise['grouping'] = 'true';
|
|
|
-$extra_params_exercise['groupingView'] = array('groupField'=>array('course'),'groupColumnShow'=>'false','groupText' => array('<b>Course {0} - {1} Item(s)</b>'));
|
|
|
-//$extra_params_exercise['altRows'] = 'true';
|
|
|
+$extra_params_exercise['groupingView'] = array('groupField'=>array('course'),'groupColumnShow'=>'false','groupText' => array('<b>'.get_lang('Course').' {0}</b>'));
|
|
|
+//$extra_params_exercise['groupingView'] = array('groupField'=>array('course'),'groupColumnShow'=>'false','groupText' => array('<b>'.get_lang('Course').' {0} - {1} Item(s)</b>'));
|
|
|
+
|
|
|
|
|
|
?>
|
|
|
<br />
|