$ort = $adresse->ort; $nation = $adresse->nation; if ($nation == '') { $nation = 'A'; } //Kontaktdaten Laden $kontakt = new kontakt(); $kontakt->loadFirmaKontakttyp($standort_id, 'telefon'); $telefon = $kontakt->kontakt; $telefon_id = $kontakt->kontakt_id; $kontakt = new kontakt(); $kontakt->loadFirmaKontakttyp($standort_id, 'fax'); $fax = $kontakt->kontakt; $fax_id = $kontakt->kontakt_id; $kontakt = new kontakt(); $kontakt->loadFirmaKontakttyp($standort_id, 'email'); $email = $kontakt->kontakt; $email_id = $kontakt->kontakt_id; } } echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="POST" name="firmaForm">'; echo ' <input type="hidden" name="firma_id" value="' . $firma_id . '"> <input type="hidden" name="standort_id" value="' . $standort_id . '"> <input type="hidden" name="adresse_id" value="' . $adresse_id . '"> <input type="hidden" name="telefon_id" value="' . $telefon_id . '"> <input type="hidden" name="fax_id" value="' . $fax_id . '"> <input type="hidden" name="email_id" value="' . $email_id . '"> <input type="hidden" name="kundennummer_erhalter_id" value="' . $kundennummer_erhalter_id . '"> <input type="hidden" name="kundennummer_gmbh_id" value="' . $kundennummer_gmbh_id . '"> <table>
$firma = new firma(); $standort = new standort(); $empfaengeradresse = new adresse(); if ($bestellung->firma_id != '') { $firma->load($bestellung->firma_id); $kundennummer = $firma->get_kundennummer($bestellung->firma_id, $kostenstelle->oe_kurzbz); $standort->load_firma($firma->firma_id); if (isset($standort->result[0])) { $standort = $standort->result[0]; } $empfaengeradresse->load($standort->adresse_id); $kontakt = new kontakt(); $kontakt->loadFirmaKontakttyp($standort->standort_id, 'telefon'); $telefon = $kontakt->kontakt; $kontakt = new kontakt(); $kontakt->loadFirmaKontakttyp($standort->standort_id, 'fax'); $fax = $kontakt->kontakt; } else { $telefon = ''; $fax = ''; $kundennummer = ''; } $datum_obj = new datum(); header("Content-type: application/xhtml+xml"); echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'; echo "\n<bestellungen><bestellung>\n"; echo "\t<bestell_nr><![CDATA[{$bestellung->bestell_nr}]]></bestell_nr>\n"; echo "\t<titel><![CDATA[{$bestellung->titel}]]></titel>\n"; echo "\t<liefertermin><![CDATA[{$bestellung->liefertermin}]]></liefertermin>\n"; echo "\t<kundennummer><![CDATA[{$kundennummer}]]></kundennummer>\n"; echo "\t<kontaktperson>\n";