diff --git a/cis/testtool/gebietfertig.php b/cis/testtool/gebietfertig.php
index cf0a86ae2..327848b17 100644
--- a/cis/testtool/gebietfertig.php
+++ b/cis/testtool/gebietfertig.php
@@ -44,6 +44,27 @@ if (isset($_GET['sprache_user']) && !empty($_GET['sprache_user']))
$sprache_user = (isset($_SESSION['sprache_user']) && !empty($_SESSION['sprache_user'])) ? $_SESSION['sprache_user'] : DEFAULT_LANGUAGE;
$p = new phrasen($sprache_user);
+$showInfo = false;
+if (isset($_SESSION['alleGebiete']))
+{
+ $alleGebiete = array_map('intval', $_SESSION['alleGebiete']);
+ $pruefling_id = $_SESSION['pruefling_id'];
+
+ $qry = "SELECT COUNT(DISTINCT gebiet_id) as anzahl
+ FROM testtool.tbl_pruefling_frage
+ JOIN testtool.tbl_frage USING(frage_id)
+ WHERE gebiet_id IN (". implode(',', $alleGebiete) .")
+ AND pruefling_id = ". $pruefling_id ."
+ ";
+
+ $result = $db->db_query($qry);
+ $anzahlGebiete = $db->db_fetch_object($result);
+
+
+ if ((int)$anzahlGebiete->anzahl === count($alleGebiete))
+ $showInfo = true;
+}
+
?>
@@ -69,6 +90,7 @@ $p = new phrasen($sprache_user);
t('testtool/zeitAbgelaufen');?>
+ t('testtool/alleGebietGestartet') . "
" . $p->t('testtool/alleGebieteGestartetInfo')) : ''); ?>
diff --git a/cis/testtool/menu.php b/cis/testtool/menu.php
index 494f05567..ad803dd56 100644
--- a/cis/testtool/menu.php
+++ b/cis/testtool/menu.php
@@ -405,6 +405,29 @@ else if (isset($_SESSION['pruefling_id']))
echo '';
}
+ if (isset($_SESSION['pruefling_id']) && !empty($_SESSION['alleGebiete']))
+ {
+ $alleGebiete = array_map('intval', $_SESSION['alleGebiete']);
+ $pruefling_id = (int)$_SESSION['pruefling_id'];
+
+ $qry = "SELECT COUNT(DISTINCT gebiet_id) AS anzahl
+ FROM testtool.tbl_pruefling_frage
+ JOIN testtool.tbl_frage USING(frage_id)
+ WHERE gebiet_id IN (". implode(',', $alleGebiete) .")
+ AND pruefling_id = ". $pruefling_id;
+
+ $result_check = $db->db_query($qry);
+ $row_check = $db->db_fetch_object($result_check);
+
+ if ((int)$row_check->anzahl === count($alleGebiete))
+ {
+ echo '|
+
+ '.$p->t('testtool/alleGebietGestartet').'
+
+ |
';
+ }
+ }
// Link zum Logout
echo '|
diff --git a/locale/de-AT/testtool.php b/locale/de-AT/testtool.php
index 33c46b0a7..0d3bd0801 100644
--- a/locale/de-AT/testtool.php
+++ b/locale/de-AT/testtool.php
@@ -31,6 +31,8 @@ $this->phrasen['testtool/keineAntwort']='Keine Antwort';
$this->phrasen['testtool/speichernUndWeiter']='Speichern und weiter';
$this->phrasen['testtool/alleFragenBeantwortet']='GLÜCKWUNSCH! \n\nSie haben alle Fragen in der zur Verfügung stehenden Zeit beantwortet. \nNutzen Sie die verbleibende Zeit, um Ihre Antworten zu kontrollieren oder fahren Sie mit dem nächsten Teilgebiet fort.';
$this->phrasen['testtool/zeitAbgelaufen']='Die Maximalzeit für dieses Gebiet ist abgelaufen, oder alle Fragen wurden beantwortet';
+$this->phrasen['testtool/alleGebietGestartet']='Alle Gebiete wurden gestartet.';
+$this->phrasen['testtool/alleGebieteGestartetInfo']='Sie können den Reihungstest nun abschließen und das Fenster schließen.';
$this->phrasen['testtool/spracheDerTestfragen']='Gewünschte Sprache der Testfragen';
$this->phrasen['testtool/einleitung']='Einleitung';
$this->phrasen['testtool/blaettern']='Blättern';
diff --git a/locale/en-US/testtool.php b/locale/en-US/testtool.php
index 260b5ceea..a355b9d60 100644
--- a/locale/en-US/testtool.php
+++ b/locale/en-US/testtool.php
@@ -31,6 +31,8 @@ $this->phrasen['testtool/keineAntwort']='No Answer';
$this->phrasen['testtool/speichernUndWeiter']='Save and next';
$this->phrasen['testtool/alleFragenBeantwortet']='CONGRATULATIONS!\n\nYou have answered all the questions in the time allowed.\n Use the remaining time to check your answers or continue to the next section.';
$this->phrasen['testtool/zeitAbgelaufen']='The time for this part has expired or you have answered all the questions.';
+$this->phrasen['testtool/alleGebietGestartet']='All parts have been started.';
+$this->phrasen['testtool/alleGebieteGestartetInfo']='You may now complete the placement test and close the window.';
$this->phrasen['testtool/spracheDerTestfragen']='Desired language of questions';
$this->phrasen['testtool/einleitung']='Introduction';
$this->phrasen['testtool/blaettern']='Browse';
|