versandart added button to create versandart without modul
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user