Minor - format code.

pull/2487/head
jmontoyaa 7 years ago
parent 851938433a
commit c559a4bbf6
  1. 6
      main/exercise/stats.php
  2. 2
      main/mySpace/exercise_category_report.php

@ -78,13 +78,13 @@ if (!empty($question_list)) {
$data[$question_id]['name'] = cut($questionObj->question, 100);
$data[$question_id]['type'] = $questionObj->get_question_type_name();
$percentange = 0;
$percentage = 0;
if ($count_students) {
$percentange = $count_users / $count_students * 100;
$percentage = $count_users / $count_students * 100;
}
$data[$question_id]['students_who_try_exercise'] = Display::bar_progress(
$percentange,
$percentage,
false,
$count_users.' / '.$count_students
);

@ -127,7 +127,7 @@ if ($form->validate() && !empty($courseInfo)) {
foreach ($categoryList as $categoryInfo) {
$columnModel[] = array(
'name' => 'category_'.$categoryInfo['id'],
'index' => 'exe_result',
'index' => 'category_'.$categoryInfo['id'],
'width' => '50',
'align' => 'center',
'search' => 'true',

Loading…
Cancel
Save