Servicekatalog, Testtool, Vorlagen, CMS

Nur Services mit Content_ID anzeigen;
Testtool Fragen-Detailauswertung geschlechterspezifisch + Gebietdetails;
Diplomasupplement Stempel mit Textfluss;
Dokumentanpassungen Lehrgänge;
CMS Neu: Child-Eintrag hinzufügen;
This commit is contained in:
kindlm
2015-02-27 20:42:12 +01:00
parent 1d0591da47
commit 60d7305339
10 changed files with 442 additions and 46 deletions
+13 -9
View File
@@ -76,7 +76,8 @@ echo '<SELECT name="oe_kurzbz">
<OPTION value="">-- '.$p->t("global/alle").' --</OPTION>';
$oe = new organisationseinheit();
$oe->getAll();
//$oe->getAll();
$oe->loadArray($oe->getChilds('Infrastruktur'),'bezeichnung');
foreach($oe->result as $row)
{
if($row->oe_kurzbz==$oe_kurzbz)
@@ -93,9 +94,9 @@ echo '</SELECT>
if($oe_kurzbz!='')
{
// Wenn der OE keine Services zugeteilt sind, dann die Services der untergeordneten OE laden
if($service->getServicesOrganisationseinheit($oe_kurzbz))
if($service->getServicesOrganisationseinheit($oe_kurzbz, true))
if (empty($service->result))
if(!$service->getSubServicesOrganisationseinheit($oe_kurzbz))
if(!$service->getSubServicesOrganisationseinheit($oe_kurzbz,'oe_kurzbz,bezeichnung',true))
die($service->errormsg);
}
else
@@ -116,12 +117,15 @@ echo '<table class="tablesorter" id="myTable">
foreach($service->result as $row)
{
echo '<tr>';
echo '<td>',$row->oe_kurzbz,'</td>';
echo '<td>'.($row->content_id!=''?'<a href="../../../cms/content.php?content_id='.$row->content_id.'">'.$row->bezeichnung.'</a>':$row->bezeichnung).'</td>';
echo '<td>',$row->beschreibung,'</td>';
echo '<td>'.($row->content_id!=''?'<a href="../../../cms/content.php?content_id='.$row->content_id.'">Details</a>':'').'</td>';
echo '</tr>';
if ($row->content_id!='')
{
echo '<tr>';
echo '<td>',$row->oe_kurzbz,'</td>';
echo '<td>'.($row->content_id!=''?'<a href="../../../cms/content.php?content_id='.$row->content_id.'">'.$row->bezeichnung.'</a>':$row->bezeichnung).'</td>';
echo '<td>',$row->beschreibung,'</td>';
echo '<td>'.($row->content_id!=''?'<a href="../../../cms/content.php?content_id='.$row->content_id.'">Details</a>':'').'</td>';
echo '</tr>';
}
}
echo '</tbody>
</table>
+94 -18
View File
@@ -40,6 +40,13 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<h1>Testtool Auswertung - Detail</h1>
';
$user = get_uid();
$rechte = new benutzerberechtigung();
$rechte->getBerechtigungen($user);
if(!$rechte->isBerechtigt('basis/testtool',null,'s'))
die('Sie haben keine Berechtigung für diese Seite');
$stg_kz = (isset($_GET['stg_kz'])?$_GET['stg_kz']:'');
$gebiet_id = (isset($_GET['gebiet_id'])?$_GET['gebiet_id']:'');
$db = new basis_db();
@@ -113,25 +120,44 @@ if(isset($_GET['show']))
//echo $qry.'<br><br>';
if($result = $db->db_query($qry))
{
echo '<br />
<table>
<tr class="liste">
<th></th>
<th>Gebiet</th>
<th>Frage</th>
<th title="Anzahl der Personen die diese Frage gestellt bekommen haben">Gesamt</th>
<th colspan="16">Vorschlag/Punkte/Anzahl</th>
</tr>';
if($row = $db->db_fetch_object($result,0))
{
echo '<br />
Bearbeitungszeit: '.$row->zeit.'<br>
Multipleresponse: '.($row->multipleresponse==true?'Ja':'Nein').'<br>
Gestellte Fragen: '.$row->maxfragen.'<br>
Zufallsfrage: '.($row->zufallfrage==true?'Ja':'Nein').'<br>
Zufallsvorschlag: '.($row->zufallvorschlag==true?'Ja':'Nein').'<br>
Startlevel: '.($row->level_start!=''?$row->level_start:'Keines').'<br>
Höheres Level nach: '.($row->level_sprung_auf!=''?$row->level_sprung_auf.' richtigen Antwort(en)':'-').'<br>
Niedrigeres Level nach: '.($row->level_sprung_ab!=''?$row->level_sprung_ab.' falschen Antwort(en)':'-').'<br>
Levelgleichverteilung: '.($row->levelgleichverteilung==true?'Ja':'Nein').'<br>
Maximalpunkte: '.$row->maxpunkte.'<br>
Antworten pro Zeile: '.$row->antwortenprozeile.'<br>
<br>
<table>
<tr class="liste">
<th></th>
<th>Gebiet</th>
<th>Nummer</th>
<th>Level</th>
<th>Frage</th>
<th title="Anzahl der Personen die diese Frage gestellt bekommen haben">Gesamt (m/w)</th>
<th colspan="30">Nummer | Punkte | Gesamt | Männlich | Weiblich</th>
</tr>';
}
$i=0;
while($row = $db->db_fetch_object($result))
{
$i++;
$hlp='';
$hlp .='<tr class="liste'.($i%2).'">
<td><a href="auswertung_detail_frage.php?frage_id='.$row->frage_id.'">Details</a></td>
<td><a href="auswertung_detail_frage.php?frage_id='.$row->frage_id.'" target="_blank">Details</a></td>
<td nowrap>'.$row->gebiet.'</td>
<td>'.strip_tags($row->text).' ('.$row->nummer.')</td>';
<td>'.$row->nummer.'</td>
<td>'.$row->level.'</td>
<td>'.strip_tags($row->text).'</td>';
//Anzahl Antworten gesamt
$qry = "SELECT
count(*) as anzahl
FROM
@@ -141,10 +167,35 @@ if(isset($_GET['show']))
frage_id=$row->frage_id";
if($stg_kz!='')
$qry.=" AND studiengang_kz='".addslashes($stg_kz)."'";
//Anzahl Antworten männlich
$qry_m = "SELECT
count(*) as anzahl_m
FROM
testtool.tbl_pruefling_frage
JOIN testtool.vw_pruefling USING (pruefling_id)
WHERE
frage_id=$row->frage_id
AND
geschlecht='m'";
if($stg_kz!='')
$qry_m.=" AND studiengang_kz='".addslashes($stg_kz)."'";
//Anzahl Antworten weiblich
$qry_w = "SELECT
count(*) as anzahl_w
FROM
testtool.tbl_pruefling_frage
JOIN testtool.vw_pruefling USING (pruefling_id)
WHERE
frage_id=$row->frage_id
AND
geschlecht='w'";
if($stg_kz!='')
$qry_w.=" AND studiengang_kz='".addslashes($stg_kz)."'";
//Anzahl Antworten je Vorschlag gesamt
$qry_vorschlag = "
SELECT
vorschlag_id, nummer, punkte, count(*) as anzahl_vorschlag, ($qry) as anzahl_gesamt,
vorschlag_id, nummer, punkte, count(*) as anzahl_vorschlag, ($qry) as anzahl_gesamt, ($qry_m) as anzahl_gesamt_m, ($qry_w) as anzahl_gesamt_w,
(SELECT text FROM testtool.tbl_vorschlag_sprache WHERE vorschlag_id=tbl_vorschlag.vorschlag_id AND sprache='German' LIMIT 1) as text
FROM
testtool.tbl_vorschlag
@@ -159,22 +210,47 @@ if(isset($_GET['show']))
GROUP BY
vorschlag_id, nummer, punkte
ORDER BY punkte DESC, vorschlag_id";
//echo $qry_vorschlag.'<br>';
$hlp2='';
$gesamt =0;
$gesamt = 0;
$gesamt_m = 0;
$gesamt_w = 0;
if($result_vorschlag = $db->db_query($qry_vorschlag))
{
while($row_vorschlag = $db->db_fetch_object($result_vorschlag))
{
$qry_geschlecht = " SELECT count(*) AS anz_m
FROM testtool.tbl_vorschlag
JOIN testtool.tbl_antwort USING(vorschlag_id)
JOIN testtool.vw_pruefling USING(pruefling_id)
WHERE geschlecht='m'
AND frage_id='$row->frage_id' ";
if($stg_kz!='')
$qry_geschlecht.=" AND studiengang_kz=".addslashes($stg_kz)."";
$qry_geschlecht.=" AND vorschlag_id='".addslashes($row_vorschlag->vorschlag_id)."'";
$result_geschlecht = $db->db_query($qry_geschlecht);
$row_geschlecht = $db->db_fetch_object($result_geschlecht);
$anz_m = $row_geschlecht->anz_m;
$anz_w = $row_vorschlag->anzahl_vorschlag-$row_geschlecht->anz_m;
$hlp2.= '
<td style="border-left: 1px solid black">&nbsp;'.$row_vorschlag->text.'</td>
<td>'.number_format($row_vorschlag->punkte,2).' Pkt</td>
<td><b>'.$row_vorschlag->anzahl_vorschlag.'</b></td>';
<td style="border-left: 1px solid black; padding-left:2px;"><b>'.$row_vorschlag->nummer.'</b></td>
<!--<td style="padding-left:2px;">'.$row_vorschlag->text.'</td>-->
<td>'.number_format($row_vorschlag->punkte,2).'</td>
<td><b>'.$row_vorschlag->anzahl_vorschlag.'</b></td>
<td style="color:blue;"><b>'.$anz_m.'</b></td>
<td style="color:magenta;"><b>'.$anz_w.'</b></td>';
$gesamt = $row_vorschlag->anzahl_gesamt;
$gesamt_m = $row_vorschlag->anzahl_gesamt_m;
$gesamt_w = $row_vorschlag->anzahl_gesamt_w;
}
}
echo $hlp."<td><b>$gesamt</b></td>".$hlp2;
echo $hlp."<td><b>$gesamt ($gesamt_m/$gesamt_w)</b></td>".$hlp2;
echo '</tr>';
}
echo '</table>';
+13 -4
View File
@@ -40,6 +40,13 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<h1>Testtool Auswertung - Frage Detail</h1>
';
$user = get_uid();
$rechte = new benutzerberechtigung();
$rechte->getBerechtigungen($user);
if(!$rechte->isBerechtigt('basis/testtool',null,'s'))
die('Sie haben keine Berechtigung für diese Seite');
$frage_id = (isset($_GET['frage_id'])?$_GET['frage_id']:'');
$sprache = (isset($_GET['sprache'])?$_GET['sprache']:'German');
$db = new basis_db();
@@ -54,7 +61,8 @@ if($frage_id!='' && is_numeric($frage_id))
tbl_vorschlag_sprache.text as vorschlag_text,
tbl_vorschlag_sprache.audio as vorschlag_audio,
tbl_vorschlag_sprache.bild as vorschlag_bild,
(SELECT count(*) FROM testtool.tbl_antwort WHERE vorschlag_id=tbl_vorschlag.vorschlag_id) as anzahl,
tbl_frage.level,
/*(SELECT count(*) FROM testtool.tbl_antwort WHERE vorschlag_id=tbl_vorschlag.vorschlag_id) as anzahl,*/
(SELECT count(*) FROM testtool.tbl_pruefling_frage WHERE frage_id='$frage_id') as gesamt_anzahl
FROM
testtool.tbl_frage
@@ -78,7 +86,8 @@ if($frage_id!='' && is_numeric($frage_id))
{
//Fragen Details
echo "
Anzahl der Personen die diese Frage bekommen haben (alle Stg): $row->gesamt_anzahl<br>
Anzahl der Personen, die diese Frage bekommen haben (alle Stg): $row->gesamt_anzahl<br>
Level der Frage: $row->level
<br /><br />
";
echo '<center>';
@@ -103,7 +112,7 @@ if($frage_id!='' && is_numeric($frage_id))
}
//Vorschlaege
echo '<center><div style="border: 1px solid black">';
echo '<center><div style="width: 90%; padding: 5px; background-color: #eee;border: 1px solid black">';
//echo "<b>Vorschlag $i: </b>";
$first=false;
echo $row->vorschlag_text;
@@ -122,7 +131,7 @@ if($frage_id!='' && is_numeric($frage_id))
if($row->vorschlag_bild!='')
echo "<img class='testtoolfrage' src='../bild.php?src=vorschlag&amp;vorschlag_id=$row->vorschlag_id&amp;sprache=".$sprache."' /><br/><br/>\n";
echo "<br /><br /><br /><b>Punkte:</b> ".number_format($row->punkte,2);
echo "<br /><b>Anzahl beantwortet (alle Stg):</b> $row->anzahl";
//echo "<br /><b>Anzahl beantwortet (alle Stg):</b> $row->anzahl";
echo '</div></center><br /><br />';
}
}
+18 -2
View File
@@ -121,6 +121,7 @@ $berechtigte_oe = $rechte->getOEkurzbz('basis/cms')
$sprache = isset($_GET['sprache'])?$_GET['sprache']:DEFAULT_LANGUAGE;
$version = isset($_GET['version'])?$_GET['version']:null;
$content_id = isset($_GET['content_id'])?$_GET['content_id']:null;
$parent_content_id = isset($_GET['parent_content_id'])?$_GET['parent_content_id']:null;
$action = isset($_GET['action'])?$_GET['action']:'';
$method = isset($_GET['method'])?$_GET['method']:null;
$filter = isset($_GET['filter'])?$_GET['filter']:null;
@@ -236,7 +237,21 @@ if(!is_null($method))
{
if($content->saveContentSprache())
{
$message .= '<span class="ok">Eintrag wurde erfolgreich angelegt</span>';
if ($parent_content_id!=null)
{
$parent_content = new content();
$parent_content->content_id = $parent_content_id;
$parent_content->child_content_id = $content->content_id;
$parent_content->insertamum = date('Y-m-d');
$parent_content->insertvon = $user;
$parent_content->sort=$parent_content->getMaxSort($parent_content_id)+1;
if($parent_content->addChild())
$message.='<span class="ok">Erfolgreich als Child von Content '.$parent_content_id.' angelegt</span><br>';
else
$message.='<span class="error">'.$content->errormsg.'</span>';
}
$message .= '<span class="ok">Neuer Eintrag wurde erfolgreich angelegt</span>';
$action='prefs';
$content_id=$content->content_id;
$version=1;
@@ -658,7 +673,8 @@ echo '<table width="100%">
$db = new basis_db();
echo '
<a href="'.$_SERVER['PHP_SELF'].'?action=prefs&method=add_new_content">Neuen Eintrag hinzufügen</a>
<a href="'.$_SERVER['PHP_SELF'].'?action=prefs&method=add_new_content">Neuen Eintrag hinzufügen</a><br>
<a href="'.$_SERVER['PHP_SELF'].'?action=prefs&method=add_new_content&filter='.$filter.'&parent_content_id='.$content_id.'">Neuen Child-Eintrag hinzufügen</a>
<br><br>
<a href="admin.php?content_id='.$content_id.'&action='.$action.'&sprache='.$sprache.'&menu=content">Content</a> |
+2 -2
View File
@@ -112,9 +112,9 @@ class reservierung extends basis_db
$this->errormsg = 'Gruppe darf nicht laenger als 1 Zeichen sein';
return false;
}
if(mb_strlen($this->gruppe_kurzbz)>10)
if(mb_strlen($this->gruppe_kurzbz)>32)
{
$this->gruppe_kurzbz = 'Gruppe_kurzbz darf nicht laenger als 10 Zeichen sein';
$this->errormsg = 'Gruppe_kurzbz darf nicht laenger als 32 Zeichen sein';
return false;
}
+29 -9
View File
@@ -233,17 +233,27 @@ class service extends basis_db
/**
* Laedt die Services der uebergebenen OE
*
* @param $oe_kurzbz
* @param string $oe_kurzbz OE_Kurzbezeichnung der zu suchenden Services.
* @param integer $content_id Default: null. Wenn true, werden nur OEs mit eingetragener Content_id zurückgegeben.
* Wenn content_id übergeben wird, wird nur das entsprechende Service zurückgegeben.
*/
public function getServicesOrganisationseinheit($oe_kurzbz)
public function getServicesOrganisationseinheit($oe_kurzbz, $content_id=null)
{
$qry = 'SELECT
*
FROM
public.tbl_service
WHERE
oe_kurzbz='.$this->db_add_param($oe_kurzbz).'
ORDER BY bezeichnung';
oe_kurzbz='.$this->db_add_param($oe_kurzbz);
if (!is_null($content_id) && is_numeric($content_id))
$qry.= ' AND content_id='.$this->db_add_param($content_id);
elseif ($content_id==true)
$qry.= ' AND content_id IS NOT NULL';
else
$qry.= '';
$qry.= ' ORDER BY bezeichnung';
if($result = $this->db_query($qry))
{
@@ -272,18 +282,28 @@ class service extends basis_db
/**
* Laedt die Services der uebergebenen OE und alle Services, die dieser OE untergliedert sind
*
* @param $oe_kurzbz
* @param $order Default: oe_kurzbz,bezeichnung
* @param string $oe_kurzbz
* @param string $order Default: oe_kurzbz,bezeichnung
* @param integer $content_id Default: null. Wenn true, werden nur OEs mit eingetragener Content_id zurückgegeben.
* Wenn content_id übergeben wird, wird nur das entsprechende Service zurückgegeben.
*/
public function getSubServicesOrganisationseinheit($oe_kurzbz, $order='oe_kurzbz,bezeichnung')
public function getSubServicesOrganisationseinheit($oe_kurzbz, $order='oe_kurzbz,bezeichnung', $content_id=null)
{
$qry = 'SELECT
*
FROM
public.tbl_service
WHERE
oe_kurzbz IN (SELECT oe_kurzbz FROM public.tbl_organisationseinheit WHERE oe_parent_kurzbz='.$this->db_add_param($oe_kurzbz).')
ORDER BY '.$order;
oe_kurzbz IN (SELECT oe_kurzbz FROM public.tbl_organisationseinheit WHERE oe_parent_kurzbz='.$this->db_add_param($oe_kurzbz).')';
if (!is_null($content_id) && is_numeric($content_id))
$qry.= ' AND content_id='.$this->db_add_param($content_id);
elseif ($content_id==true)
$qry.= ' AND content_id IS NOT NULL';
else
$qry.= '';
if (!is_null($order))
$qry.= ' ORDER BY '.$order;
if($result = $this->db_query($qry))
{
+1 -1
View File
@@ -380,7 +380,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
<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">Social Media Manager</text:p>
<text:p text:style-name="P6">Social Media Management</text:p>
</draw:text-box>
</draw:frame>
</text:p>
+134
View File
@@ -0,0 +1,134 @@
<?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="abschlusspruefung">
<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="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="64mm" left="16mm" height="20mm">
<fo:block text-align="center" line-height="30pt" font-family="arial" font-size="28pt">
<xsl:text>Diplom</xsl:text>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="91mm" left="16mm" height="20mm">
<fo:block text-align="center" line-height="14pt" font-family="arial" font-size="10pt">
<xsl:text>Gemäß § 10 Abs. 3 Z 9 des Bundesgesetzes über Fachhochschul-Studiengänge\n
(Fachhochschul-Studiengesetz - FHStG), BGBl. Nr. </xsl:text>
<xsl:value-of select="bescheidbgbl1" />
<xsl:text> idgF,\n
verleiht das Fachhochschulkollegium
</xsl:text>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="112mm" left="16mm" height="10mm">
<fo:block text-align="center" line-height="16pt" font-family="arial" font-size="16pt">
<xsl:value-of select="anrede" />
<xsl:text> </xsl:text>
<xsl:value-of select="titelpre" />
<xsl:text> </xsl:text>
<xsl:value-of select="vorname" />
<xsl:text> </xsl:text>
<xsl:value-of select="vornamen" />
<xsl:text> </xsl:text>
<xsl:value-of select="nachname" />
<xsl:if test="string-length(titelpost)!=0">
<xsl:text>, </xsl:text>
<xsl:value-of select="titelpost" />
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="124mm" left="16mm" height="10mm">
<fo:block text-align="center" line-height="14pt" font-family="arial" font-size="10pt">
<xsl:text>geboren am </xsl:text>
<xsl:value-of select="gebdatum" />
<xsl:text> in </xsl:text>
<xsl:if test="string-length(gebort)!=0">
<xsl:value-of select="gebort" />
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:value-of select="geburtsnation" />
<xsl:text>, Staatsbürgerschaft </xsl:text>
<xsl:value-of select="staatsbuergerschaft" />
<xsl:text>,\n</xsl:text>
<xsl:choose>
<xsl:when test="contains(anrede, 'err')">
<xsl:text>der</xsl:text>
</xsl:when>
<xsl:when test="contains(anrede, 'rau')">
<xsl:text>die</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>die/der</xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:text> den Lehrgang zur Weiterbildung nach §9 FHStG idgF</xsl:text>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="138mm" left="16mm" height="10mm">
<fo:block text-align="center" line-height="20pt" font-family="arial" font-size="16pt">
Social Media Management
</fo:block>
<fo:block text-align="center" line-height="10pt" font-family="arial" font-size="10pt" padding-top="5pt">
<xsl:text>(Lehrgangsnummer 0050012</xsl:text>
<!-- <xsl:value-of select="translate(studiengang_kz, '-','')" />-->
<xsl:text>)</xsl:text>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="155mm" left="16mm" height="10mm">
<fo:block text-align="center" line-height="14pt" font-family="arial" font-size="10pt">
<xsl:text>an der Fachhochschule Technikum Wien abgeschlossen hat,\n
den Abschluss-Grad</xsl:text>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="170mm" left="16mm" height="30mm">
<fo:block text-align="center" line-height="16pt" font-family="arial" font-size="16pt">
<xsl:value-of select="titel" />
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="195mm" left="16mm" height="10mm">
<fo:block text-align="center" line-height="10pt" font-family="arial" font-size="10pt">
<xsl:text>Wien, </xsl:text>
<xsl:value-of select="sponsion" />
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="205mm" left="16mm" height="10mm">
<fo:block text-align="center" line-height="11pt" font-family="arial" font-size="10pt">
<xsl:text>Für das Fachhochschulkollegium\n
Der Rektor</xsl:text>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="240mm" left="16mm" height="10mm">
<fo:block text-align="center" line-height="10pt" font-family="arial" font-size="10pt">
<xsl:value-of select="rektor" />
</fo:block>
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</xsl:template>
</xsl:stylesheet>
+134
View File
@@ -0,0 +1,134 @@
<?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="abschlusspruefung">
<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="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="64mm" left="16mm" height="20mm">
<fo:block text-align="center" line-height="30pt" font-family="arial" font-size="28pt">
<xsl:text>Diplom</xsl:text>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="91mm" left="16mm" height="20mm">
<fo:block text-align="center" line-height="14pt" font-family="arial" font-size="10pt">
<xsl:text>Gemäß § 10 Abs. 3 Z 9 des Bundesgesetzes über Fachhochschul-Studiengänge\n
(Fachhochschul-Studiengesetz - FHStG), BGBl. Nr. </xsl:text>
<xsl:value-of select="bescheidbgbl1" />
<xsl:text> idgF,\n
verleiht das Fachhochschulkollegium
</xsl:text>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="112mm" left="16mm" height="10mm">
<fo:block text-align="center" line-height="16pt" font-family="arial" font-size="16pt">
<xsl:value-of select="anrede" />
<xsl:text> </xsl:text>
<xsl:value-of select="titelpre" />
<xsl:text> </xsl:text>
<xsl:value-of select="vorname" />
<xsl:text> </xsl:text>
<xsl:value-of select="vornamen" />
<xsl:text> </xsl:text>
<xsl:value-of select="nachname" />
<xsl:if test="string-length(titelpost)!=0">
<xsl:text>, </xsl:text>
<xsl:value-of select="titelpost" />
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="124mm" left="16mm" height="10mm">
<fo:block text-align="center" line-height="14pt" font-family="arial" font-size="10pt">
<xsl:text>geboren am </xsl:text>
<xsl:value-of select="gebdatum" />
<xsl:text> in </xsl:text>
<xsl:if test="string-length(gebort)!=0">
<xsl:value-of select="gebort" />
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:value-of select="geburtsnation" />
<xsl:text>, Staatsbürgerschaft </xsl:text>
<xsl:value-of select="staatsbuergerschaft" />
<xsl:text>,\n</xsl:text>
<xsl:choose>
<xsl:when test="contains(anrede, 'err')">
<xsl:text>der</xsl:text>
</xsl:when>
<xsl:when test="contains(anrede, 'rau')">
<xsl:text>die</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>die/der</xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:text> den Lehrgang zur Weiterbildung nach §9 FHStG idgF</xsl:text>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="138mm" left="16mm" height="10mm">
<fo:block text-align="center" line-height="20pt" font-family="arial" font-size="16pt">
Social Media Management
</fo:block>
<fo:block text-align="center" line-height="10pt" font-family="arial" font-size="10pt" padding-top="5pt">
<xsl:text>(Lehrgangsnummer 0050005</xsl:text>
<!-- <xsl:value-of select="translate(studiengang_kz, '-','')" />-->
<xsl:text>)</xsl:text>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="155mm" left="16mm" height="10mm">
<fo:block text-align="center" line-height="14pt" font-family="arial" font-size="10pt">
<xsl:text>an der Fachhochschule Technikum Wien abgeschlossen hat,\n
den Abschluss-Grad</xsl:text>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="170mm" left="16mm" height="30mm">
<fo:block text-align="center" line-height="16pt" font-family="arial" font-size="16pt">
<xsl:value-of select="titel" />
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="195mm" left="16mm" height="10mm">
<fo:block text-align="center" line-height="10pt" font-family="arial" font-size="10pt">
<xsl:text>Wien, </xsl:text>
<xsl:value-of select="sponsion" />
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="205mm" left="16mm" height="10mm">
<fo:block text-align="center" line-height="11pt" font-family="arial" font-size="10pt">
<xsl:text>Für das Fachhochschulkollegium\n
Der Rektor</xsl:text>
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="240mm" left="16mm" height="10mm">
<fo:block text-align="center" line-height="10pt" font-family="arial" font-size="10pt">
<xsl:value-of select="rektor" />
</fo:block>
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</xsl:template>
</xsl:stylesheet>
+4 -1
View File
@@ -1245,6 +1245,9 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
<style:style style:name="fr3" style:family="graphic" style:parent-style-name="Graphics">
<style:graphic-properties style:run-through="foreground" style:wrap="run-through" style:number-wrapped-paragraphs="no-limit" style:vertical-pos="from-top" style:vertical-rel="paragraph" style:horizontal-pos="from-left" style:horizontal-rel="char" style:mirror="none" fo:clip="rect(0cm, 0cm, 0cm, 0cm)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
</style:style>
<style:style style:name="fr4" style:family="graphic" style:parent-style-name="Graphics">
<style:graphic-properties style:run-through="foreground" style:wrap="run-through" style:number-wrapped-paragraphs="no-limit" style:vertical-pos="from-top" style:vertical-rel="paragraph" style:horizontal-pos="from-left" style:horizontal-rel="char" style:mirror="none" fo:clip="rect(0cm, 0cm, 0cm, 0cm)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard" style:flow-with-text="true"/>
</style:style>
</office:automatic-styles>
<office:body xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0">
<office:text text:use-soft-page-breaks="true" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0">
@@ -2800,7 +2803,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
<text:p text:style-name="P23">Grading Scheme: Passed with highest distinction, Passed with distinction, Passed</text:p>
<text:p text:style-name="P22"/>
<text:p text:style-name="P22">
<draw:frame xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" draw:style-name="fr3" draw:name="graphics5" text:anchor-type="char" svg:x="4.50cm" svg:y="0.1cm" svg:width="3.5cm" svg:height="3.5cm" draw:z-index="16" >
<draw:frame xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" draw:style-name="fr4" draw:name="graphics5" text:anchor-type="char" svg:x="4.50cm" svg:y="0.1cm" svg:width="3.5cm" svg:height="3.5cm" draw:z-index="16" >
<draw:image xlink:href="Pictures/rundstempel_fhtw_35mm.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
</draw:frame>
</text:p>