[svn r12577] task 1505 : url_suffix was missing, so there was a not allowed error message

skala
Eric Marguin 19 years ago
parent 58fb17d6e9
commit 8d5815e976
  1. 12
      main/newscorm/lp_stats.php

@ -128,7 +128,7 @@ foreach ($list as $my_item_id) {
$oddclass = "row_even"; $oddclass = "row_even";
} }
if ($inter_num) if ($inter_num)
$extend_link = '<a href="'.api_get_self().'?action=stats&fold_id='.$my_item_id.'"><img src="../img/visible.gif" alt="fold_view" border="0"></a>'."\n"; $extend_link = '<a href="'.api_get_self().'?action=stats&fold_id='.$my_item_id.$url_suffix.'"><img src="../img/visible.gif" alt="fold_view" border="0"></a>'."\n";
$title = $row['mytitle']; $title = $row['mytitle'];
$title = stripslashes($title); $title = stripslashes($title);
@ -149,10 +149,10 @@ foreach ($list as $my_item_id) {
if (!empty ($_GET['extend_attempt_id']) && $_GET['extend_attempt_id'] == $row['iv_id']) { if (!empty ($_GET['extend_attempt_id']) && $_GET['extend_attempt_id'] == $row['iv_id']) {
//the extend button for this attempt has been clicked //the extend button for this attempt has been clicked
$extend_this_attempt = 1; $extend_this_attempt = 1;
$extend_attempt_link = '<a href="'.api_get_self().'?action=stats&extend_id='.$my_item_id.'&fold_attempt_id='.$row['iv_id'].'"><img src="../img/visible.gif" alt="fold_attempt_view" border="0"></a>'."\n"; $extend_attempt_link = '<a href="'.api_get_self().'?action=stats&extend_id='.$my_item_id.'&fold_attempt_id='.$row['iv_id'].$url_suffix.'"><img src="../img/visible.gif" alt="fold_attempt_view" border="0"></a>'."\n";
} else { //same case if fold_attempt_id is set, so not implemented explicitly } else { //same case if fold_attempt_id is set, so not implemented explicitly
//the extend button for this attempt has not been clicked //the extend button for this attempt has not been clicked
$extend_attempt_link = '<a href="'.api_get_self().'?action=stats&extend_id='.$my_item_id.'&extend_attempt_id='.$row['iv_id'].'"><img src="../img/invisible.gif" alt="extend_attempt_view" border="0"></a>'."\n"; $extend_attempt_link = '<a href="'.api_get_self().'?action=stats&extend_id='.$my_item_id.'&extend_attempt_id='.$row['iv_id'].$url_suffix.'"><img src="../img/invisible.gif" alt="extend_attempt_view" border="0"></a>'."\n";
} }
} }
@ -217,10 +217,10 @@ foreach ($list as $my_item_id) {
if (!empty ($_GET['extend_attempt_id']) && $_GET['extend_attempt_id'] == $row['iv_id']) { if (!empty ($_GET['extend_attempt_id']) && $_GET['extend_attempt_id'] == $row['iv_id']) {
//the extend button for this attempt has been clicked //the extend button for this attempt has been clicked
$extend_this_attempt = 1; $extend_this_attempt = 1;
$extend_attempt_link = '<a href="'.api_get_self().'?action=stats&extend_id='.$my_item_id.'&fold_attempt_id='.$row['iv_id'].'"><img src="../img/visible.gif" alt="fold_attempt_view" border="0"></a>'."\n"; $extend_attempt_link = '<a href="'.api_get_self().'?action=stats&extend_id='.$my_item_id.'&fold_attempt_id='.$row['iv_id'].$url_suffix.'"><img src="../img/visible.gif" alt="fold_attempt_view" border="0"></a>'."\n";
} else { //same case if fold_attempt_id is set, so not implemented explicitly } else { //same case if fold_attempt_id is set, so not implemented explicitly
//the extend button for this attempt has not been clicked //the extend button for this attempt has not been clicked
$extend_attempt_link = '<a href="'.api_get_self().'?action=stats&extend_id='.$my_item_id.'&extend_attempt_id='.$row['iv_id'].'"><img src="../img/invisible.gif" alt="extend_attempt_view" border="0"></a>'."\n"; $extend_attempt_link = '<a href="'.api_get_self().'?action=stats&extend_id='.$my_item_id.'&extend_attempt_id='.$row['iv_id'].$url_suffix.'"><img src="../img/invisible.gif" alt="extend_attempt_view" border="0"></a>'."\n";
} }
} }
@ -232,7 +232,7 @@ foreach ($list as $my_item_id) {
//$extend_link = '<img src="../img/invisible.gif" alt="extend_disabled">'; //$extend_link = '<img src="../img/invisible.gif" alt="extend_disabled">';
$extend_link = ''; $extend_link = '';
if ($inter_num > 1) { if ($inter_num > 1) {
$extend_link = '<a href="'.api_get_self().'?action=stats&extend_id='.$my_item_id.'&extend_attempt_id='.$row['iv_id'].'"><img src="../img/invisible.gif" alt="extend_view" border="0"></a>'; $extend_link = '<a href="'.api_get_self().'?action=stats&extend_id='.$my_item_id.'&extend_attempt_id='.$row['iv_id'].$url_suffix.'"><img src="../img/invisible.gif" alt="extend_view" border="0"></a>';
} }
if (($counter % 2) == 0) { if (($counter % 2) == 0) {
$oddclass = "row_odd"; $oddclass = "row_odd";

Loading…
Cancel
Save