Selaa lähdekoodia

Add text for admin view showing the number of questions picked randomly.

Yannick Warnier 8 vuotta sitten
vanhempi
commit
1fcda05d1f
1 muutettua tiedostoa jossa 8 lisäystä ja 1 poistoa
  1. 8 1
      main/exercise/admin.php

+ 8 - 1
main/exercise/admin.php

@@ -392,7 +392,14 @@ if ($inATest) {
     }
 
     echo '</div>';
-    echo '<div class="alert alert-info">'.sprintf(get_lang('XQuestionsWithTotalScoreY'), $objExercise->selectNbrQuestions(), $maxScoreAllQuestions).'</div>';
+    echo '<div class="alert alert-info">'.
+        sprintf(get_lang('XQuestionsWithTotalScoreY'), $objExercise->selectNbrQuestions(), $maxScoreAllQuestions);
+    if ($objExercise->random > 0) {
+        echo '<br />' .
+            sprintf(get_lang('OnlyXQuestionsPickedRandomly'), $objExercise->random);
+    }
+    echo '</div>';
+
 } else if (isset($_GET['newQuestion'])) {
     // we are in create a new question from question pool not in a test
     echo '<div class="actions">';