first commit

This commit is contained in:
aschwarz
2023-02-23 10:52:06 +01:00
commit 8bb9cee456
2426 changed files with 471082 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,376 @@
<?php
########Kontaktdaten HS #####################
$db = dbconnect();
$res_ansp = $db->query("SELECT wert1 name, wert2 mail FROM parameter WHERE pid='6'");
$row_ansp = $res_ansp->fetch_array();
$res_kontakt = $db->query("SELECT wert1 tel, wert2 fax FROM parameter WHERE pid='5'");
$row_kontakt = $res_kontakt->fetch_array();
$heute_format = date("d.m.Y", mktime(0, 0, 0, date("m"), date("d"), date("Y"))); // ISO-8601 Format wie in der Datenbank: Formatierung f&uuml;r Vergleiche erforderlich
$pdf->Image('anschreiben/logo.jpg', 116, 10,64); #http://www.fpdf.de/funktionsreferenz/?funktion=Image
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetY(56);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Zulassung", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pos=$pdf->GetY()+3.7;
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Ludwigsburg,", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$heute_format", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Bearbeiterin", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Telefon", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_kontakt[tel]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Fax", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_kontakt[fax]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "e-mail", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_ansp[mail]", 0, 'R');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY(45);
$pdf->SetX(23);
$pdf->MultiCell(80, 3, "HS Ludwigsburg ".uchr(149)." Postfach 0489 ".uchr(149)." 71604 Ludwigsburg", 0, 'L');
########Kontaktdaten HS Ende #####################
######## Betreff #################################
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY(96.2);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Ausbildung im gehobenen Verwaltungsdienst;", 0, 'L');
$pos=$pdf->GetY()+1.8;
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Zuweisung zu den Ausbildungsstellen in der praktischen Ausbildung", 0, 'L');
######## Betreff Ende ############################
$pos=$pdf->GetY()+7.0;
$pdf->SetFont('Arial', 'BU', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Anlagen", 0, 'L');
$pos=$pdf->GetY()+1.8;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Urlaubskarte", 0, 'L');
$pos=$pdf->GetY()+1.8;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Weitere Bestimmungen zum Zuweisungsbescheid", 0, 'L');
#################################################################################
$pos=$pdf->GetY()+6.6;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Sehr geehrte(r) $saaidx[$j] NAME ,", 0, 'L');
$pos=$pdf->GetY()+6.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "wir weisen Sie gem. § 23 (3) Ausbildungs- und Prüfungsordnung für den gehobenen Verwaltungsdienst (APrOVw gD, GBl. vom 26.09.2007,S.400) für die praktische Ausbildung im Vorbereitungsdienst folgenden Stellen zu:", 0, 'J');
$uid1='schwaral';
$jahrgang='08';
$standort='1';
$_POST[termin] = '1';
$db = dbconnect();
$columns = 5; //five columns
$pos=$pdf->GetY()+5.0;
$pdf->SetY($pos);
//we initialize the table class
$pdf->Table_Init($columns, true, true);
$table_subtype = $table_default_table_type;
$pdf->Set_Table_Type($table_subtype);
//TABLE HEADER SETTINGS
$header_subtype = $table_default_header_type;
for($i=0; $i<$columns; $i++) $header_type[$i] = $table_default_header_type;
$header_type[0]['WIDTH'] = 29.4;
$header_type[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[0]['TEXT'] = "Zeitraum";
$header_type[1]['WIDTH'] = 44.2;
$header_type[1]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[1]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[1]['TEXT'] = "Ausbildungsstelle";
$header_type[2]['WIDTH'] = 30;
$header_type[2]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[2]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[2]['TEXT'] = "Abteilung";
$header_type[3]['WIDTH'] = 39;
$header_type[3]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[3]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[3]['TEXT'] = "Vertiefungsbereich";
$header_type[4]['WIDTH'] = 25.7;
$header_type[4]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[4]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[4]['TEXT'] = "AG-Standort";
#$header_type[1]['COLSPAN'] = "2";
//set the header type
$pdf->Set_Header_Type($header_type);
$pdf->Draw_Header();
//TABLE DATA SETTINGS
$data_subtype = $table_default_data_type;
$data_type = Array();//reset the array
for ($i=0; $i<$columns; $i++) $data_type[$i] = $data_subtype;
$pdf->Set_Data_Type($data_type);
# $fsize = 10;
# $colspan = 1;
# $rr = 255;
$db = dbconnect();
$query = "SELECT vorname, nachname, hs, mail, mail2, dst_id
FROM stan_ag_standort_termine a, stan_ag_standort_wunsch b, stan_antrag c, stud d
WHERE a.fagsid =b.wagsid
AND b.saaid = c.saaid
AND c.uid = d.uid
AND a.datid='$_POST[termin]'
AND a.datum >=c.beginn
AND a.datum <=c.ende
AND b.prio=1
ORDER BY nachname, vorname
limit 0,3";
$result = $db->query ($query)
or die ("Cannot execute query1");
while ($row = $result->fetch_array())
{
$data = Array();
$res4 = $db->query("SELECT bez FROM stan_dienststellen WHERE dst_id='$row[dst_id]'");
$row4 = $res4->fetch_array();
if($row4[bez] != ''){
$dst_bez = $row4[bez];
}else{
$res5 = $db->query("SELECT bez FROM stan_dienststellen_tmp WHERE dst_id='$row[dst_id]'");
$row5 = $res5->fetch_array();
$dst_bez = $row5[bez];
}
if($row[hs] == 'K' or $row[hs] == 'k'){
$hs = "Kehl";
}else{
$hs = "Ludwigsburg";
}
/* Schriftgröße
$data[0]['T_SIZE'] = $fsize;
$data[1]['T_SIZE'] = $fsize+3;
$data[3]['T_SIZE'] = $fsize+4;
*/
/* Schriftfarbe und Zellenhintergrund
$data[0]['T_COLOR'] = array(0,0,0); //Schriftfarbe
$data[0]['BG_COLOR'] = array($rr,$rr,$rr);
$data[3]['T_COLOR'] = array($rr,240,240);
$data[3]['BG_COLOR'] = array($rr,100,135);
*/
$data[0]['TEXT'] = "$row[vorname] $row[nachname]";
$data[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$data[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
#$data[0]['T_TYPE'] = "BI"; // B=BOLD, I=ITALIC
$data[1]['TEXT'] = "$dst_bez";
$data[1]['T_ALIGN'] = "L";
$data[1]['V_ALIGN'] = "M";
$data[2]['TEXT'] = "$hs";
$data[2]['T_ALIGN'] = "L";
$data[2]['V_ALIGN'] = "M";
$data[3]['TEXT'] = "";
$data[3]['T_ALIGN'] = "L";
$data[3]['V_ALIGN'] = "M";
$data[4]['TEXT'] = "";
$data[4]['T_ALIGN'] = "L";
$data[4]['V_ALIGN'] = "M";
$pdf->Draw_Data($data,NULL,10); // -->letzter Parameter Höhe der Datenspalte. Neu prgrammiert in prints/class.fpdf_table.php am 15.04.2009
}
$pdf->Draw_Table_Border();
$pos=$pdf->GetY()+6.4;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Beiliegende Anlagen sind Bestandteil des Zuweisungsbescheids.", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Die Zuweisung zu den AG-Standorten erfolgt zu einem späteren Zeitpunkt.", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Weitere wichtige Informationen zum Zuweisungsbescheid finden Sie unter:", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', 'U', 12);
$pdf->SetTextColor(0,0,255);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "www.hs-ludwigsburg.de", 0, 'J');
$pdf->SetTextColor(0,0,0);
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(70);
$pdf->MultiCell(168, 4.8, "Hochschule>Studiengänge Innenverwaltung>Praktische Ausbildung (Praxissemester)", 0, 'J');
$pos=$pdf->GetY()+9.6;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Mit freundlichen Grüßen", 0, 'J');
$pos=$pdf->GetY()+14.8;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "$row_ansp[name]", 0, 'J');
$uid1 = 'schwaral';
require("urlaubskarte.php");
$pagecount = $pdf->setSourceFile("anschreiben/anlage_zuweisung.pdf");
$tplidx1 = $pdf->ImportPage(1);
$pdf->addPage();
$pdf->useTemplate($tplidx1,0,0,0);
$tplidx1 = $pdf->ImportPage(2);
$pdf->addPage();
$pdf->useTemplate($tplidx1,0,0,0);
$tplidx1 = $pdf->ImportPage(3);
$pdf->addPage();
$pdf->useTemplate($tplidx1,0,0,0);
?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

@ -0,0 +1,580 @@
<?php
$uid1="$row_cur_uid[uid]";
$saaid_alt = "$row_alt[saaid]";
$saaid = "$row_akt[saaid]";
########Kontaktdaten HS #####################
$db = dbconnect();
$res_ansp = $db->query("SELECT wert1 name, wert2 mail FROM parameter WHERE pid='6'");
$row_ansp = $res_ansp->fetch_array();
$res_kontakt = $db->query("SELECT wert1 tel, wert2 fax FROM parameter WHERE pid='5'");
$row_kontakt = $res_kontakt->fetch_array();
$res_stud = $db->query("SELECT nachname, vorname, postrasse, poplz, poort, ag, jahrgang FROM stud WHERE uid='$uid1'");
$row_stud = $res_stud->fetch_array();
$res_dst = $db->query("SELECT dst_id FROM stan_antrag WHERE saaid='$saaid_alt'");
$row_dst = $res_dst->fetch_array();
$result_data2 = $db->query("SELECT distinct 1 FROM stan_dienststellen WHERE dst_id= '$row_dst[dst_id]'");
$rowdata2 = $result_data2->fetch_array();
if($rowdata2[0] == '1'){
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen
WHERE dst_id='$row_dst[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}else{
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen_tmp
WHERE dst_id='$row_dst[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}
$heute_format = date("d.m.Y", mktime(0, 0, 0, date("m"), date("d"), date("Y"))); // ISO-8601 Format wie in der Datenbank: Formatierung f&uuml;r Vergleiche erforderlich
$pdf->Image('anschreiben/logo.png', 116, 10,64); #http://www.fpdf.de/funktionsreferenz/?funktion=Image
$pdf->SetFont('Arial', '', 12);
$pdf->SetY(59.5);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$rowdata3[bez]", 0, 0, 'L');
$pos = $pdf->GetY()+4;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$rowdata3[str]", 0, 0, 'L');
$pos = $pdf->GetY()+4;
/*
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$row_stud[postrasse]", 0, 0, 'L');
*/
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY(73.5);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$rowdata3[plz] $rowdata3[ort]", 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetY(56);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Zulassung", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pos=$pdf->GetY()+3.7;
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Ludwigsburg,", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$heute_format", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Bearbeiterin", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Telefon", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_kontakt[tel]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Fax", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_kontakt[fax]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "e-mail", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_ansp[mail]", 0, 'R');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY(45);
$pdf->SetX(23);
$pdf->MultiCell(80, 3, "HS Ludwigsburg ".uchr(149)." Postfach 0489 ".uchr(149)." 71604 Ludwigsburg", 0, 'L');
########Kontaktdaten HS Ende #####################
######## Betreff #################################
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY(96.2);
$pdf->SetX(23);
$pdf->MultiCell(150, 4.8, "Änderung der Zuweisung in der praktischen Ausbildung von $row_stud[vorname] $row_stud[nachname]", 0, 'L');
######## Betreff Ende ############################
$pos=$pdf->GetY()+14.3;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Sehr geehrte Damen und Herren,", 0, 'L');
$pos=$pdf->GetY()+6.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 5.8, "die Zuweisung von Frau/Herrn $row_stud[vorname] $row_stud[nachname] hat sich gemäß seinem/ihrem Änderungsantrag wie folgt geändert:", 0, 'J');
$pos=$pdf->GetY()+3.2;
$pdf->SetFont('Arial', 'U', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 7.4, "Bisherige Zuweisung", 0, 'J');
$db = dbconnect();
$columns = 5; //five columns
$pos=$pdf->GetY()+1.0;
$pdf->SetY($pos);
//we initialize the table class
$pdf->Table_Init($columns, true, true);
$table_subtype = $table_default_table_type;
$pdf->Set_Table_Type($table_subtype);
//TABLE HEADER SETTINGS
$header_subtype = $table_default_header_type;
for($i=0; $i<$columns; $i++) $header_type[$i] = $table_default_header_type;
$header_type[0]['WIDTH'] = 29.4;
$header_type[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[0]['TEXT'] = "Zeitraum";
$header_type[1]['WIDTH'] = 44.2;
$header_type[1]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[1]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[1]['TEXT'] = "Ausbildungsstelle";
$header_type[2]['WIDTH'] = 30;
$header_type[2]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[2]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[2]['TEXT'] = "Abteilung";
$header_type[3]['WIDTH'] = 39;
$header_type[3]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[3]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[3]['TEXT'] = "Vertiefungsbereich";
$header_type[4]['WIDTH'] = 25.7;
$header_type[4]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[4]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[4]['TEXT'] = "AG-Standort";
#$header_type[1]['COLSPAN'] = "2";
//set the header type
$pdf->Set_Header_Type($header_type);
$pdf->Draw_Header();
//TABLE DATA SETTINGS
$data_subtype = $table_default_data_type;
$data_type = Array();//reset the array
for ($i=0; $i<$columns; $i++) $data_type[$i] = $data_subtype;
$pdf->Set_Data_Type($data_type);
# $fsize = 10;
# $colspan = 1;
# $rr = 255;
$db = dbconnect();
$query = "SELECT a.saaid, b.aendid
FROM stan_printqueue_antrag a, stan_antrag b
WHERE a.saaid = b.saaid
AND a.status='1'
AND a.zuweisung='Z'
AND druckstatus = 'N'
AND uid='$uid1'
AND a.saaid='$saaid'
ORDER BY b.beginn"; //Nur diesen Datensatz vom aktuellen ausgehend, daher aktuelle saaid
$result = $db->query ($query)
or die ("Cannot execute query1");
while ($row = $result->fetch_array())
{
$data = Array();
#Daten aus altem datensatz
$res_alt_aend = $db->query("SELECT date_format(beginn, '%d.%m.%Y') beginn, date_format(ende, '%d.%m.%Y') ende, dst_id, abteilung, e.bezeichnung, standort
FROM stan_antrag a, stan_ag_standort b, stan_ag_standort_wunsch c, stan_standort d, stan_vertiefungsbereich e
WHERE a.saaid=c.saaid
AND c.wagsid=b.agsid
AND b.sid=d.sid
AND a.vert_bereich=e.vbid
AND c.prio=0
AND a.saaid<'$row[saaid]'
AND a.aendid='$row[aendid]'
ORDER BY a.saaid DESC
LIMIT 1");
$row_alt_aend = $res_alt_aend->fetch_array();
$result_data2 = $db->query("SELECT distinct 1 FROM stan_dienststellen WHERE dst_id= '$row_alt_aend[dst_id]'");
$rowdata2 = $result_data2->fetch_array();
if($rowdata2[0] == '1'){
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen
WHERE dst_id='$row_alt_aend[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}else{
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen_tmp
WHERE dst_id='$row_alt_aend[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}
/* Schriftgröße
$data[0]['T_SIZE'] = $fsize;
$data[1]['T_SIZE'] = $fsize+3;
$data[3]['T_SIZE'] = $fsize+4;
*/
/* Schriftfarbe und Zellenhintergrund
$data[0]['T_COLOR'] = array(0,0,0); //Schriftfarbe
$data[0]['BG_COLOR'] = array($rr,$rr,$rr);
$data[3]['T_COLOR'] = array($rr,240,240);
$data[3]['BG_COLOR'] = array($rr,100,135);
*/
$data[0]['TEXT'] = "$row_alt_aend[beginn] -\n$row_alt_aend[ende]";
$data[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$data[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
#$data[0]['T_TYPE'] = "BI"; // B=BOLD, I=ITALIC
$data[1]['TEXT'] = "$rowdata3[bez]";
$data[1]['T_ALIGN'] = "L";
$data[1]['V_ALIGN'] = "M";
$data[2]['TEXT'] = "$row_alt_aend[abteilung]";
$data[2]['T_ALIGN'] = "L";
$data[2]['V_ALIGN'] = "M";
$data[3]['TEXT'] = "$row_alt_aend[bezeichnung]";
$data[3]['T_ALIGN'] = "L";
$data[3]['V_ALIGN'] = "M";
$data[4]['TEXT'] = "$row_alt_aend[standort]";
$data[4]['T_ALIGN'] = "L";
$data[4]['V_ALIGN'] = "M";
$pdf->Draw_Data($data,NULL,6); // -->letzter Parameter Höhe der Datenspalte. Neu prgrammiert in prints/class.fpdf_table.php am 15.04.2009
}
$pdf->Draw_Table_Border();
$pos=$pdf->GetY()+3.2;
$pdf->SetFont('Arial', 'U', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 7.4, "Geänderte Zuweisung:", 0, 'J');
$db = dbconnect();
$columns = 5; //five columns
$pos=$pdf->GetY()+1.0;
$pdf->SetY($pos);
//we initialize the table class
$pdf->Table_Init($columns, true, true);
$table_subtype = $table_default_table_type;
$pdf->Set_Table_Type($table_subtype);
//TABLE HEADER SETTINGS
$header_subtype = $table_default_header_type;
for($i=0; $i<$columns; $i++) $header_type[$i] = $table_default_header_type;
$header_type[0]['WIDTH'] = 29.4;
$header_type[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[0]['TEXT'] = "Zeitraum";
$header_type[1]['WIDTH'] = 44.2;
$header_type[1]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[1]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[1]['TEXT'] = "Ausbildungsstelle";
$header_type[2]['WIDTH'] = 30;
$header_type[2]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[2]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[2]['TEXT'] = "Abteilung";
$header_type[3]['WIDTH'] = 39;
$header_type[3]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[3]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[3]['TEXT'] = "Vertiefungsbereich";
$header_type[4]['WIDTH'] = 25.7;
$header_type[4]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[4]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[4]['TEXT'] = "AG-Standort";
#$header_type[1]['COLSPAN'] = "2";
//set the header type
$pdf->Set_Header_Type($header_type);
$pdf->Draw_Header();
//TABLE DATA SETTINGS
$data_subtype = $table_default_data_type;
$data_type = Array();//reset the array
for ($i=0; $i<$columns; $i++) $data_type[$i] = $data_subtype;
$pdf->Set_Data_Type($data_type);
# $fsize = 10;
# $colspan = 1;
# $rr = 255;
$db = dbconnect();
$query = "SELECT a.saaid
FROM stan_printqueue_antrag a, stan_antrag b
WHERE a.saaid = b.saaid
AND a.status='1'
AND a.zuweisung='Z'
AND druckstatus = 'N'
AND uid='$uid1'
AND a.saaid='$saaid'
ORDER BY b.beginn
";
$result = $db->query ($query)
or die ("Cannot execute query1");
while ($row = $result->fetch_array())
{
$data = Array();
$res_neu_aend = $db->query("SELECT date_format(beginn, '%d.%m.%Y') beginn, date_format(ende, '%d.%m.%Y') ende, dst_id, abteilung, e.bezeichnung, standort
FROM stan_antrag a, stan_ag_standort b, stan_ag_standort_wunsch c, stan_standort d, stan_vertiefungsbereich e
WHERE a.saaid=c.saaid
AND c.wagsid=b.agsid
AND b.sid=d.sid
AND a.vert_bereich=e.vbid
AND c.prio=0
AND a.saaid ='$row[saaid]'
ORDER BY a.saaid DESC
LIMIT 1");
$row_neu_aend = $res_neu_aend->fetch_array();
$result_data2 = $db->query("SELECT distinct 1 FROM stan_dienststellen WHERE dst_id= '$row_neu_aend[dst_id]'");
$rowdata2 = $result_data2->fetch_array();
if($rowdata2[0] == '1'){
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen
WHERE dst_id='$row_neu_aend[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}else{
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen_tmp
WHERE dst_id='$row_neu_aend[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}
/* Schriftgröße
$data[0]['T_SIZE'] = $fsize;
$data[1]['T_SIZE'] = $fsize+3;
$data[3]['T_SIZE'] = $fsize+4;
*/
/* Schriftfarbe und Zellenhintergrund
$data[0]['T_COLOR'] = array(0,0,0); //Schriftfarbe
$data[0]['BG_COLOR'] = array($rr,$rr,$rr);
$data[3]['T_COLOR'] = array($rr,240,240);
$data[3]['BG_COLOR'] = array($rr,100,135);
*/
$data[0]['TEXT'] = "$row_neu_aend[beginn] -\n$row_neu_aend[ende]";
$data[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$data[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
#$data[0]['T_TYPE'] = "BI"; // B=BOLD, I=ITALIC
$data[1]['TEXT'] = "$rowdata3[bez]";
$data[1]['T_ALIGN'] = "L";
$data[1]['V_ALIGN'] = "M";
$data[2]['TEXT'] = "$row_neu_aend[abteilung]";
$data[2]['T_ALIGN'] = "L";
$data[2]['V_ALIGN'] = "M";
$data[3]['TEXT'] = "$row_neu_aend[bezeichnung]";
$data[3]['T_ALIGN'] = "L";
$data[3]['V_ALIGN'] = "M";
$data[4]['TEXT'] = "$row_neu_aend[standort]";
$data[4]['T_ALIGN'] = "L";
$data[4]['V_ALIGN'] = "M";
$pdf->Draw_Data($data,NULL,6); // -->letzter Parameter Höhe der Datenspalte. Neu prgrammiert in prints/class.fpdf_table.php am 15.04.2009
}
$pdf->Draw_Table_Border();
$pos=$pdf->GetY()+3.2;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 5.3, "Wir bedanken uns ausdrücklich dafür, dass Sie eine Ausbildungsstelle im Rahmen der praktischen Ausbildung zur Verfügung gestellt haben und hoffen auf Ihre Bereitschaft, auch künftig an der Ausbildung im gehobenen Verwaltungsdienst mitzuwirken", 0, 'J');
$pos=$pdf->GetY()+6.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Mit freundlichen Grüßen", 0, 'J');
$pos=$pdf->GetY()+9.1;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "$row_ansp[name]", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Hinweis: Aus technischen Gründen erhalten Sie auch bei geringfügigen Änderungen ein neues Zuweisungsschreiben.", 0, 'J');
?>

View File

@ -0,0 +1,559 @@
<?php
$uid1="$row_cur_uid[uid]";
$saaid_alt = "$row_alt[saaid]";
$saaid = "$row_akt[saaid]";
########Kontaktdaten HS #####################
$db = dbconnect();
$res_ansp = $db->query("SELECT wert1 name, wert2 mail FROM parameter WHERE pid='6'");
$row_ansp = $res_ansp->fetch_array();
$res_kontakt = $db->query("SELECT wert1 tel, wert2 fax FROM parameter WHERE pid='5'");
$row_kontakt = $res_kontakt->fetch_array();
$res_stud = $db->query("SELECT nachname, vorname, postrasse, poplz, poort, ag, jahrgang FROM stud WHERE uid='$uid1'");
$row_stud = $res_stud->fetch_array();
$res_zuw_alt = $db->query("SELECT date_format(zuweis_dat, '%d.%m.%Y') zuweis_dat FROM stan_antrag WHERE saaid='$saaid_alt'");
$row_zuw_alt = $res_zuw_alt->fetch_array();
$res_zuw_neu = $db->query("SELECT date_format(zuweis_dat, '%d.%m.%Y') zuweis_dat FROM stan_antrag WHERE saaid='$saaid'");
$row_zuw_neu = $res_zuw_neu->fetch_array();
$heute_format = date("d.m.Y", mktime(0, 0, 0, date("m"), date("d"), date("Y"))); // ISO-8601 Format wie in der Datenbank: Formatierung f&uuml;r Vergleiche erforderlich
$pdf->Image('anschreiben/logo.jpg', 116, 10,64); #http://www.fpdf.de/funktionsreferenz/?funktion=Image
$pdf->SetFont('Arial', '', 12);
$pdf->SetY(59.5);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$row_stud[vorname] $row_stud[nachname]", 0, 0, 'L');
$pos = $pdf->GetY()+4;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$row_stud[ag] / $row_stud[jahrgang]", 0, 0, 'L');
$pos = $pdf->GetY()+4;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$row_stud[postrasse]", 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY(73.5);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$row_stud[poplz] $row_stud[poort]", 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetY(56);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Zulassung", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pos=$pdf->GetY()+3.7;
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Ludwigsburg,", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$heute_format", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Bearbeiterin", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Telefon", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_kontakt[tel]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Fax", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_kontakt[fax]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "e-mail", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_ansp[mail]", 0, 'R');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY(45);
$pdf->SetX(23);
$pdf->MultiCell(80, 3, "HS Ludwigsburg ".uchr(149)." Postfach 0489 ".uchr(149)." 71604 Ludwigsburg", 0, 'L');
########Kontaktdaten HS Ende #####################
######## Betreff #################################
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY(96.2);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Änderung der Zuweisung für die praktische Ausbildung;", 0, 'L');
######## Betreff Ende ############################
$pos=$pdf->GetY()+10.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Sehr geehrte(r) $row_stud[vorname] $row_stud[nachname],", 0, 'L');
$pos=$pdf->GetY()+7.1;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "aufgrund Ihres Änderungsantrages vom $row_zuw_neu[zuweis_dat] wird hiermit der Bescheid über die Zuweisung zu den Ausbildungsstellen in der praktischen Ausbildung der Hochschule Ludwigsburg vom $row_zuw_alt[zuweis_dat] wie folgt geändert:", 0, 'J');
$pos=$pdf->GetY()+3.2;
$pdf->SetFont('Arial', 'U', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 7.4, "Bisherige Zuweisung:", 0, 'J');
$jahrgang='08';
$standort='1';
$_POST[termin] = '1';
$db = dbconnect();
$columns = 5; //five columns
$pos=$pdf->GetY()+1.0;
$pdf->SetY($pos);
//we initialize the table class
$pdf->Table_Init($columns, true, true);
$table_subtype = $table_default_table_type;
$pdf->Set_Table_Type($table_subtype);
//TABLE HEADER SETTINGS
$header_subtype = $table_default_header_type;
for($i=0; $i<$columns; $i++) $header_type[$i] = $table_default_header_type;
$header_type[0]['WIDTH'] = 29.4;
$header_type[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[0]['TEXT'] = "Zeitraum";
$header_type[1]['WIDTH'] = 44.2;
$header_type[1]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[1]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[1]['TEXT'] = "Ausbildungsstelle";
$header_type[2]['WIDTH'] = 30;
$header_type[2]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[2]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[2]['TEXT'] = "Abteilung";
$header_type[3]['WIDTH'] = 39;
$header_type[3]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[3]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[3]['TEXT'] = "Vertiefungsbereich";
$header_type[4]['WIDTH'] = 25.7;
$header_type[4]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[4]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[4]['TEXT'] = "AG-Standort";
#$header_type[1]['COLSPAN'] = "2";
//set the header type
$pdf->Set_Header_Type($header_type);
$pdf->Draw_Header();
//TABLE DATA SETTINGS
$data_subtype = $table_default_data_type;
$data_type = Array();//reset the array
for ($i=0; $i<$columns; $i++) $data_type[$i] = $data_subtype;
$pdf->Set_Data_Type($data_type);
# $fsize = 10;
# $colspan = 1;
# $rr = 255;
$db = dbconnect();
$query = "SELECT a.saaid, b.aendid
FROM stan_printqueue_antrag a, stan_antrag b
WHERE a.saaid = b.saaid
AND a.status='1'
AND a.zuweisung='Z'
AND druckstatus = 'N'
AND uid='$uid1'
ORDER BY b.beginn
";
$result = $db->query ($query)
or die ("Cannot execute query1");
while ($row = $result->fetch_array())
{
$data = Array();
$res_alt_aend = $db->query("SELECT date_format(beginn, '%d.%m.%Y') beginn, date_format(ende, '%d.%m.%Y') ende, dst_id, abteilung, e.bezeichnung, standort
FROM stan_antrag a, stan_ag_standort b, stan_ag_standort_wunsch c, stan_standort d, stan_vertiefungsbereich e
WHERE a.saaid=c.saaid
AND c.wagsid=b.agsid
AND b.sid=d.sid
AND a.vert_bereich=e.vbid
AND c.prio=0
AND a.saaid<'$row[saaid]'
AND a.aendid='$row[aendid]'
ORDER BY a.saaid DESC
LIMIT 1");
$row_alt_aend = $res_alt_aend->fetch_array();
$result_data2 = $db->query("SELECT distinct 1 FROM stan_dienststellen WHERE dst_id= '$row_alt_aend[dst_id]'");
$rowdata2 = $result_data2->fetch_array();
if($rowdata2[0] == '1'){
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen
WHERE dst_id='$row_alt_aend[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}else{
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen_tmp
WHERE dst_id='$row_alt_aend[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}
/* Schriftgröße
$data[0]['T_SIZE'] = $fsize;
$data[1]['T_SIZE'] = $fsize+3;
$data[3]['T_SIZE'] = $fsize+4;
*/
/* Schriftfarbe und Zellenhintergrund
$data[0]['T_COLOR'] = array(0,0,0); //Schriftfarbe
$data[0]['BG_COLOR'] = array($rr,$rr,$rr);
$data[3]['T_COLOR'] = array($rr,240,240);
$data[3]['BG_COLOR'] = array($rr,100,135);
*/
$data[0]['TEXT'] = "$row_alt_aend[beginn] -\n$row_alt_aend[ende]";
$data[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$data[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
#$data[0]['T_TYPE'] = "BI"; // B=BOLD, I=ITALIC
$data[1]['TEXT'] = "$rowdata3[bez]";
$data[1]['T_ALIGN'] = "L";
$data[1]['V_ALIGN'] = "M";
$data[2]['TEXT'] = "$row_alt_aend[abteilung]";
$data[2]['T_ALIGN'] = "L";
$data[2]['V_ALIGN'] = "M";
$data[3]['TEXT'] = "$row_alt_aend[bezeichnung]";
$data[3]['T_ALIGN'] = "L";
$data[3]['V_ALIGN'] = "M";
$data[4]['TEXT'] = "$row_alt_aend[standort]";
$data[4]['T_ALIGN'] = "L";
$data[4]['V_ALIGN'] = "M";
$pdf->Draw_Data($data,NULL,6); // -->letzter Parameter Höhe der Datenspalte. Neu prgrammiert in prints/class.fpdf_table.php am 15.04.2009
}
$pdf->Draw_Table_Border();
$pos=$pdf->GetY()+3.2;
$pdf->SetFont('Arial', 'U', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 7.4, "Geänderte Zuweisung", 0, 'J');
$db = dbconnect();
$columns = 5; //five columns
$pos=$pdf->GetY()+1.0;
$pdf->SetY($pos);
//we initialize the table class
$pdf->Table_Init($columns, true, true);
$table_subtype = $table_default_table_type;
$pdf->Set_Table_Type($table_subtype);
//TABLE HEADER SETTINGS
$header_subtype = $table_default_header_type;
for($i=0; $i<$columns; $i++) $header_type[$i] = $table_default_header_type;
$header_type[0]['WIDTH'] = 29.4;
$header_type[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[0]['TEXT'] = "Zeitraum";
$header_type[1]['WIDTH'] = 44.2;
$header_type[1]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[1]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[1]['TEXT'] = "Ausbildungsstelle";
$header_type[2]['WIDTH'] = 30;
$header_type[2]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[2]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[2]['TEXT'] = "Abteilung";
$header_type[3]['WIDTH'] = 39;
$header_type[3]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[3]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[3]['TEXT'] = "Vertiefungsbereich";
$header_type[4]['WIDTH'] = 25.7;
$header_type[4]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[4]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[4]['TEXT'] = "AG-Standort";
#$header_type[1]['COLSPAN'] = "2";
//set the header type
$pdf->Set_Header_Type($header_type);
$pdf->Draw_Header();
//TABLE DATA SETTINGS
$data_subtype = $table_default_data_type;
$data_type = Array();//reset the array
for ($i=0; $i<$columns; $i++) $data_type[$i] = $data_subtype;
$pdf->Set_Data_Type($data_type);
# $fsize = 10;
# $colspan = 1;
# $rr = 255;
$db = dbconnect();
$query = "SELECT a.saaid
FROM stan_printqueue_antrag a, stan_antrag b
WHERE a.saaid = b.saaid
AND a.status='1'
AND a.zuweisung='Z'
AND druckstatus = 'N'
AND uid='$uid1'
ORDER BY b.beginn
";
$result = $db->query ($query)
or die ("Cannot execute query1");
while ($row = $result->fetch_array())
{
$data = Array();
$res_neu_aend = $db->query("SELECT date_format(beginn, '%d.%m.%Y') beginn, date_format(ende, '%d.%m.%Y') ende, dst_id, abteilung, e.bezeichnung, standort
FROM stan_antrag a, stan_ag_standort b, stan_ag_standort_wunsch c, stan_standort d, stan_vertiefungsbereich e
WHERE a.saaid=c.saaid
AND c.wagsid=b.agsid
AND b.sid=d.sid
AND a.vert_bereich=e.vbid
AND c.prio=0
AND a.saaid ='$row[saaid]'
ORDER BY a.saaid DESC
LIMIT 1");
$row_neu_aend = $res_neu_aend->fetch_array();
$result_data2 = $db->query("SELECT distinct 1 FROM stan_dienststellen WHERE dst_id= '$row_neu_aend[dst_id]'");
$rowdata2 = $result_data2->fetch_array();
if($rowdata2[0] == '1'){
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen
WHERE dst_id='$row_neu_aend[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}else{
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen_tmp
WHERE dst_id='$row_neu_aend[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}
/* Schriftgröße
$data[0]['T_SIZE'] = $fsize;
$data[1]['T_SIZE'] = $fsize+3;
$data[3]['T_SIZE'] = $fsize+4;
*/
/* Schriftfarbe und Zellenhintergrund
$data[0]['T_COLOR'] = array(0,0,0); //Schriftfarbe
$data[0]['BG_COLOR'] = array($rr,$rr,$rr);
$data[3]['T_COLOR'] = array($rr,240,240);
$data[3]['BG_COLOR'] = array($rr,100,135);
*/
$data[0]['TEXT'] = "$row_neu_aend[beginn] -\n$row_neu_aend[ende]";
$data[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$data[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
#$data[0]['T_TYPE'] = "BI"; // B=BOLD, I=ITALIC
$data[1]['TEXT'] = "$rowdata3[bez]";
$data[1]['T_ALIGN'] = "L";
$data[1]['V_ALIGN'] = "M";
$data[2]['TEXT'] = "$row_neu_aend[abteilung]";
$data[2]['T_ALIGN'] = "L";
$data[2]['V_ALIGN'] = "M";
$data[3]['TEXT'] = "$row_neu_aend[bezeichnung]";
$data[3]['T_ALIGN'] = "L";
$data[3]['V_ALIGN'] = "M";
$data[4]['TEXT'] = "$row_neu_aend[standort]";
$data[4]['T_ALIGN'] = "L";
$data[4]['V_ALIGN'] = "M";
$pdf->Draw_Data($data,NULL,6); // -->letzter Parameter Höhe der Datenspalte. Neu prgrammiert in prints/class.fpdf_table.php am 15.04.2009
}
$pdf->Draw_Table_Border();
$pos=$pdf->GetY()+6.4;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Die übrigen Bestimmungen des Bescheids vom $row_zuw_alt[zuweis_dat] gelten weiterhin.", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Mit freundlichen Grüßen", 0, 'J');
$pos=$pdf->GetY()+14.8;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "$row_ansp[name]", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Hinweis: Aus technischen Gründen erhalten Sie auch bei geringfügigen Änderungen ein neues Zuweisungsschreiben.", 0, 'J');
?>

View File

@ -0,0 +1,418 @@
<?php
$uid1="$row_cur_uid[uid]";
########Kontaktdaten HS #####################
$db = dbconnect();
$res_ansp = $db->query("SELECT wert1 name, wert2 mail FROM parameter WHERE pid='6'");
$row_ansp = $res_ansp->fetch_array();
$res_kontakt = $db->query("SELECT wert1 tel, wert2 fax FROM parameter WHERE pid='5'");
$row_kontakt = $res_kontakt->fetch_array();
$res_stud = $db->query("SELECT nachname, vorname, postrasse, poplz, poort, ag, jahrgang FROM stud WHERE uid='$uid1'");
$row_stud = $res_stud->fetch_array();
$heute_format = date("d.m.Y", mktime(0, 0, 0, date("m"), date("d"), date("Y"))); // ISO-8601 Format wie in der Datenbank: Formatierung f&uuml;r Vergleiche erforderlich
$pdf->Image('anschreiben/logo.png', 116, 10,64); #http://www.fpdf.de/funktionsreferenz/?funktion=Image
$pdf->SetFont('Arial', '', 12);
$pdf->SetY(59.5);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$row_stud[vorname] $row_stud[nachname]", 0, 0, 'L');
$pos = $pdf->GetY()+4;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$row_stud[ag] / $row_stud[jahrgang]", 0, 0, 'L');
$pos = $pdf->GetY()+4;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$row_stud[postrasse]", 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY(73.5);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$row_stud[poplz] $row_stud[poort]", 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetY(56);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Zulassung", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pos=$pdf->GetY()+3.7;
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Ludwigsburg,", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$heute_format", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Bearbeiterin", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Telefon", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_kontakt[tel]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Fax", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_kontakt[fax]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "e-mail", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_ansp[mail]", 0, 'R');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY(45);
$pdf->SetX(23);
$pdf->MultiCell(80, 3, "HS Ludwigsburg ".uchr(149)." Postfach 0489 ".uchr(149)." 71604 Ludwigsburg", 0, 'L');
########Kontaktdaten HS Ende #####################
######## Betreff #################################
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY(96.2);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Ausbildung im gehobenen Verwaltungsdienst;", 0, 'L');
$pos=$pdf->GetY()+1.8;
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Zuweisung zu den Ausbildungsstellen in der praktischen Ausbildung", 0, 'L');
######## Betreff Ende ############################
$pos=$pdf->GetY()+7.0;
$pdf->SetFont('Arial', 'BU', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Anlagen", 0, 'L');
$pos=$pdf->GetY()+1.8;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Urlaubskarte", 0, 'L');
$pos=$pdf->GetY()+1.8;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Weitere Bestimmungen zum Zuweisungsbescheid", 0, 'L');
#################################################################################
$pos=$pdf->GetY()+6.6;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Sehr geehrte(r) $row_cur_uid[vorname] $row_cur_uid[nachname],", 0, 'L');
$pos=$pdf->GetY()+6.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "wir weisen Sie gem. § 23 (3) Ausbildungs- und Prüfungsordnung für den gehobenen Verwaltungsdienst (APrOVw gD, GBl. vom 26.09.2007,S.400) für die praktische Ausbildung im Vorbereitungsdienst folgenden Stellen zu:", 0, 'J');
#$jahrgang="$jahrgang"; // wird von pdf_gen.php geliefert
#$datid = '1';
$db = dbconnect();
$columns = 5; //five columns
$pos=$pdf->GetY()+5.0;
$pdf->SetY($pos);
//we initialize the table class
$pdf->Table_Init($columns, true, true);
$table_subtype = $table_default_table_type;
$pdf->Set_Table_Type($table_subtype);
//TABLE HEADER SETTINGS
$header_subtype = $table_default_header_type;
for($i=0; $i<$columns; $i++) $header_type[$i] = $table_default_header_type;
$header_type[0]['WIDTH'] = 29.4;
$header_type[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[0]['TEXT'] = "Zeitraum";
$header_type[1]['WIDTH'] = 44.2;
$header_type[1]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[1]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[1]['TEXT'] = "Ausbildungsstelle";
$header_type[2]['WIDTH'] = 30;
$header_type[2]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[2]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[2]['TEXT'] = "Abteilung";
$header_type[3]['WIDTH'] = 39;
$header_type[3]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[3]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[3]['TEXT'] = "Vertiefungsbereich";
$header_type[4]['WIDTH'] = 25.7;
$header_type[4]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[4]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[4]['TEXT'] = "AG-Standort";
#$header_type[1]['COLSPAN'] = "2";
//set the header type
$pdf->Set_Header_Type($header_type);
$pdf->Draw_Header();
//TABLE DATA SETTINGS
$data_subtype = $table_default_data_type;
$data_type = Array();//reset the array
for ($i=0; $i<$columns; $i++) $data_type[$i] = $data_subtype;
$pdf->Set_Data_Type($data_type);
# $fsize = 10;
# $colspan = 1;
# $rr = 255;
$db = dbconnect();
$query = "SELECT date_format(beginn, '%d.%m.%Y') beginn, date_format(beginn, '%Y%m%d') beginnform, date_format(ende, '%d.%m.%Y') ende, dst_id,abteilung, e.bezeichnung, standort
FROM stan_antrag a, stan_ag_standort b, stan_ag_standort_wunsch c, stan_standort d, stan_vertiefungsbereich e
WHERE a.saaid=c.saaid
AND c.wagsid=b.agsid
AND b.sid=d.sid
AND a.vert_bereich=e.vbid
AND c.prio=0
AND a.uid='$uid1'
AND a.status = (
SELECT MAX(t2.status)
FROM stan_antrag t2
WHERE a.aendid = t2.aendid
)
ORDER BY beginnform ASC";
$result = $db->query ($query)
or die ("Cannot execute query1");
while ($row = $result->fetch_array())
{
$data = Array();
$result_data2 = $db->query("SELECT distinct 1 FROM stan_dienststellen WHERE dst_id= '$row[dst_id]'");
$rowdata2 = $result_data2->fetch_array();
if($rowdata2[0] == '1'){
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen
WHERE dst_id='$row[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}else{
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen_tmp
WHERE dst_id='$row[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}
/* Schriftgröße
$data[0]['T_SIZE'] = $fsize;
$data[1]['T_SIZE'] = $fsize+3;
$data[3]['T_SIZE'] = $fsize+4;
*/
/* Schriftfarbe und Zellenhintergrund
$data[0]['T_COLOR'] = array(0,0,0); //Schriftfarbe
$data[0]['BG_COLOR'] = array($rr,$rr,$rr);
$data[3]['T_COLOR'] = array($rr,240,240);
$data[3]['BG_COLOR'] = array($rr,100,135);
*/
$data[0]['TEXT'] = "$row[beginn] -\n$row[ende]";
$data[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$data[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
#$data[0]['T_TYPE'] = "BI"; // B=BOLD, I=ITALIC
$data[1]['TEXT'] = "$rowdata3[bez]";
$data[1]['T_ALIGN'] = "L";
$data[1]['V_ALIGN'] = "M";
$data[2]['TEXT'] = "$row[abteilung]";
$data[2]['T_ALIGN'] = "L";
$data[2]['V_ALIGN'] = "M";
$data[3]['TEXT'] = "$row[bezeichnung]";
$data[3]['T_ALIGN'] = "L";
$data[3]['V_ALIGN'] = "M";
$data[4]['TEXT'] = "$row[standort]";
$data[4]['T_ALIGN'] = "L";
$data[4]['V_ALIGN'] = "M";
$pdf->Draw_Data($data,NULL,10); // -->letzter Parameter Höhe der Datenspalte. Neu prgrammiert in prints/class.fpdf_table.php am 15.04.2009
}
$pdf->Draw_Table_Border();
$pos=$pdf->GetY()+6.4;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Beiliegende Anlagen sind Bestandteil des Zuweisungsbescheids.", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Die Zuweisung zu den AG-Standorten erfolgt zu einem späteren Zeitpunkt.", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Weitere wichtige Informationen zum Zuweisungsbescheid finden Sie unter:", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', 'U', 12);
$pdf->SetTextColor(0,0,255);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "www.hs-ludwigsburg.de", 0, 'J');
$pdf->SetTextColor(0,0,0);
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(70);
$pdf->MultiCell(168, 4.8, "Hochschule>Studiengänge Innenverwaltung>Praktische Ausbildung (Praxissemester)", 0, 'J');
$pos=$pdf->GetY()+9.6;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Mit freundlichen Grüßen", 0, 'J');
$pos=$pdf->GetY()+10.8;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "$row_ansp[name]", 0, 'J');
$uid1 = 'schwaral';
require("urlaubskarte.php");
$pagecount = $pdf->setSourceFile("anschreiben/anlage_zuweisung.pdf");
$tplidx1 = $pdf->ImportPage(1);
$pdf->addPage();
$pdf->useTemplate($tplidx1,0,0,0);
$tplidx1 = $pdf->ImportPage(2);
$pdf->addPage();
$pdf->useTemplate($tplidx1,0,0,0);
$tplidx1 = $pdf->ImportPage(3);
$pdf->addPage();
$pdf->useTemplate($tplidx1,0,0,0);
?>

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,48 @@
<?php
//include("kurs/datenbankanbindung.php"); // f&uuml;gt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
//$mtknr = $_GET[mtknr];
$uid1="$row_cur_uid[uid]";
//error_reporting (E_ALL);
#define('FPDF_FONTPATH','../../stud/prints/font/');
#require('../../stud/prints/fpdi.php');
#$pdf= new utfFPDF();
$pagecount = $pdf->setSourceFile("anschreiben/urlaubskarte.pdf");
$tplidx2 = $pdf->ImportPage(1);
$db = dbconnect();
$res = $db->query("SELECT nachname, vorname, postrasse, poplz, poort, jahrgang FROM stud WHERE uid='$uid1'");
$row = $res->fetch_array();
$res1 = $db->query("SELECT DATE_Format(antrag_von, '%d.%m.%Y') antrag_von, DATE_Format(antrag_bis, '%d.%m.%Y') antrag_bis FROM stan_frist WHERE jahrgang='$row[jahrgang]'");
$row1 = $res1->fetch_array();

View File

@ -0,0 +1,602 @@
<?php
$uid1="$row_cur_uid[uid]";
$saaid_alt = "$row_alt[saaid]";
$saaid = "$row_akt[saaid]";
########Kontaktdaten HS #####################
$db = dbconnect();
$res_ansp = $db->query("SELECT wert1 name, wert2 mail FROM parameter WHERE pid='6'");
$row_ansp = $res_ansp->fetch_array();
$res_kontakt = $db->query("SELECT wert1 tel, wert2 fax FROM parameter WHERE pid='5'");
$row_kontakt = $res_kontakt->fetch_array();
$res_stud = $db->query("SELECT nachname, vorname, postrasse, poplz, poort, ag, jahrgang FROM stud WHERE uid='$uid1'");
$row_stud = $res_stud->fetch_array();
$res_dst = $db->query("SELECT dst_id FROM stan_antrag WHERE saaid='$saaid_alt'");
$row_dst = $res_dst->fetch_array();
$result_data2 = $db->query("SELECT distinct 1 FROM stan_dienststellen WHERE dst_id= '$row_dst[dst_id]'");
$rowdata2 = $result_data2->fetch_array();
if($rowdata2[0] == '1'){
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen
WHERE dst_id='$row_dst[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}else{
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen_tmp
WHERE dst_id='$row_dst[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}
if($hist != 'Y'){
$heute_format = date("d.m.Y", mktime(0, 0, 0, date("m"), date("d"), date("Y"))); // ISO-8601 Format wie in der Datenbank: Formatierung f&uuml;r Vergleiche erforderlich
}else{
$res_dat = $db->query("SELECT min(date_format(datum, '%d.%m.%Y')) datum FROM stan_printqueue_hist WHERE zuweisung='EZS' AND admin='$user_admin'");
$row_dat = $res_dat->fetch_array();
$heute_format = $row_dat[datum];
}
$pdf->Image('anschreiben/logo.png', 116, 10,64); #http://www.fpdf.de/funktionsreferenz/?funktion=Image
$pdf->SetFont('Arial', '', 12);
$pdf->SetY(59.5);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$rowdata3[bez]", 0, 0, 'L');
$pos = $pdf->GetY()+4;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$rowdata3[str]", 0, 0, 'L');
$pos = $pdf->GetY()+4;
/*
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$row_stud[postrasse]", 0, 0, 'L');
*/
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY(73.5);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$rowdata3[plz] $rowdata3[ort]", 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetY(56);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Zulassung", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pos=$pdf->GetY()+3.7;
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Ludwigsburg,", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$heute_format", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Bearbeiterin", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Telefon", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_kontakt[tel]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Fax", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_kontakt[fax]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "e-mail", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_ansp[mail]", 0, 'R');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY(45);
$pdf->SetX(23);
$pdf->MultiCell(80, 3, "HS Ludwigsburg ".uchr(149)." Postfach 0489 ".uchr(149)." 71604 Ludwigsburg", 0, 'L');
########Kontaktdaten HS Ende #####################
######## Betreff #################################
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY(96.2);
$pdf->SetX(23);
$pdf->MultiCell(150, 4.8, "Änderung der Zuweisung in der praktischen Ausbildung von $row_stud[vorname] $row_stud[nachname]", 0, 'L');
######## Betreff Ende ############################
$pos=$pdf->GetY()+14.3;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Sehr geehrte Damen und Herren,", 0, 'L');
$pos=$pdf->GetY()+6.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 5.8, "die Zuweisung von Frau/Herrn $row_stud[vorname] $row_stud[nachname] hat sich gemäß seinem/ihrem Änderungsantrag wie folgt geändert:", 0, 'J');
$pos=$pdf->GetY()+3.2;
$pdf->SetFont('Arial', 'U', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 7.4, "Bisherige Zuweisung", 0, 'J');
$db = dbconnect();
$columns = 4; //five columns
$pos=$pdf->GetY()+1.0;
$pdf->SetY($pos);
//we initialize the table class
$pdf->Table_Init($columns, true, true);
$table_subtype = $table_default_table_type;
$pdf->Set_Table_Type($table_subtype);
//TABLE HEADER SETTINGS
$header_subtype = $table_default_header_type;
for($i=0; $i<$columns; $i++) $header_type[$i] = $table_default_header_type;
$header_type[0]['WIDTH'] = 29.4;
$header_type[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[0]['TEXT'] = "Zeitraum";
$header_type[1]['WIDTH'] = 59.9;
$header_type[1]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[1]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[1]['TEXT'] = "Ausbildungsstelle";
$header_type[2]['WIDTH'] = 35;
$header_type[2]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[2]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[2]['TEXT'] = "Abteilung";
$header_type[3]['WIDTH'] = 44;
$header_type[3]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[3]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[3]['TEXT'] = "Vertiefungsbereich";
# $header_type[4]['WIDTH'] = 25.7;
# $header_type[4]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
# $header_type[4]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
# $header_type[4]['TEXT'] = "AG-Standort";
#$header_type[1]['COLSPAN'] = "2";
//set the header type
$pdf->Set_Header_Type($header_type);
$pdf->Draw_Header();
//TABLE DATA SETTINGS
$data_subtype = $table_default_data_type;
$data_type = Array();//reset the array
for ($i=0; $i<$columns; $i++) $data_type[$i] = $data_subtype;
$pdf->Set_Data_Type($data_type);
# $fsize = 10;
# $colspan = 1;
# $rr = 255;
$db = dbconnect();
if($hist != 'Y'){
$query = "SELECT a.saaid, b.aendid
FROM stan_printqueue_antrag a, stan_antrag b
WHERE a.saaid = b.saaid
AND a.zuweisung='AEP'
AND druckstatus = 'N'
AND uid='$uid1'
AND a.saaid='$saaid'
ORDER BY b.beginn"; //Nur diesen Datensatz vom aktuellen ausgehend, daher aktuelle saaid
}else{
$query = "SELECT a.saaid, b.aendid
FROM stan_printqueue_hist a, stan_antrag b
WHERE a.saaid = b.saaid
AND a.zuweisung='AEP'
AND druckstatus = 'N'
AND uid='$uid1'
AND a.saaid='$saaid'
ORDER BY b.beginn"; //Nur diesen Datensatz vom aktuellen ausgehend, daher aktuelle saaid
}
$result = $db->query ($query)
or die ("Cannot execute query1a");
while ($row = $result->fetch_array())
{
$data = Array();
#Daten aus altem datensatz
$res_alt_aend = $db->query("SELECT date_format(beginn, '%d.%m.%Y') beginn, date_format(ende, '%d.%m.%Y') ende, dst_id, abteilung, e.bezeichnung
FROM stan_antrag a, stan_vertiefungsbereich e
WHERE a.vert_bereich=e.vbid
AND a.saaid<'$row[saaid]'
AND a.aendid='$row[aendid]'
ORDER BY a.saaid DESC
LIMIT 1");
$row_alt_aend = $res_alt_aend->fetch_array();
$result_data2 = $db->query("SELECT distinct 1 FROM stan_dienststellen WHERE dst_id= '$row_alt_aend[dst_id]'");
$rowdata2 = $result_data2->fetch_array();
if($rowdata2[0] == '1'){
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen
WHERE dst_id='$row_alt_aend[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}else{
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen_tmp
WHERE dst_id='$row_alt_aend[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}
/* Schriftgröße
$data[0]['T_SIZE'] = $fsize;
$data[1]['T_SIZE'] = $fsize+3;
$data[3]['T_SIZE'] = $fsize+4;
*/
/* Schriftfarbe und Zellenhintergrund
$data[0]['T_COLOR'] = array(0,0,0); //Schriftfarbe
$data[0]['BG_COLOR'] = array($rr,$rr,$rr);
$data[3]['T_COLOR'] = array($rr,240,240);
$data[3]['BG_COLOR'] = array($rr,100,135);
*/
$data[0]['TEXT'] = "$row_alt_aend[beginn] -\n$row_alt_aend[ende]";
$data[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$data[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
#$data[0]['T_TYPE'] = "BI"; // B=BOLD, I=ITALIC
$data[1]['TEXT'] = "$rowdata3[bez]";
$data[1]['T_ALIGN'] = "L";
$data[1]['V_ALIGN'] = "M";
$data[2]['TEXT'] = "$row_alt_aend[abteilung]";
$data[2]['T_ALIGN'] = "L";
$data[2]['V_ALIGN'] = "M";
$data[3]['TEXT'] = "$row_alt_aend[bezeichnung]";
$data[3]['T_ALIGN'] = "L";
$data[3]['V_ALIGN'] = "M";
$data[4]['TEXT'] = "$row_alt_aend[standort]";
$data[4]['T_ALIGN'] = "L";
$data[4]['V_ALIGN'] = "M";
$pdf->Draw_Data($data,NULL,6); // -->letzter Parameter Höhe der Datenspalte. Neu prgrammiert in prints/class.fpdf_table.php am 15.04.2009
}
$pdf->Draw_Table_Border();
$pos=$pdf->GetY()+3.2;
$pdf->SetFont('Arial', 'U', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 7.4, "Geänderte Zuweisung:", 0, 'J');
$db = dbconnect();
$columns = 4; //five columns
$pos=$pdf->GetY()+1.0;
$pdf->SetY($pos);
//we initialize the table class
$pdf->Table_Init($columns, true, true);
$table_subtype = $table_default_table_type;
$pdf->Set_Table_Type($table_subtype);
//TABLE HEADER SETTINGS
$header_subtype = $table_default_header_type;
for($i=0; $i<$columns; $i++) $header_type[$i] = $table_default_header_type;
$header_type[0]['WIDTH'] = 29.4;
$header_type[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[0]['TEXT'] = "Zeitraum";
$header_type[1]['WIDTH'] = 59.9;
$header_type[1]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[1]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[1]['TEXT'] = "Ausbildungsstelle";
$header_type[2]['WIDTH'] = 35;
$header_type[2]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[2]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[2]['TEXT'] = "Abteilung";
$header_type[3]['WIDTH'] = 44;
$header_type[3]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[3]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[3]['TEXT'] = "Vertiefungsbereich";
# $header_type[4]['WIDTH'] = 25.7;
# $header_type[4]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
# $header_type[4]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
# $header_type[4]['TEXT'] = "AG-Standort";
#$header_type[1]['COLSPAN'] = "2";
//set the header type
$pdf->Set_Header_Type($header_type);
$pdf->Draw_Header();
//TABLE DATA SETTINGS
$data_subtype = $table_default_data_type;
$data_type = Array();//reset the array
for ($i=0; $i<$columns; $i++) $data_type[$i] = $data_subtype;
$pdf->Set_Data_Type($data_type);
# $fsize = 10;
# $colspan = 1;
# $rr = 255;
$db = dbconnect();
if($hist != 'Y'){
$query = "SELECT a.saaid
FROM stan_printqueue_antrag a, stan_antrag b
WHERE a.saaid = b.saaid
AND a.zuweisung='AEP'
AND druckstatus = 'N'
AND uid='$uid1'
AND a.saaid='$saaid'
ORDER BY b.beginn
";
}else{
$query = "SELECT a.saaid
FROM stan_printqueue_hist a, stan_antrag b
WHERE a.saaid = b.saaid
AND a.zuweisung='AEP'
AND druckstatus = 'N'
AND uid='$uid1'
AND a.saaid='$saaid'
ORDER BY b.beginn
";
}
$result = $db->query ($query)
or die ("Cannot execute query1b");
while ($row = $result->fetch_array())
{
$data = Array();
$res_neu_aend = $db->query("SELECT date_format(beginn, '%d.%m.%Y') beginn, date_format(ende, '%d.%m.%Y') ende, dst_id, abteilung, e.bezeichnung
FROM stan_antrag a, stan_vertiefungsbereich e
WHERE a.vert_bereich=e.vbid
AND a.saaid ='$row[saaid]'
ORDER BY a.saaid DESC
LIMIT 1");
$row_neu_aend = $res_neu_aend->fetch_array();
$result_data2 = $db->query("SELECT distinct 1 FROM stan_dienststellen WHERE dst_id= '$row_neu_aend[dst_id]'");
$rowdata2 = $result_data2->fetch_array();
if($rowdata2[0] == '1'){
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen
WHERE dst_id='$row_neu_aend[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}else{
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen_tmp
WHERE dst_id='$row_neu_aend[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}
/* Schriftgröße
$data[0]['T_SIZE'] = $fsize;
$data[1]['T_SIZE'] = $fsize+3;
$data[3]['T_SIZE'] = $fsize+4;
*/
/* Schriftfarbe und Zellenhintergrund
$data[0]['T_COLOR'] = array(0,0,0); //Schriftfarbe
$data[0]['BG_COLOR'] = array($rr,$rr,$rr);
$data[3]['T_COLOR'] = array($rr,240,240);
$data[3]['BG_COLOR'] = array($rr,100,135);
*/
$data[0]['TEXT'] = "$row_neu_aend[beginn] -\n$row_neu_aend[ende]";
$data[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$data[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
#$data[0]['T_TYPE'] = "BI"; // B=BOLD, I=ITALIC
$data[1]['TEXT'] = "$rowdata3[bez]";
$data[1]['T_ALIGN'] = "L";
$data[1]['V_ALIGN'] = "M";
$data[2]['TEXT'] = "$row_neu_aend[abteilung]";
$data[2]['T_ALIGN'] = "L";
$data[2]['V_ALIGN'] = "M";
$data[3]['TEXT'] = "$row_neu_aend[bezeichnung]";
$data[3]['T_ALIGN'] = "L";
$data[3]['V_ALIGN'] = "M";
$data[4]['TEXT'] = "$row_neu_aend[standort]";
$data[4]['T_ALIGN'] = "L";
$data[4]['V_ALIGN'] = "M";
$pdf->Draw_Data($data,NULL,6); // -->letzter Parameter Höhe der Datenspalte. Neu prgrammiert in prints/class.fpdf_table.php am 15.04.2009
}
$pdf->Draw_Table_Border();
$pos=$pdf->GetY()+3.2;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 5.3, "Wir bedanken uns ausdrücklich dafür, dass Sie eine Ausbildungsstelle im Rahmen der praktischen Ausbildung zur Verfügung gestellt haben und hoffen auf Ihre Bereitschaft, auch künftig an der Ausbildung im gehobenen Verwaltungsdienst mitzuwirken", 0, 'J');
$pos=$pdf->GetY()+6.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Mit freundlichen Grüßen", 0, 'J');
$pos=$pdf->GetY()+9.1;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "$row_ansp[name]", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Hinweis: Aus technischen Gründen erhalten Sie auch bei geringfügigen Änderungen ein neues Zuweisungsschreiben.", 0, 'J');
?>

View File

@ -0,0 +1,581 @@
<?php
$uid1="$row_cur_uid[uid]";
$saaid_alt = "$row_alt[saaid]";
$saaid = "$row_akt[saaid]";
########Kontaktdaten HS #####################
$db = dbconnect();
$res_ansp = $db->query("SELECT wert1 name, wert2 mail FROM parameter WHERE pid='6'");
$row_ansp = $res_ansp->fetch_array();
$res_kontakt = $db->query("SELECT wert1 tel, wert2 fax FROM parameter WHERE pid='5'");
$row_kontakt = $res_kontakt->fetch_array();
$res_stud = $db->query("SELECT nachname, vorname, postrasse, poplz, poort, ag, jahrgang FROM stud WHERE uid='$uid1'");
$row_stud = $res_stud->fetch_array();
$res_zuw_alt = $db->query("SELECT date_format(zuweis_dat, '%d.%m.%Y') zuweis_dat FROM stan_antrag WHERE saaid='$saaid_alt'");
$row_zuw_alt = $res_zuw_alt->fetch_array();
$res_zuw_neu = $db->query("SELECT date_format(zuweis_dat, '%d.%m.%Y') zuweis_dat FROM stan_antrag WHERE saaid='$saaid'");
$row_zuw_neu = $res_zuw_neu->fetch_array();
if($hist != 'Y'){
$heute_format = date("d.m.Y", mktime(0, 0, 0, date("m"), date("d"), date("Y"))); // ISO-8601 Format wie in der Datenbank: Formatierung f&uuml;r Vergleiche erforderlich
}else{
$res_dat = $db->query("SELECT min(date_format(datum, '%d.%m.%Y')) datum FROM stan_printqueue_hist WHERE zuweisung='EZS' AND admin='$user_admin'");
$row_dat = $res_dat->fetch_array();
$heute_format = $row_dat[datum];
}
$pdf->Image('anschreiben/logo.jpg', 116, 10,64); #http://www.fpdf.de/funktionsreferenz/?funktion=Image
$pdf->SetFont('Arial', '', 12);
$pdf->SetY(59.5);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$row_stud[vorname] $row_stud[nachname]", 0, 0, 'L');
$pos = $pdf->GetY()+4;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$row_stud[ag] / $row_stud[jahrgang]", 0, 0, 'L');
$pos = $pdf->GetY()+4;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$row_stud[postrasse]", 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY(73.5);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$row_stud[poplz] $row_stud[poort]", 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetY(56);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Zulassung", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pos=$pdf->GetY()+3.7;
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Ludwigsburg,", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$heute_format", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Bearbeiterin", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Telefon", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_kontakt[tel]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Fax", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_kontakt[fax]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "e-mail", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_ansp[mail]", 0, 'R');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY(45);
$pdf->SetX(23);
$pdf->MultiCell(80, 3, "HS Ludwigsburg ".uchr(149)." Postfach 0489 ".uchr(149)." 71604 Ludwigsburg", 0, 'L');
########Kontaktdaten HS Ende #####################
######## Betreff #################################
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY(96.2);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Änderung der Zuweisung für die praktische Ausbildung;", 0, 'L');
######## Betreff Ende ############################
$pos=$pdf->GetY()+10.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Sehr geehrte(r) $row_stud[vorname] $row_stud[nachname],", 0, 'L');
$pos=$pdf->GetY()+7.1;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "aufgrund Ihres Änderungsantrages vom $row_zuw_neu[zuweis_dat] wird hiermit der Bescheid über die Zuweisung zu den Ausbildungsstellen in der praktischen Ausbildung der Hochschule Ludwigsburg vom $row_zuw_alt[zuweis_dat] wie folgt geändert:", 0, 'J');
$pos=$pdf->GetY()+3.2;
$pdf->SetFont('Arial', 'U', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 7.4, "Bisherige Zuweisung:", 0, 'J');
$jahrgang='08';
$standort='1';
$_POST[termin] = '1';
$db = dbconnect();
$columns = 4; //five columns
$pos=$pdf->GetY()+1.0;
$pdf->SetY($pos);
//we initialize the table class
$pdf->Table_Init($columns, true, true);
$table_subtype = $table_default_table_type;
$pdf->Set_Table_Type($table_subtype);
//TABLE HEADER SETTINGS
$header_subtype = $table_default_header_type;
for($i=0; $i<$columns; $i++) $header_type[$i] = $table_default_header_type;
$header_type[0]['WIDTH'] = 29.4;
$header_type[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[0]['TEXT'] = "Zeitraum";
$header_type[1]['WIDTH'] = 59.9;
$header_type[1]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[1]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[1]['TEXT'] = "Ausbildungsstelle";
$header_type[2]['WIDTH'] = 35;
$header_type[2]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[2]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[2]['TEXT'] = "Abteilung";
$header_type[3]['WIDTH'] = 44;
$header_type[3]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[3]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[3]['TEXT'] = "Vertiefungsbereich";
# $header_type[4]['WIDTH'] = 25.7;
# $header_type[4]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
# $header_type[4]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
# $header_type[4]['TEXT'] = "AG-Standort";
#$header_type[1]['COLSPAN'] = "2";
//set the header type
$pdf->Set_Header_Type($header_type);
$pdf->Draw_Header();
//TABLE DATA SETTINGS
$data_subtype = $table_default_data_type;
$data_type = Array();//reset the array
for ($i=0; $i<$columns; $i++) $data_type[$i] = $data_subtype;
$pdf->Set_Data_Type($data_type);
# $fsize = 10;
# $colspan = 1;
# $rr = 255;
$db = dbconnect();
if($hist != 'Y'){
$query = "SELECT a.saaid, b.aendid
FROM stan_printqueue_antrag a, stan_antrag b
WHERE a.saaid = b.saaid
AND a.zuweisung='AES'
AND druckstatus = 'N'
AND uid='$uid1'
ORDER BY b.beginn
";
}else{
$query = "SELECT a.saaid, b.aendid
FROM stan_printqueue_hist a, stan_antrag b
WHERE a.saaid = b.saaid
AND a.zuweisung='AES'
AND druckstatus = 'N'
AND uid='$uid1'
ORDER BY b.beginn
";
}
$result = $db->query ($query)
or die ("Cannot execute query1");
while ($row = $result->fetch_array())
{
$data = Array();
$res_alt_aend = $db->query("SELECT date_format(beginn, '%d.%m.%Y') beginn, date_format(ende, '%d.%m.%Y') ende, dst_id, abteilung, e.bezeichnung
FROM stan_antrag a, stan_vertiefungsbereich e
WHERE a.vert_bereich=e.vbid
AND a.saaid<'$row[saaid]'
AND a.aendid='$row[aendid]'
ORDER BY a.saaid DESC
LIMIT 1");
$row_alt_aend = $res_alt_aend->fetch_array();
$result_data2 = $db->query("SELECT distinct 1 FROM stan_dienststellen WHERE dst_id= '$row_alt_aend[dst_id]'");
$rowdata2 = $result_data2->fetch_array();
if($rowdata2[0] == '1'){
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen
WHERE dst_id='$row_alt_aend[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}else{
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen_tmp
WHERE dst_id='$row_alt_aend[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}
/* Schriftgröße
$data[0]['T_SIZE'] = $fsize;
$data[1]['T_SIZE'] = $fsize+3;
$data[3]['T_SIZE'] = $fsize+4;
*/
/* Schriftfarbe und Zellenhintergrund
$data[0]['T_COLOR'] = array(0,0,0); //Schriftfarbe
$data[0]['BG_COLOR'] = array($rr,$rr,$rr);
$data[3]['T_COLOR'] = array($rr,240,240);
$data[3]['BG_COLOR'] = array($rr,100,135);
*/
$data[0]['TEXT'] = "$row_alt_aend[beginn] -\n$row_alt_aend[ende]";
$data[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$data[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
#$data[0]['T_TYPE'] = "BI"; // B=BOLD, I=ITALIC
$data[1]['TEXT'] = "$rowdata3[bez]";
$data[1]['T_ALIGN'] = "L";
$data[1]['V_ALIGN'] = "M";
$data[2]['TEXT'] = "$row_alt_aend[abteilung]";
$data[2]['T_ALIGN'] = "L";
$data[2]['V_ALIGN'] = "M";
$data[3]['TEXT'] = "$row_alt_aend[bezeichnung]";
$data[3]['T_ALIGN'] = "L";
$data[3]['V_ALIGN'] = "M";
$data[4]['TEXT'] = "$row_alt_aend[standort]";
$data[4]['T_ALIGN'] = "L";
$data[4]['V_ALIGN'] = "M";
$pdf->Draw_Data($data,NULL,6); // -->letzter Parameter Höhe der Datenspalte. Neu prgrammiert in prints/class.fpdf_table.php am 15.04.2009
}
$pdf->Draw_Table_Border();
$pos=$pdf->GetY()+3.2;
$pdf->SetFont('Arial', 'U', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 7.4, "Geänderte Zuweisung", 0, 'J');
$db = dbconnect();
$columns = 4; //five columns
$pos=$pdf->GetY()+1.0;
$pdf->SetY($pos);
//we initialize the table class
$pdf->Table_Init($columns, true, true);
$table_subtype = $table_default_table_type;
$pdf->Set_Table_Type($table_subtype);
//TABLE HEADER SETTINGS
$header_subtype = $table_default_header_type;
for($i=0; $i<$columns; $i++) $header_type[$i] = $table_default_header_type;
$header_type[0]['WIDTH'] = 29.4;
$header_type[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[0]['TEXT'] = "Zeitraum";
$header_type[1]['WIDTH'] = 59.9;
$header_type[1]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[1]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[1]['TEXT'] = "Ausbildungsstelle";
$header_type[2]['WIDTH'] = 35;
$header_type[2]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[2]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[2]['TEXT'] = "Abteilung";
$header_type[3]['WIDTH'] = 44;
$header_type[3]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[3]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[3]['TEXT'] = "Vertiefungsbereich";
# $header_type[4]['WIDTH'] = 25.7;
# $header_type[4]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
# $header_type[4]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
# $header_type[4]['TEXT'] = "AG-Standort";
#$header_type[1]['COLSPAN'] = "2";
//set the header type
$pdf->Set_Header_Type($header_type);
$pdf->Draw_Header();
//TABLE DATA SETTINGS
$data_subtype = $table_default_data_type;
$data_type = Array();//reset the array
for ($i=0; $i<$columns; $i++) $data_type[$i] = $data_subtype;
$pdf->Set_Data_Type($data_type);
# $fsize = 10;
# $colspan = 1;
# $rr = 255;
$db = dbconnect();
if($hist != 'Y'){
$query = "SELECT a.saaid
FROM stan_printqueue_antrag a, stan_antrag b
WHERE a.saaid = b.saaid
AND a.zuweisung='AES'
AND druckstatus = 'N'
AND uid='$uid1'
ORDER BY b.beginn
";
}else{
$query = "SELECT a.saaid
FROM stan_printqueue_hist a, stan_antrag b
WHERE a.saaid = b.saaid
AND a.zuweisung='AES'
AND druckstatus = 'N'
AND uid='$uid1'
ORDER BY b.beginn
";
}
$result = $db->query ($query)
or die ("Cannot execute query1");
while ($row = $result->fetch_array())
{
$data = Array();
$res_neu_aend = $db->query("SELECT date_format(beginn, '%d.%m.%Y') beginn, date_format(ende, '%d.%m.%Y') ende, dst_id, abteilung, e.bezeichnung
FROM stan_antrag a, stan_vertiefungsbereich e
WHERE a.vert_bereich=e.vbid
AND a.saaid ='$row[saaid]'
ORDER BY a.saaid DESC
LIMIT 1");
$row_neu_aend = $res_neu_aend->fetch_array();
$result_data2 = $db->query("SELECT distinct 1 FROM stan_dienststellen WHERE dst_id= '$row_neu_aend[dst_id]'");
$rowdata2 = $result_data2->fetch_array();
if($rowdata2[0] == '1'){
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen
WHERE dst_id='$row_neu_aend[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}else{
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen_tmp
WHERE dst_id='$row_neu_aend[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}
/* Schriftgröße
$data[0]['T_SIZE'] = $fsize;
$data[1]['T_SIZE'] = $fsize+3;
$data[3]['T_SIZE'] = $fsize+4;
*/
/* Schriftfarbe und Zellenhintergrund
$data[0]['T_COLOR'] = array(0,0,0); //Schriftfarbe
$data[0]['BG_COLOR'] = array($rr,$rr,$rr);
$data[3]['T_COLOR'] = array($rr,240,240);
$data[3]['BG_COLOR'] = array($rr,100,135);
*/
$data[0]['TEXT'] = "$row_neu_aend[beginn] -\n$row_neu_aend[ende]";
$data[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$data[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
#$data[0]['T_TYPE'] = "BI"; // B=BOLD, I=ITALIC
$data[1]['TEXT'] = "$rowdata3[bez]";
$data[1]['T_ALIGN'] = "L";
$data[1]['V_ALIGN'] = "M";
$data[2]['TEXT'] = "$row_neu_aend[abteilung]";
$data[2]['T_ALIGN'] = "L";
$data[2]['V_ALIGN'] = "M";
$data[3]['TEXT'] = "$row_neu_aend[bezeichnung]";
$data[3]['T_ALIGN'] = "L";
$data[3]['V_ALIGN'] = "M";
$data[4]['TEXT'] = "$row_neu_aend[standort]";
$data[4]['T_ALIGN'] = "L";
$data[4]['V_ALIGN'] = "M";
$pdf->Draw_Data($data,NULL,6); // -->letzter Parameter Höhe der Datenspalte. Neu prgrammiert in prints/class.fpdf_table.php am 15.04.2009
}
$pdf->Draw_Table_Border();
$pos=$pdf->GetY()+6.4;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Die übrigen Bestimmungen des Bescheids vom $row_zuw_alt[zuweis_dat] gelten weiterhin.", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Mit freundlichen Grüßen", 0, 'J');
$pos=$pdf->GetY()+14.8;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "$row_ansp[name]", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Hinweis: Aus technischen Gründen erhalten Sie auch bei geringfügigen Änderungen ein neues Zuweisungsschreiben.", 0, 'J');
?>

View File

@ -0,0 +1,448 @@
<?php
$uid1="$row_cur_uid[uid]";
$saaid="$row_akt[saaid]";
########Kontaktdaten HS #####################
$db = dbconnect();
$res_ansp = $db->query("SELECT wert1 name, wert2 mail FROM parameter WHERE pid='6'");
$row_ansp = $res_ansp->fetch_array();
$res_kontakt = $db->query("SELECT wert1 tel, wert2 fax FROM parameter WHERE pid='5'");
$row_kontakt = $res_kontakt->fetch_array();
$res_stud = $db->query("SELECT nachname, vorname, postrasse, poplz, poort, ag, jahrgang FROM stud WHERE uid='$uid1'");
$row_stud = $res_stud->fetch_array();
$res_dst = $db->query("SELECT dst_id FROM stan_antrag WHERE saaid='$saaid'");
$row_dst = $res_dst->fetch_array();
$result_data2 = $db->query("SELECT distinct 1 FROM stan_dienststellen WHERE dst_id= '$row_dst[dst_id]'");
$rowdata2 = $result_data2->fetch_array();
if($rowdata2[0] == '1'){
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen
WHERE dst_id='$row_dst[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}else{
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen_tmp
WHERE dst_id='$row_dst[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}
if($hist != 'Y'){
$heute_format = date("d.m.Y", mktime(0, 0, 0, date("m"), date("d"), date("Y"))); // ISO-8601 Format wie in der Datenbank: Formatierung f&uuml;r Vergleiche erforderlich
}else{
$res_dat = $db->query("SELECT min(date_format(datum, '%d.%m.%Y')) datum FROM stan_printqueue_hist WHERE zuweisung='EZS' AND admin='$user_admin'");
$row_dat = $res_dat->fetch_array();
$heute_format = $row_dat[datum];
}
$pdf->Image('anschreiben/logo.jpg', 116, 10,64); #http://www.fpdf.de/funktionsreferenz/?funktion=Image
$pdf->SetFont('Arial', '', 12);
$pdf->SetY(59.5);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$rowdata3[bez]", 0, 0, 'L');
$pos = $pdf->GetY()+4;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$rowdata3[str]", 0, 0, 'L');
$pos = $pdf->GetY()+4;
/*
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$row_stud[postrasse]", 0, 0, 'L');
*/
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY(73.5);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$rowdata3[plz] $rowdata3[ort]", 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetY(56);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Zulassung", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pos=$pdf->GetY()+3.7;
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Ludwigsburg,", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$heute_format", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Bearbeiterin", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Telefon", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_kontakt[tel]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Fax", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_kontakt[fax]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "e-mail", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_ansp[mail]", 0, 'R');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY(45);
$pdf->SetX(23);
$pdf->MultiCell(80, 3, "HS Ludwigsburg ".uchr(149)." Postfach 0489 ".uchr(149)." 71604 Ludwigsburg", 0, 'L');
########Kontaktdaten HS Ende #####################
######## Betreff #################################
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY(96.2);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Ausbildung im gehobenen Verwaltungsdienst;", 0, 'L');
$pos=$pdf->GetY()+1.8;
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(165, 4.8, "Zuweisung der Anwärterin / des Anwärters $row_stud[vorname] $row_stud[nachname] in der praktischen Ausbildung", 0, 'L');
######## Betreff Ende ############################
$pos=$pdf->GetY()+7.0;
$pdf->SetFont('Arial', 'BU', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Anlagen", 0, 'L');
$pos=$pdf->GetY()+1.8;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Beurteilungsvordruck", 0, 'L');
$pdf->SetFont('Arial', 'BI', 12);
$pdf->SetY($pos);
$pdf->SetX(64);
$pdf->MultiCell(150, 3, "(zum Download)", 0, 'L');
$pos=$pdf->GetY()+1.8;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Weitere Hinweise zur Zuweisung", 0, 'L');
$pdf->SetFont('Arial', 'BI', 12);
$pdf->SetY($pos);
$pdf->SetX(86);
$pdf->MultiCell(150, 3, "(zum Download)", 0, 'L');
$pos=$pdf->GetY()+1.8;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Auszug aus der Ausbildungs- und Prüfungsordnung für ", 0, 'L');
$pos=$pdf->GetY()+1.8;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "den gehobenen Verwaltungsdienst", 0, 'L');
$pdf->SetFont('Arial', 'BI', 12);
$pdf->SetY($pos);
$pdf->SetX(90);
$pdf->MultiCell(150, 3, "(zum Download)", 0, 'L');
#################################################################################
$pos=$pdf->GetY()+6.6;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Sehr geehrte Damen und Herren,", 0, 'L');
$pos=$pdf->GetY()+6.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Sie haben Frau/Herrn $row_stud[vorname] $row_stud[nachname] ein Praktikum bei Ihnen zugesagt.", 0, 'J');
$pos=$pdf->GetY()+6.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Wir weisen Ihnen o.g. Regierungsinspektoranwärter/in gemäß § 23 (3) Ausbildungs- und Prüfungsordnung für den gehobenen Verwaltungsdienst (APrOVw gD, GBl. vom 26.09.2007,S. 400) mit Ihrem Einverständnis im folgenden Zeitraum zu:", 0, 'J');
#$jahrgang='$jahrgang'; // wird von pdf_gen.php geliefert
#$_POST[termin] = '1';
$db = dbconnect();
$columns = 4; //five columns
$pos=$pdf->GetY()+5.0;
$pdf->SetY($pos);
//we initialize the table class
$pdf->Table_Init($columns, true, true);
$table_subtype = $table_default_table_type;
$pdf->Set_Table_Type($table_subtype);
//TABLE HEADER SETTINGS
$header_subtype = $table_default_header_type;
for($i=0; $i<$columns; $i++) $header_type[$i] = $table_default_header_type;
$header_type[0]['WIDTH'] = 41.0;
$header_type[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[0]['TEXT'] = "Zeitraum";
$header_type[1]['WIDTH'] = 46.5;
$header_type[1]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[1]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[1]['TEXT'] = "Ausbildungsstelle";
$header_type[2]['WIDTH'] = 33.6;
$header_type[2]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[2]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[2]['TEXT'] = "Abteilung";
$header_type[3]['WIDTH'] = 47.2;
$header_type[3]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[3]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[3]['TEXT'] = "Vertiefungsbereich";
#$header_type[1]['COLSPAN'] = "2";
//set the header type
$pdf->Set_Header_Type($header_type);
$pdf->Draw_Header();
//TABLE DATA SETTINGS
$data_subtype = $table_default_data_type;
$data_type = Array();//reset the array
for ($i=0; $i<$columns; $i++) $data_type[$i] = $data_subtype;
$pdf->Set_Data_Type($data_type);
# $fsize = 10;
# $colspan = 1;
# $rr = 255;
$db = dbconnect();
$query = "SELECT date_format(beginn, '%d.%m.%Y') beginn, date_format(beginn, '%Y%m%d') beginnform, date_format(ende, '%d.%m.%Y') ende, abteilung, b.bezeichnung
FROM stan_antrag a, stan_vertiefungsbereich b
WHERE a.vert_bereich=b.vbid
AND a.saaid='$saaid'
ORDER BY beginnform ASC";
$result = $db->query ($query)
or die ("Cannot execute query1");
while ($row = $result->fetch_array())
{
$data = Array();
/* Schriftgröße
$data[0]['T_SIZE'] = $fsize;
$data[1]['T_SIZE'] = $fsize+3;
$data[3]['T_SIZE'] = $fsize+4;
*/
/* Schriftfarbe und Zellenhintergrund
$data[0]['T_COLOR'] = array(0,0,0); //Schriftfarbe
$data[0]['BG_COLOR'] = array($rr,$rr,$rr);
$data[3]['T_COLOR'] = array($rr,240,240);
$data[3]['BG_COLOR'] = array($rr,100,135);
*/
$data[0]['TEXT'] = "$row[beginn] -\n$row[ende]";
$data[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$data[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
#$data[0]['T_TYPE'] = "BI"; // B=BOLD, I=ITALIC
$data[1]['TEXT'] = "$rowdata3[bez]";
$data[1]['T_ALIGN'] = "L";
$data[1]['V_ALIGN'] = "M";
$data[2]['TEXT'] = "$row[abteilung]";
$data[2]['T_ALIGN'] = "L";
$data[2]['V_ALIGN'] = "M";
$data[3]['TEXT'] = "$row[bezeichnung]";
$data[3]['T_ALIGN'] = "L";
$data[3]['V_ALIGN'] = "M";
$pdf->Draw_Data($data,NULL,10); // -->letzter Parameter Höhe der Datenspalte. Neu prgrammiert in prints/class.fpdf_table.php am 15.04.2009
}
$pdf->Draw_Table_Border();
$pos=$pdf->GetY()+3.4;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Beachten Sie bitte die in den §§ 23 bis 25 APrOVw gD geregelten Vorschriften zur praktischen Ausbildung (insbesondere § 25 APrOVw gD).\nBitte erstellen Sie eine Beurteilung, die Sie uns nach Beendigung der Studieneinheit übersenden. Den Beurteilungsvordruck, die APrOVw gD und weitere ausbildungsrelevante Regelungen und Hinweise finden Sie zum Download unter:", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', 'U', 12);
$pdf->SetTextColor(0,0,255);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "www.hs-ludwigsburg.de", 0, 'J');
$pdf->SetTextColor(0,0,0);
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(70);
$pdf->MultiCell(168, 4.8, "Hochschule>Studiengänge Innenverwaltung>Praktische Ausbildung (Praxissemester)", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Wir bedanken uns für Ihre Bereitschaft auch bei der praktischen Ausbildung während dem Vorbereitungsdienst mitzuwirken!", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Mit freundlichen Grüßen", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "$row_ansp[name]", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Hinweis: Aus technischen Gründen erhalten Sie auch bei geringfügigen Änderungen ein neues Zuweisungsschreiben.", 0, 'J');
?>

View File

@ -0,0 +1,446 @@
<?php
$uid1="$row_cur_uid[uid]";
$user_admin=$_COOKIE["user_admin"];
########Kontaktdaten HS #####################
$db = dbconnect();
$res_ansp = $db->query("SELECT wert1 name, wert2 mail FROM parameter WHERE pid='6'");
$row_ansp = $res_ansp->fetch_array();
$res_kontakt = $db->query("SELECT wert1 tel, wert2 fax FROM parameter WHERE pid='5'");
$row_kontakt = $res_kontakt->fetch_array();
$res_stud = $db->query("SELECT nachname, vorname, postrasse, poplz, poort, ag, jahrgang FROM stud WHERE uid='$uid1'");
$row_stud = $res_stud->fetch_array();
if($hist != 'Y'){
$heute_format = date("d.m.Y", mktime(0, 0, 0, date("m"), date("d"), date("Y"))); // ISO-8601 Format wie in der Datenbank: Formatierung f&uuml;r Vergleiche erforderlich
}else{
$res_dat = $db->query("SELECT min(date_format(datum, '%d.%m.%Y')) datum FROM stan_printqueue_hist WHERE zuweisung='EZS' AND admin='$user_admin'");
$row_dat = $res_dat->fetch_array();
$heute_format = $row_dat[datum];
}
$pdf->Image('anschreiben/logo.png', 116, 10,64); #http://www.fpdf.de/funktionsreferenz/?funktion=Image
$pdf->SetFont('Arial', '', 12);
$pdf->SetY(59.5);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$row_stud[vorname] $row_stud[nachname]", 0, 0, 'L');
$pos = $pdf->GetY()+4;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$row_stud[ag] / $row_stud[jahrgang]", 0, 0, 'L');
$pos = $pdf->GetY()+4;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$row_stud[postrasse]", 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY(73.5);
$pdf->SetX(23);
$pdf->Cell(0, 3, "$row_stud[poplz] $row_stud[poort]", 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetY(56);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Zulassung", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pos=$pdf->GetY()+3.7;
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Ludwigsburg,", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$heute_format", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Bearbeiterin", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Telefon", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_kontakt[tel]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "Fax", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_kontakt[fax]", 0, 'R');
$pos=$pdf->GetY()+0.3;
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(117.9);
$pdf->MultiCell(47, 3, "e-mail", 0, 'L');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(143.1);
$pdf->MultiCell(47, 3, "$row_ansp[mail]", 0, 'R');
$pdf->SetFont('Arial', '', 8);
$pdf->SetY(45);
$pdf->SetX(23);
$pdf->MultiCell(80, 3, "HS Ludwigsburg ".uchr(149)." Postfach 0489 ".uchr(149)." 71604 Ludwigsburg", 0, 'L');
########Kontaktdaten HS Ende #####################
######## Betreff #################################
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY(96.2);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Ausbildung im gehobenen Verwaltungsdienst;", 0, 'L');
$pos=$pdf->GetY()+1.8;
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Zuweisung zu den Ausbildungsstellen in der praktischen Ausbildung", 0, 'L');
######## Betreff Ende ############################
$pos=$pdf->GetY()+7.0;
$pdf->SetFont('Arial', 'BU', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Anlagen", 0, 'L');
$pos=$pdf->GetY()+1.8;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Urlaubskarte", 0, 'L');
$pos=$pdf->GetY()+1.8;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Weitere Bestimmungen zum Zuweisungsbescheid", 0, 'L');
#################################################################################
$pos=$pdf->GetY()+6.6;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(150, 3, "Sehr geehrte(r) $row_cur_uid[vorname] $row_cur_uid[nachname],", 0, 'L');
$pos=$pdf->GetY()+6.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "wir weisen Sie gem. § 23 (3) Ausbildungs- und Prüfungsordnung für den gehobenen Verwaltungsdienst (APrOVw gD, GBl. vom 26.09.2007,S.400) für die praktische Ausbildung im Vorbereitungsdienst folgenden Stellen zu:", 0, 'J');
#$jahrgang="$jahrgang"; // wird von pdf_gen.php geliefert
#$datid = '1';
$db = dbconnect();
$columns = 4; //five columns
$pos=$pdf->GetY()+5.0;
$pdf->SetY($pos);
//we initialize the table class
$pdf->Table_Init($columns, true, true);
$table_subtype = $table_default_table_type;
$pdf->Set_Table_Type($table_subtype);
//TABLE HEADER SETTINGS
$header_subtype = $table_default_header_type;
for($i=0; $i<$columns; $i++) $header_type[$i] = $table_default_header_type;
$header_type[0]['WIDTH'] = 29.4;
$header_type[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[0]['TEXT'] = "Zeitraum";
$header_type[1]['WIDTH'] = 59.9;
$header_type[1]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[1]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[1]['TEXT'] = "Ausbildungsstelle";
$header_type[2]['WIDTH'] = 35;
$header_type[2]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[2]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[2]['TEXT'] = "Abteilung";
$header_type[3]['WIDTH'] = 44;
$header_type[3]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$header_type[3]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
$header_type[3]['TEXT'] = "Vertiefungsbereich";
# $header_type[4]['WIDTH'] = 25.7;
# $header_type[4]['T_ALIGN'] = "C"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
# $header_type[4]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
# $header_type[4]['TEXT'] = "AG-Standort";
#$header_type[1]['COLSPAN'] = "2";
//set the header type
$pdf->Set_Header_Type($header_type);
$pdf->Draw_Header();
//TABLE DATA SETTINGS
$data_subtype = $table_default_data_type;
$data_type = Array();//reset the array
for ($i=0; $i<$columns; $i++) $data_type[$i] = $data_subtype;
$pdf->Set_Data_Type($data_type);
# $fsize = 10;
# $colspan = 1;
# $rr = 255;
$db = dbconnect();
if($hist != 'Y'){
$query = "SELECT date_format(beginn, '%d.%m.%Y') beginn, date_format(beginn, '%Y%m%d') beginnform, date_format(ende, '%d.%m.%Y') ende, dst_id,abteilung, e.bezeichnung, saaid
FROM stan_antrag a, stan_vertiefungsbereich e
WHERE a.vert_bereich=e.vbid
AND a.uid='$uid1'
AND a.status = (
SELECT MAX(t2.status)
FROM stan_antrag t2
WHERE a.aendid = t2.aendid
)
ORDER BY beginnform ASC";
$result = $db->query ($query)
or die ("Cannot execute query1");
}else{
$query = "SELECT date_format( beginn, '%d.%m.%Y' ) beginn, date_format( beginn, '%Y%m%d' ) beginnform, date_format( ende, '%d.%m.%Y' ) ende, dst_id, abteilung, e.bezeichnung, a.saaid
FROM stan_antrag a, stan_vertiefungsbereich e, stan_printqueue_hist b
WHERE a.vert_bereich = e.vbid
AND a.saaid=b.saaid
AND b.zuweisung='EZS'
AND b.admin='$user_admin'
ORDER BY beginnform ASC";
$result = $db->query ($query)
or die ("Cannot execute query1");
}
while ($row = $result->fetch_array())
{
$data = Array();
$result_data2 = $db->query("SELECT distinct 1 FROM stan_dienststellen WHERE dst_id= '$row[dst_id]'");
$rowdata2 = $result_data2->fetch_array();
if($rowdata2[0] == '1'){
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen
WHERE dst_id='$row[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}else{
$result_data3 = $db->query("SELECT bez
, str
, plz
, postfach
, plz_postfach
, ort
, bundesland
, staat
FROM stan_dienststellen_tmp
WHERE dst_id='$row[dst_id]'");
$rowdata3 = $result_data3->fetch_array();
}
/* Schriftgröße
$data[0]['T_SIZE'] = $fsize;
$data[1]['T_SIZE'] = $fsize+3;
$data[3]['T_SIZE'] = $fsize+4;
*/
/* Schriftfarbe und Zellenhintergrund
$data[0]['T_COLOR'] = array(0,0,0); //Schriftfarbe
$data[0]['BG_COLOR'] = array($rr,$rr,$rr);
$data[3]['T_COLOR'] = array($rr,240,240);
$data[3]['BG_COLOR'] = array($rr,100,135);
*/
$data[0]['TEXT'] = "$row[beginn] -\n$row[ende]";
$data[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY
$data[0]['V_ALIGN'] = "M"; //T=TOP, M=MIDDLE, B=BOTTOM
#$data[0]['T_TYPE'] = "BI"; // B=BOLD, I=ITALIC
$data[1]['TEXT'] = "$rowdata3[bez]";
$data[1]['T_ALIGN'] = "L";
$data[1]['V_ALIGN'] = "M";
$data[2]['TEXT'] = "$row[abteilung]";
$data[2]['T_ALIGN'] = "L";
$data[2]['V_ALIGN'] = "M";
$data[3]['TEXT'] = "$row[bezeichnung]";
$data[3]['T_ALIGN'] = "L";
$data[3]['V_ALIGN'] = "M";
# $data[4]['TEXT'] = "$row[standort]";
# $data[4]['T_ALIGN'] = "L";
# $data[4]['V_ALIGN'] = "M";
$pdf->Draw_Data($data,NULL,6); // -->letzter Parameter Höhe der Datenspalte. Neu prgrammiert in prints/class.fpdf_table.php am 15.04.2009
$saaid_prnt .= "$row[saaid],";
}
$pdf->Draw_Table_Border();
## Für eine spätere history die gedruckten Saaids sammeln für das Dokument
if($hist != 'Y'){
$res_dat = $db->query("UPDATE stan_printqueue_antrag
SET printed_obj='$saaid_prnt'
WHERE zuweisung='EZS'
AND admin='$user_admin'
AND saaid IN (SELECT a.saaid
FROM stan_antrag a
WHERE uid='$uid1')");
$saaid_prnt = '';
}
$pos=$pdf->GetY()+6.4;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Beiliegende Anlagen sind Bestandteil des Zuweisungsbescheids.", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Die Zuweisung zu den AG-Standorten erfolgt zu einem späteren Zeitpunkt.", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Weitere wichtige Informationen zum Zuweisungsbescheid finden Sie unter:", 0, 'J');
$pos=$pdf->GetY()+5.0;
$pdf->SetFont('Arial', 'U', 12);
$pdf->SetTextColor(0,0,255);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "www.hs-ludwigsburg.de", 0, 'J');
$pdf->SetTextColor(0,0,0);
$pdf->SetFont('Arial', '', 8);
$pdf->SetY($pos);
$pdf->SetX(70);
$pdf->MultiCell(168, 4.8, "Hochschule>Studiengänge Innenverwaltung>Praktische Ausbildung (Praxissemester)", 0, 'J');
$pos=$pdf->GetY()+9.6;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "Mit freundlichen Grüßen", 0, 'J');
$pos=$pdf->GetY()+10.8;
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(23);
$pdf->MultiCell(168, 4.8, "$row_ansp[name]", 0, 'J');
#require("urlaubskarte.php");
$pagecount = $pdf->setSourceFile("anschreiben/anlage_zuweisung.pdf");
$tplidx1 = $pdf->ImportPage(1);
$pdf->addPage();
$pdf->useTemplate($tplidx1,0,0,0);
$tplidx1 = $pdf->ImportPage(2);
$pdf->addPage();
$pdf->useTemplate($tplidx1,0,0,0);
$tplidx1 = $pdf->ImportPage(3);
$pdf->addPage();
$pdf->useTemplate($tplidx1,0,0,0);
?>