/* Konto aus einem Profil entfernen */ /* Konto aus einem Profil entfernen */ case "konto_del": // print_req(); if (isset($_REQUEST['profil_id']) && !empty($_REQUEST['profil_id']) && isset($_REQUEST['konto']) && !empty($_REQUEST['konto'])) { $weg = new weg(); $weg->konto_loeschen($_REQUEST['profil_id'], $_REQUEST['konto']); fehlermeldung_ausgeben("Konto {$konto} wurde gelöscht!"); } weiterleiten_in_sec('?daten=weg&option=assistent&schritt=2', 2); break; case "konto_zu_zeilen": $w = new weg(); // print_r($_SESSION); // print_req(); $w->hga_zeile_speichern($_SESSION['hga_profil_id'], $_REQUEST['konto'], $_REQUEST['art'], $_REQUEST['textbez'], $_REQUEST['genkey'], $_REQUEST['summe'], $_REQUEST['summe_hndl'], 'Wirtschaftseinheit', $_REQUEST['wirt_id']); weiterleiten('?daten=weg&option=assistent&schritt=2'); break; case "hk_verbrauch_send": // print_req(); $w = new weg(); $anz_e = count($_REQUEST['eig_id']); $p_id = $_REQUEST['p_id']; for ($a = 0; $a < $anz_e; $a++) { $eig_id = $_REQUEST['eig_id'][$a]; $betrag = $_REQUEST['hk_verbrauch'][$a]; $w->hk_verbrauch_eintragen($p_id, $eig_id, $betrag); } weiterleiten('index.php?daten=weg&option=hk_verbrauch_tab'); break; case "hk_verbrauch_tab":