@@ 385-398 (lines=14) @@ | ||
382 | learnpath::get_objectives_count_from_db($row['iv_id'], $course_id) > 0) && |
|
383 | !$extend_all |
|
384 | ) { |
|
385 | if ($extendAttemptId == $row['iv_id']) { |
|
386 | // The extend button for this attempt has been clicked. |
|
387 | $extend_this_attempt = 1; |
|
388 | $extend_attempt_link = Display::url( |
|
389 | Display::return_icon('visible.gif', get_lang('HideAttemptView')), |
|
390 | api_get_self() . '?action=stats&extend_id=' . $my_item_id . '&fold_attempt_id=' . $row['iv_id'] . $url_suffix |
|
391 | ); |
|
392 | } else { // Same case if fold_attempt_id is set, so not implemented explicitly. |
|
393 | // The extend button for this attempt has not been clicked. |
|
394 | $extend_attempt_link = Display::url( |
|
395 | Display::return_icon('invisible.gif', get_lang('ExtendAttemptView')), |
|
396 | api_get_self() . '?action=stats&extend_id=' . $my_item_id . '&extend_attempt_id=' . $row['iv_id'] . $url_suffix |
|
397 | ); |
|
398 | } |
|
399 | } |
|
400 | ||
401 | if (($counter % 2) == 0) { |
|
@@ 586-600 (lines=15) @@ | ||
583 | ||
584 | $extend_attempt_link = ''; |
|
585 | if ($inter_num > 0 || $objec_num > 0) { |
|
586 | if (!empty($extendAttemptId) && $extendAttemptId == $row['iv_id']) { |
|
587 | // The extend button for this attempt has been clicked. |
|
588 | $extend_this_attempt = 1; |
|
589 | $extend_attempt_link = Display::url( |
|
590 | Display::return_icon('visible.gif', get_lang('HideAttemptView')), |
|
591 | api_get_self() . '?action=stats&extend_id=' . $my_item_id . '&fold_attempt_id=' . $row['iv_id'] . $url_suffix |
|
592 | ); |
|
593 | } else { |
|
594 | // Same case if fold_attempt_id is set, so not implemented explicitly. |
|
595 | // The extend button for this attempt has not been clicked. |
|
596 | $extend_attempt_link = Display::url( |
|
597 | Display::return_icon('invisible.gif', get_lang('ExtendAttemptView')), |
|
598 | api_get_self() . '?action=stats&extend_id=' . $my_item_id . '&extend_attempt_id=' . $row['iv_id'] . $url_suffix |
|
599 | ); |
|
600 | } |
|
601 | } |
|
602 | ||
603 | if (($counter % 2) == 0) { |