Browse Source

update check

Alex Aragón 5 years ago
parent
commit
dfa1afdf6e
3 changed files with 5 additions and 13 deletions
  1. BIN
      main/img/icons/22/icon_check.png
  2. BIN
      main/img/icons/22/icon_error.png
  3. 5 13
      main/mySpace/lp_tracking.php

BIN
main/img/icons/22/icon_check.png


BIN
main/img/icons/22/icon_error.png


+ 5 - 13
main/mySpace/lp_tracking.php

@@ -159,9 +159,9 @@ switch ($action) {
                 }
                 $table->setCellContents($row, 0, 'Q'.$choiceCounter);
                 $table->setCellContents($row, 1, $option['student_response_formatted']);
-                $result = Display::return_icon('completed.png');
+                $result = Display::return_icon('icon_check.png',null,[],ICON_SIZE_SMALL);
                 if ($option['result'] === 'wrong') {
-                    $result = Display::return_icon('delete.png');
+                    $result = Display::return_icon('icon_error.png', null, [], ICON_SIZE_SMALL);
                 }
 
                 $table->setCellContents($row, 2, $result);
@@ -204,14 +204,6 @@ switch ($action) {
         $tpl->assign('general_score', $generalScore);
         $tpl->assign('global_total', $score);
 
-        $table->setCellContents($row, 0, get_lang('GeneralTotal'));
-        $table->setCellContents($row, 1, '');
-        $table->setCellContents($row, 2, $score);
-
-        $table->setCellAttributes($row, 0, ['style' => 'font-weight:bold']);
-        $table->setCellAttributes($row, 1, ['style' => 'font-weight:bold']);
-        $table->setCellAttributes($row, 2, ['style' => 'font-weight:bold']);
-
         $tableToString = $table->toHtml();
 
         $duration = learnpathItem::getScormTimeFromParameter('js', $itemView->getTotalTime());
@@ -232,14 +224,14 @@ switch ($action) {
 
         $content = $contentText.'<pagebreak>'.$tableToString;
 
-        $pdf = new PDF('A4', 'P', ['margin_footer' => 4]);
+        $pdf = new PDF('A4', 'P', ['margin_footer' => 4, 'top' => 40, 'bottom' => 25 ]);
 
-        $table = new HTML_Table(['class' => 'table']);
+        $table = new HTML_Table(['class' => 'table', 'style' => 'display: block; margin-bottom: 50px;']);
         $logo = ChamiloApi::getPlatformLogo(
             $theme,
             [
                 'title' => '',
-                'style' => 'max-width:180px',
+                'style' => 'max-width:180px, margin-bottom: 100px;',
                 'id' => 'header-logo',
             ]
         );