Ejemplo n.º 1
0
						</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">
						<fieldset>
Ejemplo n.º 2
0
/**
 * 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>';
}