//echo '<span style="font-size: 9pt">Anzahl: '.$db->db_num_rows($vorlage_version->result).'</span>'; echo '<table class="tablesorter" id="t1"> <thead> <tr class="liste"> <th>Vorlage</th> <th>Organisationseinheit</th> <th>Studiengang</th> <th>Version</th> <th>Anmerkung</th> <th>Aktiv</th> <th colspan="2"></th> </tr> </thead> <tbody>'; foreach ($vorlage_version->result as $row) { $oe->load($row->oe_kurzbz); $vorlage->loadVorlage($row->vorlage_kurzbz); $vorlage_bezeichnung = $vorlage->bezeichnung == '' ? $vorlage->vorlage_kurzbz : $vorlage->bezeichnung; $style = ''; if ($oe->aktiv == false) { $style = 'style="text-decoration: line-through"'; } echo ' <tr ' . ($row->aktiv == false ? 'style="color:grey"' : '') . '> <td>' . $db->convert_html_chars($vorlage_bezeichnung) . '</td> <td ' . $style . '>' . $db->convert_html_chars($oe->organisationseinheittyp_kurzbz . ' ' . $oe->bezeichnung) . '</td> <td>' . $db->convert_html_chars($row->studiengang_kz) . '</td> <td>' . $db->convert_html_chars($row->version) . '</td> <td>' . $db->convert_html_chars($row->anmerkung_vorlagestudiengang) . '</td> <td>' . ($row->aktiv == false ? 'inaktiv' : 'aktiv') . '</td> <td><a href="' . $_SERVER['PHP_SELF'] . '?vorlagestudiengang_id=' . $row->vorlagestudiengang_id . '&vorlage_kurzbz=' . $vorlage_kurzbz . '&oe_auswahl=' . $oe_auswahl . '">Edit</a></td>
function display($arr) { //Wenn eines der Elemente noch Unterelemente hat, dann das Array sortieren, damit //die Eintraege mit den Untereintraegen zuerst kommen $sort = false; foreach ($arr as $row) { if (count($row) > 0) { $sort = true; } } if ($sort) { uasort($arr, 'mysort'); $style = 'background-color: #F5F5F5;'; } else { $style = 'background-color: #b1b1b1;'; } echo "\n "; echo '<table style="' . $style . '" cellspacing=0 cellpadding=5><tr>'; $td = false; foreach ($arr as $key => $val) { $obj = new organisationseinheit(); $obj->load($key); //inaktive OEs farblich markieren if ($obj->aktiv) { $aktivstyle = ''; } else { $aktivstyle = 'color:grey;'; } if (is_array($val) && count($val) > 0) { echo '<td valign="top"><div style="background-color: #b1b1b1; padding: 0px; margin:0px"><br><span style="font-weight: bold;">'; } else { if (!$td) { echo '<td nowrap valign="top">'; $td = true; } else { echo '<br>'; } } //echo '<span class="ui-widget-content" style=" padding: 0px; margin:0px;'.$aktivstyle.'" >'; echo '<a href="' . $_SERVER['PHP_SELF'] . '?action=edit&kurzbz=' . $obj->oe_kurzbz . '" style="' . $aktivstyle . '" class="Item ui-widget-content" id="' . $obj->oe_kurzbz . '">'; echo $obj->organisationseinheittyp_kurzbz . ' - '; if ($obj->organisationseinheittyp_kurzbz == 'Institut') { echo $obj->oe_kurzbz; } else { echo $obj->bezeichnung; } echo '</a>'; //echo '</span>'; if (is_array($val) && count($val) > 0) { echo '</span><br><br>'; display($val); echo '</div></td>'; } } if ($td) { echo '</td>'; } echo "</tr>\n </table>"; }
$projekt = new projekt(); $datum = new datum(); $ressource = new ressource(); $phasen = new projektphase(); $org = new organisationseinheit(); if (!$projekt->load($projekt_kurzbz)) { die('Fehler beim laden des Projektes'); } if (!$ressource->getProjectRessourcen($projekt_kurzbz)) { die('Fehler beim laden der Ressourcen'); } // lädt alle Phasen der ersten Ebene if (!$phasen->getProjektphasen($projekt_kurzbz, true)) { die('Fehler beim laden der Phasen'); } if (!$org->load($projekt->oe_kurzbz)) { die('Fehler beim laden der OE'); } echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'; echo '<projekte>'; echo ' <projekt>'; echo ' <projekt_titel><![CDATA[' . $projekt->titel . ']]></projekt_titel>'; echo ' <projekt_nummer><![CDATA[' . $projekt->nummer . ']]></projekt_nummer>'; echo ' <projekt_beginn><![CDATA[' . $datum->formatDatum($projekt->beginn, 'd.m.Y') . ']]></projekt_beginn>'; echo ' <projekt_ende><![CDATA[' . $datum->formatDatum($projekt->ende, 'd.m.Y') . ']]></projekt_ende>'; echo ' <projekt_budget><![CDATA[' . $projekt->budget . ']]></projekt_budget>'; echo ' <projekt_beschreibung><![CDATA[' . $projekt->beschreibung . ']]></projekt_beschreibung>'; echo ' <projekt_oe><![CDATA[' . $org->bezeichnung . ']]></projekt_oe>'; echo ' <projekt_ressourcen>'; foreach ($ressource->result as $res) { echo ' <pr_ressource><bezeichnung><![CDATA[' . $res->bezeichnung . ']]></bezeichnung></pr_ressource>';
<th>Bezeichnung</th> <th>ECTS</th> <th>Studiengang</th> <th>Organisationseiheit</th>'; if ($type == "edit") { echo '<th class="header">Löschen</th>'; } echo '</tr> </thead> <tbody>'; foreach ($kompatibleLvs as $lvId) { $lv->load($lvId); $studiengang = new studiengang(); $studiengang->load($lv->studiengang_kz); $oe = new organisationseinheit(); $oe->load($lv->oe_kurzbz); echo "<tr>\n\t\t\t\t<td>" . $lv->lehrveranstaltung_id . "</td>\n\t\t\t\t<td>" . $lv->kurzbz . "</td>\n\t\t\t\t<td>" . $lv->bezeichnung . "</td>\n\t\t\t\t<td>" . $lv->ects . "</td>\n\t\t\t\t<td>" . $studiengang->kuerzel . "</td>\n\t\t\t\t<td>" . $oe->bezeichnung . "</td>"; if ($type == "edit") { echo "<td><a href='#' onclick='javascript:deleteKompatibleLv(\"" . $lehrveranstaltung_id . "\",\"" . $lv->lehrveranstaltung_id . "\")'><img height='20' src='../../skin/images/false.png'></a></td>"; } else { echo "<td> </td>"; } echo "</tr>"; } echo "</tbody>\n\t\t</table>"; } else { echo "Derzeit sind keine kompatiblen Lehrveranstaltungen eingetragen.</br>"; } if ($type == "edit") { $studiengang = new studiengang(); $studiengang->getAll("kurzbzlang");
function getDaten($oe_kurzbz = '') { if (is_null($oe_kurzbz) || empty($oe_kurzbz)) { return array(); } $obj = new organisationseinheit($oe_kurzbz); $obj->load($oe_kurzbz); if (!isset($obj->aktiv) || empty($obj->aktiv)) { return null; } if ($stg = new studiengang()) { $qry = "SELECT * FROM public.tbl_studiengang WHERE aktiv and upper(trim(kurzbzlang))=upper(trim('" . $oe_kurzbz . "'))"; if ($result = $stg->db_query($qry)) { while ($row = $stg->db_fetch_object($result)) { foreach ($row as $key => $val) { $obj->{$key} = str_replace('/', ' / ', $val); } } } } return $obj; }
} else { if ($betriebsmittel->load($betriebsmittelperson_id)) { draw_content($betriebsmittel); } else { die($betriebsmittel->errormsg); } } echo '</RDF:Seq> </RDF:RDF>'; } else { $bmp = new betriebsmittelperson(); if (!$bmp->load($betriebsmittelperson_id)) { die('Fehler ' . $bmp->errormsg); } $oe = new organisationseinheit(); $oe->load($bmp->oe_kurzbz); $organisationseinheit = $oe->organisationseinheittyp_kurzbz . ' ' . $oe->bezeichnung; $person = new person(); $person->load($bmp->person_id); $bmt = new betriebsmitteltyp(); $bmt->load($bmp->betriebsmitteltyp); $typ = $bmt->result[0]->beschreibung; echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'; echo ' <betriebsmittelperson> <beschreibung><![CDATA[' . $bmp->beschreibung . ']]></beschreibung> <inventarnummer><![CDATA[' . $bmp->inventarnummer . ']]></inventarnummer> <kaution><![CDATA[' . $bmp->kaution . ']]></kaution> <ausgegebenam><![CDATA[' . $datum->convertISODate($bmp->ausgegebenam) . ']]></ausgegebenam> <<<<<<< HEAD =======
} if ($person_id != $konto->person_id) { die('keine Berechtigung, um auf Datensatz zuzugreifen'); } $studiengang = new studiengang(); $studiengang->load($konto->studiengang_kz); $bankverbindung = new bankverbindung(); if ($bankverbindung->load_oe($studiengang->oe_kurzbz) && count($bankverbindung->result) > 0) { $iban = $bankverbindung->result[0]->iban; $bic = $bankverbindung->result[0]->bic; } else { $iban = ''; $bic = ''; } $oe = new organisationseinheit(); $oe->load($studiengang->oe_kurzbz); $konto->getBuchungstyp(); $buchungstyp = array(); foreach ($konto->result as $row) { $buchungstyp[$row->buchungstyp_kurzbz] = $row->beschreibung; } echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Zahlungsdetails</title> <link href="../../skin/style.css.php" rel="stylesheet" type="text/css"> <link href="../../skin/fhcomplete.css.php" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="../../skin/tablesort.css" type="text/css"/> </head> <body>';
<thead> <tr> <th>Studiensemester</th> <th>Organisationseinheit</th> <th>Startdatum</th> <th>Enddatum</th> <th>Bearbeiten</th> <th>Löschen</th> </tr> </thead> <tbody> <?php $organisationseinheit = new organisationseinheit(); foreach ($prfFenster->result as $result) { if (in_array($result->oe_kurzbz, $oe)) { $organisationseinheit->load($result->oe_kurzbz); echo '<tr> <td>' . $result->studiensemester_kurzbz . '</td> <td>' . $organisationseinheit->organisationseinheittyp_kurzbz . " " . $organisationseinheit->bezeichnung . '</td> <td>' . $result->start . '</td> <td>' . $result->ende . '</td> <td><a href="pruefungsfenster_anlegen.php?method=update&id=' . $result->pruefungsfenster_id . '">bearbeiten</a></td> <td><a href="pruefungsfenster_anlegen.php?method=delete&id=' . $result->pruefungsfenster_id . '">löschen</a></td> </tr>'; } } ?> </tbody> </table> <?php } else {
function getBankverbindung($oe_kurzbz) { $iban = ""; $bic = ""; $result = array(); $bankverbindung = new bankverbindung(); if ($bankverbindung->load_oe($oe_kurzbz) && count($bankverbindung->result) > 0) { $result["iban"] = $bankverbindung->result[0]->iban; $result["bic"] = $bankverbindung->result[0]->bic; return $result; } else { $organisationseinheit = new organisationseinheit(); $organisationseinheit->load($oe_kurzbz); if ($organisationseinheit->oe_parent_kurzbz !== NULL) { $result = getBankverbindung($organisationseinheit->oe_parent_kurzbz); return $result; } else { $result["iban"] = ""; $result["bic"] = ""; } } }