mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00:28 +01:00
versandart added button to create versandart without modul
This commit is contained in:
parent
1fe0aea620
commit
f55f801cee
@ -23,6 +23,9 @@ SPDX-License-Identifier: LicenseRef-EGPL-3.1
|
||||
[MODULEINSTALLIERT]
|
||||
</fieldset>
|
||||
[TAB1NEXT]
|
||||
<form id="neu" action="index.php?module=versandarten&action=neusonstige" method="post">
|
||||
<button name="submit" value="neusonstige" class="ui-button-icon">Versandart ohne Modul anlegen</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- tab view schließen -->
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user