This commit is contained in:
Andreas Österreicher
2008-01-31 16:20:45 +00:00
parent 6aad9e9ee8
commit 98fe240713
7 changed files with 549 additions and 6 deletions
+18 -2
View File
@@ -30,6 +30,7 @@
$num_rows=pg_num_rows($erg);
if ($num_rows==1)
{
$person_id=pg_result($erg,0,"person_id");
$vorname=pg_result($erg,0,"vorname");
$vornamen=pg_result($erg,0,"vornamen");
$nachname=pg_result($erg,0,"nachname");
@@ -100,7 +101,7 @@
?>
<table class="tabcontent">
<tr>
<td colspan="2" class="MarkLine">
<td colspan="2" class="MarkLine" width="60%">
<P><br>
Titel: <?php echo $titelpre; ?> <br>
Vornamen: <?php echo $vorname.' '.$vornamen; ?> <br>
@@ -118,6 +119,7 @@
<!--<b>Passwort</b><br>
<a href="password.php">Passwort &auml;ndern</a></FONT><br>-->
</P>
<P>
<b>eMail</b><br>
Technikum: <a class='Item' href='mailto:<?php echo $uid; ?>@technikum-wien.at'> <?php echo $uid; ?>@technikum-wien.at</a><br>
@@ -141,7 +143,21 @@
if($hp!='')
echo "<P><b>Homepage</b><br><a href='$hp' target='_blank'>$hp</a></p>";
?>
<p>
<?php
$qry = "SELECT kompetenzen FROM public.tbl_person WHERE person_id='$person_id'";
if($result = pg_query($conn, $qry))
{
if($row = pg_fetch_object($result))
{
if($row->kompetenzen!='')
{
echo "<b>Kompetenzen</b><br>".str_replace(';','<br>', $row->kompetenzen);
}
}
}
?>
</p>
<br>
</td>
<td rowspan="2">
+1 -1
View File
@@ -164,7 +164,7 @@ if(!$xml_doc->load($xml_url))
//XSL aus der DB holen
$qry = "SELECT text FROM public.tbl_vorlagestudiengang WHERE (studiengang_kz=0 OR studiengang_kz='".addslashes($xsl_stg_kz)."') AND vorlage_kurzbz='$xsl' ORDER BY studiengang_kz DESC, version DESC LIMIT 1";
//echo $qry;
if(!$result = pg_query($conn, $qry))
die('Fehler beim Laden der Vorlage'.pg_errormessage($conn));
if(!$row = pg_fetch_object($result))
@@ -599,8 +599,9 @@ function StudentAbschlusspruefungPrintPruefungsprotokollMultiple()
anzahl++;
}
}
window.open('<?php echo APP_ROOT; ?>/content/pdfExport.php?xml=abschlusspruefung.rdf.php&xsl='+xsl+'&uid='+uids,'Pruefungsprotokoll', 'height=200,width=350,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes');
var stg_kz = document.getElementById('student-detail-menulist-studiengang_kz').value;
window.open('<?php echo APP_ROOT; ?>/content/pdfExport.php?xml=abschlusspruefung.rdf.php&xsl='+xsl+'&uid='+uids+'&xsl_stg_kz='+stg_kz,'Pruefungsprotokoll', 'height=200,width=350,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes');
}
// ****
@@ -624,12 +625,14 @@ function StudentAbschlusspruefungPrintPruefungsprotokoll()
var col = tree.columns ? tree.columns["student-abschlusspruefung-treecol-pruefungstyp_kurzbz"] : "student-abschlusspruefung-treecol-pruefungstyp_kurzbz";
var pruefungstyp_kurzbz=tree.view.getCellText(tree.currentIndex,col);
var stg_kz = document.getElementById('student-detail-menulist-studiengang_kz').value;
if(pruefungstyp_kurzbz=='Bachelor')
xsl='PrProtokollBakk';
else
xsl='PrProtokollDipl';
window.open('<?php echo APP_ROOT; ?>/content/pdfExport.php?xml=abschlusspruefung.rdf.php&xsl='+xsl+'&abschlusspruefung_id='+abschlusspruefung_id,'Pruefungsprotokoll', 'height=200,width=350,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes');
window.open('<?php echo APP_ROOT; ?>/content/pdfExport.php?xml=abschlusspruefung.rdf.php&xsl='+xsl+'&abschlusspruefung_id='+abschlusspruefung_id+'&xsl_stg_kz='+stg_kz,'Pruefungsprotokoll', 'height=200,width=350,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes');
}
// ****
+2
View File
@@ -39,6 +39,7 @@ class fachbereich
var $aktiv; // @var boolean
var $ext_id; // @var bigint
var $bezeichnung_arr = array();
/**
* Konstruktor
@@ -79,6 +80,7 @@ class fachbereich
$fachb_obj->ext_id = $row->ext_id;
$this->result[] = $fachb_obj;
$this->bezeichnung_arr[$row->fachbereich_kurzbz] = $row->bezeichnung;
}
return true;
}
@@ -0,0 +1,345 @@
<?xml version="1.0" encoding="ISO-8859-15"?>
<xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" indent="yes" />
<xsl:template match="abschlusspruefung">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master orientation="l" format="A4" margin="5mm 25mm 5mm 25mm" master-name="PageMaster">
<fo:region-body margin="20mm 0mm 20mm 0mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<xsl:apply-templates select="pruefung"/>
</fo:root>
</xsl:template>
<xsl:template match="pruefung">
<fo:page-sequence master-reference="PageMaster">
<fo:flow flow-name="xsl-region-body" >
<fo:block-container position="absolute" top="25mm" left="15mm" height="20mm">
<fo:block text-align="left" line-height="20pt" font-family="sans-serif" font-size="16pt">
<xsl:text>Protokoll Diplom-Prüfung</xsl:text>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="35mm" left="15mm">
<fo:block text-align="left" line-height="10pt" font-family="sans-serif" font-size="8pt">
abgehalten an dem Fachhochschul-Studiengang <xsl:value-of select="stg_bezeichnung" /> gemäß (FhStG), BGBl <xsl:value-of select="bescheidbgbl1" /> idgF BGBl. <xsl:value-of select="bescheidbgbl2" /> und dem mit Bescheid\n
des Fachhochschulrates GZ: <xsl:value-of select="bescheidgz" /> vom <xsl:value-of select="bescheidvom" /> genehmigten Antrag.
</fo:block>
</fo:block-container>
<!-- LOGO und DATUM -->
<fo:block-container position="absolute" top="40mm" left="260mm">
<fo:block text-align="left" line-height="10pt" content-width="50mm" font-family="sans-serif" font-size="8pt">
Datum: <xsl:value-of select="datum" />
</fo:block>
</fo:block-container>
<fo:block>
<fo:external-graphic src="../skin/images/logo.jpg" posx="260" posy="30" width="30mm" height="10mm" />
</fo:block>
<!-- NAME - MATRIKELNUMMER -->
<fo:block-container position="absolute" top="45mm" left="15mm" height="10mm">
<fo:block text-align="left" line-height="14pt" font-family="sans-serif" font-size="12pt" font-weight="bold">
<xsl:value-of select="titelpre" /><xsl:text> </xsl:text><xsl:value-of select="vorname" /><xsl:text> </xsl:text><xsl:value-of select="nachname" /><xsl:text> </xsl:text><xsl:value-of select="titelpost" />
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="50mm" left="15mm" height="20mm">
<fo:block text-align="left" line-height="14pt" font-family="sans-serif" font-size="12pt">
<xsl:text>Personenkennzeichen: </xsl:text><xsl:value-of select="matrikelnr" />
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="60mm" left="15mm">
<fo:table table-layout="fixed" border-collapse="separate">
<fo:table-column column-width="261.6mm"/>
<fo:table-body>
<fo:table-row line-height="14pt">
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left" font-weight="bold">
<xsl:text> Prüfungssenat:</xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:table table-layout="fixed" border-collapse="separate">
<fo:table-column column-width="80mm"/>
<fo:table-column column-width="120mm"/>
<fo:table-column column-width="24mm"/>
<fo:table-column column-width="36.4mm"/>
<fo:table-body>
<fo:table-row line-height="14pt">
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
<xsl:text> DA-Betreuer</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
<xsl:text> Diplomarbeitsthema</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
<xsl:text> Note DA</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
<xsl:text> Note Präsentation DA</xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="14pt">
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="80mm" text-align="left">
<xsl:text> </xsl:text><xsl:value-of select="betreuer" />
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="120mm" text-align="left">
<xsl:text> </xsl:text><xsl:value-of select="themenbereich" />
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="24mm" text-align="center">
<xsl:text> </xsl:text><xsl:value-of select="note" />
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="36.4mm" text-align="left">
<xsl:text> </xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:table table-layout="fixed" border-collapse="separate">
<fo:table-column column-width="261.6mm"/>
<fo:table-body>
<fo:table-row line-height="14pt">
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="261.6mm" text-align="left" font-weight="bold">
<xsl:text> Fachgebiet der Diplomarbeit</xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:table table-layout="fixed" border-collapse="separate">
<fo:table-column column-width="80mm"/>
<fo:table-column column-width="96mm"/>
<fo:table-column column-width="24mm"/>
<fo:table-column column-width="24mm"/>
<fo:table-column column-width="36mm"/>
<fo:table-body>
<fo:table-row line-height="14pt">
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
<xsl:text> Prüfer</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
<xsl:text> Prüfungsfrage</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
<xsl:text> Beginn</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
<xsl:text> Ende</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
<xsl:text> Note</xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="14pt">
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="80mm" text-align="left">
<xsl:text> </xsl:text><xsl:value-of select="pruefer1_nachname" />\n
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
\n
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
\n
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
\n
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
\n
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:table table-layout="fixed" border-collapse="separate">
<fo:table-column column-width="261.6mm"/>
<fo:table-body>
<fo:table-row line-height="14pt">
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="261.6mm" text-align="left" font-weight="bold">
<xsl:text> Technisches Fachgebiet:</xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:table table-layout="fixed" border-collapse="separate">
<fo:table-column column-width="80mm"/>
<fo:table-column column-width="96mm"/>
<fo:table-column column-width="24mm"/>
<fo:table-column column-width="24mm"/>
<fo:table-column column-width="36mm"/>
<fo:table-body>
<fo:table-row line-height="14pt">
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
<xsl:text> Prüfer</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
<xsl:text> Prüfungsfrage</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
<xsl:text> Beginn</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
<xsl:text> Ende</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
<xsl:text> Note</xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="10pt">
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="80mm" text-align="left">
<xsl:text> </xsl:text><xsl:value-of select="pruefer2_nachname" />\n
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
\n
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
\n
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
\n
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-family="sans-serif" font-size="10pt" content-width="45mm" text-align="left">
\n
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
<fo:block-container position="absolute" top="140mm" left="15mm">
<fo:block text-align="left" line-height="10pt" font-family="sans-serif" font-size="10pt">
Gesamtbeurteilung: _______________________________________________________
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="145mm" left="15mm" height="20mm">
<fo:block text-align="left" line-height="10pt" font-family="sans-serif" font-size="8pt">
(mit ausgezeichnetem Erfolg bestanden, mit gutem Erfolg bestanden, bestanden, nicht bestanden)
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="160mm" left="15mm">
<fo:table table-layout="fixed" border-collapse="separate">
<fo:table-column column-width="65mm"/>
<fo:table-column column-width="65mm"/>
<fo:table-column column-width="65mm"/>
<fo:table-column column-width="65mm"/>
<fo:table-body>
<fo:table-row line-height="14pt">
<fo:table-cell>
<fo:block font-family="sans-serif" font-size="10pt" content-width="65mm" text-align="center" font-weight="bold">
______________________________
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block font-family="sans-serif" font-size="10pt" content-width="65mm" text-align="center" font-weight="bold">
______________________________
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block font-family="sans-serif" font-size="10pt" content-width="65mm" text-align="center" font-weight="bold">
______________________________
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block font-family="sans-serif" font-size="10pt" content-width="65mm" text-align="center" font-weight="bold">
______________________________
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="14pt">
<fo:table-cell>
<fo:block font-family="sans-serif" font-size="10pt" content-width="65mm" text-align="center" font-weight="bold">
<xsl:value-of select="vorsitz_nachname" />\n
(Vorsitz)
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block font-family="sans-serif" font-size="10pt" content-width="65mm" text-align="center" font-weight="bold">
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block font-family="sans-serif" font-size="10pt" content-width="65mm" text-align="center" font-weight="bold">
Prüfungssenat
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block font-family="sans-serif" font-size="10pt" content-width="65mm" text-align="center" font-weight="bold">
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</xsl:template>
</xsl:stylesheet >
+4
View File
@@ -332,6 +332,10 @@ if ($berechtigung->isBerechtigt('admin'))
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="MenuItem2" href="personen/lektor_edit.php?new=1" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Neu</a></td>
</tr>
<tr>
<td width="10" nowrap>&nbsp;</td>
<td nowrap><a class="MenuItem2" href="personen/institutsliste.php" target="main"><img src="../skin/images/menu_item.gif" width="7" height="9">&nbsp;Institute</a></td>
</tr>
</table>
</td>
</tr>
+173
View File
@@ -0,0 +1,173 @@
<?php
/* Copyright (C) 2006 Technikum-Wien
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
* Authors: Christian Paminger <christian.paminger@technikum-wien.at>,
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
*/
require_once('../../vilesci/config.inc.php');
require_once('../../include/functions.inc.php');
require_once('../../include/studiengang.class.php');
require_once('../../include/fachbereich.class.php');
require_once('../../include/studiensemester.class.php');
require_once('../../include/benutzerberechtigung.class.php');
if(!$conn = pg_pconnect(CONN_STRING))
die('Fehler beim Connecten zur DB');
$stg_obj = new studiengang($conn);
$stg_obj->getAll('typ, kurzbz', false);
$fb_obj = new fachbereich($conn);
$fb_obj->getAll();
$rechte = new benutzerberechtigung($conn);
$rechte->getBerechtigungen(get_uid());
echo '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Institutsliste</title>
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-9" />
<link rel="stylesheet" href="../../include/js/tablesort/table.css" type="text/css">
<script src="../../include/js/tablesort/table.js" type="text/javascript"></script>
</head>
<body class="Background_main">
<h2>Liste der MitarbeiterInnen der Institute an der Fachhochschule Technikum Wien</h2>';
$stsem = new studiensemester($conn);
$ws = $stsem->getNearest(1);
$ss = $stsem->getNearest(2);
if($rechte->isBerechtigt('admin', 0))
$where = '';
else
{
$fb = $rechte->getFbKz();
if(count($fb)>0)
{
$where = " AND EXISTS (SELECT * FROM lehre.tbl_lehreinheitmitarbeiter JOIN lehre.tbl_lehreinheit USING(lehreinheit_id) JOIN lehre.tbl_lehrfach USING(lehrfach_id) WHERE
tbl_lehreinheit.studiensemester_kurzbz in('$ws','$ss') AND mitarbeiter_uid=tbl_mitarbeiter.mitarbeiter_uid AND
fachbereich_kurzbz IN(";
foreach ($fb as $fachbereich_kurzbz)
{
$where.="'$fachbereich_kurzbz',";
}
$where.="''))";
}
else
die('Sie haben keine Berechtigung fuer diese Seite');
}
//Alle aktiven Mitarbeiter holen mit den ALVS-Stunden und der Hauptinstitutszuteilung
$qry = "SELECT
vorname, nachname, fixangestellt, mitarbeiter_uid, kompetenzen,
(
SELECT
sum(semesterstunden)
FROM
lehre.tbl_lehreinheitmitarbeiter JOIN lehre.tbl_lehreinheit USING(lehreinheit_id)
WHERE
mitarbeiter_uid=tbl_mitarbeiter.mitarbeiter_uid AND
studiensemester_kurzbz='$ws'
) as lvs_wintersemester,
(
SELECT
sum(semesterstunden)
FROM
lehre.tbl_lehreinheitmitarbeiter JOIN lehre.tbl_lehreinheit USING(lehreinheit_id)
WHERE
mitarbeiter_uid=tbl_mitarbeiter.mitarbeiter_uid AND
studiensemester_kurzbz='$ss'
) as lvs_sommersemester,
(
SELECT
fachbereich_kurzbz
FROM
public.tbl_benutzerfunktion
WHERE
uid=tbl_mitarbeiter.mitarbeiter_uid AND
funktion_kurzbz='Institut'
) as hauptzuteilung
FROM
public.tbl_mitarbeiter JOIN public.tbl_benutzer ON(uid=mitarbeiter_uid)
JOIN public.tbl_person USING(person_id)
WHERE tbl_benutzer.aktiv $where";
if($result = pg_query($conn, $qry))
{
echo "<br><br><table class='liste table-autosort:0 table-stripeclass:alternate table-autostripe'>
<thead>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
<th colspan='2'>ALVS</th>
<th></th>
<th colspan='2'>Institute</th>
</tr>
<tr class='liste'>
<th class='table-sortable:default'>Nachname</th>
<th class='table-sortable:default'>Vorname</th>
<th class='table-sortable:default'>Fix / Frei</th>
<th class='table-sortable:default'>Kompetenzen</th>
<th class='table-sortable:default'>$ws</th>
<th class='table-sortable:default'>$ss</th>
<th class='table-sortable:default'>Studiengang</th>
<th class='table-sortable:default'>Hauptzuteilung</th>
<th class='table-sortable:default'>Sonstige</th>
</tr>
</thead>
<tbody>";
while($row = pg_fetch_object($result))
{
echo '<tr>';
echo "<td>$row->nachname</td>";
echo "<td>$row->vorname</td>";
echo "<td>".($row->fixangestellt=='t'?'fix':'frei')."</td>";
echo "<td>$row->kompetenzen</td>";
echo "<td>$row->lvs_wintersemester</td>";
echo "<td>$row->lvs_sommersemester</td>";
echo '<td>';
$qry = "SELECT distinct studiengang_kz FROM lehre.tbl_lehreinheitmitarbeiter JOIN lehre.tbl_lehreinheit USING(lehreinheit_id) JOIN lehre.tbl_lehrveranstaltung USING(lehrveranstaltung_id) WHERE mitarbeiter_uid='$row->mitarbeiter_uid' AND studiensemester_kurzbz in('$ss', '$ws')";
$text='';
if($result_stg = pg_query($conn, $qry))
while($row_stg = pg_fetch_object($result_stg))
$text.= $stg_obj->kuerzel_arr[$row_stg->studiengang_kz].', ';
echo substr($text, 0, strlen($text)-2);
echo '</td>';
echo "<td>".(isset($fb_obj->bezeichnung_arr[$row->hauptzuteilung])?$fb_obj->bezeichnung_arr[$row->hauptzuteilung]:'')."</td>";
echo "<td>";
$qry = "SELECT distinct fachbereich_kurzbz FROM lehre.tbl_lehreinheitmitarbeiter JOIN lehre.tbl_lehreinheit USING(lehreinheit_id) JOIN lehre.tbl_lehrveranstaltung USING(lehrveranstaltung_id) JOIN lehre.tbl_lehrfach USING(lehrfach_id) WHERE mitarbeiter_uid='$row->mitarbeiter_uid' AND studiensemester_kurzbz in('$ss', '$ws')";
$text='';
if($result_fb = pg_query($conn, $qry))
while($row_fb = pg_fetch_object($result_fb))
$text.= $fb_obj->bezeichnung_arr[$row_fb->fachbereich_kurzbz].', ';
echo substr($text, 0, strlen($text)-2);
echo "</td>";
echo '</tr>';
}
echo '</tbody></table>';
}
echo '</body></html>';
?>