Add link to test settings directly from the exercises list page

1.10.x
Yannick Warnier 10 years ago
parent 6d03b30b20
commit 48c66062dc
  1. 8
      main/exercice/exercise.php

@ -661,12 +661,18 @@ if (!empty($exercise_list)) {
$rowi = Database :: result($sqlresult, 0, 0);
if ($session_id == $row['session_id']) {
// Settings
// Questions list
$actions = Display::url(
Display::return_icon('edit.png', get_lang('Edit'), '', ICON_SIZE_SMALL),
'admin.php?'.api_get_cidreq().'&exerciseId='.$row['id']
);
// Test settings
$actions .= Display::url(
Display::return_icon('settings.png', get_lang('Configure'), '', ICON_SIZE_SMALL),
'exercise_admin.php?'.api_get_cidreq().'&exerciseId='.$row['id']
);
// Exercise results
$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>';

Loading…
Cancel
Save