|
@@ 410-423 (lines=14) @@
|
| 407 |
|
learnpath::get_objectives_count_from_db($row['iv_id'], $course_id) > 0) && |
| 408 |
|
!$extend_all |
| 409 |
|
) { |
| 410 |
|
if ($extendAttemptId == $row['iv_id']) { |
| 411 |
|
// The extend button for this attempt has been clicked. |
| 412 |
|
$extend_this_attempt = 1; |
| 413 |
|
$extend_attempt_link = Display::url( |
| 414 |
|
Display::return_icon('visible.gif', get_lang('HideAttemptView')), |
| 415 |
|
api_get_self().'?action=stats&extend_id='.$my_item_id.'&fold_attempt_id='.$row['iv_id'].$url_suffix |
| 416 |
|
); |
| 417 |
|
} else { // Same case if fold_attempt_id is set, so not implemented explicitly. |
| 418 |
|
// The extend button for this attempt has not been clicked. |
| 419 |
|
$extend_attempt_link = Display::url( |
| 420 |
|
Display::return_icon('invisible.gif', get_lang('ExtendAttemptView')), |
| 421 |
|
api_get_self().'?action=stats&extend_id='.$my_item_id.'&extend_attempt_id='.$row['iv_id'].$url_suffix |
| 422 |
|
); |
| 423 |
|
} |
| 424 |
|
} |
| 425 |
|
|
| 426 |
|
if (($counter % 2) == 0) { |
|
@@ 629-643 (lines=15) @@
|
| 626 |
|
$objec_num = learnpath::get_objectives_count_from_db($row['iv_id'], $course_id); |
| 627 |
|
$extend_attempt_link = ''; |
| 628 |
|
if ($inter_num > 0 || $objec_num > 0) { |
| 629 |
|
if (!empty($extendAttemptId) && $extendAttemptId == $row['iv_id']) { |
| 630 |
|
// The extend button for this attempt has been clicked. |
| 631 |
|
$extend_this_attempt = 1; |
| 632 |
|
$extend_attempt_link = Display::url( |
| 633 |
|
Display::return_icon('visible.gif', get_lang('HideAttemptView')), |
| 634 |
|
api_get_self().'?action=stats&extend_id='.$my_item_id.'&fold_attempt_id='.$row['iv_id'].$url_suffix |
| 635 |
|
); |
| 636 |
|
} else { |
| 637 |
|
// Same case if fold_attempt_id is set, so not implemented explicitly. |
| 638 |
|
// The extend button for this attempt has not been clicked. |
| 639 |
|
$extend_attempt_link = Display::url( |
| 640 |
|
Display::return_icon('invisible.gif', get_lang('ExtendAttemptView')), |
| 641 |
|
api_get_self().'?action=stats&extend_id='.$my_item_id.'&extend_attempt_id='.$row['iv_id'].$url_suffix |
| 642 |
|
); |
| 643 |
|
} |
| 644 |
|
} |
| 645 |
|
|
| 646 |
|
if (($counter % 2) == 0) { |