Add table id and class see BT#12521

pull/2487/head
jmontoyaa 9 years ago
parent 029dfc42dc
commit c94bf00973
  1. 20
      main/inc/lib/tracking.lib.php

@ -192,7 +192,7 @@ class Tracking
$actionColumn = ' <th>' . get_lang('Actions') . '</th>'; $actionColumn = ' <th>' . get_lang('Actions') . '</th>';
} }
$output .= '<div class="table-responsive">'; $output .= '<div class="table-responsive">';
$output .= '<table class="table tracking"> $output .= '<table id="lp_tracking" class="table tracking">
<thead> <thead>
<tr class="table-header"> <tr class="table-header">
<th width="16">' . ($allowExtend == true ? $extend_all_link : '&nbsp;') . '</th> <th width="16">' . ($allowExtend == true ? $extend_all_link : '&nbsp;') . '</th>
@ -205,7 +205,7 @@ class Tracking
<th colspan="2"> <th colspan="2">
' . get_lang('ScormScore') . ' ' . get_lang('ScormScore') . '
</th> </th>
<th colspan="2"> <th class="lp_time" colspan="2">
' . get_lang('ScormTime') . ' ' . get_lang('ScormTime') . '
</th> </th>
'.$actionColumn.' '.$actionColumn.'
@ -472,7 +472,7 @@ class Tracking
<td colspan="3">' . get_lang('Attempt') . ' ' . $attemptCount . '</td> <td colspan="3">' . get_lang('Attempt') . ' ' . $attemptCount . '</td>
<td colspan="2">' . learnpathItem::humanize_status($lesson_status, true, $type) . '</td> <td colspan="2">' . learnpathItem::humanize_status($lesson_status, true, $type) . '</td>
<td colspan="2">' . $view_score . '</td> <td colspan="2">' . $view_score . '</td>
<td colspan="2">' . $time . '</td> <td class="lp_time" colspan="2">' . $time . '</td>
'.$action.' '.$action.'
</tr>'; </tr>';
$attemptCount++; $attemptCount++;
@ -530,7 +530,7 @@ class Tracking
<td>'.$student_response . '</td> <td>'.$student_response . '</td>
<td>'.$interaction['result'] . '</td> <td>'.$interaction['result'] . '</td>
<td>'.$interaction['latency'] . '</td> <td>'.$interaction['latency'] . '</td>
<td>'.$interaction['time'] . '</td> <td class="lp_time">'.$interaction['time'] . '</td>
'.$action.' '.$action.'
</tr>'; </tr>';
$counter++; $counter++;
@ -834,7 +834,7 @@ class Tracking
<td colspan="4">' . $title . '</td> <td colspan="4">' . $title . '</td>
<td colspan="2">' . learnpathitem::humanize_status($lesson_status) .'</td> <td colspan="2">' . learnpathitem::humanize_status($lesson_status) .'</td>
<td colspan="2">'.$scoreItem.'</td> <td colspan="2">'.$scoreItem.'</td>
<td colspan="2">'.$time.'</td> <td class="lp_time" colspan="2">'.$time.'</td>
'.$action.' '.$action.'
'; ';
$output .= '</tr>'; $output .= '</tr>';
@ -884,7 +884,7 @@ class Tracking
<td>'.urldecode($interaction['student_response']).'</td> <td>'.urldecode($interaction['student_response']).'</td>
<td>'.$interaction['result'].'</td> <td>'.$interaction['result'].'</td>
<td>'.$interaction['latency'].'</td> <td>'.$interaction['latency'].'</td>
<td>'.$interaction['time'].'</td> <td class="lp_time">'.$interaction['time'].'</td>
'.$action.' '.$action.'
</tr>'; </tr>';
$counter++; $counter++;
@ -986,7 +986,7 @@ class Tracking
<td colspan="3">' . get_lang('Attempt').' '. $n.'</td> <td colspan="3">' . get_lang('Attempt').' '. $n.'</td>
<td colspan="2">' . $my_lesson_status . '</td> <td colspan="2">' . $my_lesson_status . '</td>
<td colspan="2">'.$view_score . '</td> <td colspan="2">'.$view_score . '</td>
<td colspan="2">'.$time_attemp . '</td>'; <td class="lp_time" colspan="2">'.$time_attemp . '</td>';
if ($action == 'classic') { if ($action == 'classic') {
if ($origin != 'tracking') { if ($origin != 'tracking') {
if (!$is_allowed_to_edit && $result_disabled_ext_all) { if (!$is_allowed_to_edit && $result_disabled_ext_all) {
@ -1096,10 +1096,8 @@ class Tracking
<i>' . get_lang('AccomplishedStepsTotal') .'</i> <i>' . get_lang('AccomplishedStepsTotal') .'</i>
</td> </td>
<td colspan="2">'.$progress.'%</td> <td colspan="2">'.$progress.'%</td>
<td colspan="2"> <td colspan="2">' . $final_score.'</td>
' . $final_score.' <td class="lp_time" colspan="2">' . $total_time . '</div>
</td>
<td colspan="2">' . $total_time . '</div>
'.$action.' '.$action.'
</tr>'; </tr>';

Loading…
Cancel
Save