|
|
|
|
@ -586,7 +586,6 @@ $tableRows = []; |
|
|
|
|
if (!empty($exerciseList)) { |
|
|
|
|
if ($origin != 'learnpath') { |
|
|
|
|
//avoid sending empty parameters |
|
|
|
|
$myorigin = (empty($origin) ? '' : '&origin='.$origin); |
|
|
|
|
$mylpid = (empty($learnpath_id) ? '' : '&learnpath_id='.$learnpath_id); |
|
|
|
|
$mylpitemid = (empty($learnpath_item_id) ? '' : '&learnpath_item_id='.$learnpath_item_id); |
|
|
|
|
$i = 1; |
|
|
|
|
@ -725,7 +724,7 @@ if (!empty($exerciseList)) { |
|
|
|
|
$class_tip = 'link_tooltip'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$url = $move.'<a '.$alt_title.' class="'.$class_tip.'" id="tooltip_'.$row['id'].'" href="overview.php?'.api_get_cidreq().$myorigin.$mylpid.$mylpitemid.'&exerciseId='.$row['id'].'"> |
|
|
|
|
$url = $move.'<a '.$alt_title.' class="'.$class_tip.'" id="tooltip_'.$row['id'].'" href="overview.php?'.api_get_cidreq().$mylpid.$mylpitemid.'&exerciseId='.$row['id'].'"> |
|
|
|
|
'.Display::return_icon('quiz.png', $row['title']).' |
|
|
|
|
'.$title.' </a>'; |
|
|
|
|
|
|
|
|
|
@ -873,7 +872,14 @@ if (!empty($exerciseList)) { |
|
|
|
|
|
|
|
|
|
$actions .= '<a href="exercise_report.php?'.api_get_cidreq().'&exerciseId='.$row['id'].'">'. |
|
|
|
|
Display::return_icon('test_results.png', get_lang('Results'), '', ICON_SIZE_SMALL).'</a>'; |
|
|
|
|
$actions .= Display::url(Display::return_icon('cd.gif', get_lang('CopyExercise')), '', array('onclick' => "javascript:if(!confirm('".addslashes(api_htmlentities(get_lang('AreYouSureToCopy'), ENT_QUOTES, $charset))." ".addslashes($row['title'])."?"."')) return false;", 'href' => 'exercise.php?'.api_get_cidreq().'&choice=copy_exercise&sec_token='.$token.'&exerciseId='.$row['id'])); |
|
|
|
|
$actions .= Display::url( |
|
|
|
|
Display::return_icon('cd.gif', get_lang('CopyExercise')), |
|
|
|
|
'', |
|
|
|
|
array( |
|
|
|
|
'onclick' => "javascript:if(!confirm('".addslashes(api_htmlentities(get_lang('AreYouSureToCopy'), ENT_QUOTES, $charset))." ".addslashes($row['title'])."?"."')) return false;", |
|
|
|
|
'href' => 'exercise.php?'.api_get_cidreq().'&choice=copy_exercise&sec_token='.$token.'&exerciseId='.$row['id'] |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Delete |
|
|
|
|
@ -887,7 +893,10 @@ if (!empty($exerciseList)) { |
|
|
|
|
ICON_SIZE_SMALL |
|
|
|
|
), |
|
|
|
|
'', |
|
|
|
|
array('onclick' => "javascript:if(!confirm('".addslashes(api_htmlentities(get_lang('AreYouSureToDeleteJS'), ENT_QUOTES, $charset))." ".addslashes($row['title'])."?"."')) return false;", 'href' => 'exercise.php?'.api_get_cidreq().'&choice=delete&sec_token='.$token.'&exerciseId='.$row['id']) |
|
|
|
|
array( |
|
|
|
|
'onclick' => "javascript:if(!confirm('".addslashes(api_htmlentities(get_lang('AreYouSureToDeleteJS'), ENT_QUOTES, $charset))." ".addslashes($row['title'])."?"."')) return false;", |
|
|
|
|
'href' => 'exercise.php?'.api_get_cidreq().'&choice=delete&sec_token='.$token.'&exerciseId='.$row['id'] |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
} else { |
|
|
|
|
$actions .= Display::return_icon( |
|
|
|
|
@ -945,7 +954,7 @@ if (!empty($exerciseList)) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$url = '<a '.$alt_title.' href="overview.php?'.api_get_cidreq().$myorigin.$mylpid.$mylpitemid.'&exerciseId='.$row['id'].'">'. |
|
|
|
|
$url = '<a '.$alt_title.' href="overview.php?'.api_get_cidreq().$mylpid.$mylpitemid.'&exerciseId='.$row['id'].'">'. |
|
|
|
|
$cut_title.'</a>'; |
|
|
|
|
|
|
|
|
|
// Link of the exercise. |
|
|
|
|
|