From 24f57ec7576aede144f4487b51e82a17e9b93ce9 Mon Sep 17 00:00:00 2001 From: hydrax Date: Thu, 8 Jan 2026 18:57:09 +0100 Subject: [PATCH] Update: Berichtshefte ready for live --- PUBLIC.code-workspace | 2 +- WEBROOT/controller/DatabaseController.php | 4 - WEBROOT/index.php | 1 - .../ArbeitsberichteErstellen.php} | 2 +- .../Arbeitsberichte/ArbeitsberichteShow.php} | 4 +- .../overtime_corrections.json | 0 .../BerufsschulberichtErstellen.php | 124 ++++++++++++++++++ WEBROOT/services/test.php | 2 - .../templates/ServicesDashboardButtons.php | 5 +- 9 files changed, 131 insertions(+), 13 deletions(-) rename WEBROOT/services/{BerichteErstellen.php => Berichte/Arbeitsberichte/ArbeitsberichteErstellen.php} (94%) rename WEBROOT/services/{BerichteShow.php => Berichte/Arbeitsberichte/ArbeitsberichteShow.php} (95%) rename WEBROOT/services/{ => Berichte/Arbeitsberichte}/overtime_corrections.json (100%) create mode 100644 WEBROOT/services/Berichte/Berufsschulberichte/BerufsschulberichtErstellen.php diff --git a/PUBLIC.code-workspace b/PUBLIC.code-workspace index 8da00c6..3f45718 100644 --- a/PUBLIC.code-workspace +++ b/PUBLIC.code-workspace @@ -5,7 +5,7 @@ } ], "settings": { - "workbench.colorTheme": "Default Dark Modern", + "workbench.colorTheme": "Catppuccin Macchiato", "workbench.colorCustomizations": { "activityBar.background": "#00aeff75", "activityBar.foreground": "#000000", diff --git a/WEBROOT/controller/DatabaseController.php b/WEBROOT/controller/DatabaseController.php index 40227e2..541bfb7 100644 --- a/WEBROOT/controller/DatabaseController.php +++ b/WEBROOT/controller/DatabaseController.php @@ -26,10 +26,6 @@ function DatabaseShow($table, $columns = "*", $where = "", ...$values) { function DatabaseInsert($table, $columns, ...$values) { - - include_once '../moduls/ConsoleLog.php'; - ConsoleLog($values); - include_once 'DatabaseConnect.php'; $conn = db_connect(); diff --git a/WEBROOT/index.php b/WEBROOT/index.php index 8e47909..76df546 100644 --- a/WEBROOT/index.php +++ b/WEBROOT/index.php @@ -27,5 +27,4 @@ if (in_array($clientIP, $whitelist)) { } $allData = (new getSpecificData())->getAllData(); -ConsoleLog($allData); logging(); \ No newline at end of file diff --git a/WEBROOT/services/BerichteErstellen.php b/WEBROOT/services/Berichte/Arbeitsberichte/ArbeitsberichteErstellen.php similarity index 94% rename from WEBROOT/services/BerichteErstellen.php rename to WEBROOT/services/Berichte/Arbeitsberichte/ArbeitsberichteErstellen.php index b91ec6d..cd51243 100644 --- a/WEBROOT/services/BerichteErstellen.php +++ b/WEBROOT/services/Berichte/Arbeitsberichte/ArbeitsberichteErstellen.php @@ -1,5 +1,5 @@ diff --git a/WEBROOT/services/BerichteShow.php b/WEBROOT/services/Berichte/Arbeitsberichte/ArbeitsberichteShow.php similarity index 95% rename from WEBROOT/services/BerichteShow.php rename to WEBROOT/services/Berichte/Arbeitsberichte/ArbeitsberichteShow.php index f0e1f48..88d85fa 100644 --- a/WEBROOT/services/BerichteShow.php +++ b/WEBROOT/services/Berichte/Arbeitsberichte/ArbeitsberichteShow.php @@ -1,6 +1,6 @@ + + + + + + +

Berufsschulbericht

+
+ + + + + +
+ Stunde + + + + + + + + + + + + +
+ + +
+ + + + + + + + \ No newline at end of file diff --git a/WEBROOT/services/test.php b/WEBROOT/services/test.php index 2c2a973..fc24d38 100644 --- a/WEBROOT/services/test.php +++ b/WEBROOT/services/test.php @@ -25,8 +25,6 @@ $lehrer = DatabaseShow( "ID, NAME" ); -ConsoleLog([$berudata, $fach, $raum, $lehrer]); - $json = json_encode([$fach, $raum, $lehrer], JSON_UNESCAPED_UNICODE); ?> diff --git a/WEBROOT/templates/ServicesDashboardButtons.php b/WEBROOT/templates/ServicesDashboardButtons.php index 3eb8c95..cc0baf0 100644 --- a/WEBROOT/templates/ServicesDashboardButtons.php +++ b/WEBROOT/templates/ServicesDashboardButtons.php @@ -10,7 +10,8 @@ $buttons = [ ["name" => "Vertretungsplan", "link" => "$routing=https://sbsz-hsp.de/sdb/getPlan", "color" => $buttoncoloractive], ["name" => "Stundenplan Sophia", "link" => "$routing=/services/StundenplanSophia.php", "color" => $buttoncoloractive], ["name" => "Stundenplan Bruno", "link" => "$routing=/services/StundenplanBruno.php", "color" => $buttoncoloractive], - ["name" => "Berichte Erstellen", "link" => "$routing=/services/BerichteErstellen.php", "color" => $buttoncoloractive], + ["name" => "Arbeitsberichte Erstellen", "link" => "$routing=/services/Berichte/Arbeitsberichte/ArbeitsberichteErstellen.php", "color" => $buttoncoloractive], + ["name" => "Berufsschulberichte Erstellen", "link" => "$routing=/services/Berichte/Berufsschulberichte/BerufsschulberichtErstellen.php", "color" => $buttoncoloractive], ]], ["section" => "Webserver", "buttons" => [ @@ -20,4 +21,4 @@ $buttons = [ ["name" => "Blackpi-Webcam", "link" => "../../GLOBAL/routes.php/?website=/Webcam/", "color" => $buttoncolorinactive], ]], -]; \ No newline at end of file +];