Пример #1
0
     $form->ende_formular();
     break;
 case "partner_im_detail":
     $form = new formular();
     $form->erstelle_formular("Partnerdetails", NULL);
     $partner = new partner();
     $partner_id = $_REQUEST[partner_id];
     $partner->partnerdaten_anzeigen($partner_id);
     $d = new detail();
     $d->detailsanzeigen('PARTNER_LIEFERANT', $partner_id);
     $form->ende_formular();
     break;
 case "partner_aendern":
     if (!empty($_REQUEST[partner_id])) {
         $partner = new partners();
         $partner->form_partner_aendern($_REQUEST[partner_id]);
     } else {
         echo "Bitte den Partner zum Ändern wählen.";
     }
     break;
 case "partner_aendern_send":
     if ($_POST) {
         if (!empty($_POST[partner_dat]) && !empty($_POST[partner_id]) && !empty($_POST[partnername]) && !empty($_POST[strasse]) && !empty($_POST[hausnummer]) && !empty($_POST[plz]) && !empty($_POST[ort]) && !empty($_POST[land])) {
             echo "alles OK";
             $p = new partners();
             $p->partner_aendern($_POST[partner_dat], $_POST[partner_id], $_POST[partnername], $_POST[strasse], $_POST[hausnummer], $_POST[plz], $_POST[ort], $_POST[land]);
             weiterleiten("?daten=partner&option=partner_im_detail&partner_id={$_POST['partner_id']}");
         } else {
             echo "DATEN UNVOLLSTÄNDIG";
         }
     } else {