diff --git a/README.md b/README.md index 0396106..ebea422 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ Szkielet komponentu Joomla 6 do gromadzenia pytań testowych. - zegar odliczający czas testu i automatyczne zakończenie po jego upływie, - zapisywanie wyników testów i zaznaczonych odpowiedzi w bazie danych, - podgląd zapisanych testów w panelu administratora, +- zapisywanie i wyświetlanie czasu wykonania testu, - pozycję menu „Arkusz egzaminacyjny” z opcjonalnym symbolem arkusza, - listę wyboru dostępnych symboli arkuszy na stronie klienckiej, - możliwość rozwiązania arkusza i wyświetlenia wyniku oraz odpowiedzi poprawnych i zaznaczonych, @@ -29,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.18.1). +W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.19.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 b947e9a..20d4bda 100644 --- a/administrator/components/com_testquestions/language/en-GB/com_testquestions.ini +++ b/administrator/components/com_testquestions/language/en-GB/com_testquestions.ini @@ -69,6 +69,7 @@ COM_TESTQUESTIONS_RESULT_PARTICIPANT="Użytkownik" COM_TESTQUESTIONS_RESULT_SCORE="Wynik" COM_TESTQUESTIONS_RESULT_DATE="Data zakończenia" COM_TESTQUESTIONS_RESULT_ANSWERS="Odpowiedzi" +COM_TESTQUESTIONS_RESULT_EXECUTION_TIME="Czas wykonania" COM_TESTQUESTIONS_RESULTS_SEARCH="Szukaj po użytkowniku lub zestawie..." COM_TESTQUESTIONS_YOUR_ANSWER="Twoja odpowiedź" COM_TESTQUESTIONS_SELECTED_ANSWER="Zaznaczona odpowiedź" diff --git a/administrator/components/com_testquestions/sql/install.mysql.utf8mb4.sql b/administrator/components/com_testquestions/sql/install.mysql.utf8mb4.sql index 67dfcc0..cc6e9ec 100644 --- a/administrator/components/com_testquestions/sql/install.mysql.utf8mb4.sql +++ b/administrator/components/com_testquestions/sql/install.mysql.utf8mb4.sql @@ -78,6 +78,8 @@ CREATE TABLE IF NOT EXISTS `#__testquestions_results` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `set_id` int unsigned NOT NULL, `participant_name` varchar(255) NOT NULL DEFAULT '', + `started` datetime NULL DEFAULT NULL, + `execution_time` int unsigned NOT NULL DEFAULT 0, `extra_time` smallint unsigned NOT NULL DEFAULT 0, `correct_count` smallint unsigned NOT NULL DEFAULT 0, `total_count` smallint unsigned NOT NULL DEFAULT 0, diff --git a/administrator/components/com_testquestions/sql/updates/mysql/1.19.0.sql b/administrator/components/com_testquestions/sql/updates/mysql/1.19.0.sql new file mode 100644 index 0000000..4a32076 --- /dev/null +++ b/administrator/components/com_testquestions/sql/updates/mysql/1.19.0.sql @@ -0,0 +1,3 @@ +ALTER TABLE `#__testquestions_results` + ADD COLUMN `started` datetime NULL DEFAULT NULL AFTER `participant_name`, + ADD COLUMN `execution_time` int unsigned NOT NULL DEFAULT 0 AFTER `started`; diff --git a/administrator/components/com_testquestions/tmpl/result/default.php b/administrator/components/com_testquestions/tmpl/result/default.php index 34a6f2e..47d9d7b 100644 --- a/administrator/components/com_testquestions/tmpl/result/default.php +++ b/administrator/components/com_testquestions/tmpl/result/default.php @@ -1,12 +1,16 @@