diff --git a/www/pages/content/versandarten_neu.tpl b/www/pages/content/versandarten_neu.tpl index 67c59ca7..b93175a8 100644 --- a/www/pages/content/versandarten_neu.tpl +++ b/www/pages/content/versandarten_neu.tpl @@ -23,6 +23,9 @@ SPDX-License-Identifier: LicenseRef-EGPL-3.1 [MODULEINSTALLIERT] [TAB1NEXT] +
+ +
@@ -35,4 +38,4 @@ SPDX-License-Identifier: LicenseRef-EGPL-3.1 :pages="pages" :allowClose="allowClose" :pagination="pagination"> - \ No newline at end of file + diff --git a/www/pages/versandarten.php b/www/pages/versandarten.php index c39f4c8d..c60a2ec0 100644 --- a/www/pages/versandarten.php +++ b/www/pages/versandarten.php @@ -56,6 +56,7 @@ class Versandarten { // ab hier alle Action Handler definieren die das Modul hat $this->app->ActionHandler("create", "VersandartenCreate"); + $this->app->ActionHandler("neusonstige", "VersandartenNeuSonstige"); $this->app->ActionHandler("edit", "VersandartenEdit"); $this->app->ActionHandler("list", "VersandartenList"); $this->app->ActionHandler("delete", "VersandartenDelete"); @@ -153,6 +154,13 @@ class Versandarten { return $erg; } + public function VersandartenNeuSonstige() { + $sql = "INSERT INTO versandarten (aktiv) VALUES (1)"; + $this->app->DB->Insert($sql); + $id = $this->app->DB->GetInsertID(); + $this->app->Location->execute('index.php?module=versandarten&action=edit&id='.$id); + } + /** @noinspection PhpUnused */ public function VersandartenEdit(): void {