Vorlagenanpassung Lehrgänge

This commit is contained in:
kindlm
2015-02-12 18:47:11 +01:00
parent 333d4a1e48
commit a568ab34d9
5 changed files with 350 additions and 18 deletions
+10 -1
View File
@@ -29,6 +29,8 @@ require_once('../include/note.class.php');
require_once('../include/studiensemester.class.php');
require_once('../include/studiengang.class.php');
require_once('../include/mitarbeiter.class.php');
require_once('../include/prestudent.class.php');
require_once('../include/student.class.php');
$datum = new datum();
$db = new basis_db();
@@ -67,7 +69,14 @@ function draw_studienerfolg($uid, $studiensemester_kurzbz)
$studiensemester = new studiensemester();
$studiensemester_aktuell = $studiensemester->getNearest();
$student = new student();
$student->load($uid);
$prestudentstatus = new prestudent();
$prestudentstatus->getLastStatus($student->prestudent_id,'','Student');
if($studiensemester_aktuell!=$prestudentstatus->studiensemester_kurzbz)
$studiensemester_aktuell = $prestudentstatus->studiensemester_kurzbz;
$semester_aktuell='';
$qry_semester = "SELECT tbl_prestudentstatus.ausbildungssemester as semester FROM public.tbl_student, public.tbl_prestudentstatus
WHERE tbl_student.prestudent_id=tbl_prestudentstatus.prestudent_id
+6 -6
View File
@@ -349,7 +349,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
</table:table-cell>
<table:table-cell table:style-name="Tabelle3.C2" office:value-type="string">
<text:p text:style-name="P17"><xsl:value-of select="studiengangsleiter" /></text:p>
<text:p text:style-name="P17">Studiengangsleitung</text:p>
<text:p text:style-name="P17">Lehrgangsleitung</text:p>
</table:table-cell>
</table:table-row>
</table:table>
@@ -365,19 +365,19 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
<xsl:value-of select="stsem"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="semester_bezeichnung"/>
<xsl:text> (</xsl:text>
<xsl:value-of select="semester -1"/>
<xsl:text>. Semester (</xsl:text>
<xsl:value-of select="stsem"/>
<xsl:text>)</xsl:text>
</xsl:otherwise>
</xsl:choose>
</text:p>
<text:p text:style-name="P5"/>
<text:p text:style-name="P5"/>
<text:p text:style-name="P5">Kurzstudium</text:p>
<text:p text:style-name="P1">
<draw:frame draw:style-name="fr2" draw:name="Rahmen2" text:anchor-type="paragraph" svg:width="10.999cm" draw:z-index="2">
<draw:text-box fo:min-height="0.499cm">
<text:p text:style-name="P6"><xsl:value-of select="studiengang"/></text:p>
<text:p text:style-name="P6">Social Media Manager</text:p>
</draw:text-box>
</draw:frame>
</text:p>
@@ -387,7 +387,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
<text:p text:style-name="P1"/>
<text:p text:style-name="P1"/>
<text:p text:style-name="P2">Personenkennzeichen: <xsl:value-of select="matrikelnr" /></text:p>
<text:p text:style-name="P2">Kennzahl des Studienganges: <xsl:value-of select="studiengang_kz" /></text:p>
<text:p text:style-name="P2">Kennzahl des Lehrgangs: 0050012</text:p>
<text:p text:style-name="P2"/>
<text:p text:style-name="P3"/>
<text:p text:style-name="P3"/>
+9 -6
View File
@@ -290,6 +290,9 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
<style:style style:name="P27" style:family="paragraph" style:parent-style-name="Standard">
<style:text-properties fo:font-size="5pt" officeooo:rsid="000f65a0" officeooo:paragraph-rsid="000f65a0" style:font-size-asian="1.75pt" style:font-size-complex="2pt"/>
</style:style>
<style:style style:name="P28" style:family="paragraph" style:parent-style-name="Standard">
<style:text-properties fo:font-size="12pt" officeooo:rsid="000f65a0" officeooo:paragraph-rsid="000f65a0" style:font-size-asian="12pt" style:font-size-complex="12pt"/>
</style:style>
<style:style style:name="T1" style:family="text">
<style:text-properties fo:font-weight="bold" style:font-weight-asian="bold" style:font-weight-complex="bold"/>
</style:style>
@@ -349,7 +352,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
</table:table-cell>
<table:table-cell table:style-name="Tabelle3.C2" office:value-type="string">
<text:p text:style-name="P17"><xsl:value-of select="studiengangsleiter" /></text:p>
<text:p text:style-name="P17">Studiengangsleitung</text:p>
<text:p text:style-name="P17">Lehrgangsleitung</text:p>
</table:table-cell>
</table:table-row>
</table:table>
@@ -365,17 +368,17 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
<xsl:value-of select="stsem"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="semester_bezeichnung"/>
<xsl:text> (</xsl:text>
<xsl:value-of select="semester -1"/>
<xsl:text>. Semester (</xsl:text>
<xsl:value-of select="stsem"/>
<xsl:text>)</xsl:text>
</xsl:otherwise>
</xsl:choose>
</text:p>
<text:p text:style-name="P5"/>
<text:p text:style-name="P5">Lehrgang</text:p>
<text:p text:style-name="P28">Lehrgang zur Weiterbildung nach §9 FHStG idgF</text:p>
<text:p text:style-name="P1">
<draw:frame draw:style-name="fr2" draw:name="Rahmen2" text:anchor-type="paragraph" svg:width="17.999cm" draw:z-index="2">
<draw:frame draw:style-name="fr2" draw:name="Rahmen2" text:anchor-type="paragraph" svg:width="8.999cm" draw:z-index="2">
<draw:text-box fo:min-height="0.499cm">
<text:p text:style-name="P6">Akademisch geprüfter Social Media Manager</text:p>
</draw:text-box>
@@ -387,7 +390,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
<text:p text:style-name="P1"/>
<text:p text:style-name="P1"/>
<text:p text:style-name="P2">Personenkennzeichen: <xsl:value-of select="matrikelnr" /></text:p>
<text:p text:style-name="P2">Kennzahl des Lehrgangs: <xsl:value-of select="studiengang_kz" /></text:p>
<text:p text:style-name="P2">Kennzahl des Lehrgangs: 0050005</text:p>
<text:p text:style-name="P2"/>
<text:p text:style-name="P3"/>
<text:p text:style-name="P3"/>
+320
View File
@@ -0,0 +1,320 @@
<?xml version="1.0" encoding="UTF-8"?>
<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="studienerfolge">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master page-height="297mm" page-width="210mm" 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="studienerfolg"/>
</fo:root>
</xsl:template>
<xsl:template match="studienerfolg">
<fo:page-sequence master-reference="PageMaster">
<fo:flow flow-name="xsl-region-body" >
<!-- Logo -->
<fo:block>
<!--<fo:external-graphic src="../skin/images/logo.jpg" posx="140" posy="15" width="60mm" height="20mm" />-->
<fo:external-graphic posx="140" posy="15" width="60mm" height="20mm" >
<xsl:attribute name="src">
<xsl:value-of select="logopath" />logo.jpg
</xsl:attribute>
</fo:external-graphic>
</fo:block>
<!-- Titel -->
<fo:block-container position="absolute" top="20mm" left="15mm">
<fo:block font-size="16pt">Fachhochschule Technikum Wien</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="26mm" left="15mm">
<fo:block font-size="12pt">Höchstädtplatz 6\nA-1200 Wien</fo:block>
<fo:block font-size="6pt">ZVR-Nr.: 074476426, DVR-Nr.: 0928381</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="45mm" left="15mm">
<fo:block text-align="left" line-height="20pt" font-family="sans-serif" font-size="16pt">
<xsl:text>Bestätigung des Studienerfolges</xsl:text>
</fo:block>
</fo:block-container>
<!--FINANZAMT-->
<fo:block-container position="absolute" top="55mm" left="15mm">
<fo:block text-align="left" line-height="10pt" font-family="sans-serif" font-size="8pt">
<xsl:value-of select="finanzamt" />
</fo:block>
</fo:block-container>
<!-- NAME - GEBURTSDATUM - MATRIKELNUMMER -->
<fo:block-container position="absolute" top="60mm" left="15mm">
<fo:table table-layout="fixed" border-collapse="separate">
<fo:table-column column-width="120mm"/>
<fo:table-column column-width="30mm"/>
<fo:table-column column-width="30mm"/>
<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="8pt" content-width="45mm" text-align="left">
<xsl:text> Familienname, Vorname\n</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="8pt" content-width="45mm" text-align="left">
<xsl:text> Geburtsdatum\n</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="8pt" content-width="45mm" text-align="left">
<xsl:text> Personenkennzeichen\n</xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
<fo:block-container position="absolute" top="65mm" left="16mm">
<fo:block text-align="left" line-height="14pt" font-family="sans-serif" font-size="10pt" font-weight="bold">
<xsl:value-of select="titelpre" /><xsl:text> </xsl:text><xsl:value-of select="nachname" /><xsl:text> </xsl:text><xsl:value-of select="vorname" /><xsl:text> </xsl:text><xsl:value-of select="titelpost" />
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="65mm" left="137mm">
<fo:block text-align="left" line-height="14pt" font-family="sans-serif" font-size="10pt" font-weight="bold">
<xsl:value-of select="gebdatum" />
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="65mm" left="167mm">
<fo:block text-align="left" line-height="14pt" font-family="sans-serif" font-size="10pt" font-weight="bold">
<xsl:value-of select="matrikelnr" />
</fo:block>
</fo:block-container>
<!--STUDIENGANG UND KENNZAHL -->
<fo:block-container position="absolute" top="70.8mm" left="15mm">
<fo:table table-layout="fixed" border-collapse="separate">
<fo:table-column column-width="150.4mm"/>
<fo:table-column column-width="30mm"/>
<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="8pt" content-width="100mm" text-align="left">
<xsl:text> Lehrgang zur Weiterbildung nach §9 FHStG idgF\n</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="8pt" content-width="45mm" text-align="left">
<xsl:text> Kennzahl\n</xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
<fo:block-container position="absolute" top="76mm" left="16mm">
<fo:block text-align="left" line-height="14pt" font-family="sans-serif" font-size="10pt" font-weight="bold">
<xsl:text> Akademischer Social Media Manager\n</xsl:text>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="76mm" left="167mm">
<fo:block text-align="left" line-height="14pt" font-family="sans-serif" font-size="10pt" font-weight="bold">
0050005
</fo:block>
</fo:block-container>
<!-- Studiensemester - Ausbildungssemester -->
<fo:block-container position="absolute" top="81.6mm" left="15mm">
<fo:table table-layout="fixed" border-collapse="separate">
<fo:table-column column-width="120mm"/>
<fo:table-column column-width="60.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="8pt" content-width="45mm" text-align="left">
<xsl:text> Aktuelles Studiensemester\n</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="8pt" content-width="45mm" text-align="left">
<xsl:text> Aktuelles Ausbildungssemester\n</xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
<fo:block-container position="absolute" top="87mm" left="16mm">
<fo:block text-align="left" line-height="10pt" font-family="sans-serif" font-size="10pt" font-weight="bold">
<xsl:value-of select="studiensemester_aktuell" />
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="87mm" left="137mm">
<fo:block text-align="left" line-height="10pt" font-family="sans-serif" font-size="10pt" font-weight="bold">
<xsl:value-of select="semester_aktuell_semester -1" /><xsl:text>. Semester</xsl:text>
</fo:block>
</fo:block-container>
<!-- TABELLE -->
<fo:block-container position="absolute" top="110mm" left="15mm">
<fo:block text-align="left" line-height="14pt" font-family="sans-serif" font-size="10pt" font-weight="bold">
<xsl:text>Folgende Prüfungen wurden abgelegt:</xsl:text>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="120mm" left="15mm">
<fo:table table-layout="fixed" border-collapse="separate" border-width="0.2mm" border-style="solid">
<fo:table-column column-width="70mm"/>
<fo:table-column column-width="24mm"/>
<fo:table-column column-width="32mm"/>
<fo:table-column column-width="13mm"/>
<fo:table-column column-width="10mm"/>
<fo:table-column column-width="15mm"/>
<fo:table-column column-width="15mm"/>
<fo:table-body>
<fo:table-row line-height="10pt">
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="8pt" font-weight="bold">
<xsl:text> Lehrveranstaltung</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="24mm" text-align="center">
<xsl:text>Studiensemester</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="32mm" text-align="center">
<xsl:text>Ausbildungssemester</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="13mm" text-align="center">
<xsl:text>Stunden</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="10mm" text-align="center">
<xsl:text>ECTS</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="15mm" text-align="center">
<xsl:text>Datum</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="15mm" text-align="center">
<xsl:text>Benotung</xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
<xsl:apply-templates select="unterrichtsfach"/>
<fo:table-row line-height="10pt">
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="8pt" font-weight="bold">
<xsl:text> Semestersumme:</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="24mm" text-align="center">
<xsl:value-of select="studiensemester_kurzbz" />
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="32mm" text-align="center">
<xsl:text></xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="13mm" text-align="center">
<xsl:value-of select="gesamtstunden" />
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="10mm" text-align="center">
<xsl:value-of select="gesamtects" />
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="15mm" text-align="center">
<xsl:text>Schnitt:</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="8pt" font-weight="bold" content-width="15mm" text-align="center">
<xsl:value-of select="schnitt" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:block>
\n\n
</fo:block>
<fo:table>
<fo:table-column column-width="35mm"/>
<fo:table-column column-width="145mm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="10pt">Datum: <xsl:value-of select="datum" /></fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
<fo:block font-size="10pt" text-align="right" content-width="145mm">Gilt auch ohne Unterschrift und Stempel</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:table>
<fo:table-column column-width="15mm"/>
<fo:table-column column-width="155mm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block font-size="7pt">Benotung: </fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block font-size="7pt">Sehr gut (1), Gut (2), Befriedigend (3), Genügend (4), Nicht genügend (5), angerechnet (ar), nicht beurteilt (nb), mit Erfolg teilgenommen (met),</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block font-size="7pt"></fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block font-size="7pt">bestanden (b), approbiert (ap), erfolgreich absolviert (ea), nicht erfolgreich absolviert (nea), nicht teilgenommen (nt)</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</xsl:template>
<xsl:template match="unterrichtsfach">
<fo:table-row line-height="10pt">
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" content-width="70mm"><xsl:text> </xsl:text><xsl:value-of select="bezeichnung" /></fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" content-width="24mm" text-align="center"><xsl:text> </xsl:text><xsl:value-of select="../studiensemester_kurzbz" /></fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" content-width="32mm" text-align="center"><xsl:text> </xsl:text><xsl:value-of select="../semester -1" /></fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" content-width="13mm" text-align="center"><xsl:text> </xsl:text><xsl:value-of select="sws" /></fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" content-width="10mm" text-align="center"><xsl:text> </xsl:text><xsl:value-of select="ects" /></fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" content-width="15mm" text-align="center"><xsl:text> </xsl:text><xsl:value-of select="benotungsdatum" /></fo:block></fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" content-width="15mm" text-align="center"><xsl:text> </xsl:text><xsl:value-of select="note" /></fo:block></fo:table-cell>
</fo:table-row>
</xsl:template>
</xsl:stylesheet >
+5 -5
View File
@@ -105,8 +105,8 @@
<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="8pt" content-width="45mm" text-align="left">
<xsl:text> Studiengang\n</xsl:text>
<fo:block font-family="sans-serif" font-size="8pt" content-width="70mm" text-align="left">
<xsl:text> Lehrgang zur Weiterbildung nach §9 FHStG idgF\n</xsl:text>
</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.2mm" border-style="solid">
@@ -154,20 +154,20 @@
<fo:block-container position="absolute" top="87mm" left="16mm">
<fo:block text-align="left" line-height="10pt" font-family="sans-serif" font-size="10pt" font-weight="bold">
<xsl:value-of select="studiensemester_aktuell" />
<xsl:value-of select="studiensemester" />
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="87mm" left="137mm">
<fo:block text-align="left" line-height="10pt" font-family="sans-serif" font-size="10pt" font-weight="bold">
<xsl:value-of select="semester_aktuell_semester -1" /><xsl:text>. Semester</xsl:text>
<xsl:value-of select="semester -1" /><xsl:text>. Semester</xsl:text>
</fo:block>
</fo:block-container>
<!-- TABELLE -->
<fo:block-container position="absolute" top="110mm" left="15mm">
<fo:block text-align="left" line-height="14pt" font-family="sans-serif" font-size="10pt" font-weight="bold">
<xsl:text>Folgende Prüfungen wurden erfolgreich abgelegt:</xsl:text>
<xsl:text>Folgende Prüfungen wurden abgelegt:</xsl:text>
</fo:block>
</fo:block-container>