|
|
|
@ -538,10 +538,10 @@ foreach ($list as $my_item_id) { |
|
|
|
|
$num = Database :: num_rows($resultLastAttempt); |
|
|
|
|
if ($num > 0) { |
|
|
|
|
if (isset($_GET['extend_attempt']) && $_GET['extend_attempt'] == 1 && (isset($_GET['lp_id']) && $_GET['lp_id'] == $my_lp_id) && (isset($_GET['my_lp_id']) && $_GET['my_lp_id'] == $my_id) ) { |
|
|
|
|
$correct_test_link = '<a href="' . api_get_self() . '?action=stats' . $my_url_suffix . '&my_ext_lp_id='.$my_id.'#anchor_ext_hidden_'.$my_lp_id.'"><img src="../img/view_less_stats.gif" alt="fold_view" border="0" title="'.get_lang('HideAllAttempts').'"></a>'; |
|
|
|
|
$correct_test_link = '<a href="' . api_get_self() . '?action=stats' . $my_url_suffix . '&my_ext_lp_id='.$my_id.'"><img src="../img/view_less_stats.gif" alt="fold_view" border="0" title="'.get_lang('HideAllAttempts').'"></a>'; |
|
|
|
|
$extend_attempt = 1; |
|
|
|
|
} else { |
|
|
|
|
$correct_test_link = '<a href="' . api_get_self() . '?action=stats&extend_attempt=1'.$my_url_suffix.'&my_lp_id='.$my_id.'#anchor_ext_show_'.$my_lp_id.'"><img src="../img/view_more_stats.gif" alt="extend_view" border="0" title="'.get_lang('ShowAllAttemptsByExercise').'"></a>'; |
|
|
|
|
$correct_test_link = '<a href="' . api_get_self() . '?action=stats&extend_attempt=1'.$my_url_suffix.'&my_lp_id='.$my_id.'"><img src="../img/view_more_stats.gif" alt="extend_view" border="0" title="'.get_lang('ShowAllAttemptsByExercise').'"></a>'; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
$correct_test_link = '-'; |
|
|
|
@ -553,12 +553,12 @@ foreach ($list as $my_item_id) { |
|
|
|
|
//."<td><font color='$color'><div class='mystatus'>".htmlentities($array_status[$lesson_status],ENT_QUOTES,$lp_charset)."</div></font></td>\n" |
|
|
|
|
|
|
|
|
|
if ( (isset($_GET['lp_id']) && $_GET['lp_id'] == $my_lp_id ) && (isset($_GET['my_lp_id']) && $_GET['my_lp_id'] == $my_id)) { |
|
|
|
|
$output .= "<tr class='$oddclass' id='anchor_ext_show_$my_lp_id'>\n" . "<td>$extend_link</td>\n" . '<td colspan="4"><div class="mystatus">' . htmlentities($title, ENT_QUOTES, $lp_charset) . '</div></td>' . "\n"; |
|
|
|
|
$output .= "<tr class='$oddclass' >\n" . "<td>$extend_link</td>\n" . '<td colspan="4"><div class="mystatus">' . htmlentities($title, ENT_QUOTES, $lp_charset) . '</div></td>' . "\n"; |
|
|
|
|
$output .= '<td colspan="2"> </td><td colspan="2"> </td><td colspan="2"> </td><td>'.$correct_test_link.'</td></tr>'; |
|
|
|
|
$output .= "</tr>\n"; |
|
|
|
|
} else { |
|
|
|
|
if ( (isset($_GET['lp_id']) && $_GET['lp_id'] == $my_lp_id ) && (isset($_GET['my_ext_lp_id']) && $_GET['my_ext_lp_id'] == $my_id)) { |
|
|
|
|
$output .= "<tr class='$oddclass' id='anchor_ext_hidden_$my_lp_id'>\n"; |
|
|
|
|
$output .= "<tr class='$oddclass' >\n"; |
|
|
|
|
} else { |
|
|
|
|
$output .= "<tr class='$oddclass'>\n"; |
|
|
|
|
} |
|
|
|
|