Пример #1
0
include_once "classes/class_personal.php";
if (isset($_REQUEST["option"])) {
    $option = $_REQUEST["option"];
} else {
    $option = 'default';
}
/* Optionsschalter */
switch ($option) {
    default:
        echo "WEITERE WAHL TREFFEN!";
        break;
    case "lohn_gehalt_sepa":
        $pe = new personal();
        $sep = new sepa();
        $sep->sepa_sammler_anzeigen($_SESSION['geldkonto_id'], 'LOHN');
        $pe->form_lohn_gehalt_sepa();
        break;
    case "sepa_sammler_hinzu":
        // print_req();
        $sep = new sepa();
        $vzweck = $_POST['vzweck'];
        $von_gk_id = $_POST['gk_id'];
        $_SESSION['geldkonto_id'] = $von_gk_id;
        $an_sepa_gk_id = $_POST['empf_sepa_gk_id'];
        $kat = $_POST['kat'];
        $kos_typ = $_POST['kos_typ'];
        $kos_id = $_POST['kos_id'];
        $konto = $_POST['konto'];
        $betrag = nummer_komma2punkt($_POST['betrag']);
        if ($betrag < 0) {
            die('ABBRUCH MINUSBETRAG');