* Andreas Oesterreicher < andreas.oesterreicher@technikum-wien.at >
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
*/
/*******************************************************************************************************
* abgabe_lektor_benotung
* abgabe_lektor_benotung ist die Benotungsoberflaeche des Abgabesystems
* fuer Diplom- und Bachelorarbeiten
*******************************************************************************************************/
require_once('../../config/cis.config.inc.php');
require_once('../../include/basis_db.class.php');
require_once('../../include/projektarbeit.class.php');
require_once('../../include/functions.inc.php');
require_once('../../include/datum.class.php');
require_once('../../include/person.class.php');
require_once('../../include/benutzer.class.php');
require_once('../../include/mitarbeiter.class.php');
require_once('../../include/benutzerberechtigung.class.php');
if (!$db = new basis_db())
die('Fehler beim Herstellen der Datenbankverbindung');
// Pfad zu fpdf
define('FPDF_FONTPATH','../../include/pdf/font/');
// library einbinden
require_once('../../include/pdf/fpdf.php');
require_once('../../include/pdf.inc.php');
$getuid=get_uid();
$rechte = new benutzerberechtigung();
$rechte->getBerechtigungen($getuid);
if (isset($_GET['user']))
{
if ($rechte->isBerechtigt('admin',null,'suid'))
$getuid = $_GET['user'];
else
$getuid=get_uid();
}
else
$getuid=get_uid();
$datum_obj = new datum();
$htmlstr = "";
$qualitaet='';
$form='';
$hintergrund='';
$punkte1=0;
$punkteges1='';
$punkte2=0;
$punkteges2='';
$punkte3=0;
$punkteges3='';
$summe1='';
$summe2='';
$note='';
$weight1='';
$weight2='';
$weight3='';
$stgbezeichnung='';
$stgtyp='';
$projekttyp_kurzbz='';
$projektarbeit_id='';
$uid='';
$matrikelnr='';
$titel='';
$beurteiler='';
$ende='';
function getmax($val1,$val2)
{
return ($val1>$val2)?$val1:$val2;
}
$projektarbeit_obj = new projektarbeit();
if(!$projektarbeit_obj->load($_REQUEST['projektarbeit_id']))
die('Projektarbeit konnte nicht geladen werden');
$titel = $projektarbeit_obj->titel;
$benutzer_autor = new benutzer();
if(!$benutzer_autor->load($projektarbeit_obj->student_uid))
die('Studierender kann nicht geladen werden');
$nachname_clean = convertProblemChars($benutzer_autor->nachname);
if(!isset($_POST['projektarbeit_id']))
{
$uid = (isset($_GET['uid'])?$_GET['uid']:'-1');
$projektarbeit_id = (isset($_GET['projektarbeit_id'])?$_GET['projektarbeit_id']:'-1');
}
else
{
$projektarbeit_id=(isset($_POST['projektarbeit_id'])?$_POST['projektarbeit_id']:'-1');
$uid=(isset($_POST['uid'])?$_POST['uid']:'-1');
$matrikelnr=(isset($_POST['matrikelnr'])?$_POST['matrikelnr']:'-1');
$studiengang=(isset($_POST['studiengang'])?$_POST['studiengang']:'');
$stgtyp=(isset($_POST['stgtyp'])?$_POST['stgtyp']:'');
$projekttyp_kurzbz=(isset($_POST['projekttyp_kurzbz'])?$_POST['projekttyp_kurzbz']:'');
$autor=(isset($_POST['autor'])?$_POST['autor']:'');
$perskz=(isset($_POST['perskz'])?$_POST['perskz']:'');
$qualitaet=(isset($_POST['qualitaet'])?$_POST['qualitaet']:'');
$form=(isset($_POST['form'])?$_POST['form']:'');
$hintergrund=(isset($_POST['hintergrund'])?$_POST['hintergrund']:'');
$punkte1=(isset($_POST['punkte1'])?$_POST['punkte1']:'');
$punkteges1=(isset($_POST['punkteges1'])?$_POST['punkteges1']:'');
$punkte2=(isset($_POST['punkte2'])?$_POST['punkte2']:'');
$punkteges2=(isset($_POST['punkteges2'])?$_POST['punkteges2']:'');
$punkte3=(isset($_POST['punkte3'])?$_POST['punkte3']:'');
$punkteges3=(isset($_POST['punkteges3'])?$_POST['punkteges3']:'');
$summe2=(isset($_POST['summe2'])?$_POST['summe2']:'');
$note=(isset($_POST['note'])?$_POST['note']:'');
$ende=(isset($_POST['ende'])?$_POST['ende']:'');
$titelpre=(isset($_POST['titelpre'])?$_POST['titelpre']:'');
$titelpost=(isset($_POST['titelpost'])?$_POST['titelpost']:'');
$qualitaet=mb_convert_encoding(trim($qualitaet),'ISO-8859-15','UTF-8');
$form=mb_convert_encoding(trim($form),'ISO-8859-15','UTF-8');
$hintergrund=mb_convert_encoding(trim($hintergrund),'ISO-8859-15','UTF-8');
$autor=mb_convert_encoding(trim($autor),'ISO-8859-15','UTF-8');
$titel=mb_convert_encoding(trim($titel),'ISO-8859-15','UTF-8');
$titelpre=mb_convert_encoding(trim($titelpre),'ISO-8859-15','UTF-8');
$titelpost=mb_convert_encoding(trim($titelpost),'ISO-8859-15','UTF-8');
$studiengang=mb_convert_encoding(trim($studiengang),'ISO-8859-15','UTF-8');
// Wenn der Titel zu lang ist fuer eine Zeile, dann wird der gesammte Block oberhalb des
// Titels weiter nach oben geschoben, um Platz fuer den mehrzeiligen Titel zu schaffen
// Hier wird berechnet, wie viele Zeilen fuer den Titel benoetigt werden
$titel_len = mb_strlen($titel);
$zeichenprozeile=80;
$zeilen = round((($titel_len/$zeichenprozeile)+0.5),0);
$zeilenhoehe=15;
$titelabzug = ($zeilen*$zeilenhoehe);
if($punkte1>100 || $punkte2>100 || $punkte3>100)
die('
Die Punkteanzahl darf nicht groesser als 100 sein! Zurueck ');
if($projekttyp_kurzbz=='Bachelor')
{
//Bachelorausdruck generieren
//PDF erzeugen
$pdf = new PDF('P','pt');
$pdf->Open();
$pdf->AddPage();
$pdf->AliasNbPages();
$pdf->SetFillColor(111,111,111);
$pdf->SetXY(30,30);
//Logo
$pdf->Image("../../skin/styles/".DEFAULT_STYLE."/logo.jpg","400","25","150","78","jpg","");
$pdf->SetFont('Arial','',12);
$pdf->SetFillColor(190,190,190);
$pdf->SetXY(30,110-$titelabzug);
$pdf->SetFont('Arial','',10);
$pdf->MultiCell(0,15,'Studiengang: ');
$pdf->SetXY(30,125-$titelabzug);
$pdf->SetFont('Arial','',12);
$pdf->MultiCell(0,15,$stgtyp.'studiengang '.$studiengang);
$pdf->SetFont('Arial','',14);
$pdf->SetXY(30,170-$titelabzug);
$pdf->MultiCell(0,15,'Beurteilung Bachelorarbeit');
$qry_beu="SELECT * FROM public.tbl_person JOIN public.tbl_benutzer using(person_id) WHERE uid=".$db->db_add_param($getuid).";";
if(!$erg_beu=@$db->db_query($qry_beu))
{
die('Fehler beim Laden des Betreuernamens');
}
else
{
if($row_beu=$db->db_fetch_object($erg_beu))
{
// UTF-8 encoden
while (list($key, $value) = each($row_beu))
{
if (!empty($value))
$row_beu->$key=mb_convert_encoding(trim($value),'ISO-8859-15','UTF-8');
}
$beurteiler=trim($row_beu->titelpre.' '.$row_beu->vorname.' '.$row_beu->nachname.' '.$row_beu->titelpost);
}
else
{
die('Betreuer nicht gefunden!');
}
}
//Zeile Titel
$pdf->SetFont('Arial','',10);
$maxY=$pdf->GetY()+18;
$maxX=30;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(80,15*$zeilen,'Titel',1,'L',0);
$maxX +=80;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(450-$titelabzug,15,$titel,0,'L',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(450,15*$zeilen,'',1,'L',0);
//Autor
$maxY=$pdf->GetY();
$maxX=30;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(80,18,'Autor',1,'L',0);
$maxX +=80;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(291,18,trim($titelpre." ".$autor." ".$titelpost),1,'L',0);
$maxX +=291;
$pdf->SetXY($maxX,$maxY);
$pdf->SetFont('Arial','',9);
$pdf->MultiCell(159,18,trim('Personenkennzeichen: '),1,'L',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(159,18,trim($perskz),0,'R',0);
//Zeile Beurteilt von
$maxY=$pdf->GetY();
$pdf->SetFont('Arial','',10);
$maxX=30;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(80,18,'Beurteilt von',1,'L',0);
$maxX +=80;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(291,18,$beurteiler,1,'L',0);
$maxX +=291;
$pdf->SetFont('Arial','',9);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(159,18,'Datum: ',1,'L',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(159,18,date('d.m.Y',mktime(0, 0, 0, date("m") , date("d"), date("Y"))),1,'R',0);
//Feld Beurteilung
//Zeile Überschrift
$maxY=$pdf->GetY()+14;
$maxX=30;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(159,36,'',1,'L',0);
$maxX +=159;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(212,36,'Kurze schriftliche Beurteilung',1,'C',0);
$maxX +=212;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,'Punkte (0-100)',0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,36,'',1,'L',0);
$maxX +=53;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,'Gewicht',0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,36,'',1,'L',0);
$maxX +=53;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,' Punkte x Gewicht',0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,36,'',1,'L',0);
//Zeile Qualität
$pdf->SetFont('Arial','B',9);
$maxY=$pdf->GetY();
$maxX=30;
$pdf->SetXY($maxX,$maxY);
//nur fettgedruckter Text
$pdf->MultiCell(159,12,mb_convert_encoding("1.) Qualität des eigenen Beitrags\n\n Angewandte Methodik, z.B.\n\n\n\n\n\n",'ISO-8859-15','UTF-8'),0,'L',0);
$pdf->SetXY($maxX,$maxY);
$pdf->SetFont('Arial','',9);
$maxY=$pdf->GetY();
$maxX=30;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(159,13,mb_convert_encoding("\n\n\n - Wissenschaftlich fundierte,\n systematische, ingenieurmäßige\n Vorgangsweise\n - Ist der eigene Beitrag deutlich\n sichtbar?\n - Qualität der Lösung",'ISO-8859-15','UTF-8'),0,'L',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(159,144,'',1,'L',0);
$maxX +=159;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(212,12,$qualitaet,0,'L',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(212,144,'',1,'L',0);
$maxX +=212;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,$punkte1,0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,144,'',1,'L',0);
$maxX +=53;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,'0.60',0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,144,'',1,'L',0);
$maxX +=53;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,$punkteges1,0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,144,'',1,'L',0);
//Zeile Form
$pdf->SetFont('Arial','B',9);
$maxY=$pdf->GetY();
$maxX=30;
$pdf->SetXY($maxX,$maxY);
//nur fettgedruckter Text
$pdf->MultiCell(159,12,mb_convert_encoding("2.) Form / Stil\n\n\n\n\n\n\n",'ISO-8859-15','UTF-8'),0,'L',0);
$pdf->SetXY($maxX,$maxY);
$pdf->SetFont('Arial','',9);
$maxY=$pdf->GetY();
$maxX=30;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(159,13,mb_convert_encoding("\n\n - Hat die Bachelorarbeit eine klare\n Struktur, entspricht der Vorgabe?\n - Wird einwandfrei zitiert?\n - Abbildungen?\n - Sprache",'ISO-8859-15','UTF-8'),0,'L',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(159,116,'',1,'L',0);
$maxX +=159;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(212,12,$form,0,'L',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(212,116,'',1,'L',0);
$maxX +=212;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,$punkte2,0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,116,'',1,'L',0);
$maxX +=53;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,'0.40',0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,116,'',1,'L',0);
$maxX +=53;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,$punkteges2,0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,116,'',1,'L',0);
//Zeile Hintergrundinfo
$pdf->SetFont('Arial','B',9);
//Zeile Gesamtpunkte
$maxY=$pdf->GetY();
$maxX=30;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(371,17,'Gesamtpunkte',1,'R',0);
$pdf->SetFont('Arial','',9);
$maxX +=371;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,17," ",1,'C',0);
$maxX +=53;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,17,' ',1,'C',0);
$maxX +=53;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,17,$summe2,1,'C',0);
//Feld Umrechnung Punkte=>Note
$maxY=620;
$maxX=30;
$pdf->SetFont('Arial','',10);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(80,12,'Kriterien:');
$pdf->SetFont('Arial','',8);
$maxX +=55;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(95,12,'< 50% = 5',1,'C',0);
$maxX +=95;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(95,12,'>= 50% und < 63% = 4',1,'C',0);
$maxX +=95;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(95,12,'>= 63% und < 75% = 3',1,'C',0);
$maxX +=95;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(95,12,'>= 75% und < 88% = 2',1,'C',0);
$maxX +=95;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(95,12,'>= 88% = 1',1,'C',0);
$maxY=$pdf->GetY();
$maxX=85;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(470,12,'Liegt die Punkteanzahl bei einem Kriterium unter 50%, ist die Bachelorarbeit insgesamt als negativ zu beurteilen.','LB','L',0);
$maxX +=315;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(80,12,'','TB','C',0);
$maxX +=80;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(80,12,'','RB','C',0);
//Zeile Note und Unterschrift
$pdf->SetFont('Arial','',11);
$maxY+=25;
$maxX=+30;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(80,12,'Note: '.$note,0,'L',0);
$maxX=+50;
$maxY=$pdf->GetY();
$pdf->SetXY($maxX,$maxY);
$maxX +=300;
$maxY +=80;
$pdf->SetFont('Arial','',10);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(240,12,"_________________________________",0,'C',0);
$maxY += 12;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(240,12,"Unterschrift",0,'C',0);
$maxY=$pdf->GetY();
$pdf->footerset[1]=1;
$pdf->Output('Beurteilung_'.$nachname_clean.'.pdf','D');
}
else //diplomarbeit
{
$pdf = new PDF('P','pt');
$pdf->Open();
$pdf->AddPage();
$pdf->AliasNbPages();
$pdf->SetFillColor(111,111,111);
$pdf->SetXY(30,30);
//Logo
$pdf->Image("../../skin/styles/".DEFAULT_STYLE."/logo.jpg","400","25","150","78","jpg","");
$pdf->SetFont('Arial','',12);
$pdf->SetFillColor(190,190,190);
$pdf->SetXY(30,110-$titelabzug);
$pdf->SetFont('Arial','',10);
$pdf->MultiCell(0,15,'Studiengang: ');
$pdf->SetXY(30,125-$titelabzug);
$pdf->SetFont('Arial','',12);
$pdf->MultiCell(0,15,$stgtyp.'studiengang '.$studiengang);
$pdf->SetFont('Arial','',14);
$pdf->SetXY(30,150-$titelabzug);
$pdf->MultiCell(0,15,'Beurteilung Masterarbeit - 1. BegutachterIn');
$qry_beu="SELECT * FROM public.tbl_person JOIN public.tbl_benutzer using(person_id) WHERE uid=".$db->db_add_param($getuid).";";
if(!$erg_beu=@$db->db_query($qry_beu))
{
die('Fehler beim Laden des Betreuernamens');
}
else
{
if($row_beu=$db->db_fetch_object($erg_beu))
{
// UTF-8 encoden
while (list($key, $value) = each($row_beu))
{
if (!empty($value))
$row_beu->$key=mb_convert_encoding(trim($value),'ISO-8859-15','UTF-8');
}
$beurteiler=trim($row_beu->titelpre.' '.$row_beu->vorname.' '.$row_beu->nachname.' '.$row_beu->titelpost);
}
else
{
die('Betreuer nicht gefunden!');
}
}
//Zeile Titel
$pdf->SetFont('Arial','',10);
$maxY=$pdf->GetY()+4;
$maxX=30;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(80,15*$zeilen,'Titel',1,'L',0);
$maxX +=80;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(450-$titelabzug,15,$titel,0,'L',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(450,15*$zeilen,'',1,'L',0);
//Autor
$maxY=$pdf->GetY();
$maxX=30;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(80,18,'Autor',1,'L',0);
$maxX +=80;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(291,18,trim($titelpre." ".$autor." ".$titelpost),1,'L',0);
$maxX +=291;
$pdf->SetXY($maxX,$maxY);
$pdf->SetFont('Arial','',9);
$pdf->MultiCell(159,18,trim('Personenkennzeichen: '),1,'L',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(159,18,trim($perskz),0,'R',0);
//Zeile Beurteilt von
$maxY=$pdf->GetY();
$pdf->SetFont('Arial','',10);
$maxX=30;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(80,18,'Beurteilt von',1,'L',0);
$maxX +=80;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(291,18,$beurteiler,1,'L',0);
$maxX +=291;
$pdf->SetFont('Arial','',9);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(159,18,'Datum (dd.mm.yyyy): ',1,'L',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(159,18,date('d.m.Y',mktime(0, 0, 0, date("m") , date("d"), date("Y"))),1,'R',0);
//Feld Beurteilung
//Zeile Überschrift
$maxY=$pdf->GetY()+3;
$maxX=30;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(170,36,'',1,'L',0);
$maxX +=170;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(201,36,'Kurze schriftliche Beurteilung',1,'C',0);
$maxX +=201;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,'Punkte (0-100)',0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,36,'',1,'L',0);
$maxX +=53;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,'Gewicht',0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,36,'',1,'L',0);
$maxX +=53;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,' Punkte x Gewicht',0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,36,'',1,'L',0);
//Zeile Qualität
$pdf->SetFont('Arial','B',9);
$maxY=$pdf->GetY();
$maxX=30;
$pdf->SetXY($maxX,$maxY);
//nur fettgedruckter Text
$pdf->MultiCell(170,12,mb_convert_encoding("Qualität des eigenen Beitrags\nAngewandte Methodik, z.B.\n\n\n\n\n\n Art der Problemlösung \n\n\n\n\n",'ISO-8859-15','UTF-8'),0,'L',0);
$pdf->SetFont('Arial','',9);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(170,12,mb_convert_encoding("\n\n - Projektmäßige Vorgangsweise\n - Wissenschaftlich - systematische\n Methoden in der Analyse bzw.\n Lösungsfindung\n\n\n - Wurde das Problem tatsächlich gelöst?\n - Eigenständigkeit & Kreativität der\n Lösung \n - Ist der eigene Beitrag deutlich sichtbar\n - Technische Qualität der Lösung",'ISO-8859-15','UTF-8'),0,'L',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(170,160,'',1,'L',0);
$maxX +=170;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(201,12,$qualitaet,0,'L',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(201,160,'',1,'L',0);
$maxX +=201;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,$punkte1,0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,160,'',1,'L',0);
$maxX +=53;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,'0.55',0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,160,'',1,'L',0);
$maxX +=53;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,$punkteges1,0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,160,'',1,'L',0);
//Zeile Form
$pdf->SetFont('Arial','B',9);
$maxY=$pdf->GetY();
$maxX=30;
$pdf->SetXY($maxX,$maxY);
//nur fettgedruckter Text
$pdf->MultiCell(170,12,mb_convert_encoding("Form / Stil\n\n\n\n\n\n\n",'ISO-8859-15','UTF-8'),0,'L',0);
$pdf->SetXY($maxX,$maxY);
$pdf->SetFont('Arial','',9);
$pdf->MultiCell(170,12,mb_convert_encoding("\n - Hat die Masterarbeit eine klare\n Struktur, entspricht der Vorgabe\n - Wird einwandfrei zitiert?\n - Abbildungen?\n - Sprache: benötigte Überarbeitung\n seitens seitens des Betreuers/ der\n Betreuerin",'ISO-8859-15','UTF-8'),0,'L',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(170,100,'',1,'L',0);
$maxX +=170;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(201,12,$form,0,'L',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(201,100,'',1,'L',0);
$maxX +=201;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,$punkte2,0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,100,'',1,'L',0);
$maxX +=53;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,'0.20',0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,100,'',1,'L',0);
$maxX +=53;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,$punkteges2,0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,100,'',1,'L',0);
//Zeile Hintergrundinfo
$pdf->SetFont('Arial','B',9 );
$maxY=$pdf->GetY();
$maxX=30;
$pdf->SetXY($maxX,$maxY);
//nur fettgedruckter Text
$pdf->MultiCell(170,12,mb_convert_encoding("Qualität der Hintergrundinformation\n\n\n\n\n\n\n\n\n\n\n",'ISO-8859-15','UTF-8'),0,'L',0);
$pdf->SetFont('Arial','',9 );
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(170,12,mb_convert_encoding("\n - werden Gesamtzusammenhänge\n erkannt, wird Bedeutung und Gewicht\n der Einflussfaktoren /Daten/\n Informationen richtig bewertet?\n - Intelligente Darstellung des relevanten\n Stands der Technik und des\n Firmenumfelds\n - Aufdecken und Darstellen von\n größeren (z.B. wirtschaftlichen oder\n sozialen) Zusammenhängen und\n entsprechende Diskussion",'ISO-8859-15','UTF-8'),0,'L',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(170,150,'',1,'L',0);
$maxX +=170;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(201,12,$hintergrund,0,'L',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(201,150,'',1,'L',0);
$maxX +=201;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,$punkte3,0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,150,'',1,'L',0);
$maxX +=53;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,'0.25',0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,150,'',1,'L',0);
$maxX +=53;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,12,$punkteges3,0,'C',0);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,150,'',1,'L',0);
//Zeile Gesamtpunkte
$maxY=$pdf->GetY();
$maxX=30;
$pdf->SetXY($maxX,$maxY);
$pdf->SetFont('Arial','B',9 );
$pdf->MultiCell(371,17,'Gesamtpunkte',1,'R',0);
$pdf->SetFont('Arial','',9 );
$maxX +=371;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,17," ",1,'C',0);
$maxX +=53;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,17,' ',1,'C',0);
$maxX +=53;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(53,17,$summe2,1,'C',0);
//Feld Umrechnung Punkte=>Note
$maxY=697;
$maxX=30;
$pdf->SetFont('Arial','',10);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(80,12,'Kriterien:');
$pdf->SetFont('Arial','',8);
$maxX +=55;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(95,12,'< 50% = 5',1,'C',0);
$maxX +=95;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(95,12,'>= 50% und < 63% = 4',1,'C',0);
$maxX +=95;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(95,12,'>= 63% und < 75% = 3',1,'C',0);
$maxX +=95;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(95,12,'>= 75% und < 88% = 2',1,'C',0);
$maxX +=95;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(95,12,'>= 88% = 1',1,'C',0);
$maxY=$pdf->GetY();
$maxX=85;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(470,12,'Liegt die Punkteanzahl bei einem Kriterium unter 50%, ist die Masterarbeit insgesamt als negativ zu beurteilen.','LB','L',0);
$maxX +=315;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(80,12,'','TB','C',0);
$maxX +=80;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(80,12,'','RB','C',0);
//Zeile Note und Unterschrift
$pdf->SetFont('Arial','',10);
$maxY+=20;
$maxX = 30;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(450,12,'Das Gutachten des/der 2. Gutachters/Gutachterin liegt vor und ist in die Benotung miteinbezogen.','0','L',0);
$maxY+=17;
$maxX=+30;
$pdf->SetFont('Arial','',11);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(80,12,'Note: '.$note,0,'L',0);
$maxX=+40;
$maxY=$pdf->GetY();
$pdf->SetXY($maxX,$maxY);
$maxX +=300;
$maxY +=4;
$pdf->SetFont('Arial','',10);
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(240,12,"_________________________________",0,'C',0);
$maxY += 11;
$pdf->SetXY($maxX,$maxY);
$pdf->MultiCell(240,12,"Unterschrift",0,'C',0);
$maxY=$pdf->GetY();
$pdf->footerset[1]=1;
$pdf->Output('Beurteilung_'.$nachname_clean.'.pdf','D');
}
exit();
}
$sql_query = "SELECT *,(SELECT abgabedatum FROM campus.tbl_paabgabe WHERE projektarbeit_id=".$db->db_add_param($projektarbeit_id, FHC_INTEGER)." AND abgabedatum is NOT NULL ORDER BY abgabedatum DESC LIMIT 1) as abgabedatum FROM (SELECT DISTINCT ON(tbl_projektarbeit.projektarbeit_id) tbl_studiengang.bezeichnung as stgbezeichnung, tbl_studiengang.typ as stgtyp, *
FROM lehre.tbl_projektarbeit LEFT JOIN lehre.tbl_projektbetreuer using(projektarbeit_id)
LEFT JOIN public.tbl_benutzer on(uid=student_uid)
LEFT JOIN public.tbl_student on(tbl_benutzer.uid=tbl_student.student_uid)
LEFT JOIN public.tbl_person on(tbl_benutzer.person_id=tbl_person.person_id)
LEFT JOIN lehre.tbl_lehreinheit using(lehreinheit_id)
LEFT JOIN lehre.tbl_lehrveranstaltung using(lehrveranstaltung_id)
LEFT JOIN public.tbl_studiengang on(tbl_lehrveranstaltung.studiengang_kz=tbl_studiengang.studiengang_kz)
WHERE (projekttyp_kurzbz='Bachelor' OR projekttyp_kurzbz='Diplom')
AND tbl_projektbetreuer.person_id IN (SELECT person_id FROM public.tbl_benutzer
WHERE public.tbl_benutzer.person_id=lehre.tbl_projektbetreuer.person_id
AND public.tbl_benutzer.uid=".$db->db_add_param($getuid).")
AND lehre.tbl_projektarbeit.note IS NULL
AND lehre.tbl_projektarbeit.projektarbeit_id=".$db->db_add_param($projektarbeit_id, FHC_INTEGER)."
ORDER BY tbl_projektarbeit.projektarbeit_id, betreuerart_kurzbz desc) as xy
ORDER BY nachname";
if(!$erg=$db->db_query($sql_query))
{
die('Fehler beim Laden der Betreuungen');
}
else
{
if($row=$db->db_fetch_object($erg))
{
// UTF-8 encoden
echo '
DA/BA-Benotung
';
$htmlstr = " ";
$htmlstr .= "";
$htmlstr .= "";
$htmlstr .= "< 50% Nicht genügend >= 50% und <63% Genügend >= 63% und < 75% Befriedigend >= 75% und < 88% Gut >= 88% Sehr Gut ";
if($row->projekttyp_kurzbz!='Bachelor')
{
$htmlstr .= "Liegt die Punkteanzahl bei einem Kriterium unter 50%, ist die Masterarbeit insgesamt als negativ zu beurteilen. ";
}
else
{
$htmlstr .= "Liegt die Punkteanzahl bei einem Kriterium unter 50%, ist die Bachelorarbeit insgesamt als negativ zu beurteilen. ";
}
$htmlstr .= "
";
if($row->projekttyp_kurzbz!='Bachelor')
{
$htmlstr.="Das Gutachten des/der 2. Gutachters/Gutachterin liegt vor und ist in die Benotung miteinbezogen ";
}
//$htmlstr .= " ";
$htmlstr .= " ";
$htmlstr.=" Bitte klicken Sie auf den Button 'Formular ausdrucken' um das Benotungsformular zu erstellen. Das ausgedruckte, unterschriebene Formular ist im jeweiligen Sekretariat abzugeben.";
$htmlstr .=" ";
$htmlstr .="";
echo $htmlstr;
echo '';
}
else
{
die('Betreuung nicht gefunden!');
}
}
?>