| @@ 576-595 (lines=20) @@ | ||
| 573 | $counter++; |
|
| 574 | } |
|
| 575 | $list2 = learnpath::get_iv_objectives_array($row['iv_id']); |
|
| 576 | foreach ($list2 as $id => $interaction) { |
|
| 577 | if (($counter % 2) == 0) { |
|
| 578 | $oddclass = 'row_odd'; |
|
| 579 | } else { |
|
| 580 | $oddclass = 'row_even'; |
|
| 581 | } |
|
| 582 | $output .= '<tr class="'.$oddclass.'"> |
|
| 583 | <td></td> |
|
| 584 | <td></td> |
|
| 585 | <td></td> |
|
| 586 | <td>' . $interaction['order_id'].'</td> |
|
| 587 | <td colspan="2">' . $interaction['objective_id'].'</td> |
|
| 588 | <td colspan="2">' . $interaction['status'].'</td> |
|
| 589 | <td>' . $interaction['score_raw'].'</td> |
|
| 590 | <td>' . $interaction['score_max'].'</td> |
|
| 591 | <td>' . $interaction['score_min'].'</td> |
|
| 592 | '.$action.' |
|
| 593 | </tr>'; |
|
| 594 | $counter++; |
|
| 595 | } |
|
| 596 | } |
|
| 597 | } while ($row = Database::fetch_array($result)); |
|
| 598 | } elseif ($num > 0) { |
|
| @@ 942-961 (lines=20) @@ | ||
| 939 | $counter++; |
|
| 940 | } |
|
| 941 | $list2 = learnpath::get_iv_objectives_array($row['iv_id']); |
|
| 942 | foreach ($list2 as $id => $interaction) { |
|
| 943 | if (($counter % 2) == 0) { |
|
| 944 | $oddclass = 'row_odd'; |
|
| 945 | } else { |
|
| 946 | $oddclass = 'row_even'; |
|
| 947 | } |
|
| 948 | $output .= '<tr class="'.$oddclass.'"> |
|
| 949 | <td></td> |
|
| 950 | <td></td> |
|
| 951 | <td></td> |
|
| 952 | <td>' . $interaction['order_id'].'</td> |
|
| 953 | <td colspan="2">'.$interaction['objective_id'].'</td> |
|
| 954 | <td colspan="2">' . $interaction['status'].'</td> |
|
| 955 | <td>' . $interaction['score_raw'].'</td> |
|
| 956 | <td>' . $interaction['score_max'].'</td> |
|
| 957 | <td>' . $interaction['score_min'].'</td> |
|
| 958 | '.$action.' |
|
| 959 | </tr>'; |
|
| 960 | $counter++; |
|
| 961 | } |
|
| 962 | } |
|
| 963 | ||
| 964 | // Attempts listing by exercise. |
|