diff --git a/README.md b/README.md index 11ad521..644552c 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,6 @@ Szkielet komponentu Joomla 6 do gromadzenia pytań testowych. ## Instalacja -W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.32.0). +W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.33.0). Po instalacji komponent jest dostępny w panelu administratora jako **Pytania testowe**. diff --git a/administrator/components/com_testquestions/language/en-GB/com_testquestions.ini b/administrator/components/com_testquestions/language/en-GB/com_testquestions.ini index 5a5f107..d1f00ec 100644 --- a/administrator/components/com_testquestions/language/en-GB/com_testquestions.ini +++ b/administrator/components/com_testquestions/language/en-GB/com_testquestions.ini @@ -68,6 +68,7 @@ COM_TESTQUESTIONS_RESULT_NOT_FOUND="Nie znaleziono zapisanego testu." COM_TESTQUESTIONS_RESULT_PARTICIPANT="Użytkownik" COM_TESTQUESTIONS_RESULT_SCORE="Wynik" COM_TESTQUESTIONS_RESULT_POINTS_BEFORE_AFTER="Punkty przed / po korekcie" +COM_TESTQUESTIONS_RESULT_GRADE="Ocena" COM_TESTQUESTIONS_RESULT_DATE="Data zakończenia" COM_TESTQUESTIONS_RESULT_ANSWERS="Odpowiedzi" COM_TESTQUESTIONS_RESULT_EXECUTION_TIME="Czas wykonania" diff --git a/administrator/components/com_testquestions/sql/updates/mysql/1.33.0.sql b/administrator/components/com_testquestions/sql/updates/mysql/1.33.0.sql new file mode 100644 index 0000000..4ba187c --- /dev/null +++ b/administrator/components/com_testquestions/sql/updates/mysql/1.33.0.sql @@ -0,0 +1 @@ +-- No database changes required for version 1.33.0. diff --git a/administrator/components/com_testquestions/tmpl/result/default.php b/administrator/components/com_testquestions/tmpl/result/default.php index bd8d2e2..8c839dd 100644 --- a/administrator/components/com_testquestions/tmpl/result/default.php +++ b/administrator/components/com_testquestions/tmpl/result/default.php @@ -13,6 +13,14 @@
item->correct_count; ?> / item->total_count; ?> (item->percentage, ENT_QUOTES, 'UTF-8'); ?>%)
item->points_before; ?> / item->points_after; ?>
+ item->points_total ?: (int) $this->item->total_count; ?> + item->points_after / $pointsTotal) * 100, 2) : 0; ?> + + + = $gradeScale[1]) { $grade = $gradeScale[0]; break; } ?> + +
+
escape($grade); ?>
item->execution_time / 60); ?>:item->execution_time % 60), 2, '0', STR_PAD_LEFT); ?>
diff --git a/administrator/components/com_testquestions/tmpl/results/default.php b/administrator/components/com_testquestions/tmpl/results/default.php index 186e27d..93d1acc 100644 --- a/administrator/components/com_testquestions/tmpl/results/default.php +++ b/administrator/components/com_testquestions/tmpl/results/default.php @@ -38,6 +38,7 @@ use Joomla\CMS\Router\Route; + @@ -49,7 +50,12 @@ use Joomla\CMS\Router\Route; points_total ?: (int) $item->total_count; ?> points_before / $pointsTotal) * 100, 2) : 0; ?> points_after / $pointsTotal) * 100, 2) : 0; ?> + + + = $gradeScale[1]) { $grade = $gradeScale[0]; break; } ?> + points_before; ?> (%) / points_after; ?> (%) + escape($grade); ?> execution_time / 60); ?>:execution_time % 60), 2, '0', STR_PAD_LEFT); ?> created, 'Y-m-d H:i'); ?> diff --git a/com_testquestions.xml b/com_testquestions.xml index 35dad0b..76d873e 100644 --- a/com_testquestions.xml +++ b/com_testquestions.xml @@ -4,7 +4,7 @@ 2026-10-14 Komponent GNU General Public License version 2 or later - 1.32.0 + 1.33.0 COM_TESTQUESTIONS_DESCRIPTION com_testquestions Komponent\Component\Testquestions