app=&$app; $this->app->ActionHandlerInit($this); $this->app->ActionHandler("create","Adresse_typCreate"); $this->app->ActionHandler("edit","Adresse_typEdit"); $this->app->ActionHandler("list","Adresse_typList"); $this->app->ActionHandler("delete","Adresse_typDelete"); $this->app->erp->Headlines('Adresse Typ'); $this->app->ActionHandlerListen($app); } function Adresse_typCreate() { $this->Adresse_typMenu(); parent::Adresse_typCreate(); } function Adresse_typList() { $this->Adresse_typMenu(); parent::Adresse_typList(); } function Adresse_typMenu() { $id = $this->app->Secure->GetGET("id"); $this->app->erp->MenuEintrag("index.php?module=adresse_typ&action=create","Neue Versandart anlegen"); if($this->app->Secure->GetGET("action")=="list") { $this->app->erp->MenuEintrag("index.php?module=adresse_typ&action=list","Übersicht"); $this->app->erp->MenuEintrag("index.php?module=einstellungen&action=list","Zurück zur Übersicht"); } else if($this->app->Secure->GetGET("action")=="edit") $this->app->erp->MenuEintrag("index.php?module=adresse_typ&action=edit&id=$id","Details"); else $this->app->erp->MenuEintrag("index.php?module=adresse_typ&action=list","Zurück zur Übersicht"); } function Adresse_typEdit() { $this->Adresse_typMenu(); parent::Adresse_typEdit(); } function Adresse_typDelete() { $id = $this->app->Secure->GetGET("id"); $msg = $this->app->erp->base64_url_encode("
Die Versandart wurde gelöscht!
"); $this->app->DB->Update("DELETE FROM adresse_typ WHERE id='$id' LIMIT 1"); header("Location: index.php?module=adresse_typ&action=list&msg=$msg"); exit; } }