$kontakt = new kontakt();
         $kontakt->person_id = $person->person_id;
         $kontakt->kontakttyp = 'telefon';
         $kontakt->kontakt = $telefon;
         $kontakt->zustellung = true;
         $kontakt->insertamum = date('Y-m-d H:i:s');
         $kontakt->insertvon = $user;
         $kontakt->new = true;
         if (!$kontakt->save()) {
             $error = true;
             $errormsg = 'Fehler beim Speichern der Telefonnummer';
         }
     }
     //Mobiltelefonnummer speichern
     if ($mobil != '') {
         $kontakt = new kontakt();
         $kontakt->person_id = $person->person_id;
         $kontakt->kontakttyp = 'mobil';
         $kontakt->kontakt = $mobil;
         $kontakt->zustellung = true;
         $kontakt->insertamum = date('Y-m-d H:i:s');
         $kontakt->insertvon = $user;
         $kontakt->new = true;
         if (!$kontakt->save()) {
             $error = true;
             $errormsg = 'Fehler beim Speichern der Mobiltelefonnummer';
         }
     }
 }
 if (!$error) {
     $db->db_query('COMMIT');
示例#2
0
							Weiter
						</button>
					</form>
					<?php 
echo $message;
?>
				</div>
				<div role="tabpanel" class="tab-pane" id="kontakt">
					<h2>Kontaktinformationen</h2>
					<?php 
$nation = new nation();
$nation->getAll($ohnesperre = true);
$kontakt = new kontakt();
$kontakt->load_persKontakttyp($person->person_id, 'email');
$email = isset($kontakt->result[0]->kontakt) ? $kontakt->result[0]->kontakt : '';
$kontakt_t = new kontakt();
$kontakt_t->load_persKontakttyp($person->person_id, 'telefon');
$telefon = isset($kontakt_t->result[0]->kontakt) ? $kontakt_t->result[0]->kontakt : '';
$adresse = new adresse();
$adresse->load_pers($person->person_id);
$strasse = isset($adresse->result[0]->strasse) ? $adresse->result[0]->strasse : '';
$plz = isset($adresse->result[0]->plz) ? $adresse->result[0]->plz : '';
$ort = isset($adresse->result[0]->ort) ? $adresse->result[0]->ort : '';
$adr_nation = isset($adresse->result[0]->nation) ? $adresse->result[0]->nation : '';
?>


					<form method="POST" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
?active=dokumente" class="form-horizontal">
 *          Andreas Oesterreicher <*****@*****.**> and
 *          Rudolf Hangl <*****@*****.**>.
 */
// header für no cache
header("Cache-Control: no-cache");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Expires Mon, 26 Jul 1997 05:00:00 GMT");
header("Pragma: no-cache");
// content type setzen
header("Content-type: application/xhtml+xml");
// xml
echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
// DAO
require_once '../config/vilesci.config.inc.php';
require_once '../include/kontakt.class.php';
$kontakt = new kontakt();
$rdf_url = 'http://www.technikum-wien.at/kontakttyp';
echo '
<RDF:RDF
	xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:KONTAKTTYP="' . $rdf_url . '/rdf#"
>

   <RDF:Seq about="' . $rdf_url . '/liste">
';
if ($kontakt->getKontakttyp()) {
    foreach ($kontakt->result as $row) {
        echo '
	      <RDF:li>
	         <RDF:Description  id="' . $row->kontakttyp . '"  about="' . $rdf_url . '/' . $row->kontakttyp . '" >
	            <KONTAKTTYP:kontakttyp><![CDATA[' . $row->kontakttyp . ']]></KONTAKTTYP:kontakttyp>
示例#4
0
// DAO
require_once '../config/vilesci.config.inc.php';
require_once '../include/kontakt.class.php';
require_once '../include/datum.class.php';
if (isset($_GET['person_id'])) {
    $person_id = $_GET['person_id'];
} else {
    $person_id = '';
}
if (isset($_GET['kontakt_id'])) {
    $kontakt_id = $_GET['kontakt_id'];
} else {
    $kontakt_id = '';
}
$datum = new datum();
$kontakt = new kontakt();
$rdf_url = 'http://www.technikum-wien.at/kontakt';
echo '
<RDF:RDF
	xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:KONTAKT="' . $rdf_url . '/rdf#"
>

   <RDF:Seq about="' . $rdf_url . '/liste">
';
if ($kontakt_id != '') {
    $kontakt->load($kontakt_id);
    draw_rdf($kontakt);
} else {
    $kontakt->load_pers($person_id);
    foreach ($kontakt->result as $row) {
示例#5
0
             $return = true;
             $data = $kontakt->kontakt_id;
         } else {
             $return = false;
             $errormsg = $kontakt->errormsg;
         }
     }
 } elseif (isset($_POST['type']) && $_POST['type'] == 'kontaktdelete') {
     if ($_POST['studiengang_kz'] != '' && !$rechte->isBerechtigt('admin', $_POST['studiengang_kz'], 'suid') && !$rechte->isBerechtigt('assistenz', $_POST['studiengang_kz'], 'suid') || $_POST['studiengang_kz'] == '' && !$rechte->isBerechtigt('admin', null, 'suid') && !$rechte->isBerechtigt('mitarbeiter', null, 'suid')) {
         $return = false;
         $errormsg = 'Keine Berechtigung';
         $data = '';
         $error = true;
     } else {
         //Loescht Kontaktdaten aus der Datenbank
         $kontakt = new kontakt();
         if ($kontakt->delete($_POST['kontakt_id'])) {
             $return = true;
         } else {
             $return = false;
             $errormsg = $kontakt->errormsg;
         }
     }
 } elseif (isset($_POST['type']) && $_POST['type'] == 'bankverbindungsave') {
     if (!$rechte->isberechtigt('mitarbeiter/bankdaten') && !$rechte->isberechtigt('student/bankdaten')) {
         $return = false;
         $errormsg = 'Keine Berechtigung';
         $data = '';
         $error = true;
     } else {
         //Speichert die Kontaktdaten in die Datenbank
/**
 * Erimtteln der Firmen.- Standortdaten
 *
 * @param $firma_id_geloescht
 * @param $firma_id_bleibt
 */
function getFirmaUndStandorte($firma_id_geloescht, $firma_id_bleibt)
{
    //----------------------------------------------------------------------------------------
    //  zwei Teileanzeigen a) wird geloescht b) bleibt
    //----------------------------------------------------------------------------------------
    // -------------------------------------------------------------------------
    // Firmenstammdaten holen
    // -------------------------------------------------------------------------
    $firma = new firma();
    if (!$firma->load($firma_id_geloescht)) {
        exit('Firma wird gel&ouml;scht Fehler :' . $firma->errormsg);
    }
    $geloescht = $firma;
    $firma = new firma();
    if (!$firma->load($firma_id_bleibt)) {
        exit('Welche Firma bleibt Fehler :' . $firma->errormsg);
    }
    $bleibt = $firma;
    // -------------------------------------------------------------------------
    // Standorte je Firmenstammdaten holen
    // -------------------------------------------------------------------------
    // - wird geloescht
    $standort_obj = new standort();
    $standort_obj->result = array();
    $standort_obj->load_firma($geloescht->firma_id);
    $geloescht->standorte = array();
    if ($standort_obj->result) {
        $geloescht->standorte = $standort_obj->result;
        for ($i = 0; $i < count($geloescht->standorte); $i++) {
            // Adresse zum Standort
            $adresse_obj = new adresse();
            $geloescht->standorte[$i]->adresse = array();
            if ($geloescht->standorte[$i]->adresse_id && $adresse_obj->load($geloescht->standorte[$i]->adresse_id)) {
                $geloescht->standorte[$i]->adresse = $adresse_obj;
            }
            // Kontakte zum Standort
            $kontakt_obj = new kontakt();
            $geloescht->standorte[$i]->kontakt = array();
            if ($geloescht->standorte[$i]->standort_id && $kontakt_obj->load_standort($geloescht->standorte[$i]->standort_id)) {
                $geloescht->standorte[$i]->kontakt = $kontakt_obj;
            }
            // Personen zum Standort
            $personfunktion_obj = new person();
            if (!isset($geloescht->personen[$i])) {
                $geloescht->personen[$i] = new stdclass();
            }
            $geloescht->personen[$i]->personfunktion = array();
            if ($geloescht->standorte[$i]->standort_id && $personfunktion_obj->load_personfunktion($geloescht->standorte[$i]->standort_id, '', $geloescht->firma_id)) {
                $geloescht->standorte[$i]->personfunktion = $personfunktion_obj;
            }
        }
    }
    $firmaorganisationseinheit_obj = new firma();
    $geloescht->firmaorganisationseinheit = array();
    if (!$firmaorganisationseinheit_obj->get_firmaorganisationseinheit($geloescht->firma_id)) {
        $geloescht->firmaorganisationseinheit = array();
    }
    if ($firmaorganisationseinheit_obj->result) {
        $geloescht->firmaorganisationseinheit = $firmaorganisationseinheit_obj->result;
    }
    // - bleibt
    $standort_obj = new standort();
    $standort_obj->result = array();
    $standort_obj->load_firma($bleibt->firma_id);
    $bleibt->standorte = array();
    if ($standort_obj->result) {
        $bleibt->standorte = $standort_obj->result;
        for ($i = 0; $i < count($bleibt->standorte); $i++) {
            // Adresse zum Standort
            $adresse_obj = new adresse();
            $bleibt->standorte[$i]->adresse = array();
            if ($bleibt->standorte[$i]->adresse_id && $adresse_obj->load($bleibt->standorte[$i]->adresse_id)) {
                $bleibt->standorte[$i]->adresse = $adresse_obj;
            }
            // Kontakte zum Standort
            $kontakt_obj = new kontakt();
            $bleibt->standorte[$i]->kontakt = array();
            if ($bleibt->standorte[$i]->standort_id && $kontakt_obj->load_standort($bleibt->standorte[$i]->standort_id)) {
                if (!isset($bleibt->standorte[$i])) {
                    $bleibt->standorte[$i] = new stdClass();
                }
                $bleibt->standorte[$i]->kontakt = $kontakt_obj;
            }
            // Personen zum Standort
            $personfunktion_obj = new person();
            if (!isset($bleibt->personen[$i])) {
                $bleibt->personen[$i] = new stdClass();
            }
            $bleibt->personen[$i]->personfunktion = array();
            if ($bleibt->standorte[$i]->standort_id && $personfunktion_obj->load_personfunktion($bleibt->standorte[$i]->standort_id, '', $bleibt->firma_id)) {
                $bleibt->standorte[$i]->personfunktion = $personfunktion_obj;
            }
        }
    }
    $firmaorganisationseinheit_obj = new firma();
    $bleibt->firmaorganisationseinheit = array();
    if (!$firmaorganisationseinheit_obj->get_firmaorganisationseinheit($bleibt->firma_id)) {
        $bleibt->firmaorganisationseinheit = array();
    }
    if ($firmaorganisationseinheit_obj->result) {
        $bleibt->firmaorganisationseinheit = $firmaorganisationseinheit_obj->result;
    }
    return $standort = array("geloescht" => $geloescht, "bleibt" => $bleibt);
}
示例#7
0
     $preincoming->zgv_ort = $_REQUEST['zgv_ort'];
     $preincoming->anmerkung = $_REQUEST['anmerkung'];
     $preincoming->zgv_datum = $date->formatDatum($_REQUEST['zgv_datum'], 'Y-m-d');
     $preincoming->zgvmaster = $_REQUEST['zgv_master'];
     $preincoming->zgvmaster_datum = $date->formatDatum($_REQUEST['zgv_master_datum'], 'Y-m-d');
     $preincoming->zgvmaster_ort = $_REQUEST['zgv_master_ort'];
     $preincoming->zgvmaster_name = $_REQUEST['zgv_master_name'];
     if (!$preincoming->save()) {
         $save = false;
     }
     if ($save) {
         echo $p->t('global/erfolgreichgespeichert');
     }
 }
 $personEmergency = new person();
 $personEmergencyKontakt = new kontakt();
 $emTelefon = "";
 $emTelefonId = "";
 $emEmail = "";
 $emEmailId = "";
 if ($preincoming->person_id_emergency != "") {
     $personEmergency->load($preincoming->person_id_emergency);
     $personEmergencyKontakt->load_pers($preincoming->person_id_emergency);
     foreach ($personEmergencyKontakt->result as $emKontakt) {
         if ($emKontakt->kontakttyp == "telefon") {
             $emTelefon = $emKontakt->kontakt;
             $emTelefonId = $emKontakt->kontakt_id;
         }
         if ($emKontakt->kontakttyp == "email") {
             $emEmail = $emKontakt->kontakt;
             $emEmailId = $emKontakt->kontakt_id;
/**
 * Erstellt den Tab zur Anzeige der Personendetails
 */
function print_personendetails()
{
    global $person, $inc, $preincoming_id, $datum_obj;
    $adresse = new adresse();
    $adresse->load_pers($person->person_id);
    if (isset($adresse->result[0])) {
        $adresse = $adresse->result[0];
    }
    $kontakt = new kontakt();
    $kontakt->load_persKontakttyp($person->person_id, 'email');
    if (isset($kontakt->result[0])) {
        $kontakt = $kontakt->result[0];
    }
    $firma = new firma();
    $firma->getFirmen('Partneruniversität');
    echo '<fieldset>';
    echo '<form action="' . $_SERVER['PHP_SELF'] . '?action=personendetails&method=saveperson&preincoming_id=' . $preincoming_id . '" method="POST">';
    echo '<input type="hidden" name="person_id" value="' . $person->person_id . '">';
    echo '<input type="hidden" name="adresse_id" value="' . $adresse->adresse_id . '">';
    echo '<input type="hidden" name="kontakt_id" value="' . $kontakt->kontakt_id . '">';
    echo '<table>
			<tr>
				<td>TitelPre</td>
				<td><input type="text" name="titelpre" size="10" value="' . $person->titelpre . '"></td>
				<td></td>
				<td>Strasse</td>
				<td colspan="3"><input type="text" name="strasse" size="50" value="' . $adresse->strasse . '"></td>
			</tr>
			<tr>
				<td>Vorname</td>
				<td><input type="text" name="vorname" size="30" value="' . $person->vorname . '"></td>
				<td></td>
				<td>Plz / Ort</td>
				<td colspan="3">
					<input type="text" size="5" name="plz" value="' . $adresse->plz . '">
					<input type="text" name="ort" size="40" value="' . $adresse->ort . '">
				</td>
			</tr>
			<tr>
				<td>Nachname</td>
				<td><input type="text" name="nachname" size="30" value="' . $person->nachname . '"></td>
				<td></td>
				<td>Nation</td>
				<td colspan="3">
					<SELECT name="nation">
					<OPTION value="">-- keine Auswahl --</OPTION>
					';
    $nation = new nation();
    $datum = new datum();
    $nation->getAll();
    foreach ($nation->nation as $row) {
        if ($adresse->nation == $row->code) {
            $selected = 'selected';
        } else {
            $selected = '';
        }
        echo '<OPTION value="' . $row->code . '" ' . $selected . '>' . $row->kurztext . '</OPTION>';
    }
    echo '
					</SELECT>
				</td>
			</tr>
			<tr>
				<td>TitelPost</td>
				<td><input type="text" name="titelpost" size="10" value="' . $person->titelpost . '"></td>
				<td></td>
				<td>E-Mail</td>
				<td colspan="2"><input type="text" name="email" size="50" value="' . $kontakt->kontakt . '"></td>
			</tr>
            <tr>
				<td>Geburtsdatum</td>
				<td>' . $datum->formatDatum($person->gebdatum, 'd.m.Y') . '</td>
				<td></td>
				<td>&nbsp;</td>
                <td>&nbsp;</td>
			</tr>
            <tr>
                <td rowspan="2">Anmerkungen</td>
                <td colspan="2" rowspan="2"><textarea name="anmerkung" rows="4" cols="33">' . $inc->anmerkung . '</textarea></td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
			<tr>
                <td valign="top">Foto</td>
                <td ><img id="personimage" src="../../cis/public/bild.php?src=person&person_id=' . $person->person_id . '" alt="' . $person->person_id . '" height="100px" width="75px"></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
			</tr>
			<tr>
				<td>ZGV 1</td>
				<td><input type="text" name="zgv" size="30" value="' . $inc->zgv . '"></td>
				<td></td>
				<td>ZGV MSc</td>
				<td colspan="2"><input type="text" name="zgv_master" size="30" value="' . $inc->zgvmaster . '"></td>
			</tr>
			<tr>
				<td>ZGV 1 Ort</td>
				<td><input type="text" name="zgv_ort" size="30" value="' . $inc->zgv_ort . '"></td>
				<td></td>
				<td>ZGV MSc Ort</td>
				<td colspan="2"><input type="text" name="zgv_master_ort" size="30" value="' . $inc->zgvmaster_ort . '"></td>
			</tr>
			<tr>
				<td>ZGV 1 Institution</td>
				<td><input type="text" name="zgv_name" size="30" value="' . $inc->zgv_name . '"></td>
				<td></td>
				<td>ZGV MSc Institution</td>
				<td colspan="2"><input type="text" name="zgv_master_name" size="30" value="' . $inc->zgvmaster_name . '"></td>
			</tr>
			<tr>
				<td>ZGV 1 Datum</td>
				<td><input type="text" name="zgv_datum" id="zgv_datum" size="30" value="' . $datum_obj->formatDatum($inc->zgv_datum, 'd.m.Y') . '">
					<script type="text/javascript">
					$(document).ready(function() 
					{ 
					    $( "#zgv_datum" ).datepicker($.datepicker.regional["de"]);
					});
					</script>	
				</td>
				<td></td>
				<td>ZGV MSc Datum</td>
				<td colspan="2"><input type="text" id="zgv_master_datum" name="zgv_master_datum" size="30" value="' . $datum_obj->formatDatum($inc->zgvmaster_datum, 'd.m.Y') . '">
					<script type="text/javascript">
					$(document).ready(function() 
					{ 
					    $( "#zgv_master_datum" ).datepicker($.datepicker.regional["de"]);
					});
					</script>				
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
			</tr>
			<tr>
				<td>Universität</td>
				<td colspan="2"><input type="text" name="universitaet" size="30" value="' . $inc->universitaet . '"></td>	
				<td>Jahre</td>
				<td colspan="2"><input type="text" name="jahre" size="5" value="' . $inc->jahre . '"></td>	
				
			</tr>
			<tr>
				<td>Universität Dropdown</td>
				<td colspan ="4"><SELECT name="firma"> 
						<option value="firma_auswahl">-- other --</option>';
    foreach ($firma->result as $firm) {
        $selected = '';
        if ($firm->firma_id == $inc->firma_id) {
            $selected = 'selected';
        }
        echo "<option value='{$firm->firma_id}' {$selected}>{$firm->name}</option>";
    }
    echo '			</td>
			</tr>
			<tr>
				<td>Studienbezeichnung</td>
				<td colspan="2"><input type="text" name="studienbezeichnung" size="30" value="' . $inc->program_name . '"></td>	
				<td></td>	
				<td>
				BSC
				<input type="checkbox" name="bachelor" ' . ($inc->bachelor ? 'checked' : '') . '>
				MSC
				<input type="checkbox" name="master" ' . ($inc->master ? 'checked' : '') . '></td>
				<td></td>
			</tr>
			<tr>
				<td>&nbsp;</td>	
				<td></td>
			</tr>	
			<tr>
				<td>Mobilitätsprogramm</td>
				<td><SELECT name="mobilitaetsprogramm">
						<OPTION value="">-- keine Auswahl --</OPTION>';
    $mob = new mobilitaetsprogramm();
    $mob->getAll();
    foreach ($mob->result as $row) {
        if ($row->mobilitaetsprogramm_code == $inc->mobilitaetsprogramm_code) {
            $selected = 'selected';
        } else {
            $selected = '';
        }
        echo '<OPTION value="' . $row->mobilitaetsprogramm_code . '" ' . $selected . '>' . $row->kurzbz . '</OPTION>';
    }
    echo '</SELECT>
				</td>
				<td></td>
				<td>Von</td>
				<td>
					<input type="text" id="von" size="10" name="von" value="' . $datum_obj->formatDatum($inc->von, 'd.m.Y') . '">
					<script type="text/javascript">
					$(document).ready(function() 
					{ 
					    $( "#von" ).datepicker($.datepicker.regional["de"]);
					});
					</script>								
				</td>
				<td>Zugangscode:</td>
				<td><b>' . $person->zugangscode . '</b></td>
			</tr>
			<tr>
				<td>Zweck</td>
				<td><SELECT name="zweck">
						<OPTION value="">-- keine Auswahl --</OPTION>';
    $zweck = new zweck();
    $zweck->getAll();
    foreach ($zweck->result as $row) {
        if ($row->zweck_code == $inc->zweck_code) {
            $selected = 'selected';
        } else {
            $selected = '';
        }
        echo '<OPTION value="' . $row->zweck_code . '" ' . $selected . '>' . $row->bezeichnung . '</OPTION>';
    }
    echo '</SELECT>
				</td>
				<td></td>
				<td>Bis</td>
				<td>
					<input type="text" name="bis" id="bis" size="10" value="' . $datum_obj->formatDatum($inc->bis, 'd.m.Y') . '">
					<script type="text/javascript">
					$(document).ready(function() 
					{ 
					    $( "#bis" ).datepicker($.datepicker.regional["de"]);
					});
					</script>		
				</td>
				
				<td>Aktiv
				<input type="checkbox" name="aktiv" ' . ($inc->aktiv ? 'checked' : '') . '></td>
			</tr>
			<tr>';
    $registriert = new datum();
    $insertamum = $registriert->formatDatum($inc->insertamum, 'Y-m-d');
    echo '			<td>Registriert am:</td>
				<td><input type="text" value="' . $insertamum . '" disabled></td>
			</tr>
			<tr>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td><input type="submit" name="save" value="Speichern"></td>
			</tr>
		</table>
			';
    echo '</form>';
    echo '</fieldset>';
    echo '
	<br>
	<fieldset>
		<legend>Übernahme ins FAS</legend>';
    if ($inc->uebernommen) {
        echo '<b>Diese Person wurde bereits ins FAS übernommen</b>';
    } else {
        echo '<form action="' . $_SERVER['PHP_SELF'] . '?action=personendetails&amp;method=fasuebernahme&amp;preincoming_id=' . $preincoming_id . '" method="POST">';
        echo 'Incoming für den Studiengang: <SELECT name="studiengang_kz">';
        $stg = new studiengang();
        $stg->getAll('typ, kurzbz');
        foreach ($stg->result as $row) {
            echo '<OPTION value="' . $row->studiengang_kz . '">' . $row->kuerzel . ' (' . $row->kurzbzlang . ') ' . $row->bezeichnung . '</OPTION>';
        }
        echo '</SELECT>';
        echo ' <input type="submit" name="uebernahme" value="Übernehmen">';
        echo '</form>';
    }
    echo '</fieldset>';
}
示例#9
0
            $plz = $adresse->plz;
            $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 . '">
echo "<table class='liste'><tr><th>TYP</th><th>KONTAKT</th><th>ZUSTELLUNG</th><th>ANMERKUNG</th><th>FIRMA</th></tr>";
$kontakt_obj = new kontakt();
$kontakt_obj->load_pers($person_id);
foreach ($kontakt_obj->result as $row) {
    echo '<tr class="liste1">';
    echo "<td>{$row->kontakttyp}</td>";
    echo "<td>{$row->kontakt}</td>";
    echo "<td>" . ($row->zustellung ? 'Ja' : 'Nein') . "</td>";
    echo "<td>{$row->anmerkung}</td>";
    echo "<td>" . ($row->firma_id != '' ? $firma_arr[$row->firma_id] : '') . "</td>";
    echo "<td><a href='" . $_SERVER['PHP_SELF'] . "?editkontakt=true&kontakt_id={$row->kontakt_id}&person_id={$person_id}'>bearbeiten</a></td>";
    echo "<td><a href='" . $_SERVER['PHP_SELF'] . "?deletekontakt=true&kontakt_id={$row->kontakt_id}&person_id={$person_id}' onclick='return confdel()'>loeschen</a></td>";
}
$savebuttonvalue = 'Neu';
if (isset($_GET['editkontakt'])) {
    $kontakt_obj = new kontakt();
    if ($kontakt_obj->load($kontakt_id)) {
        $kontakttyp = $kontakt_obj->kontakttyp;
        $zustellung = $kontakt_obj->zustellung;
        $anmerkung = $kontakt_obj->anmerkung;
        $kontakt = $kontakt_obj->kontakt;
        $firma_id = $kontakt_obj->firma_id;
        $standort_id = $kontakt_obj->standort_id;
        $savebuttonvalue = 'Speichern';
    } else {
        echo 'Fehler beim Laden' . $kontakt_id;
    }
} else {
    $kontakt_id = '';
    $kontakttyp = '';
    $kontakt = '';
 $studiengang = new studiengang();
 $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";