mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-05 14:19:27 +00:00
Anzeige alternative Studiensemesterbezeichnung
This commit is contained in:
@@ -1,384 +1,385 @@
|
||||
<?php
|
||||
/* Copyright (C) 2008 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>.
|
||||
*/
|
||||
|
||||
//PDF fuer die Anwesenheitsliste auf CIS
|
||||
|
||||
//PDF erzeugen
|
||||
$pdf = new PDF('P','pt');
|
||||
$pdf->Open();
|
||||
$pdf->AddPage();
|
||||
$pdf->AliasNbPages();
|
||||
|
||||
$pdf->SetFillColor(111,111,111);
|
||||
$pdf->SetXY(30,40);
|
||||
$stgobj=new studiengang();
|
||||
$stgobj->load($stg);
|
||||
//Logo
|
||||
$pdf->Image("../../../skin/images/logo.jpg","418","45","","45","jpg","");
|
||||
//$pdf->Image("../../../skin/images/tw_logo_02.jpg","400","30","116","43","jpg","");
|
||||
|
||||
$bezeichnung='';
|
||||
if ($lvobj = new lehrveranstaltung($lvid))
|
||||
$bezeichnung=mb_convert_encoding($lvobj->bezeichnung,'ISO-8859-15','UTF-8');
|
||||
|
||||
$pdf->SetFont('Arial','',16);
|
||||
$pdf->MultiCell(0,20,'Anwesenheitsliste '.$bezeichnung,0,'L',0);
|
||||
|
||||
$pdf->SetFont('Arial','',10);
|
||||
$pdf->SetFillColor(190,190,190);
|
||||
//Bei langen Namen muss der Gruppenname etwas weiter unten angezeigt werden da er
|
||||
//sonst von der zweiten Zeile des Titels ueberschrieben wird.
|
||||
if(strlen($bezeichnung)>50)
|
||||
$pdf->SetXY(30,75);
|
||||
else
|
||||
$pdf->SetXY(30,60);
|
||||
|
||||
//$stsem_obj = new studiensemester($conn);
|
||||
//$stsem = $stsem_obj->getaktorNext();
|
||||
|
||||
$qry = "SELECT distinct on(kuerzel, semester, verband, gruppe, gruppe_kurzbz) UPPER(stg_typ::varchar(1) || stg_kurzbz) as kuerzel, semester, verband, gruppe, gruppe_kurzbz from campus.vw_lehreinheit WHERE lehrveranstaltung_id='".addslashes($lvid)."' AND studiensemester_kurzbz='".addslashes($stsem)."'";
|
||||
if($lehreinheit_id!='')
|
||||
$qry.=" AND lehreinheit_id='".addslashes($lehreinheit_id)."'";
|
||||
|
||||
$gruppen='';
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
while($row = $db->db_fetch_object($result))
|
||||
{
|
||||
if($gruppen!='')
|
||||
$gruppen.=', ';
|
||||
if($row->gruppe_kurzbz=='')
|
||||
$gruppen.=trim($row->kuerzel.'-'.$row->semester.$row->verband.$row->gruppe);
|
||||
else
|
||||
$gruppen.=$row->gruppe_kurzbz;
|
||||
}
|
||||
}
|
||||
$gruppen=mb_convert_encoding($gruppen,'ISO-8859-15','UTF-8');
|
||||
|
||||
if(strlen($gruppen)>50)
|
||||
$linebreak="\n";
|
||||
else
|
||||
$linebreak=' ';
|
||||
$pdf->MultiCell(0,15,'Gruppe: '.$gruppen.$linebreak.'Studiensemester: '.$stsem);
|
||||
|
||||
$maxY=$pdf->GetY();
|
||||
$maxY=getmax($maxY,$pdf->GetY());
|
||||
|
||||
|
||||
$pdf->SetFont('Arial','B',12);
|
||||
|
||||
$pdf->SetXY(30,90);
|
||||
$pdf->MultiCell(0,20,'Monat _________');
|
||||
|
||||
//Anfang Tabelle
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$lineheight=12;
|
||||
//Datum
|
||||
$maxY=$pdf->GetY()+10;
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(280,$lineheight,'Datum',1,'L',0);
|
||||
$maxX +=280;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
|
||||
//Anzahl der abgehaltenen Stunden
|
||||
$maxY=$pdf->GetY();
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(280,$lineheight,'Anzahl der abgehaltenen Einheiten',1,'L',0);
|
||||
$maxX +=280;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
|
||||
//Lektoren
|
||||
$pdf->SetFont('Arial','B',10);
|
||||
$maxY=$pdf->GetY();
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(520,$lineheight+2,'LektorInnen',1,'L',1);
|
||||
|
||||
//Schleife aller lektoren
|
||||
|
||||
$qry = "SELECT
|
||||
distinct vorname, nachname
|
||||
FROM campus.vw_benutzer, lehre.tbl_lehreinheit, lehre.tbl_lehreinheitmitarbeiter
|
||||
WHERE
|
||||
uid=mitarbeiter_uid AND
|
||||
tbl_lehreinheit.lehreinheit_id=tbl_lehreinheitmitarbeiter.lehreinheit_id AND
|
||||
lehrveranstaltung_id='".addslashes($lvid)."' AND
|
||||
studiensemester_kurzbz='$stsem' ";
|
||||
if($lehreinheit_id!='')
|
||||
$qry.=" AND tbl_lehreinheit.lehreinheit_id='".addslashes($lehreinheit_id)."'";
|
||||
$qry.=" ORDER BY nachname, vorname;";
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
while($row=$db->db_fetch_object($result))
|
||||
{
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$maxY=$pdf->GetY();
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
|
||||
$vorname=mb_convert_encoding(trim($row->vorname),'ISO-8859-15','UTF-8');
|
||||
$nachname=mb_convert_encoding(trim($row->nachname),'ISO-8859-15','UTF-8');
|
||||
$name="$vorname $nachname";
|
||||
|
||||
$pdf->MultiCell(280,$lineheight,$name,1,'L',0);
|
||||
$maxX +=280;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
}
|
||||
}
|
||||
//Studenten
|
||||
$pdf->SetFont('Arial','B',10);
|
||||
$maxY=$pdf->GetY();
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(520,$lineheight+2,'Studierende',1,'L',1);
|
||||
|
||||
$maxY=$pdf->GetY();
|
||||
$pdf->tablewidths = array(20,140,60,60,40,40,40,40,40,40); //Spaltenbreiten setzen
|
||||
$pdf->SetLeftMargin(30);
|
||||
$pdf->SetTopMargin(100); // Auch in der Funktion Header umstellen!!!
|
||||
|
||||
$aligns = array('R','L','C','C','L','L','L','L','L','L'); //Ausrichtung der Tabellen festlegen
|
||||
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$pdf->SetXY(30,$maxY);
|
||||
$inhalt[]=array(' ','HörerIn/Name','Kennzeichen','Gruppe','','','','','',''); //Spaltenueberschriften
|
||||
|
||||
//Studenten holen
|
||||
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$maxY=$pdf->GetY();
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(20,$lineheight,'',1,'R',0);
|
||||
$maxX +=20;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->SetFont('Arial','B',8);
|
||||
$pdf->MultiCell(130,$lineheight,mb_convert_encoding('Hörer/Name','ISO-8859-15','UTF-8'),1,'L',0);
|
||||
$maxX +=130;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(65,$lineheight,'Kennzeichen',1,'C',0);
|
||||
$maxX +=65;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(65,$lineheight,'Gruppe',1,'C',0);
|
||||
$maxX +=65;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$stsem_obj = new studiensemester();
|
||||
$stsem_obj->load($stsem);
|
||||
$stsemdatumvon = $stsem_obj->start;
|
||||
$stsemdatumbis = $stsem_obj->ende;
|
||||
|
||||
$qry = "SELECT
|
||||
distinct on(nachname, vorname, person_id) vorname, nachname, matrikelnr,
|
||||
tbl_studentlehrverband.semester, tbl_studentlehrverband.verband, tbl_studentlehrverband.gruppe,
|
||||
(SELECT status_kurzbz FROM public.tbl_prestudentstatus WHERE prestudent_id=tbl_student.prestudent_id ORDER BY datum DESC, insertamum DESC, ext_id DESC LIMIT 1) as status,
|
||||
tbl_bisio.bisio_id, tbl_bisio.von, tbl_bisio.bis,
|
||||
tbl_zeugnisnote.note
|
||||
FROM
|
||||
campus.vw_student_lehrveranstaltung JOIN public.tbl_benutzer USING(uid)
|
||||
JOIN public.tbl_person USING(person_id) JOIN public.tbl_student ON(uid=student_uid)
|
||||
LEFT JOIN public.tbl_studentlehrverband USING(student_uid,studiensemester_kurzbz)
|
||||
LEFT JOIN lehre.tbl_zeugnisnote on(vw_student_lehrveranstaltung.lehrveranstaltung_id=tbl_zeugnisnote.lehrveranstaltung_id AND tbl_zeugnisnote.student_uid=tbl_student.student_uid AND tbl_zeugnisnote.studiensemester_kurzbz=tbl_studentlehrverband.studiensemester_kurzbz)
|
||||
LEFT JOIN bis.tbl_bisio ON(uid=tbl_bisio.student_uid)
|
||||
WHERE
|
||||
vw_student_lehrveranstaltung.lehrveranstaltung_id='".addslashes($lvid)."' AND
|
||||
vw_student_lehrveranstaltung.studiensemester_kurzbz='".addslashes($stsem)."'";
|
||||
|
||||
if($lehreinheit_id!='')
|
||||
$qry.=" AND vw_student_lehrveranstaltung.lehreinheit_id='".addslashes($lehreinheit_id)."'";
|
||||
|
||||
$qry.=' ORDER BY nachname, vorname, person_id, tbl_bisio.bis DESC';
|
||||
//echo $qry;
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
$i=0;
|
||||
while($elem = $db->db_fetch_object($result))
|
||||
{
|
||||
//Abbrecher und Unterbrecher nicht anzeigen
|
||||
if($elem->status!='Abbrecher' && $elem->status!='Unterbrecher')
|
||||
{
|
||||
$i++;
|
||||
if($i%2)
|
||||
$pdf->SetFillColor(190,190,190);
|
||||
else
|
||||
$pdf->SetFillColor(255,255,255);
|
||||
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$maxY=$pdf->GetY();
|
||||
if($maxY>770)
|
||||
{
|
||||
$pdf->AddPage();
|
||||
$maxY=$pdf->GetY();
|
||||
}
|
||||
|
||||
$vorname=mb_convert_encoding(trim($elem->vorname),'ISO-8859-15','UTF-8');
|
||||
$nachname=mb_convert_encoding(trim($elem->nachname),'ISO-8859-15','UTF-8');
|
||||
$name="$vorname $nachname";
|
||||
$matrikelnr=trim(mb_convert_encoding($elem->matrikelnr,'ISO-8859-15','UTF-8'));
|
||||
$sem_verb_grup=trim(mb_convert_encoding($elem->semester.$elem->verband.$elem->gruppe,'ISO-8859-15','UTF-8'));
|
||||
|
||||
|
||||
|
||||
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(20,$lineheight,$i,1,'R',1);
|
||||
$maxX +=20;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->SetFont('Courier','B',8);
|
||||
$pdf->MultiCell(130,$lineheight,$nachname,1,'L',1);
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$pdf->SetXY($maxX+strlen($nachname)*5+1,$maxY);
|
||||
if($elem->status=='Incoming') //Incoming
|
||||
$inc=' (i)';
|
||||
else
|
||||
$inc='';
|
||||
|
||||
if($elem->bisio_id!='' && $elem->status!='Incoming' && ($elem->bis > $stsemdatumvon || $elem->bis=='') && $elem->von < $stsemdatumbis) //Outgoing
|
||||
$inc.=' (o)';
|
||||
|
||||
if($elem->note==6) //angerechnet
|
||||
$inc.=' (ar)';
|
||||
|
||||
|
||||
$pdf->MultiCell(130,$lineheight,$vorname.$inc,0,'L',0);
|
||||
$maxX +=130;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$pdf->MultiCell(65,$lineheight,$matrikelnr,1,'C',1);
|
||||
$maxX +=65;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(65,$lineheight,$sem_verb_grup,1,'C',1);
|
||||
$maxX +=65;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',1);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',1);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',1);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',1);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',1);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',1);
|
||||
$inhalt[]=array($i,$nachname.' '.$vorname,$matrikelnr,$sem_verb_grup,'','','','','','');
|
||||
}
|
||||
}
|
||||
}
|
||||
//Fussnote
|
||||
$maxY=$pdf->GetY()+5;
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$pdf->MultiCell(520,$lineheight,'(i) ... Incoming',0,'L',0);
|
||||
$pdf->MultiCell(520,$lineheight,'(o) ... Outgoing',0,'L',0);
|
||||
$pdf->MultiCell(520,$lineheight,'(ar) ... angerechnet',0,'L',0);
|
||||
|
||||
//FHStg
|
||||
$maxY=$pdf->GetY()+5;
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->SetFont('Arial','B',8);
|
||||
|
||||
|
||||
$bezeichnung=mb_convert_encoding('Fachhochschulstudiengang ('.strtoupper($stgobj->typ).') '.$stgobj->bezeichnung,'ISO-8859-15','UTF-8');
|
||||
$pdf->MultiCell(520,$lineheight,$bezeichnung,0,'L',0);
|
||||
|
||||
//FHStg
|
||||
$maxY=$pdf->GetY();
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$pdf->MultiCell(520,$lineheight,'Fehlt ein/e Student/in länger als 2 Wochen, bitte um einen deutlichen Vermerk auf der Anwesenheitsliste. Die Anwesenheitsliste bitte am Ende des Monats im Sekretariat abgeben! Bitte achten Sie darauf, dass Sie nur VOLLST�NDIG AUSGEF�LLTE LISTEN abgeben!',0,'L',0);
|
||||
$pdf->Output('anwesenheitsliste.pdf','I');
|
||||
<?php
|
||||
/* Copyright (C) 2008 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>.
|
||||
*/
|
||||
|
||||
//PDF fuer die Anwesenheitsliste auf CIS
|
||||
|
||||
//PDF erzeugen
|
||||
$pdf = new PDF('P','pt');
|
||||
$pdf->Open();
|
||||
$pdf->AddPage();
|
||||
$pdf->AliasNbPages();
|
||||
|
||||
$pdf->SetFillColor(111,111,111);
|
||||
$pdf->SetXY(30,40);
|
||||
$stgobj=new studiengang();
|
||||
$stgobj->load($stg);
|
||||
//Logo
|
||||
$pdf->Image("../../../skin/images/logo.jpg","418","45","","45","jpg","");
|
||||
//$pdf->Image("../../../skin/images/tw_logo_02.jpg","400","30","116","43","jpg","");
|
||||
|
||||
$bezeichnung='';
|
||||
if ($lvobj = new lehrveranstaltung($lvid))
|
||||
$bezeichnung=mb_convert_encoding($lvobj->bezeichnung,'ISO-8859-15','UTF-8');
|
||||
|
||||
$pdf->SetFont('Arial','',16);
|
||||
$pdf->MultiCell(0,20,'Anwesenheitsliste '.$bezeichnung,0,'L',0);
|
||||
|
||||
$pdf->SetFont('Arial','',10);
|
||||
$pdf->SetFillColor(190,190,190);
|
||||
//Bei langen Namen muss der Gruppenname etwas weiter unten angezeigt werden da er
|
||||
//sonst von der zweiten Zeile des Titels ueberschrieben wird.
|
||||
if(strlen($bezeichnung)>50)
|
||||
$pdf->SetXY(30,75);
|
||||
else
|
||||
$pdf->SetXY(30,60);
|
||||
|
||||
//$stsem_obj = new studiensemester($conn);
|
||||
//$stsem = $stsem_obj->getaktorNext();
|
||||
|
||||
$qry = "SELECT distinct on(kuerzel, semester, verband, gruppe, gruppe_kurzbz) UPPER(stg_typ::varchar(1) || stg_kurzbz) as kuerzel, semester, verband, gruppe, gruppe_kurzbz from campus.vw_lehreinheit WHERE lehrveranstaltung_id='".addslashes($lvid)."' AND studiensemester_kurzbz='".addslashes($stsem)."'";
|
||||
if($lehreinheit_id!='')
|
||||
$qry.=" AND lehreinheit_id='".addslashes($lehreinheit_id)."'";
|
||||
|
||||
$gruppen='';
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
while($row = $db->db_fetch_object($result))
|
||||
{
|
||||
if($gruppen!='')
|
||||
$gruppen.=', ';
|
||||
if($row->gruppe_kurzbz=='')
|
||||
$gruppen.=trim($row->kuerzel.'-'.$row->semester.$row->verband.$row->gruppe);
|
||||
else
|
||||
$gruppen.=$row->gruppe_kurzbz;
|
||||
}
|
||||
}
|
||||
$gruppen=mb_convert_encoding($gruppen,'ISO-8859-15','UTF-8');
|
||||
|
||||
if(strlen($gruppen)>50)
|
||||
$linebreak="\n";
|
||||
else
|
||||
$linebreak=' ';
|
||||
$semester = new studiensemester($stsem);
|
||||
$pdf->MultiCell(0,15,'Gruppe: '.$gruppen.$linebreak.'Studiensemester: '.(($semester->beschreibung != NULL) ? $semester->beschreibung : $stsem));
|
||||
|
||||
$maxY=$pdf->GetY();
|
||||
$maxY=getmax($maxY,$pdf->GetY());
|
||||
|
||||
|
||||
$pdf->SetFont('Arial','B',12);
|
||||
|
||||
$pdf->SetXY(30,90);
|
||||
$pdf->MultiCell(0,20,'Monat _________');
|
||||
|
||||
//Anfang Tabelle
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$lineheight=12;
|
||||
//Datum
|
||||
$maxY=$pdf->GetY()+10;
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(280,$lineheight,'Datum',1,'L',0);
|
||||
$maxX +=280;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
|
||||
//Anzahl der abgehaltenen Stunden
|
||||
$maxY=$pdf->GetY();
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(280,$lineheight,'Anzahl der abgehaltenen Einheiten',1,'L',0);
|
||||
$maxX +=280;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
|
||||
//Lektoren
|
||||
$pdf->SetFont('Arial','B',10);
|
||||
$maxY=$pdf->GetY();
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(520,$lineheight+2,'LektorInnen',1,'L',1);
|
||||
|
||||
//Schleife aller lektoren
|
||||
|
||||
$qry = "SELECT
|
||||
distinct vorname, nachname
|
||||
FROM campus.vw_benutzer, lehre.tbl_lehreinheit, lehre.tbl_lehreinheitmitarbeiter
|
||||
WHERE
|
||||
uid=mitarbeiter_uid AND
|
||||
tbl_lehreinheit.lehreinheit_id=tbl_lehreinheitmitarbeiter.lehreinheit_id AND
|
||||
lehrveranstaltung_id='".addslashes($lvid)."' AND
|
||||
studiensemester_kurzbz='$stsem' ";
|
||||
if($lehreinheit_id!='')
|
||||
$qry.=" AND tbl_lehreinheit.lehreinheit_id='".addslashes($lehreinheit_id)."'";
|
||||
$qry.=" ORDER BY nachname, vorname;";
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
while($row=$db->db_fetch_object($result))
|
||||
{
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$maxY=$pdf->GetY();
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
|
||||
$vorname=mb_convert_encoding(trim($row->vorname),'ISO-8859-15','UTF-8');
|
||||
$nachname=mb_convert_encoding(trim($row->nachname),'ISO-8859-15','UTF-8');
|
||||
$name="$vorname $nachname";
|
||||
|
||||
$pdf->MultiCell(280,$lineheight,$name,1,'L',0);
|
||||
$maxX +=280;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
}
|
||||
}
|
||||
//Studenten
|
||||
$pdf->SetFont('Arial','B',10);
|
||||
$maxY=$pdf->GetY();
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(520,$lineheight+2,'Studierende',1,'L',1);
|
||||
|
||||
$maxY=$pdf->GetY();
|
||||
$pdf->tablewidths = array(20,140,60,60,40,40,40,40,40,40); //Spaltenbreiten setzen
|
||||
$pdf->SetLeftMargin(30);
|
||||
$pdf->SetTopMargin(100); // Auch in der Funktion Header umstellen!!!
|
||||
|
||||
$aligns = array('R','L','C','C','L','L','L','L','L','L'); //Ausrichtung der Tabellen festlegen
|
||||
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$pdf->SetXY(30,$maxY);
|
||||
$inhalt[]=array(' ','HörerIn/Name','Kennzeichen','Gruppe','','','','','',''); //Spaltenueberschriften
|
||||
|
||||
//Studenten holen
|
||||
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$maxY=$pdf->GetY();
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(20,$lineheight,'',1,'R',0);
|
||||
$maxX +=20;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->SetFont('Arial','B',8);
|
||||
$pdf->MultiCell(130,$lineheight,mb_convert_encoding('Hörer/Name','ISO-8859-15','UTF-8'),1,'L',0);
|
||||
$maxX +=130;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(65,$lineheight,'Kennzeichen',1,'C',0);
|
||||
$maxX +=65;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(65,$lineheight,'Gruppe',1,'C',0);
|
||||
$maxX +=65;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',0);
|
||||
$stsem_obj = new studiensemester();
|
||||
$stsem_obj->load($stsem);
|
||||
$stsemdatumvon = $stsem_obj->start;
|
||||
$stsemdatumbis = $stsem_obj->ende;
|
||||
|
||||
$qry = "SELECT
|
||||
distinct on(nachname, vorname, person_id) vorname, nachname, matrikelnr,
|
||||
tbl_studentlehrverband.semester, tbl_studentlehrverband.verband, tbl_studentlehrverband.gruppe,
|
||||
(SELECT status_kurzbz FROM public.tbl_prestudentstatus WHERE prestudent_id=tbl_student.prestudent_id ORDER BY datum DESC, insertamum DESC, ext_id DESC LIMIT 1) as status,
|
||||
tbl_bisio.bisio_id, tbl_bisio.von, tbl_bisio.bis,
|
||||
tbl_zeugnisnote.note
|
||||
FROM
|
||||
campus.vw_student_lehrveranstaltung JOIN public.tbl_benutzer USING(uid)
|
||||
JOIN public.tbl_person USING(person_id) JOIN public.tbl_student ON(uid=student_uid)
|
||||
LEFT JOIN public.tbl_studentlehrverband USING(student_uid,studiensemester_kurzbz)
|
||||
LEFT JOIN lehre.tbl_zeugnisnote on(vw_student_lehrveranstaltung.lehrveranstaltung_id=tbl_zeugnisnote.lehrveranstaltung_id AND tbl_zeugnisnote.student_uid=tbl_student.student_uid AND tbl_zeugnisnote.studiensemester_kurzbz=tbl_studentlehrverband.studiensemester_kurzbz)
|
||||
LEFT JOIN bis.tbl_bisio ON(uid=tbl_bisio.student_uid)
|
||||
WHERE
|
||||
vw_student_lehrveranstaltung.lehrveranstaltung_id='".addslashes($lvid)."' AND
|
||||
vw_student_lehrveranstaltung.studiensemester_kurzbz='".addslashes($stsem)."'";
|
||||
|
||||
if($lehreinheit_id!='')
|
||||
$qry.=" AND vw_student_lehrveranstaltung.lehreinheit_id='".addslashes($lehreinheit_id)."'";
|
||||
|
||||
$qry.=' ORDER BY nachname, vorname, person_id, tbl_bisio.bis DESC';
|
||||
//echo $qry;
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
$i=0;
|
||||
while($elem = $db->db_fetch_object($result))
|
||||
{
|
||||
//Abbrecher und Unterbrecher nicht anzeigen
|
||||
if($elem->status!='Abbrecher' && $elem->status!='Unterbrecher')
|
||||
{
|
||||
$i++;
|
||||
if($i%2)
|
||||
$pdf->SetFillColor(190,190,190);
|
||||
else
|
||||
$pdf->SetFillColor(255,255,255);
|
||||
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$maxY=$pdf->GetY();
|
||||
if($maxY>770)
|
||||
{
|
||||
$pdf->AddPage();
|
||||
$maxY=$pdf->GetY();
|
||||
}
|
||||
|
||||
$vorname=mb_convert_encoding(trim($elem->vorname),'ISO-8859-15','UTF-8');
|
||||
$nachname=mb_convert_encoding(trim($elem->nachname),'ISO-8859-15','UTF-8');
|
||||
$name="$vorname $nachname";
|
||||
$matrikelnr=trim(mb_convert_encoding($elem->matrikelnr,'ISO-8859-15','UTF-8'));
|
||||
$sem_verb_grup=trim(mb_convert_encoding($elem->semester.$elem->verband.$elem->gruppe,'ISO-8859-15','UTF-8'));
|
||||
|
||||
|
||||
|
||||
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(20,$lineheight,$i,1,'R',1);
|
||||
$maxX +=20;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->SetFont('Courier','B',8);
|
||||
$pdf->MultiCell(130,$lineheight,$nachname,1,'L',1);
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$pdf->SetXY($maxX+strlen($nachname)*5+1,$maxY);
|
||||
if($elem->status=='Incoming') //Incoming
|
||||
$inc=' (i)';
|
||||
else
|
||||
$inc='';
|
||||
|
||||
if($elem->bisio_id!='' && $elem->status!='Incoming' && ($elem->bis > $stsemdatumvon || $elem->bis=='') && $elem->von < $stsemdatumbis) //Outgoing
|
||||
$inc.=' (o)';
|
||||
|
||||
if($elem->note==6) //angerechnet
|
||||
$inc.=' (ar)';
|
||||
|
||||
|
||||
$pdf->MultiCell(130,$lineheight,$vorname.$inc,0,'L',0);
|
||||
$maxX +=130;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$pdf->MultiCell(65,$lineheight,$matrikelnr,1,'C',1);
|
||||
$maxX +=65;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(65,$lineheight,$sem_verb_grup,1,'C',1);
|
||||
$maxX +=65;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',1);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',1);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',1);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',1);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',1);
|
||||
$maxX +=40;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(40,$lineheight,'',1,'L',1);
|
||||
$inhalt[]=array($i,$nachname.' '.$vorname,$matrikelnr,$sem_verb_grup,'','','','','','');
|
||||
}
|
||||
}
|
||||
}
|
||||
//Fussnote
|
||||
$maxY=$pdf->GetY()+5;
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$pdf->MultiCell(520,$lineheight,'(i) ... Incoming',0,'L',0);
|
||||
$pdf->MultiCell(520,$lineheight,'(o) ... Outgoing',0,'L',0);
|
||||
$pdf->MultiCell(520,$lineheight,'(ar) ... angerechnet',0,'L',0);
|
||||
|
||||
//FHStg
|
||||
$maxY=$pdf->GetY()+5;
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->SetFont('Arial','B',8);
|
||||
|
||||
|
||||
$bezeichnung=mb_convert_encoding('Fachhochschulstudiengang ('.strtoupper($stgobj->typ).') '.$stgobj->bezeichnung,'ISO-8859-15','UTF-8');
|
||||
$pdf->MultiCell(520,$lineheight,$bezeichnung,0,'L',0);
|
||||
|
||||
//FHStg
|
||||
$maxY=$pdf->GetY();
|
||||
$maxX=30;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$pdf->MultiCell(520,$lineheight,'Fehlt ein/e Student/in länger als 2 Wochen, bitte um einen deutlichen Vermerk auf der Anwesenheitsliste. Die Anwesenheitsliste bitte am Ende des Monats im Sekretariat abgeben! Bitte achten Sie darauf, dass Sie nur VOLLST�NDIG AUSGEF�LLTE LISTEN abgeben!',0,'L',0);
|
||||
$pdf->Output('anwesenheitsliste.pdf','I');
|
||||
?>
|
||||
@@ -76,7 +76,8 @@ if($result = $db->db_query($qry))
|
||||
$gruppen=mb_convert_encoding($gruppen,'ISO-8859-15','UTF-8');
|
||||
|
||||
$pdf->MultiCell(0,20,'Gruppe: '.$gruppen);
|
||||
$pdf->MultiCell(0,20,'Studiensemester: '.$stsem);
|
||||
$semester = new studiensemester($stsem);
|
||||
$pdf->MultiCell(0,20,'Studiensemester: '.(($semester->beschreibung != NULL) ? $semester->beschreibung : $stsem));
|
||||
|
||||
$maxY=$pdf->GetY();
|
||||
$maxY=getmax($maxY,$pdf->GetY());
|
||||
|
||||
@@ -77,6 +77,8 @@ function draw_studienerfolg($uid, $studiensemester_kurzbz)
|
||||
if($studiensemester_aktuell!=$prestudentstatus->studiensemester_kurzbz)
|
||||
$studiensemester_aktuell = $prestudentstatus->studiensemester_kurzbz;
|
||||
|
||||
$studiensemester->load($studiensemester_aktuell);
|
||||
|
||||
$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
|
||||
@@ -120,10 +122,13 @@ function draw_studienerfolg($uid, $studiensemester_kurzbz)
|
||||
$stgl .= trim($stgl_ma->titelpre.' '.$stgl_ma->vorname.' '.$stgl_ma->nachname.' '.$stgl_ma->titelpost);
|
||||
}
|
||||
|
||||
$stdsem = new studiensemester($studiensemester_kurzbz);
|
||||
|
||||
$xml .= " <studienerfolg>";
|
||||
$xml .= " <logopath>".DOC_ROOT."skin/images/</logopath>";
|
||||
$xml .= " <studiensemester>".$row->sembezeichnung."</studiensemester>";
|
||||
$xml .= " <studiensemester_aktuell>".$studiensemester_aktuell."</studiensemester_aktuell>";
|
||||
$xml .= " <studiensemester_aktuell_beschreibung>".(($studiensemester->beschreibung != NULL) ? $studiensemester->beschreibung : $studiensemester_aktuell)."</studiensemester_aktuell_beschreibung>";
|
||||
$xml .= " <semester>".$row->semester."</semester>";
|
||||
$xml .= " <semester_aktuell>".$semester_aktuell.($semester_aktuell!=''?'. Semester':'')."</semester_aktuell>";
|
||||
$xml .= " <semester_aktuell_semester>".$semester_aktuell."</semester_aktuell_semester>";
|
||||
@@ -137,7 +142,7 @@ function draw_studienerfolg($uid, $studiensemester_kurzbz)
|
||||
$gebdatum = date('d.m.Y',strtotime($row->gebdatum));
|
||||
$xml .= " <gebdatum>".$gebdatum."</gebdatum>";
|
||||
$xml .= " <matrikelnr>".$row->matrikelnr."</matrikelnr>";
|
||||
$xml .= " <studiensemester_kurzbz>".$studiensemester_kurzbz."</studiensemester_kurzbz>";
|
||||
$xml .= " <studiensemester_kurzbz>".(($stdsem->beschreibung != NULL) ? $stdsem->beschreibung : $studiensemester_kurzbz)."</studiensemester_kurzbz>";
|
||||
$datum_aktuell = date('d.m.Y');
|
||||
$xml .= " <datum>".$datum_aktuell."</datum>";
|
||||
$xml .= " <orgform>".$orgform."</orgform>";
|
||||
|
||||
@@ -0,0 +1,152 @@
|
||||
<?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="konto">
|
||||
<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>
|
||||
<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="130" posy="15" width="60mm" height="25mm" >
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="person/logopath" />logo2.jpg
|
||||
</xsl:attribute>
|
||||
</fo:external-graphic>
|
||||
</fo:block>
|
||||
<fo:block><xsl:text>
|
||||
</xsl:text></fo:block>
|
||||
<fo:block><xsl:text>
|
||||
</xsl:text></fo:block>
|
||||
|
||||
<fo:block text-align="left" font-size="10pt">
|
||||
Katholische Privat-Universität Linz\n Bethlehemstraße 20\n A-4020 Linz\n DVR-Nr.: 0029874 (1739)
|
||||
</fo:block>
|
||||
<!-- Datum -->
|
||||
<fo:block text-align="right" font-size="10pt">
|
||||
Linz, am<xsl:text> </xsl:text><xsl:value-of select="person/tagesdatum" />
|
||||
</fo:block>
|
||||
<fo:block><xsl:text>
|
||||
</xsl:text></fo:block>
|
||||
<fo:block><xsl:text>
|
||||
</xsl:text></fo:block>
|
||||
<fo:block text-align="right" font-size="10pt">
|
||||
Sozialversicherungsnummer/Ersatzkennzeichen
|
||||
</fo:block>
|
||||
<fo:block text-align="right" font-size="12pt">
|
||||
<xsl:value-of select="person/sozialversicherungsnummer" />
|
||||
</fo:block>
|
||||
<fo:block text-align="right" font-size="12pt">
|
||||
<xsl:value-of select="person/ersatzkennzeichen" />
|
||||
</fo:block>
|
||||
<fo:block><xsl:text>
|
||||
</xsl:text></fo:block>
|
||||
<fo:block><xsl:text>
|
||||
</xsl:text></fo:block>
|
||||
<fo:block><xsl:text>
|
||||
</xsl:text></fo:block>
|
||||
<!-- Zahlungsbestaetigung -->
|
||||
<fo:block text-align="center" font-size="20pt">
|
||||
<xsl:choose>
|
||||
<xsl:when test="buchung/rueckerstattung">
|
||||
AUSZAHLUNGSBESTÄTIGUNG
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
ZAHLUNGSBESTÄTIGUNG
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</fo:block>
|
||||
<fo:block><xsl:text>
|
||||
</xsl:text></fo:block>
|
||||
<fo:block><xsl:text>
|
||||
</xsl:text></fo:block>
|
||||
<fo:block><xsl:text>
|
||||
</xsl:text></fo:block>
|
||||
<fo:block><xsl:text>
|
||||
</xsl:text></fo:block>
|
||||
<fo:block><xsl:text>
|
||||
</xsl:text></fo:block>
|
||||
<fo:block><xsl:text>
|
||||
</xsl:text></fo:block>
|
||||
<fo:block><xsl:text>
|
||||
</xsl:text></fo:block>
|
||||
<fo:block text-align="left" font-size="10pt">
|
||||
<xsl:choose>
|
||||
<xsl:when test="buchung/rueckerstattung">
|
||||
\n <xsl:value-of select="person/name_gesamt" />, geboren am <xsl:value-of select="person/geburtsdatum" />, bestätigt hiermit folgende Auszahlungen:
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
\n Es wird hiermit bestätigt, dass <xsl:value-of select="person/name_gesamt" />, geboren am <xsl:value-of select="person/geburtsdatum" />, folgende Einzahlung getätigt hat:
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</fo:block>
|
||||
<fo:block><xsl:text>
|
||||
</xsl:text></fo:block>
|
||||
<fo:block><xsl:text>
|
||||
</xsl:text></fo:block>
|
||||
<fo:block><xsl:text>
|
||||
</xsl:text></fo:block>
|
||||
|
||||
<!-- Tabelle -->
|
||||
|
||||
<fo:table table-layout="fixed" border-collapse="separate">
|
||||
<fo:table-column column-width="20mm"/>
|
||||
<fo:table-column column-width="15mm"/>
|
||||
<fo:table-column column-width="50mm"/>
|
||||
<fo:table-column column-width="70mm"/>
|
||||
<fo:table-column column-width="20mm"/>
|
||||
|
||||
<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"> Datum</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" font-weight="bold"> Nummer</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" font-weight="bold"> Buchungstyp</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" font-weight="bold"> Buchungstext</fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" font-weight="bold"> Betrag in EUR</fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
<xsl:apply-templates select="buchung"/>
|
||||
<fo:table-row line-height="10pt">
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:value-of select="buchungsdatum" /></fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:value-of select="buchungsnr" /></fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:value-of select="buchungstyp" /></fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:value-of select="buchungstext" /></fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:value-of select="betrag" /></fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
</fo:table-body>
|
||||
</fo:table>
|
||||
|
||||
<fo:block><xsl:text>
|
||||
</xsl:text></fo:block>
|
||||
<!-- Tabelle ENDE -->
|
||||
<fo:block><xsl:text>
|
||||
</xsl:text></fo:block>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</fo:flow>
|
||||
</fo:page-sequence>
|
||||
</fo:root>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="buchung">
|
||||
<fo:table-row line-height="10pt">
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:text> </xsl:text><xsl:value-of select="buchungsdatum" /></fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:text> </xsl:text><xsl:value-of select="buchungsnr" /></fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:text> </xsl:text><xsl:value-of select="buchungstyp_beschreibung" /></fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt"><xsl:text> </xsl:text><xsl:value-of select="buchungstext" /></fo:block></fo:table-cell>
|
||||
<fo:table-cell border-width="0.2mm" border-style="solid" ><fo:block font-size="8pt" content-width="20mm" text-align="right"><xsl:text> </xsl:text><xsl:value-of select="betrag" /></fo:block></fo:table-cell>
|
||||
</fo:table-row>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet >
|
||||
Reference in New Issue
Block a user