$preoutgoingFirma = new preoutgoing();
 $preoutgoingFirma->loadAuswahl($preoutgoing_id);
 $preoutgoing_firma = $preoutgoingFirma->firma_id;
 $prestudent->getLastStatus($student->prestudent_id);
 $firma = new firma();
 $nation = new nation();
 if ($preoutgoing_firma != '') {
     $standort = new standort();
     $adresse = new adresse();
     $firma->load($preoutgoing_firma);
     $standort->load_firma($firma->firma_id);
     $adresse->load($standort->adresse_id);
     $nation->load($adresse->nation);
 }
 $preoutgoingLv = new preoutgoing();
 $preoutgoingLv->loadLvs($preoutgoing_id);
 echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?> ';
 echo '<learningagreement_outgoing>';
 echo '  <outgoing>';
 echo '      <vorname><![CDATA[' . $benutzer->vorname . ']]></vorname>';
 echo '      <nachname><![CDATA[' . $benutzer->nachname . ']]></nachname>';
 echo '      <titel_pre><![CDATA[' . $benutzer->titelpre . ']]></titel_pre>';
 echo '      <titel_post><![CDATA[' . $benutzer->titelpost . ']]></titel_post>';
 echo '      <email><![CDATA[' . $benutzer->uid . '@' . DOMAIN . ']]></email>';
 echo '      <sending_institution>FH Technikum Wien</sending_institution>';
 echo '      <sending_institution_nation>Austria</sending_institution_nation>';
 echo '      <studiengang><![CDATA[' . $studiengang->english . ']]></studiengang>';
 echo '      <receiving_institution><![CDATA[' . $firma->name . ']]></receiving_institution>';
 echo '      <receiving_institution_nation><![CDATA[' . $nation->engltext . ']]></receiving_institution_nation>';
 echo '      <semester><![CDATA[' . $student->semester . ']]></semester>';
 echo '      <studiensemester><![CDATA[' . $prestudent->studiensemester_kurzbz . ']]></studiensemester>';
Exemplo n.º 2
0
function print_lvs()
{
    global $person, $preoutgoing_id, $datum;
    $preoutgoingLv = new preoutgoing();
    $preoutgoingLv->loadLvs($preoutgoing_id);
    echo '   
        <script type="text/javascript">
        $(document).ready(function() 
		{ 
		    $("#Lehrveranstaltung").tablesorter(
			{
				sortList: [[0,0]],
				widgets: ["zebra"]
			}); 
		} 
        ); 
        </script>';
    echo '<fieldset>';
    echo 'Folgende Lehrveranstaltungen wurden eingetragen <br><br>
        <table id="Lehrveranstaltung" class="tablesorter">
        <thead>
            <tr>
            <th>Bezeichnung</th>
            <th>ECTS</th>
            <th></th>
            </tr>
        </thead>
        <tbody>';
    foreach ($preoutgoingLv->lehrveranstaltungen as $lv) {
        echo '<tr><td>' . $lv->bezeichnung . '</td><td>' . $lv->ects . '</td><td><a href="' . $_SERVER['PHP_SELF'] . '?method=deleteLv&lv_id=' . $lv->preoutgoing_lehrveranstaltung_id . '&preoutgoing_id=' . $preoutgoing_id . '&action=lehrveranstaltung">löschen</a></tr>';
    }
    echo '</table></fieldset>';
}