first commit
This commit is contained in:
BIN
admin/anschreiben/alt/Dienstzeugnisvordruck.doc
Normal file
BIN
admin/anschreiben/alt/Dienstzeugnisvordruck.doc
Normal file
Binary file not shown.
BIN
admin/anschreiben/alt/ZEP_Block_apro_20141015.jpg
Normal file
BIN
admin/anschreiben/alt/ZEP_Block_apro_20141015.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 256 KiB |
BIN
admin/anschreiben/alt/aenderungschreiben_anwaerter.doc
Normal file
BIN
admin/anschreiben/alt/aenderungschreiben_anwaerter.doc
Normal file
Binary file not shown.
327
admin/anschreiben/alt/aenderungschreiben_anwaerter.php
Normal file
327
admin/anschreiben/alt/aenderungschreiben_anwaerter.php
Normal file
@ -0,0 +1,327 @@
|
||||
<?php
|
||||
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
$uid1=$_GET["uid1"];
|
||||
$array = stripslashes($_GET['saaid']);
|
||||
$array = unserialize($array);
|
||||
|
||||
|
||||
for($i=0;$i<count($array);$i++){ // welche Stellen wurden angeklickt?
|
||||
$stelle .= "$array[$i],";
|
||||
}
|
||||
|
||||
$stelle=substr($stelle, 0, -1);
|
||||
|
||||
$db = dbconnect();
|
||||
$result_tmp1 = $db->query("DELETE FROM stan_tmp_zuweis_adm WHERE uid='$uid1'");
|
||||
|
||||
|
||||
$result_tmp1 = $db->query("INSERT INTO stan_tmp_zuweis_adm
|
||||
SELECT t1.saaid
|
||||
, t1.uid
|
||||
, t1.beginn
|
||||
, t1.ende
|
||||
, t1.ort
|
||||
, t2.bezeichnung
|
||||
, t1.bezeichnung art_bez
|
||||
FROM stan_antrag t1, stan_stellenbereiche t2
|
||||
WHERE t1.uid = '$uid1'
|
||||
AND t1.sachbereich = t2.sbid
|
||||
AND t1.zuweisung='Z'
|
||||
AND status = '0'
|
||||
AND aend_dat != '0000-00-00 00:00:00'
|
||||
AND saaid IN ($stelle)
|
||||
");
|
||||
|
||||
$result = $db->query("SELECT max(saaid) max_id FROM stan_tmp_zuweis_adm WHERE uid='$uid1'");
|
||||
$row4 = $result->fetch_array();
|
||||
$saaid_neu = $row4[max_id] + 1; // Damit alle Einträge eine ID haben
|
||||
$result = $db->query("SELECT bezeichnung
|
||||
FROM stan_pu_wunsch, stan_pu_standorte
|
||||
WHERE stan_pu_wunsch.ort = stan_pu_standorte.pusoid
|
||||
AND uid='$uid1'
|
||||
AND prioritaet=0");
|
||||
$row4 = $result->fetch_array();
|
||||
$result_tmp1 = $db->query("INSERT INTO stan_tmp_zuweis_adm SELECT $saaid_neu, '$uid1', beginn, ende, '$row4[bezeichnung]', 'Praxisbegleitender Unterricht', '' FROM stan_sperrzeit WHERE jahrgang ='$row[Jahrgang]' AND kennung = '$row[stg]'");
|
||||
|
||||
|
||||
#echo "SELECT DATE_FORMAT(aend_dat, '%d.%m.%Y') aend_dat, DATE_FORMAT(zuweis_dat, '%d.%m.%Y') zuweis_dat FROM stan_antrag WHERE saaid IN ($stelle) AND aend_dat != '0000-00-00 00:00:00' LIMIT 1";
|
||||
$db = dbconnect();
|
||||
# Änderung in der Abfrage row10: Sortierung bei Datum eingefügt, da bei mehrfachen Änderungsanträgen immer das jüngste Datum genommen wurde.
|
||||
# aend_dat aend_dat2 daher weil man kein ORDER BY bei date_format machen kann. Da wird datum zu text gewandelt.
|
||||
$res10 = $db->query("SELECT DATE_FORMAT(aend_dat, '%d.%m.%Y') aend_dat, DATE_FORMAT(zuweis_dat, '%d.%m.%Y') zuweis_dat, aend_dat aend_dat2 FROM stan_antrag WHERE saaid IN ($stelle) AND aend_dat != '0000-00-00 00:00:00' ORDER BY aend_dat2 DESC LIMIT 1");
|
||||
$row10 = $res10->fetch_array();
|
||||
|
||||
#error_reporting (E_ALL);
|
||||
|
||||
$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();
|
||||
|
||||
define('FPDF_FONTPATH','../../stud/prints/font/');
|
||||
require('../../stud/prints/as_utf_class.php');
|
||||
require_once("../../stud/prints/table_def.inc");
|
||||
|
||||
$pdf=new utfFPDF();
|
||||
|
||||
|
||||
$pagecount = $pdf->setSourceFile("briefkopf_blanko.pdf");
|
||||
|
||||
$tplidx = $pdf->ImportPage(1);
|
||||
|
||||
$pdf->SetAutoPageBreak(true, 20);
|
||||
$pdf->SetTopMargin(0);
|
||||
$pdf->SetRightMargin(23);
|
||||
$pdf->SetAutoPageBreak(TRUE, 0);
|
||||
|
||||
|
||||
$pdf->addPage();
|
||||
$pdf->useTemplate($tplidx,0,0,0);
|
||||
|
||||
|
||||
$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ür Vergleiche erforderlich
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(56.7);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Ludwigsburg,", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(56.7);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$heute_format", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(60.9);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Bearbeiterin", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(60.9);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(65.1);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Telefon", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(65.1);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[tel]", 0, 'R');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(69.3);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Fax", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(69.3);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[fax]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "e-mail", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_ansp[mail]", 0, 'R');
|
||||
|
||||
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
$res = $db->query("SELECT mtknr, nachname, vorname, postrasse, poort, poplz, Jahrgang, stg FROM stud WHERE uid='$uid1'");
|
||||
$row = $res->fetch_array();
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(59.5);
|
||||
$pdf->SetX(23);
|
||||
$pdf->Cell(0, 3, "$row[vorname] $row[nachname]", 0, 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(64.5);
|
||||
$pdf->SetX(23);
|
||||
$pdf->Cell(0, 3, "$row[postrasse]", 0, 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', 'B', 12);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(23);
|
||||
$pdf->Cell(0, 3, "$row[poplz] $row[poort]", 0, 0, 'L');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', 'B', 12);
|
||||
$pdf->SetY(91);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Änderung der Zuweisung für das Praxisjahr", 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', 'BU', 12);
|
||||
$pdf->SetY(105);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Anlagen", 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(110);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Praxisstellenübersicht", 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(125);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Sehr geehrte(r) $row[vorname] $row[nachname],\n\naufgrund Ihres Änderungsantrages vom $row10[aend_dat] wird hiermit der Bescheid über die Zuweisung zu den Ausbildungsstellen im Praxisjahr der Fachhochschule Ludwigsburg wie folgt geändert:", 0, 'J');
|
||||
|
||||
$pos = $pdf->GetY()+3;
|
||||
|
||||
$pdf->SetFont('Times', 'U', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Geänderte Zuweisung", 0, 'L');
|
||||
|
||||
|
||||
|
||||
|
||||
$pos = $pdf->GetY()+3;
|
||||
|
||||
$columns = 3; //five columns
|
||||
|
||||
#$pdf->SetX(30);
|
||||
$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'] = 40;
|
||||
$header_type[1]['WIDTH'] = 61;
|
||||
$header_type[2]['WIDTH'] = 61;
|
||||
|
||||
|
||||
$header_type[0]['TEXT'] = "Zeitraum";
|
||||
$header_type[1]['TEXT'] = "Ausbildungsstelle";
|
||||
$header_type[2]['TEXT'] = "Sachbereich";
|
||||
|
||||
#$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 ma.uid, DATE_FORMAT(beginn, '%d.%m.%Y') beginn, DATE_FORMAT(ende, '%d.%m.%Y') ende, bezeichnung, sachbereich, art
|
||||
FROM stan_tmp_zuweis_adm ma
|
||||
WHERE ma.uid = '$uid1'
|
||||
ORDER BY ma.uid, ma.beginn";
|
||||
$result = $db->query ($query)
|
||||
or die ("Cannot execute query");
|
||||
|
||||
while ($row = $result->fetch_array())
|
||||
{
|
||||
$data = Array();
|
||||
|
||||
$res2 = $db->query("SELECT bezeichnung FROM stan_stellenbereiche WHERE sbid='$row[sachbereich]'");
|
||||
$row2 = $res2->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] - $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
|
||||
|
||||
if($row[sachbereich] == 'Praxisbegleitender Unterricht'){
|
||||
$data[1]['TEXT'] = "PU $row[bezeichnung]";
|
||||
}else{
|
||||
$data[1]['TEXT'] = "$row[art] in $row[bezeichnung]";
|
||||
}
|
||||
$data[1]['T_ALIGN'] = "L";
|
||||
$data[1]['V_ALIGN'] = "M";
|
||||
|
||||
$data[2]['TEXT'] = "$row[sachbereich]";
|
||||
$data[2]['T_ALIGN'] = "L";
|
||||
$data[2]['V_ALIGN'] = "M";
|
||||
|
||||
|
||||
|
||||
$pdf->Draw_Data($data);
|
||||
}
|
||||
|
||||
$pdf->Draw_Table_Border();
|
||||
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
$res12 = $db->query("SELECT max(DATE_FORMAT(zuweis_dat, '%d.%m.%Y')) zuweis_dat FROM stan_antrag WHERE uid ='$uid1' AND aend_dat = '0000-00-00 00:00:00'");
|
||||
$row12 = $res12->fetch_array();
|
||||
|
||||
$pos=$pdf->GetY()+3;
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Die übrigen Bestimmungen des Bescheids vom $row12[zuweis_dat] gelten weiterhin.", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+15;
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Mit freundlichen Grüßen\n\n\n\n\n$row_ansp[name]", 0, 'J');
|
||||
|
||||
|
||||
#require("urlaubskarte.php");
|
||||
require("praxisstellenubersicht_anwaerter.php");
|
||||
|
||||
|
||||
|
||||
$pdf->Output("$uid1-Aenderungsschreiben.pdf","D");
|
||||
$pdf->closeParsers();
|
||||
?>
|
275
admin/anschreiben/alt/aenderungschreiben_praxisstelle.php
Normal file
275
admin/anschreiben/alt/aenderungschreiben_praxisstelle.php
Normal file
@ -0,0 +1,275 @@
|
||||
<?php
|
||||
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
|
||||
$uid1=$_GET["uid1"];
|
||||
$saaid=$_GET["stelle"];
|
||||
|
||||
$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();
|
||||
|
||||
define('FPDF_FONTPATH','../../stud/prints/font/');
|
||||
require('../../stud/prints/as_utf_class.php');
|
||||
require_once("../../stud/prints/table_def.inc");
|
||||
|
||||
$pdf=new utfFPDF();
|
||||
|
||||
|
||||
$pagecount = $pdf->setSourceFile("briefkopf_blanko.pdf");
|
||||
|
||||
$tplidx = $pdf->ImportPage(1);
|
||||
|
||||
$pdf->SetAutoPageBreak(true, 20);
|
||||
$pdf->SetTopMargin(0);
|
||||
$pdf->SetRightMargin(20);
|
||||
$pdf->SetAutoPageBreak(TRUE, 0);
|
||||
|
||||
|
||||
|
||||
$pdf->addPage();
|
||||
$pdf->useTemplate($tplidx,0,0,0);
|
||||
|
||||
|
||||
$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ür Vergleiche erforderlich
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(56.7);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Ludwigsburg,", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(56.7);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$heute_format", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(60.9);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Bearbeiterin", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(60.9);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(65.1);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Telefon", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(65.1);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[tel]", 0, 'R');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(69.3);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Fax", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(69.3);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[fax]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "e-mail", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[fax]", 0, 'R');
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
$res_prx = $db->query("SELECT t1.bezeichnung art_bez, t1.ansprechpartner, t2.bezeichnung, str, plz, ort, DATE_FORMAT(beginn, '%d.%m.%Y') beginn, DATE_FORMAT(ende, '%d.%m.%Y') ende
|
||||
FROM stan_antrag t1, stan_stellenbereiche t2
|
||||
WHERE t1.sachbereich = t2.sbid
|
||||
AND saaid='$saaid'");
|
||||
$row_prx = $res_prx->fetch_array();
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(59.5);
|
||||
$pdf->SetX(23);
|
||||
if ($row_prx[ansprechpartner] == ''){
|
||||
$pdf->MultiCell(0, 4, "$row_prx[art_bez]", 0, 'L');
|
||||
}else{
|
||||
$pdf->MultiCell(0, 4, "$row_prx[art_bez]\nz. Hd. von $row_prx[ansprechpartner]", 0, 'L');
|
||||
}
|
||||
|
||||
|
||||
$pos=$pdf->GetY();
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4, "$row_prx[str]", 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', 'B', 12);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(23);
|
||||
$pdf->Cell(0, 3, "$row_prx[plz] $row_prx[ort]", 0, 0, 'L');
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
$res = $db->query("SELECT mtknr, nachname, vorname, postrasse, poort, poplz, Jahrgang, stg FROM stud WHERE uid='$uid1'");
|
||||
$row = $res->fetch_array();
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', 'B', 12);
|
||||
$pdf->SetY(103.5);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Änderung der Zuweisung im Praxisjahr von $row[vorname] $row[nachname]", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(125);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Sehr geehrte Damen und Herren,\n\ndie Zuweisung von Frau/Herrn $row[nachname] hat sich gemäß ihrem/seinem Änderungsantrag wie folgt geändert:", 0, 'J');
|
||||
|
||||
$pos = $pdf->GetY()+3;
|
||||
|
||||
$pdf->SetFont('Times', 'U', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Geänderte Zuweisung", 0, 'L');
|
||||
|
||||
$res_aend = $db->query("SELECT aendid
|
||||
FROM stan_antrag
|
||||
WHERE saaid='$saaid'");
|
||||
$row_aend = $res_aend->fetch_array();
|
||||
|
||||
$res_max = $db->query("SELECT max(saaid) saaid
|
||||
FROM stan_antrag t1, stan_stellenbereiche t2
|
||||
WHERE t1.sachbereich = t2.sbid
|
||||
AND aendid='$row_aend[aendid]'");
|
||||
$row_max = $res_max->fetch_array();
|
||||
|
||||
|
||||
$res_prx = $db->query("SELECT t1.bezeichnung art_bez, t2.bezeichnung, str, plz, ort, DATE_FORMAT(beginn, '%d.%m.%Y') beginn, DATE_FORMAT(ende, '%d.%m.%Y') ende
|
||||
FROM stan_antrag t1, stan_stellenbereiche t2
|
||||
WHERE t1.sachbereich = t2.sbid
|
||||
AND saaid='$row_max[saaid]'");
|
||||
$row_prx = $res_prx->fetch_array();
|
||||
|
||||
$pos = $pdf->GetY()+5;
|
||||
|
||||
$columns = 3; //five columns
|
||||
|
||||
#$pdf->SetX(30);
|
||||
$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'] = 40;
|
||||
$header_type[1]['WIDTH'] = 63.5;
|
||||
$header_type[2]['WIDTH'] = 63.5;
|
||||
|
||||
|
||||
$header_type[0]['TEXT'] = "Zeitraum";
|
||||
$header_type[1]['TEXT'] = "Ausbildungsstelle";
|
||||
$header_type[2]['TEXT'] = "Sachbereich";
|
||||
|
||||
#$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);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* 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_prx[beginn] - $row_prx[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'] = "$row_prx[art_bez] in $row_prx[ort]";
|
||||
$data[1]['T_ALIGN'] = "L";
|
||||
$data[1]['V_ALIGN'] = "M";
|
||||
|
||||
$data[2]['TEXT'] = "$row_prx[bezeichnung]";
|
||||
$data[2]['T_ALIGN'] = "L";
|
||||
$data[2]['V_ALIGN'] = "M";
|
||||
|
||||
|
||||
|
||||
$pdf->Draw_Data($data);
|
||||
|
||||
|
||||
$pdf->Draw_Table_Border();
|
||||
/*
|
||||
$pos=$pdf->GetY()+3;
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Beiliegende Anlagen sind Bestandteil dieses Bescheides.\n\nDiese Zuweisungen erfolgen unter dem Vorbehalt, dass Sie die Zwischenprüfung bei erstmaliger Ablegung bestehen (§ 31 (5) und (6) APrOVw gD).", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+10;
|
||||
$pdf->SetFont('Times', 'BU', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Rechtsbehelfsbelehrung", 0, 'C');
|
||||
|
||||
$pos=$pdf->GetY()+5;
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Gegen diesen Bescheid können Sie innerhalb eines Monats schriftlich oder zur Niederschrift bei der Fachhochschule Ludwigsburg, Hochschule für öffentliche Verwaltung und Finanzen, Reuteallee 36, 71634 Ludwigsburg, Widerspruch einlegen.\n\nMit freundlichen Grüßen\n\n\n\n\n$row_ansp[name]", 0, 'J');
|
||||
$result_tmp1 = $db->query("DELETE FROM stan_tmp_zuweis_adm WHERE uid='$uid1'");
|
||||
*/
|
||||
|
||||
$pos=$pdf->GetY()+3;
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Wir bedanken uns ausdrücklich dafür, dass Sie eine Ausbildungsstelle im Rahmen des Praxisjahres zur Verfügung gestellt haben und hoffen auf Ihre Bereitschaft, auch künftig an der praktischen Ausbildung im gehobenen Verwaltungsdienst mitzuwirken.\n\n\nMit freundlichen Grüßen\n\n\n\n\$row_ansp[name]", 0, 'J');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->Output("$uid1-Aenderung_Stelle_$saaid.pdf","D");
|
||||
$pdf->closeParsers();
|
||||
?>
|
BIN
admin/anschreiben/alt/anlage_zuweisungschreiben_anwaerter.doc
Normal file
BIN
admin/anschreiben/alt/anlage_zuweisungschreiben_anwaerter.doc
Normal file
Binary file not shown.
BIN
admin/anschreiben/alt/anlage_zuweisungschreiben_anwaerter.pdf
Normal file
BIN
admin/anschreiben/alt/anlage_zuweisungschreiben_anwaerter.pdf
Normal file
Binary file not shown.
128
admin/anschreiben/alt/anlage_zuweisungschreiben_anwaerter.php
Normal file
128
admin/anschreiben/alt/anlage_zuweisungschreiben_anwaerter.php
Normal file
@ -0,0 +1,128 @@
|
||||
<?php
|
||||
|
||||
#include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
|
||||
//$mtknr = $_GET[mtknr];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//error_reporting (E_ALL);
|
||||
|
||||
|
||||
|
||||
#define('FPDF_FONTPATH','../../stud/prints/font/');
|
||||
|
||||
#require('../../stud/prints/fpdi.php');
|
||||
|
||||
|
||||
|
||||
#$pdf= new utfFPDF();
|
||||
|
||||
$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();
|
||||
|
||||
|
||||
|
||||
$pagecount = $pdf->setSourceFile("anlage_zuweisungschreiben_anwaerter.pdf");
|
||||
|
||||
$tplidx = $pdf->ImportPage(1);
|
||||
|
||||
$pdf->addPage();
|
||||
|
||||
$pdf->useTemplate($tplidx,0,0,0);
|
||||
|
||||
|
||||
|
||||
$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ür Vergleiche erforderlich
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
|
||||
$pdf->SetY(56.7);
|
||||
|
||||
$pdf->SetX(117.9);
|
||||
|
||||
$pdf->MultiCell(47, 3, "Ludwigsburg,", 0, 'L');
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
|
||||
$pdf->SetY(56.7);
|
||||
|
||||
$pdf->SetX(136.1);
|
||||
|
||||
$pdf->MultiCell(47, 3, "$heute_format", 0, 'R');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
|
||||
$pdf->SetY(60.9);
|
||||
|
||||
$pdf->SetX(117.9);
|
||||
|
||||
$pdf->MultiCell(47, 3, "Bearbeiterin", 0, 'L');
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
|
||||
$pdf->SetY(60.9);
|
||||
|
||||
$pdf->SetX(136.1);
|
||||
|
||||
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'R');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
|
||||
$pdf->SetY(65.1);
|
||||
|
||||
$pdf->SetX(117.9);
|
||||
|
||||
$pdf->MultiCell(47, 3, "Telefon", 0, 'L');
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
|
||||
$pdf->SetY(65.1);
|
||||
|
||||
$pdf->SetX(136.1);
|
||||
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[tel]", 0, 'R');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
|
||||
$pdf->SetY(69.3);
|
||||
|
||||
$pdf->SetX(117.9);
|
||||
|
||||
$pdf->MultiCell(47, 3, "Fax", 0, 'L');
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,132 @@
|
||||
<?php
|
||||
|
||||
#include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
|
||||
//$mtknr = $_GET[mtknr];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//error_reporting (E_ALL);
|
||||
|
||||
|
||||
|
||||
#define('FPDF_FONTPATH','../../stud/prints/font/');
|
||||
|
||||
#require('../../stud/prints/fpdi.php');
|
||||
|
||||
|
||||
|
||||
#$pdf= new utfFPDF();
|
||||
|
||||
$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();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pagecount = $pdf->setSourceFile("anlage_zuweisungsschreiben_praxisstelle.pdf");
|
||||
|
||||
$tplidx = $pdf->ImportPage(1);
|
||||
|
||||
$pdf->addPage();
|
||||
|
||||
$pdf->useTemplate($tplidx,0,0,0);
|
||||
|
||||
|
||||
|
||||
$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ür Vergleiche erforderlich
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
|
||||
$pdf->SetY(56.7);
|
||||
|
||||
$pdf->SetX(117.9);
|
||||
|
||||
$pdf->MultiCell(47, 3, "Ludwigsburg,", 0, 'L');
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
|
||||
$pdf->SetY(56.7);
|
||||
|
||||
$pdf->SetX(136.1);
|
||||
|
||||
$pdf->MultiCell(47, 3, "$heute_format", 0, 'R');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
|
||||
$pdf->SetY(60.9);
|
||||
|
||||
$pdf->SetX(117.9);
|
||||
|
||||
$pdf->MultiCell(47, 3, "Bearbeiterin", 0, 'L');
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
|
||||
$pdf->SetY(60.9);
|
||||
|
||||
$pdf->SetX(136.1);
|
||||
|
||||
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'R');
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
|
||||
$pdf->SetY(65.1);
|
||||
|
||||
$pdf->SetX(117.9);
|
||||
|
||||
$pdf->MultiCell(47, 3, "Telefon", 0, 'L');
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
|
||||
$pdf->SetY(65.1);
|
||||
|
||||
$pdf->SetX(136.1);
|
||||
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[tel]", 0, 'R');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
|
||||
$pdf->SetY(69.3);
|
||||
|
||||
$pdf->SetX(117.9);
|
||||
|
||||
$pdf->MultiCell(47, 3, "Fax", 0, 'L');
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
|
||||
$pdf->SetY(69.3);
|
||||
|
||||
$pdf->SetX(136.1);
|
||||
|
BIN
admin/anschreiben/alt/auszug_apro_ausbildungsstellen.doc
Normal file
BIN
admin/anschreiben/alt/auszug_apro_ausbildungsstellen.doc
Normal file
Binary file not shown.
BIN
admin/anschreiben/alt/auszug_apro_ausbildungsstellen.pdf
Normal file
BIN
admin/anschreiben/alt/auszug_apro_ausbildungsstellen.pdf
Normal file
Binary file not shown.
BIN
admin/anschreiben/alt/briefkopf_blanko.doc
Normal file
BIN
admin/anschreiben/alt/briefkopf_blanko.doc
Normal file
Binary file not shown.
BIN
admin/anschreiben/alt/briefkopf_blanko.pdf
Normal file
BIN
admin/anschreiben/alt/briefkopf_blanko.pdf
Normal file
Binary file not shown.
BIN
admin/anschreiben/alt/dienstzeugnisvordruck.pdf
Normal file
BIN
admin/anschreiben/alt/dienstzeugnisvordruck.pdf
Normal file
Binary file not shown.
220
admin/anschreiben/alt/listendruck_pu.php
Normal file
220
admin/anschreiben/alt/listendruck_pu.php
Normal file
@ -0,0 +1,220 @@
|
||||
<?php
|
||||
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
$user_admin=$_COOKIE["user_admin"];
|
||||
$jahrgang=$_COOKIE["jahrgang"];
|
||||
|
||||
// Rechteüberprüfung
|
||||
$db = dbconnect();
|
||||
if ($user_admin == ""){ require("index.php"); exit;} //Wenn man nicht angemeldet ist, darf man nicht auf die Seite
|
||||
$result = $db->query("SELECT 1 FROM stan_admin_rechte, stan_admin_rechte_zuord , stan_admin where stan_admin_rechte.stan_admin_rolle = stan_admin_rechte_zuord.stan_admin_rolle AND stan_admin_rechte_zuord.said = stan_admin.said AND stan_admin.user = '$user_admin' AND stan_admin_rechte_zuord.stan_admin_rolle = 'a_pulistdr'");
|
||||
$row = $result->fetch_array();
|
||||
if ($row[0] != 1){ include("kurs/rechte.php"); exit;}
|
||||
// Rechteüberprüfung ende
|
||||
|
||||
// Rechteüberprüfung ende
|
||||
|
||||
|
||||
|
||||
|
||||
define('FPDF_FONTPATH','../../stud/prints/font/');
|
||||
require('../../stud/prints/as_utf_class.php');
|
||||
require_once("../../stud/prints/table_def.inc");
|
||||
|
||||
$pdf=new utfFPDF();
|
||||
|
||||
|
||||
$pagecount = $pdf->setSourceFile("briefkopf_blanko.pdf");
|
||||
|
||||
$tplidx = $pdf->ImportPage(1);
|
||||
|
||||
$pdf->SetAutoPageBreak(true, 20);
|
||||
$pdf->SetTopMargin(0);
|
||||
$pdf->SetRightMargin(23);
|
||||
$pdf->SetTopMargin(25);
|
||||
|
||||
$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();
|
||||
|
||||
$db = dbconnect();
|
||||
$query = "SELECT distinct ort
|
||||
FROM stan_pu_wunsch
|
||||
WHERE uid IN (Select uid from stud WHERE jahrgang = '$jahrgang')
|
||||
AND prioritaet = 0
|
||||
";
|
||||
$result = $db->query ($query)
|
||||
or die ("Cannot execute query");
|
||||
while ($row = $result->fetch_array()){
|
||||
|
||||
|
||||
$pdf->addPage();
|
||||
$pdf->useTemplate($tplidx,0,0,0);
|
||||
|
||||
|
||||
$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ür Vergleiche erforderlich
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(56.7);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Ludwigsburg,", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(56.7);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$heute_format", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(60.9);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Bearbeiterin", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(60.9);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(65.1);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Telefon", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(65.1);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[tel]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(69.3);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Fax", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(69.3);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[fax]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "e-mail", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_ansp[mail]", 0, 'R');
|
||||
|
||||
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
$res1 = $db->query("SELECT bezeichnung FROM stan_pu_standorte WHERE pusoid='$row[ort]'");
|
||||
$row1 = $res1->fetch_array();
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', 'B', 12);
|
||||
$pdf->SetY(93);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Praxisbegleitender Unterricht\nStandort: $row1[bezeichnung]", 0, 'L');
|
||||
|
||||
|
||||
|
||||
$columns = 4; //five columns
|
||||
|
||||
#$pdf->SetX(30);
|
||||
$pdf->SetY(110);
|
||||
//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'] = 55;
|
||||
$header_type[1]['WIDTH'] = 25;
|
||||
$header_type[2]['WIDTH'] = 50;
|
||||
$header_type[3]['WIDTH'] = 25;
|
||||
|
||||
|
||||
$header_type[0]['TEXT'] = "Name";
|
||||
$header_type[1]['TEXT'] = "Geburtstag / -ort";
|
||||
$header_type[2]['TEXT'] = "Anschrift";
|
||||
$header_type[3]['TEXT'] = "AG";
|
||||
|
||||
#$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);
|
||||
|
||||
|
||||
|
||||
$db = dbconnect();
|
||||
$query2 = "SELECT vorname, nachname, ag, jahrgang, poStrasse, poplz, poort, date_format(geburtstag, '%d.%m.%Y') geburtstag, geburtsort
|
||||
FROM stud
|
||||
WHERE uid IN (SELECT uid FROM stan_pu_wunsch WHERE ort='$row[ort]' AND prioritaet='0')
|
||||
AND jahrgang='$jahrgang'
|
||||
ORDER BY nachname";
|
||||
|
||||
$result2 = $db->query ($query2)
|
||||
or die ("Cannot execute query2");
|
||||
|
||||
while ($row2 = $result2->fetch_array())
|
||||
{
|
||||
$data = Array();
|
||||
|
||||
|
||||
$data[0]['TEXT'] = "$row2[nachname], $row2[vorname]";
|
||||
$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'] = "$row2[geburtstag]\n$row2[geburtsort]";
|
||||
$data[1]['T_ALIGN'] = "L";
|
||||
$data[1]['V_ALIGN'] = "M";
|
||||
|
||||
$data[2]['TEXT'] = "$row2[poStrasse]\n$row2[poplz] $row2[poort]";
|
||||
$data[2]['T_ALIGN'] = "L";
|
||||
$data[2]['V_ALIGN'] = "M";
|
||||
|
||||
$data[3]['TEXT'] = "$row2[ag] / $row2[jahrgang]";
|
||||
$data[3]['T_ALIGN'] = "C";
|
||||
$data[3]['V_ALIGN'] = "M";
|
||||
|
||||
|
||||
$pdf->Draw_Data($data);
|
||||
}
|
||||
|
||||
$pdf->Draw_Table_Border();
|
||||
|
||||
|
||||
|
||||
|
||||
} // Ende While
|
||||
|
||||
|
||||
|
||||
$pdf->Output("Listendruck_PU_$jahrgang.pdf","I");
|
||||
$pdf->closeParsers();
|
||||
?>
|
141
admin/anschreiben/alt/listendruck_w.php
Normal file
141
admin/anschreiben/alt/listendruck_w.php
Normal file
@ -0,0 +1,141 @@
|
||||
<?php
|
||||
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
$user_admin=$_COOKIE["user_admin"];
|
||||
$jahrgang=$_COOKIE["jahrgang"];
|
||||
$sort=$_GET["sort"];
|
||||
|
||||
// Rechteüberprüfung
|
||||
$db = dbconnect();
|
||||
if ($user_admin == ""){ require("index.php"); exit;} //Wenn man nicht angemeldet ist, darf man nicht auf die Seite
|
||||
$result = $db->query("SELECT 1 FROM stan_admin_rechte, stan_admin_rechte_zuord , stan_admin where stan_admin_rechte.stan_admin_rolle = stan_admin_rechte_zuord.stan_admin_rolle AND stan_admin_rechte_zuord.said = stan_admin.said AND stan_admin.user = '$user_admin' AND stan_admin_rechte_zuord.stan_admin_rolle = 'a_wlist'");
|
||||
$row = $result->fetch_array();
|
||||
if ($row[0] != 1){ include("kurs/rechte.php"); exit;}
|
||||
// Rechteüberprüfung ende
|
||||
|
||||
// Rechteüberprüfung ende
|
||||
|
||||
|
||||
|
||||
|
||||
define('FPDF_FONTPATH','../../stud/prints/font/');
|
||||
require('../../stud/prints/as_utf_class.php');
|
||||
require_once("../../stud/prints/table_def.inc");
|
||||
|
||||
$pdf=new utfFPDF();
|
||||
|
||||
|
||||
#$pagecount = $pdf->setSourceFile("briefkopf_blanko.pdf");
|
||||
|
||||
#$tplidx = $pdf->ImportPage(1);
|
||||
|
||||
$pdf->SetAutoPageBreak(true, 20);
|
||||
$pdf->SetTopMargin(0);
|
||||
$pdf->SetRightMargin(23);
|
||||
$pdf->SetTopMargin(25);
|
||||
|
||||
|
||||
|
||||
$pdf->addPage();
|
||||
#$pdf->useTemplate($tplidx,0,0,0);
|
||||
|
||||
|
||||
$pdf->SetFont('Times', 'B', 12);
|
||||
$pdf->SetY(20);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Studenten des W-Zweigs des Jahrgangs $jahrgang", 0, 'L');
|
||||
|
||||
|
||||
|
||||
$columns = 4; //five columns
|
||||
|
||||
#$pdf->SetX(30);
|
||||
$pdf->SetY(32);
|
||||
//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'] = 55;
|
||||
$header_type[1]['WIDTH'] = 55;
|
||||
$header_type[2]['WIDTH'] = 25;
|
||||
$header_type[3]['WIDTH'] = 25;
|
||||
|
||||
|
||||
$header_type[0]['TEXT'] = "Name";
|
||||
$header_type[1]['TEXT'] = "Anschrift";
|
||||
$header_type[2]['TEXT'] = "Zweig";
|
||||
$header_type[3]['TEXT'] = "AG";
|
||||
|
||||
#$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);
|
||||
|
||||
|
||||
|
||||
$db = dbconnect();
|
||||
$query2 = "SELECT a.uid, a.nachname, a.vorname, a.ag, a.jahrgang, a.stg, poStrasse, poplz, poort
|
||||
FROM stud a
|
||||
WHERE stg = 'W'
|
||||
AND a.jahrgang='$jahrgang'
|
||||
AND a.durchgefallen='N'
|
||||
ORDER BY $sort, nachname";
|
||||
|
||||
$result2 = $db->query ($query2)
|
||||
or die ("Cannot execute query2");
|
||||
|
||||
while ($row2 = $result2->fetch_array())
|
||||
{
|
||||
$data = Array();
|
||||
|
||||
|
||||
$data[0]['TEXT'] = "$row2[nachname], $row2[vorname]";
|
||||
$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'] = "$row2[poStrasse]\n$row2[poplz] $row2[poort]";
|
||||
$data[1]['T_ALIGN'] = "L";
|
||||
$data[1]['V_ALIGN'] = "M";
|
||||
|
||||
$data[2]['TEXT'] = "$row2[stg]";
|
||||
$data[2]['T_ALIGN'] = "C";
|
||||
$data[2]['V_ALIGN'] = "M";
|
||||
|
||||
$data[3]['TEXT'] = "$row2[ag] / $row2[jahrgang]";
|
||||
$data[3]['T_ALIGN'] = "C";
|
||||
$data[3]['V_ALIGN'] = "M";
|
||||
|
||||
|
||||
$pdf->Draw_Data($data);
|
||||
}
|
||||
|
||||
$pdf->Draw_Table_Border();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->Output("Listendruck_W-Zweig_$jahrgang.pdf","I");
|
||||
$pdf->closeParsers();
|
||||
?>
|
1
admin/anschreiben/alt/praxisstellenubersicht.php
Normal file
1
admin/anschreiben/alt/praxisstellenubersicht.php
Normal file
File diff suppressed because one or more lines are too long
269
admin/anschreiben/alt/praxisstellenubersicht_anwaerter.php
Normal file
269
admin/anschreiben/alt/praxisstellenubersicht_anwaerter.php
Normal file
@ -0,0 +1,269 @@
|
||||
<?php
|
||||
#include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
#$uid1=$_GET["uid1"];
|
||||
|
||||
#error_reporting (E_ALL);
|
||||
|
||||
#define('FPDF_FONTPATH','../../stud/prints/font/');
|
||||
#require('../../stud/prints/as_utf_class.php');
|
||||
#require_once("../../stud/prints/table_def.inc");
|
||||
|
||||
#$pdf=new utfFPDF();
|
||||
$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();
|
||||
|
||||
$pagecount = $pdf->setSourceFile("briefkopf_blanko.pdf");
|
||||
|
||||
$tplidx = $pdf->ImportPage(1);
|
||||
|
||||
$pdf->SetAutoPageBreak(true, 20);
|
||||
$pdf->SetTopMargin(0);
|
||||
$pdf->SetRightMargin(23);
|
||||
$pdf->SetAutoPageBreak(TRUE, 0);
|
||||
|
||||
|
||||
$pdf->addPage();
|
||||
$pdf->useTemplate($tplidx,0,0,0);
|
||||
|
||||
|
||||
$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ür Vergleiche erforderlich
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(56.7);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Ludwigsburg,", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(56.7);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$heute_format", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(60.9);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Bearbeiterin", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(60.9);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(65.1);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Telefon", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(65.1);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[tel]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(69.3);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Fax", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(69.3);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[fax]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "e-mail", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_ansp[mail]", 0, 'R');
|
||||
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
$res = $db->query("SELECT mtknr, nachname, vorname, postrasse, poort, poplz, Jahrgang, stg FROM stud WHERE uid='$uid1'");
|
||||
$row = $res->fetch_array();
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(59.5);
|
||||
$pdf->SetX(23);
|
||||
$pdf->Cell(0, 3, "$row[vorname] $row[nachname]", 0, 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(64.5);
|
||||
$pdf->SetX(23);
|
||||
$pdf->Cell(0, 3, "$row[postrasse]", 0, 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', 'B', 12);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(23);
|
||||
$pdf->Cell(0, 3, "$row[poplz] $row[poort]", 0, 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', 'B', 12);
|
||||
$pdf->SetY(100);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Praxisstellenübersicht für $row[vorname] $row[nachname]", 0, 'L');
|
||||
|
||||
|
||||
|
||||
$result_tmp1 = $db->query("DELETE FROM stan_tmp_zuweis_adm WHERE uid='$uid1'");
|
||||
|
||||
|
||||
$result_tmp1 = $db->query("INSERT INTO stan_tmp_zuweis_adm
|
||||
SELECT t1.saaid
|
||||
, t1.uid
|
||||
, t1.beginn
|
||||
, t1.ende
|
||||
, t1.ort
|
||||
, t2.bezeichnung
|
||||
, t1.bezeichnung art_bez
|
||||
FROM stan_antrag t1, stan_stellenbereiche t2
|
||||
WHERE t1.uid = '$uid1'
|
||||
AND t1.sachbereich = t2.sbid
|
||||
AND t1.zuweisung='Z'
|
||||
AND status = '0'
|
||||
");
|
||||
|
||||
$result = $db->query("SELECT max(saaid) max_id FROM stan_tmp_zuweis_adm WHERE uid='$uid1'");
|
||||
$row4 = $result->fetch_array();
|
||||
$saaid_neu = $row4[max_id] + 1; // Damit alle Einträge eine ID haben
|
||||
$result = $db->query("SELECT bezeichnung
|
||||
FROM stan_pu_wunsch, stan_pu_standorte
|
||||
WHERE stan_pu_wunsch.ort = stan_pu_standorte.pusoid
|
||||
AND uid='$uid1'
|
||||
AND prioritaet=0");
|
||||
$row4 = $result->fetch_array();
|
||||
if ($row4[bezeichnung] == ''){
|
||||
$puort = "FH-Ludwigsburg";
|
||||
}else{
|
||||
$puort = "$row4[bezeichnung]";
|
||||
}
|
||||
$result_tmp1 = $db->query("INSERT INTO stan_tmp_zuweis_adm SELECT $saaid_neu, '$uid1', beginn, ende, '$puort', 'Praxisbegleitender Unterricht', '' FROM stan_sperrzeit WHERE jahrgang ='$row[Jahrgang]' AND kennung = '$row[stg]'");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pos = $pdf->GetY()+10;
|
||||
|
||||
$columns = 3; //five columns
|
||||
|
||||
#$pdf->SetX(30);
|
||||
$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'] = 40;
|
||||
$header_type[1]['WIDTH'] = 61;
|
||||
$header_type[2]['WIDTH'] = 61;
|
||||
|
||||
|
||||
$header_type[0]['TEXT'] = "Zeitraum";
|
||||
$header_type[1]['TEXT'] = "Ausbildungsstelle";
|
||||
$header_type[2]['TEXT'] = "Sachbereich";
|
||||
|
||||
#$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 ma.uid, DATE_FORMAT(beginn, '%d.%m.%Y') beginn, DATE_FORMAT(ende, '%d.%m.%Y') ende, bezeichnung, sachbereich, art
|
||||
FROM stan_tmp_zuweis_adm ma
|
||||
WHERE ma.uid = '$uid1'
|
||||
ORDER BY ma.uid, ma.beginn";
|
||||
$result = $db->query ($query)
|
||||
or die ("Cannot execute query");
|
||||
|
||||
while ($row = $result->fetch_array())
|
||||
{
|
||||
$data = Array();
|
||||
|
||||
$res2 = $db->query("SELECT bezeichnung FROM stan_stellenbereiche WHERE sbid='$row[sachbereich]'");
|
||||
$row2 = $res2->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] - $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
|
||||
|
||||
if($row[sachbereich] == 'Praxisbegleitender Unterricht'){
|
||||
$data[1]['TEXT'] = "PU $row[bezeichnung]";
|
||||
}else{
|
||||
$data[1]['TEXT'] = "$row[art] in $row[bezeichnung]";
|
||||
}
|
||||
$data[1]['T_ALIGN'] = "L";
|
||||
$data[1]['V_ALIGN'] = "M";
|
||||
|
||||
$data[2]['TEXT'] = "$row[sachbereich]";
|
||||
$data[2]['T_ALIGN'] = "L";
|
||||
$data[2]['V_ALIGN'] = "M";
|
||||
|
||||
|
||||
|
||||
$pdf->Draw_Data($data);
|
||||
}
|
||||
|
||||
$pdf->Draw_Table_Border();
|
||||
|
||||
|
||||
$result_tmp1 = $db->query("DELETE FROM stan_tmp_zuweis_adm WHERE uid='$uid1'");
|
||||
|
||||
|
||||
#require("urlaubskarte.php");
|
||||
#require("anlage_zuweisungschreiben_anwaerter.php");
|
||||
|
||||
|
||||
#$pdf->Output("$uid1-Anschreiben.pdf","D");
|
||||
#$pdf->closeParsers();
|
||||
?>
|
BIN
admin/anschreiben/alt/rahmenplan.doc
Normal file
BIN
admin/anschreiben/alt/rahmenplan.doc
Normal file
Binary file not shown.
BIN
admin/anschreiben/alt/rahmenplan.pdf
Normal file
BIN
admin/anschreiben/alt/rahmenplan.pdf
Normal file
Binary file not shown.
BIN
admin/anschreiben/alt/urlaubskarte.doc
Normal file
BIN
admin/anschreiben/alt/urlaubskarte.doc
Normal file
Binary file not shown.
BIN
admin/anschreiben/alt/urlaubskarte.pdf
Normal file
BIN
admin/anschreiben/alt/urlaubskarte.pdf
Normal file
Binary file not shown.
48
admin/anschreiben/alt/urlaubskarte.php
Normal file
48
admin/anschreiben/alt/urlaubskarte.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
//include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
|
||||
//$mtknr = $_GET[mtknr];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//error_reporting (E_ALL);
|
||||
|
||||
|
||||
|
||||
#define('FPDF_FONTPATH','../../stud/prints/font/');
|
||||
|
||||
#require('../../stud/prints/fpdi.php');
|
||||
|
||||
|
||||
|
||||
#$pdf= new utfFPDF();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pagecount = $pdf->setSourceFile("urlaubskarte.pdf");
|
||||
|
||||
$tplidx = $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();
|
||||
|
||||
|
||||
|
371
admin/anschreiben/alt/zuweisung_ag_standort_neu_20120417.php
Normal file
371
admin/anschreiben/alt/zuweisung_ag_standort_neu_20120417.php
Normal file
@ -0,0 +1,371 @@
|
||||
<?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(!isset($hist)){
|
||||
$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ür Vergleiche erforderlich
|
||||
}else{
|
||||
$res_dat = $db->query("SELECT min(date_format(datum, '%d.%m.%Y')) datum FROM stan_printqueue_hist WHERE zuweisung='SOZ' 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(13);
|
||||
#$pdf->SetTextColor(255,0,255);
|
||||
$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(13);
|
||||
$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(13);
|
||||
$pdf->Cell(0, 3, "$row_stud[postrasse]", 0, 0, 'L');
|
||||
|
||||
$pos = $pdf->GetY()+4;
|
||||
$pdf->SetFont('Arial', 'B', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(13);
|
||||
$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');
|
||||
#$pdf->MultiCell(47, 3, "04.07.2011", 0, 'R');
|
||||
|
||||
$pos=$pdf->GetY()+0.3;
|
||||
|
||||
$pdf->SetFont('Arial', '', 8);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Bearbeiter/in", 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(13);
|
||||
$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(13);
|
||||
$pdf->MultiCell(150, 3, "Zuweisung zu den praxisbegleitenden Arbeitsgemeinschaften;", 0, 'L');
|
||||
|
||||
|
||||
|
||||
######## Betreff Ende ############################
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+6.6;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(13);
|
||||
$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(13);
|
||||
$pdf->MultiCell(188, 4.8, "wir weisen Sie zu den praxisbegleitenden Arbeitsgemeinschaften an folgenden Standorten zu:", 0, 'J');
|
||||
|
||||
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
|
||||
$columns = 2; //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'] = "Beginn";
|
||||
|
||||
$header_type[0]['WIDTH'] = 80;
|
||||
$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'] = "Vertiefungsbereich";
|
||||
|
||||
$header_type[1]['WIDTH'] = 80;
|
||||
$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'] = "AG-Standort";
|
||||
|
||||
# $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(!isset($hist)){
|
||||
$query = "SELECT bezeichnung vertiefungsbereich, standort, abdatum, block, pendler, wagsid, uid
|
||||
FROM stan_zuw_so_neu
|
||||
WHERE uid='$uid1'
|
||||
ORDER BY block ASC";
|
||||
}else{
|
||||
$query = "SELECT bezeichnung vertiefungsbereich, standort, abdatum, a.block, pendler, wagsid, a.uid
|
||||
FROM stan_printqueue_hist a, stan_ag_standort_wunsch b, stan_ag_standort c, stan_standort d, stan_vertiefungsbereich e
|
||||
WHERE a.uid =b.uid
|
||||
AND a.block=b.block
|
||||
AND b.prio=0
|
||||
AND b.wagsid=c.agsid
|
||||
AND c.sid = d.sid
|
||||
AND c.vbid = e.vbid
|
||||
AND a.admin = '$user_admin'
|
||||
ORDER BY a.block ASC";
|
||||
}
|
||||
|
||||
|
||||
$result = $db->query ($query)
|
||||
or die ("Cannot execute query1");
|
||||
|
||||
|
||||
while ($row = $result->fetch_array())
|
||||
{
|
||||
|
||||
## Eintrag für die Printqueue
|
||||
|
||||
if(!isset($hist)){
|
||||
$datum = date("Y-m-d H:i:s",time());
|
||||
$sql_queue = $db->query("INSERT INTO stan_printqueue_antrag (uid, block, zuweisung, datum, klartext, printed_obj, admin, hs_admin, druckstatus, sort_order)
|
||||
VALUES ('$row[uid]', '$row[block]', 'SOZ', '$datum', 'Standortzuweisung', '$row[wagsid]', '$user_admin', '$hs', 'G', '1')");
|
||||
}
|
||||
|
||||
|
||||
$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[abdatum]";
|
||||
# $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[0]['TEXT'] = "$row[vertiefungsbereich]";
|
||||
$data[0]['T_ALIGN'] = "L";
|
||||
$data[0]['V_ALIGN'] = "M";
|
||||
|
||||
$data[1]['TEXT'] = "$row[standort] (Block $row[block]) ab $row[abdatum] ($row[pendler])";
|
||||
$data[1]['T_ALIGN'] = "L";
|
||||
$data[1]['V_ALIGN'] = "M";
|
||||
|
||||
# $data[4]['TEXT'] = "$row[standort]";
|
||||
# $data[4]['T_ALIGN'] = "L";
|
||||
# $data[4]['V_ALIGN'] = "M";
|
||||
|
||||
$pdf->Draw_Data($data,NULL,5); // -->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();
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+5.0;
|
||||
|
||||
$pdf->SetFont('Arial', 'B', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(13);
|
||||
#$pdf->SetTextColor(255,0,255);
|
||||
$pdf->MultiCell(188, 4.8, "Die Teilnahme an den in diesem Zeitraum angebotenen Terminen ist verpflichtend.\nEs können weder Erholungsurlaub noch sonstige Freistellungen gewährt werden.", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+4.0;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(13);
|
||||
$pdf->MultiCell(188, 4.8, "Eine Übersicht Ihrer Termine und aktuelle Informationen, wie z.B. Raum- oder Terminänderungen, können Sie über das Praxisstellensystem (Schritt 3 / AG-Übersicht) einsehen. Wir empfehlen Ihnen deshalb dringend, die Einsichtnahme regelmäßig vor einem anstehenden AG-Termin vorzunehmen.", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+4.0;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(13);
|
||||
$pdf->MultiCell(188, 4.8, "Sollten Sie an der Teilnahme durch Krankheit gehindert sein, informieren Sie bitte sowohl Ihre Ausbildungsstelle, als auch die zuständige AG-Leitung.", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+4.0;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(13);
|
||||
$pdf->MultiCell(188, 4.8, "Weiterhin empfehlen wir Ihnen eine Weiterleitungsfunktion Ihres Hochschul- Emailaccounts einzurichten, da wichtige Informationen der AG-Leitung und evtl. der Hochschule dorthin versandt werden.\n\nFür die Reisekosten gelten die mit Schreiben vom 01.06.2011 bekannt gemachten Regelungen.", 0, 'J');
|
||||
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+4.0;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(13);
|
||||
$pdf->MultiCell(188, 4.8, "Mit freundlichen Grüßen", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+9.8;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(13);
|
||||
$pdf->MultiCell(188, 4.8, "gez.\n$row_ansp[name]", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+1.0;
|
||||
|
||||
$pdf->SetFont('Arial', '', 6);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(13);
|
||||
$pdf->MultiCell(188, 4.8, "Dieses Schreiben wurde maschinell erstellt und enthält deshalb keine Signatur.", 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);
|
||||
*/
|
||||
?>
|
@ -0,0 +1,449 @@
|
||||
<?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(!isset($hist)){
|
||||
$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ür Vergleiche erforderlich
|
||||
}else{
|
||||
$res_dat = $db->query("SELECT min(date_format(datum, '%d.%m.%Y')) datum FROM stan_printqueue_hist WHERE zuweisung='EZP' 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');
|
||||
*/
|
||||
|
||||
$pos = $pdf->GetY()+4;
|
||||
$pdf->SetFont('Arial', 'B', 12);
|
||||
$pdf->SetY($pos);
|
||||
$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, "Bearbeiter/in", 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');
|
||||
?>
|
@ -0,0 +1,450 @@
|
||||
<?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(!isset($hist)){
|
||||
$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ür Vergleiche erforderlich
|
||||
}else{
|
||||
$res_dat = $db->query("SELECT min(date_format(datum, '%d.%m.%Y')) datum FROM stan_printqueue_hist WHERE zuweisung='EZP' 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');
|
||||
*/
|
||||
|
||||
$pos = $pdf->GetY()+4;
|
||||
$pdf->SetFont('Arial', 'B', 12);
|
||||
$pdf->SetY($pos);
|
||||
$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, "Bearbeiter/in", 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[nachname], $row_stud[vorname] 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, zuletzt geändert durch Verordnung vom 03.08.2010, GBl. S. 731) 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 im Original ü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', '', 7);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(70);
|
||||
$pdf->MultiCell(168, 4.8, "Hochschule>Studium>Public Management B.A.>Detailinformationen zum Studium>Praxis und Bachelorarbeit", 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');
|
||||
?>
|
@ -0,0 +1,480 @@
|
||||
<?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(!isset($hist)){
|
||||
$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ür Vergleiche erforderlich
|
||||
}else{
|
||||
$res_dat = $db->query("SELECT min(date_format(datum, '%d.%m.%Y')) datum FROM stan_printqueue_hist WHERE zuweisung='EZP' 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');
|
||||
*/
|
||||
|
||||
$pos = $pdf->GetY()+4;
|
||||
$pdf->SetFont('Arial', 'B', 12);
|
||||
$pdf->SetY($pos);
|
||||
$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, "Bearbeiter/in", 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()+5.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', 'B', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(150, 3, "ACHTUNG: aktualisierter Beurteilungsvordruck", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Arial', 'BI', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(119);
|
||||
$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()+1.8;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(150, 3, "Unterbrechungen während der praktischen Ausbildung", 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Arial', 'BI', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(127);
|
||||
$pdf->MultiCell(150, 3, "(zum Download)", 0, 'L');
|
||||
|
||||
|
||||
|
||||
#################################################################################
|
||||
|
||||
$pos=$pdf->GetY()+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()+4.0;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(168, 4.8, "Sie haben Frau/Herrn $row_stud[nachname], $row_stud[vorname] ein Praktikum bei Ihnen zugesagt.", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+4.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, zuletzt geändert durch Verordnung vom 03.08.2010, GBl. S. 731) 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()+3.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[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->SetLeftMargin(23); #Für HTML
|
||||
|
||||
# Block mit Fettdruck durch Bild ersetzt
|
||||
$pdf->Image('anschreiben/ZEP_Block_apro.jpg', 24,$pos,167); #http://www.fpdf.de/funktionsreferenz/?funktion=Image
|
||||
#Originalblock:
|
||||
#$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 im Original übersenden. Den Beurteilungsvordruck, die APrOVw gD und weitere ausbildungsrelevante Regelungen und Hinweise finden Sie zum Download unter:", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+28.5;
|
||||
|
||||
$pdf->SetFont('Arial', 'U', 10);
|
||||
$pdf->SetTextColor(0,0,255);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(168, 4.8, "www.hs-ludwigsburg.de > Hochschule > Studium > Public Management B.A. > Detailinformationen zum Studium > Praxis und Bachelorarbeit", 0, 'J');
|
||||
$pdf->SetTextColor(0,0,0);
|
||||
|
||||
|
||||
#$pdf->MultiCell(168, 4.8, , 0, 'J');
|
||||
|
||||
$pos=$pdf->GetY()+7.0;
|
||||
|
||||
|
||||
|
||||
#$pdf->SetFont('Arial', '', 7);
|
||||
#$pdf->SetY($pos);
|
||||
#$pdf->SetX(70);
|
||||
#$pdf->MultiCell(168, 4.8, "Hochschule>Studium>Public Management B.A.>Detailinformationen zum Studium>Praxis und Bachelorarbeit", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+3.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()+3.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()+2.0;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(168, 4.8, "gez.\n$row_ansp[name]", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+1.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');
|
||||
?>
|
@ -0,0 +1,480 @@
|
||||
<?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(!isset($hist)){
|
||||
$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ür Vergleiche erforderlich
|
||||
}else{
|
||||
$res_dat = $db->query("SELECT min(date_format(datum, '%d.%m.%Y')) datum FROM stan_printqueue_hist WHERE zuweisung='EZP' 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');
|
||||
*/
|
||||
|
||||
$pos = $pdf->GetY()+4;
|
||||
$pdf->SetFont('Arial', 'B', 12);
|
||||
$pdf->SetY($pos);
|
||||
$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, "Bearbeiter/in", 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()+5.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', 'B', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(150, 3, "ACHTUNG: aktualisierter Beurteilungsvordruck", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Arial', 'BI', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(119);
|
||||
$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()+1.8;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(150, 3, "Unterbrechungen während der praktischen Ausbildung", 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Arial', 'BI', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(127);
|
||||
$pdf->MultiCell(150, 3, "(zum Download)", 0, 'L');
|
||||
|
||||
|
||||
|
||||
#################################################################################
|
||||
|
||||
$pos=$pdf->GetY()+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()+4.0;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(168, 4.8, "Sie haben Frau/Herrn $row_stud[nachname], $row_stud[vorname] ein Praktikum bei Ihnen zugesagt.", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+4.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äß § 22 (3) Ausbildungs- und Prüfungsordnung für den gehobenen Verwaltungsdienst (APrOVw gD vom 15. April 2014, GBl. S. 222) 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()+3.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[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->SetLeftMargin(23); #Für HTML
|
||||
|
||||
# Block mit Fettdruck durch Bild ersetzt
|
||||
$pdf->Image('anschreiben/ZEP_Block_apro.jpg', 24,$pos,167); #http://www.fpdf.de/funktionsreferenz/?funktion=Image
|
||||
#Originalblock:
|
||||
#$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 im Original übersenden. Den Beurteilungsvordruck, die APrOVw gD und weitere ausbildungsrelevante Regelungen und Hinweise finden Sie zum Download unter:", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+28.5;
|
||||
|
||||
$pdf->SetFont('Arial', 'U', 10);
|
||||
$pdf->SetTextColor(0,0,255);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(168, 4.8, "www.hs-ludwigsburg.de > Hochschule > Studium > Public Management B.A. > Detailinformationen zum Studium > Praxis und Bachelorarbeit", 0, 'J');
|
||||
$pdf->SetTextColor(0,0,0);
|
||||
|
||||
|
||||
#$pdf->MultiCell(168, 4.8, , 0, 'J');
|
||||
|
||||
$pos=$pdf->GetY()+7.0;
|
||||
|
||||
|
||||
|
||||
#$pdf->SetFont('Arial', '', 7);
|
||||
#$pdf->SetY($pos);
|
||||
#$pdf->SetX(70);
|
||||
#$pdf->MultiCell(168, 4.8, "Hochschule>Studium>Public Management B.A.>Detailinformationen zum Studium>Praxis und Bachelorarbeit", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+3.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()+3.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()+2.0;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(168, 4.8, "gez.\n$row_ansp[name]", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+1.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');
|
||||
?>
|
@ -0,0 +1,487 @@
|
||||
<?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(!isset($hist)){
|
||||
$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ür Vergleiche erforderlich
|
||||
}else{
|
||||
$res_dat = $db->query("SELECT min(date_format(datum, '%d.%m.%Y')) datum FROM stan_printqueue_hist WHERE zuweisung='EZP' 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');
|
||||
*/
|
||||
|
||||
$pos = $pdf->GetY()+4;
|
||||
$pdf->SetFont('Arial', 'B', 12);
|
||||
$pdf->SetY($pos);
|
||||
$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, "Bearbeiter/in", 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()+5.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', 'B', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(150, 3, "ACHTUNG: Bitte verwenden Sie ausschließlich den aktualisierten", 0, 'L');
|
||||
|
||||
$pos=$pdf->GetY()+1.8;
|
||||
|
||||
$pdf->SetFont('Arial', 'B', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(150, 3, "Beurteilungsvordruck", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Arial', 'BI', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(68);
|
||||
$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()+1.8;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(150, 3, "Unterbrechungen während der praktischen Ausbildung", 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Arial', 'BI', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(127);
|
||||
$pdf->MultiCell(150, 3, "(zum Download)", 0, 'L');
|
||||
|
||||
|
||||
|
||||
#################################################################################
|
||||
|
||||
$pos=$pdf->GetY()+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()+4.0;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(168, 4.8, "Sie haben Frau/Herrn $row_stud[nachname], $row_stud[vorname] ein Praktikum bei Ihnen zugesagt.", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+4.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äß § 22 (3) Ausbildungs- und Prüfungsordnung für den gehobenen Verwaltungsdienst (APrOVw gD vom 15. April 2014, GBl. S. 222, zuletzt geändert durch Artikel 1 der Verordnung vom 16. Februar 2017 (GBl. S. 68)) 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()+3.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[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->SetLeftMargin(23); #Für HTML
|
||||
|
||||
# Block mit Fettdruck durch Bild ersetzt
|
||||
$pdf->Image('anschreiben/ZEP_Block_apro.jpg', 24,$pos,167); #http://www.fpdf.de/funktionsreferenz/?funktion=Image
|
||||
#Originalblock:
|
||||
#$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 im Original übersenden. Den Beurteilungsvordruck, die APrOVw gD und weitere ausbildungsrelevante Regelungen und Hinweise finden Sie zum Download unter:", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+28.5;
|
||||
|
||||
$pdf->SetFont('Arial', 'U', 10);
|
||||
$pdf->SetTextColor(0,0,255);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(168, 4.8, "www.hs-ludwigsburg.de > Hochschule > Studium > Public Management B.A. > Detailinformationen zum Studium > Praxis und Bachelorarbeit", 0, 'J');
|
||||
$pdf->SetTextColor(0,0,0);
|
||||
|
||||
|
||||
#$pdf->MultiCell(168, 4.8, , 0, 'J');
|
||||
|
||||
$pos=$pdf->GetY()+7.0;
|
||||
|
||||
|
||||
|
||||
#$pdf->SetFont('Arial', '', 7);
|
||||
#$pdf->SetY($pos);
|
||||
#$pdf->SetX(70);
|
||||
#$pdf->MultiCell(168, 4.8, "Hochschule>Studium>Public Management B.A.>Detailinformationen zum Studium>Praxis und Bachelorarbeit", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+3.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()+3.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()+2.0;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(168, 4.8, "gez.\n$row_ansp[name]", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+1.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');
|
||||
?>
|
448
admin/anschreiben/alt/zuweisung_erstantrag_student_20110324.php
Normal file
448
admin/anschreiben/alt/zuweisung_erstantrag_student_20110324.php
Normal file
@ -0,0 +1,448 @@
|
||||
<?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(!isset($hist)){
|
||||
$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ü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');
|
||||
|
||||
$pos = $pdf->GetY()+4;
|
||||
$pdf->SetFont('Arial', 'B', 12);
|
||||
$pdf->SetY($pos);
|
||||
$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, "Bearbeiter/in", 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(!isset($hist)){
|
||||
$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
|
||||
AND t2.status !='2' #hinzugefügt am 10.06.2009, weil Status 2 angezeigt wurde
|
||||
)
|
||||
AND a.zuweisung='Z'
|
||||
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'
|
||||
AND a.zuweisung='Z'
|
||||
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(!isset($hist)){
|
||||
$res_dat = $db->query("UPDATE stan_printqueue_antrag
|
||||
SET printed_obj='$saaid_prnt'
|
||||
WHERE zuweisung='EZS'
|
||||
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);
|
||||
|
||||
?>
|
452
admin/anschreiben/alt/zuweisung_erstantrag_student_20120417.php
Normal file
452
admin/anschreiben/alt/zuweisung_erstantrag_student_20120417.php
Normal file
@ -0,0 +1,452 @@
|
||||
<?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(!isset($hist)){
|
||||
$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ü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');
|
||||
|
||||
$pos = $pdf->GetY()+4;
|
||||
$pdf->SetFont('Arial', 'B', 12);
|
||||
$pdf->SetY($pos);
|
||||
$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');
|
||||
$pdf->MultiCell(47, 3, "16.06.2011", 0, 'R');
|
||||
|
||||
$pos=$pdf->GetY()+0.3;
|
||||
|
||||
$pdf->SetFont('Arial', '', 8);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Bearbeiter/in", 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, zuletzt geändert durch Verordnung vom 03.08.2010, GBl. S. 731) 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(!isset($hist)){
|
||||
$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
|
||||
AND t2.status !='2' #hinzugefügt am 10.06.2009, weil Status 2 angezeigt wurde
|
||||
)
|
||||
AND a.zuweisung='Z'
|
||||
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'
|
||||
AND a.zuweisung='Z'
|
||||
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(!isset($hist)){
|
||||
$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, "Wir bitten dringend um Beachtung der weiteren Informationen zum Zuweisungs- bescheid, 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', '', 7);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(70);
|
||||
$pdf->MultiCell(168, 4.8, "Hochschule>Studium>Public Management B.A.>Detailinformationen zum Studium>Praxis und Bachelorarbeit", 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);
|
||||
|
||||
?>
|
450
admin/anschreiben/alt/zuweisung_erstantrag_student_20141015.php
Normal file
450
admin/anschreiben/alt/zuweisung_erstantrag_student_20141015.php
Normal file
@ -0,0 +1,450 @@
|
||||
<?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(!isset($hist)){
|
||||
$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ü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');
|
||||
|
||||
$pos = $pdf->GetY()+4;
|
||||
$pdf->SetFont('Arial', 'B', 12);
|
||||
$pdf->SetY($pos);
|
||||
$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');
|
||||
#$pdf->MultiCell(47, 3, "16.06.2011", 0, 'R');
|
||||
|
||||
$pos=$pdf->GetY()+0.3;
|
||||
|
||||
$pdf->SetFont('Arial', '', 8);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Bearbeiter/in", 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, zuletzt geändert durch Verordnung vom 03.08.2010, GBl. S. 731) 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(!isset($hist)){
|
||||
$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
|
||||
AND t2.status !='2' #hinzugefügt am 10.06.2009, weil Status 2 angezeigt wurde
|
||||
)
|
||||
AND a.zuweisung='Z'
|
||||
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'
|
||||
AND a.zuweisung='Z'
|
||||
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(!isset($hist)){
|
||||
$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()+4.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()+3.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()+3.0;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(168, 4.8, "Wir bitten dringend um Beachtung der weiteren Informationen zum Zuweisungs- bescheid, unter:", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+3.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 -> Studium -> Public Management B.A -> Detailinformationen zum Studium -> Praxis und Bachelorarbeit", 0, 'J');
|
||||
$pdf->SetTextColor(0,0,0);
|
||||
|
||||
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+6.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()+9.8;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(168, 4.8, "gez.\n$row_ansp[name]", 0, 'J');
|
||||
|
||||
|
||||
|
||||
#require("urlaubskarte.php");
|
||||
|
||||
# Anlagen entfernt laut Fr. Jany am 06.06.2013
|
||||
#$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);
|
||||
|
||||
?>
|
327
admin/anschreiben/alt/zuweisungschreiben_anwaerter.php
Normal file
327
admin/anschreiben/alt/zuweisungschreiben_anwaerter.php
Normal file
@ -0,0 +1,327 @@
|
||||
<?php
|
||||
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
$uid1=$_GET["uid1"];
|
||||
|
||||
$array = stripslashes($_GET['saaid']);
|
||||
$array = unserialize($array);
|
||||
|
||||
|
||||
for($i=0;$i<count($array);$i++){ // welche Stellen wurden angeklickt?
|
||||
$stelle .= "$array[$i],";
|
||||
}
|
||||
|
||||
$stelle=substr($stelle, 0, -1);
|
||||
|
||||
$db = dbconnect();
|
||||
$result_tmp1 = $db->query("DELETE FROM stan_tmp_zuweis_adm WHERE uid='$uid1'");
|
||||
|
||||
|
||||
$result_tmp1 = $db->query("INSERT INTO stan_tmp_zuweis_adm
|
||||
SELECT t1.saaid
|
||||
, t1.uid
|
||||
, t1.beginn
|
||||
, t1.ende
|
||||
, t1.ort
|
||||
, t2.bezeichnung
|
||||
, t1.bezeichnung art_bez
|
||||
FROM stan_antrag t1, stan_stellenbereiche t2
|
||||
WHERE t1.uid = '$uid1'
|
||||
AND t1.sachbereich = t2.sbid
|
||||
AND t1.zuweisung='Z'
|
||||
AND status = '0'
|
||||
AND (aend_dat = '0000-00-00 00:00:00' OR saaid = aendid)
|
||||
AND saaid IN ($stelle)
|
||||
");
|
||||
|
||||
$result = $db->query("SELECT max(saaid) max_id FROM stan_tmp_zuweis_adm WHERE uid='$uid1'");
|
||||
$row4 = $result->fetch_array();
|
||||
$saaid_neu = $row4[max_id] + 1; // Damit alle Einträge eine ID haben
|
||||
$result = $db->query("SELECT bezeichnung
|
||||
FROM stan_pu_wunsch, stan_pu_standorte
|
||||
WHERE stan_pu_wunsch.ort = stan_pu_standorte.pusoid
|
||||
AND uid='$uid1'
|
||||
AND prioritaet=0");
|
||||
$row4 = $result->fetch_array();
|
||||
$result_tmp1 = $db->query("INSERT INTO stan_tmp_zuweis_adm SELECT $saaid_neu, '$uid1', beginn, ende, '$row4[bezeichnung]', 'Praxisbegleitender Unterricht', '' FROM stan_sperrzeit WHERE jahrgang ='$row[Jahrgang]' AND kennung = '$row[stg]'");
|
||||
|
||||
|
||||
|
||||
#error_reporting (E_ALL);
|
||||
|
||||
define('FPDF_FONTPATH','../../stud/prints/font/');
|
||||
require('../../stud/prints/as_utf_class.php');
|
||||
require_once("../../stud/prints/table_def.inc");
|
||||
|
||||
$pdf=new utfFPDF();
|
||||
|
||||
$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();
|
||||
|
||||
$pagecount = $pdf->setSourceFile("briefkopf_blanko.pdf");
|
||||
|
||||
$tplidx = $pdf->ImportPage(1);
|
||||
|
||||
$pdf->SetAutoPageBreak(true, 20);
|
||||
$pdf->SetTopMargin(0);
|
||||
$pdf->SetRightMargin(23);
|
||||
$pdf->SetAutoPageBreak(TRUE, 0);
|
||||
|
||||
|
||||
$pdf->addPage();
|
||||
$pdf->useTemplate($tplidx,0,0,0);
|
||||
|
||||
|
||||
$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ür Vergleiche erforderlich
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(56.7);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Ludwigsburg,", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(56.7);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$heute_format", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(60.9);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Bearbeiterin", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(60.9);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(65.1);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Telefon", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(65.1);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[tel]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(69.3);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Fax", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(69.3);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[fax]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "e-mail", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_ansp[mail]", 0, 'R');
|
||||
|
||||
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
$res = $db->query("SELECT mtknr, nachname, vorname, postrasse, poort, poplz, ag, Jahrgang, stg FROM stud WHERE uid='$uid1'");
|
||||
$row = $res->fetch_array();
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(59.5);
|
||||
$pdf->SetX(23);
|
||||
$pdf->Cell(0, 3, "$row[vorname] $row[nachname]", 0, 0, 'L');
|
||||
|
||||
$pos = $pdf->GetY()+4;
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->Cell(0, 3, "$row[ag] / $row[Jahrgang]", 0, 0, 'L');
|
||||
|
||||
$pos = $pdf->GetY()+4;
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->Cell(0, 3, "$row[postrasse]", 0, 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', 'B', 12);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(23);
|
||||
$pdf->Cell(0, 3, "$row[poplz] $row[poort]", 0, 0, 'L');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', 'B', 12);
|
||||
$pdf->SetY(91);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Ausbildung im gehobenen nichttechnischen Verwaltungsdienst;\nZuweisung zu den Ausbildungsstellen im Praxisjahr", 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', 'BU', 12);
|
||||
$pdf->SetY(105);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Anlagen", 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(110);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Urlaubskarte\nWeitere Bestimmungen zum Zuweisungsbescheid", 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(125);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Sehr geehrte(r) $row[vorname] $row[nachname],\n\ndie Fachhochschule Ludwigsburg weist Sie gem. § 17 (1) Ausbildungs- und Prüfungsordnung für den gehobenen Verwaltungsdienst (APrOVw gD) i.V.m. dem Rahmenplan für die praktische Ausbildung im Vorbereitungsdienst folgenden Stellen zu:", 0, 'J');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pos = $pdf->GetY()+3;
|
||||
|
||||
$columns = 3; //five columns
|
||||
|
||||
#$pdf->SetX(30);
|
||||
$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'] = 40;
|
||||
$header_type[1]['WIDTH'] = 61;
|
||||
$header_type[2]['WIDTH'] = 61;
|
||||
|
||||
|
||||
$header_type[0]['TEXT'] = "Zeitraum";
|
||||
$header_type[1]['TEXT'] = "Ausbildungsstelle";
|
||||
$header_type[2]['TEXT'] = "Sachbereich";
|
||||
|
||||
#$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 ma.uid, DATE_FORMAT(beginn, '%d.%m.%Y') beginn, DATE_FORMAT(ende, '%d.%m.%Y') ende, bezeichnung, sachbereich, art
|
||||
FROM stan_tmp_zuweis_adm ma
|
||||
WHERE ma.uid = '$uid1'
|
||||
ORDER BY ma.uid, ma.beginn";
|
||||
$result = $db->query ($query)
|
||||
or die ("Cannot execute query");
|
||||
|
||||
while ($row = $result->fetch_array())
|
||||
{
|
||||
$data = Array();
|
||||
|
||||
$res2 = $db->query("SELECT bezeichnung FROM stan_stellenbereiche WHERE sbid='$row[sachbereich]'");
|
||||
$row2 = $res2->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] - $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
|
||||
|
||||
if($row[sachbereich] == 'Praxisbegleitender Unterricht'){
|
||||
$data[1]['TEXT'] = "PU $row[bezeichnung]";
|
||||
}else{
|
||||
$data[1]['TEXT'] = "$row[art] in $row[bezeichnung]";
|
||||
}
|
||||
$data[1]['T_ALIGN'] = "L";
|
||||
$data[1]['V_ALIGN'] = "M";
|
||||
|
||||
$data[2]['TEXT'] = "$row[sachbereich]";
|
||||
$data[2]['T_ALIGN'] = "L";
|
||||
$data[2]['V_ALIGN'] = "M";
|
||||
|
||||
|
||||
|
||||
$pdf->Draw_Data($data);
|
||||
}
|
||||
|
||||
$pdf->Draw_Table_Border();
|
||||
|
||||
$pos=$pdf->GetY()+3;
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Beiliegende Anlagen sind Bestandteil dieses Bescheides.\n\nWir weisen darauf hin, dass gemäß § 39 APrOVw gD vom 30. August 2007 für Anwärterinnen und Anwärter, die im September 2007 oder früher mit dem Vorbereitungsdienst beginnen oder begonnen haben, weiterhin die APrOVw gD vom 27. Januar 2004 (GBl. S. 118), geändert durch Verordnung vom 25. Juli 2006 (GBl. S. 278) Anwendung findet.\n\nDiese Zuweisungen erfolgen unter dem Vorbehalt, dass Sie die Zwischenprüfung bei erstmaliger Ablegung bestehen (§ 31 (5) und (6) APrOVw gD).", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+10;
|
||||
$pdf->SetFont('Times', 'BU', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Rechtsbehelfsbelehrung", 0, 'C');
|
||||
|
||||
$pos=$pdf->GetY()+5;
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Gegen diesen Bescheid können Sie innerhalb eines Monats schriftlich oder zur Niederschrift bei der Fachhochschule Ludwigsburg, Hochschule für öffentliche Verwaltung und Finanzen, Reuteallee 36, 71634 Ludwigsburg, Widerspruch einlegen.\n\nMit freundlichen Grüßen\n\n\n\n\n$row_ansp[name]", 0, 'J');
|
||||
$result_tmp1 = $db->query("DELETE FROM stan_tmp_zuweis_adm WHERE uid='$uid1'");
|
||||
|
||||
|
||||
#require("urlaubskarte.php");
|
||||
require("praxisstellenubersicht_anwaerter.php");
|
||||
require("anlage_zuweisungschreiben_anwaerter.php");
|
||||
|
||||
|
||||
$pdf->Output("$uid1-Anschreiben.pdf","D");
|
||||
$pdf->closeParsers();
|
||||
?>
|
BIN
admin/anschreiben/alt/zuweisungsschreiben_praxisstelle.doc
Normal file
BIN
admin/anschreiben/alt/zuweisungsschreiben_praxisstelle.doc
Normal file
Binary file not shown.
BIN
admin/anschreiben/alt/zuweisungsschreiben_praxisstelle.pdf
Normal file
BIN
admin/anschreiben/alt/zuweisungsschreiben_praxisstelle.pdf
Normal file
Binary file not shown.
287
admin/anschreiben/alt/zuweisungsschreiben_praxisstelle.php
Normal file
287
admin/anschreiben/alt/zuweisungsschreiben_praxisstelle.php
Normal file
@ -0,0 +1,287 @@
|
||||
<?php
|
||||
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
|
||||
$uid1=$_GET["uid1"];
|
||||
$saaid=$_GET["stelle"];
|
||||
|
||||
|
||||
define('FPDF_FONTPATH','../../stud/prints/font/');
|
||||
require('../../stud/prints/as_utf_class.php');
|
||||
require_once("../../stud/prints/table_def.inc");
|
||||
|
||||
$pdf=new utfFPDF();
|
||||
|
||||
$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();
|
||||
|
||||
$pagecount = $pdf->setSourceFile("zuweisungsschreiben_praxisstelle.pdf");
|
||||
|
||||
$tplidx = $pdf->ImportPage(1);
|
||||
|
||||
$pdf->SetAutoPageBreak(true, 20);
|
||||
$pdf->SetTopMargin(0);
|
||||
$pdf->SetRightMargin(23);
|
||||
$pdf->SetAutoPageBreak(TRUE, 0);
|
||||
|
||||
|
||||
$pdf->addPage();
|
||||
$pdf->useTemplate($tplidx,0,0,0);
|
||||
|
||||
|
||||
$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ür Vergleiche erforderlich
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(56.7);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Ludwigsburg,", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(56.7);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$heute_format", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(60.9);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Bearbeiterin", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(60.9);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'R');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(65.1);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Telefon", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(65.1);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[tel]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(69.3);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Fax", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(69.3);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[fax]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "e-mail", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_ansp[mail]", 0, 'R');
|
||||
|
||||
$db = dbconnect();
|
||||
$res_prx = $db->query("SELECT t1.bezeichnung art_bez,t1.ansprechpartner, t2.bezeichnung, t1.zuw_bezeichnung, t1.zuw_ansprechpartner, zuw_str, zuw_plz, zuw_ort, ort, DATE_FORMAT(beginn, '%d.%m.%Y') beginn, DATE_FORMAT(ende, '%d.%m.%Y') ende
|
||||
FROM stan_antrag t1, stan_stellenbereiche t2
|
||||
WHERE t1.sachbereich = t2.sbid
|
||||
AND saaid='$saaid'");
|
||||
$row_prx = $res_prx->fetch_array();
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(59.5);
|
||||
$pdf->SetX(23);
|
||||
|
||||
if ($row_prx[zuw_ansprechpartner] == ''){
|
||||
$pdf->MultiCell(0, 4, "$row_prx[zuw_bezeichnung]", 0, 'L');
|
||||
}else{
|
||||
$pdf->MultiCell(0, 4, "$row_prx[zuw_bezeichnung]\nz. Hd. von $row_prx[zuw_ansprechpartner]", 0, 'L');
|
||||
}
|
||||
|
||||
$pos=$pdf->GetY();
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4, "$row_prx[zuw_str]", 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', 'B', 12);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(23);
|
||||
$pdf->Cell(0, 3, "$row_prx[zuw_plz] $row_prx[zuw_ort]", 0, 0, 'L');
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
$res = $db->query("SELECT mtknr, nachname, vorname, postrasse, poort, poplz, Jahrgang, stg FROM stud WHERE uid='$uid1'");
|
||||
$row = $res->fetch_array();
|
||||
|
||||
|
||||
$pdf->SetFont('Times', 'B', 12);
|
||||
$pdf->SetY(103.5);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Ausbildung im gehobenen nichttechnischen Verwaltungsdienst;\nZuweisung der Anwärterin / des Anwärters $row[vorname] $row[nachname] im Praxisjahr", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(166.7);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Sie haben Frau/Herrn $row[vorname] $row[nachname] ein Praktikum bei Ihnen zugesagt.", 0, 'J');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$columns = 3; //five columns
|
||||
|
||||
#$pdf->SetX(30);
|
||||
$pdf->SetY(195);
|
||||
//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'] = 40;
|
||||
$header_type[1]['WIDTH'] = 63.5;
|
||||
$header_type[2]['WIDTH'] = 63.5;
|
||||
|
||||
|
||||
$header_type[0]['TEXT'] = "Zeitraum";
|
||||
$header_type[1]['TEXT'] = "Ausbildungsstelle";
|
||||
$header_type[2]['TEXT'] = "Sachbereich";
|
||||
|
||||
#$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);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* 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_prx[beginn] - $row_prx[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'] = "$row_prx[art_bez] in $row_prx[ort]";
|
||||
$data[1]['T_ALIGN'] = "L";
|
||||
$data[1]['V_ALIGN'] = "M";
|
||||
|
||||
$data[2]['TEXT'] = "$row_prx[bezeichnung]";
|
||||
$data[2]['T_ALIGN'] = "L";
|
||||
$data[2]['V_ALIGN'] = "M";
|
||||
|
||||
|
||||
|
||||
$pdf->Draw_Data($data);
|
||||
|
||||
|
||||
$pdf->Draw_Table_Border();
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(250);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "$row_ansp[name]", 0, 'J');
|
||||
|
||||
/*
|
||||
$pos=$pdf->GetY()+3;
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Beiliegende Anlagen sind Bestandteil dieses Bescheides.\n\nDiese Zuweisungen erfolgen unter dem Vorbehalt, dass Sie die Zwischenprüfung bei erstmaliger Ablegung bestehen (§ 31 (5) und (6) APrOVw gD).", 0, 'J');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+10;
|
||||
$pdf->SetFont('Times', 'BU', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Rechtsbehelfsbelehrung", 0, 'C');
|
||||
|
||||
$pos=$pdf->GetY()+5;
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Gegen diesen Bescheid können Sie innerhalb eines Monats schriftlich oder zur Niederschrift bei der Fachhochschule Ludwigsburg, Hochschule für öffentliche Verwaltung und Finanzen, Reuteallee 36, 71634 Ludwigsburg, Widerspruch einlegen.\n\nMit freundlichen Grüßen\n\n\n\n\n$row_ansp[name]", 0, 'J');
|
||||
$result_tmp1 = $db->query("DELETE FROM stan_tmp_zuweis_adm WHERE uid='$uid1'");
|
||||
*/
|
||||
|
||||
require("anlage_zuweisungsschreiben_praxisstelle.php");
|
||||
require("praxisstellenubersicht.php");
|
||||
|
||||
$pagecount = $pdf->setSourceFile("dienstzeugnisvordruck.pdf");
|
||||
$tplidx = $pdf->ImportPage(1);
|
||||
$pdf->addPage();
|
||||
$pdf->useTemplate($tplidx,0,0,0);
|
||||
|
||||
$tplidx = $pdf->ImportPage(2);
|
||||
$pdf->addPage();
|
||||
$pdf->useTemplate($tplidx,0,0,0);
|
||||
|
||||
|
||||
|
||||
|
||||
$pagecount = $pdf->setSourceFile("auszug_apro_ausbildungsstellen.pdf");
|
||||
$tplidx = $pdf->ImportPage(1);
|
||||
$pdf->addPage();
|
||||
$pdf->useTemplate($tplidx,0,0,0);
|
||||
|
||||
$tplidx = $pdf->ImportPage(2);
|
||||
$pdf->addPage();
|
||||
$pdf->useTemplate($tplidx,0,0,0);
|
||||
|
||||
|
||||
|
||||
$pagecount = $pdf->setSourceFile("rahmenplan.pdf");
|
||||
$tplidx = $pdf->ImportPage(1);
|
||||
$pdf->addPage();
|
||||
$pdf->useTemplate($tplidx,0,0,0);
|
||||
|
||||
$tplidx = $pdf->ImportPage(2);
|
||||
$pdf->addPage();
|
||||
$pdf->useTemplate($tplidx,0,0,0);
|
||||
|
||||
$tplidx = $pdf->ImportPage(3);
|
||||
$pdf->addPage();
|
||||
$pdf->useTemplate($tplidx,0,0,0);
|
||||
|
||||
|
||||
$pdf->Output("$uid1-Zuweisung_Stelle_$saaid.pdf","D");
|
||||
$pdf->closeParsers();
|
||||
?>
|
360
admin/anschreiben/alt/zuweisungsschreiben_pu.php
Normal file
360
admin/anschreiben/alt/zuweisungsschreiben_pu.php
Normal file
@ -0,0 +1,360 @@
|
||||
<?php
|
||||
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
$jahrgang=$_COOKIE["jahrgang"];
|
||||
$user_admin=$_COOKIE["user_admin"];
|
||||
|
||||
// Rechteüberprüfung
|
||||
$db = dbconnect();
|
||||
if ($user_admin == ""){ require("index.php"); exit;} //Wenn man nicht angemeldet ist, darf man nicht auf die Seite
|
||||
$result = $db->query("SELECT 1 FROM stan_admin_rechte, stan_admin_rechte_zuord , stan_admin where stan_admin_rechte.stan_admin_rolle = stan_admin_rechte_zuord.stan_admin_rolle AND stan_admin_rechte_zuord.said = stan_admin.said AND stan_admin.user = '$user_admin' AND stan_admin_rechte_zuord.stan_admin_rolle = 'a_puprnt'");
|
||||
$row = $result->fetch_array();
|
||||
if ($row[0] != 1){ include("kurs/rechte.php"); exit;}
|
||||
// Rechteüberprüfung ende
|
||||
|
||||
|
||||
#error_reporting (E_ALL);
|
||||
|
||||
define('FPDF_FONTPATH','../../stud/prints/font/');
|
||||
require('../../stud/prints/as_utf_class.php');
|
||||
require_once("../../stud/prints/table_def_zuweis.inc");
|
||||
|
||||
$pdf=new utfFPDF();
|
||||
|
||||
$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();
|
||||
|
||||
$pagecount = $pdf->setSourceFile("briefkopf_blanko.pdf");
|
||||
|
||||
$tplidx = $pdf->ImportPage(1);
|
||||
|
||||
$pdf->SetAutoPageBreak(true, 20);
|
||||
$pdf->SetTopMargin(0);
|
||||
$pdf->SetRightMargin(23);
|
||||
$pdf->SetAutoPageBreak(TRUE, 0);
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
$res_v = $db->query("SELECT DATE_FORMAT(beginn, '%d.%m.%Y') beginn, DATE_FORMAT(ende, '%d.%m.%Y') ende FROM stan_sperrzeit WHERE jahrgang='$jahrgang' AND kennung = 'V'");
|
||||
$row_v = $res_v->fetch_array();
|
||||
|
||||
$res_w = $db->query("SELECT DATE_FORMAT(beginn, '%d.%m.%Y') beginn, DATE_FORMAT(ende, '%d.%m.%Y') ende, DATE_FORMAT(ende, '%Y') jahr FROM stan_sperrzeit WHERE jahrgang='$jahrgang' AND kennung = 'W'");
|
||||
$row_w = $res_w->fetch_array();
|
||||
|
||||
$db = dbconnect();
|
||||
$query = "SELECT uid, nachname, vorname, postrasse, poort, poplz, stg
|
||||
FROM stud
|
||||
WHERE stg='V' AND jahrgang='$jahrgang'
|
||||
AND uid IN (SELECT uid FROM stan_pu_wunsch)
|
||||
";
|
||||
|
||||
$result = $db->query ($query)
|
||||
or die ("Cannot execute query");
|
||||
|
||||
while ($row = $result->fetch_array())
|
||||
{
|
||||
|
||||
|
||||
$pdf->addPage();
|
||||
$pdf->useTemplate($tplidx,0,0,0);
|
||||
|
||||
|
||||
$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ür Vergleiche erforderlich
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(56.7);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Ludwigsburg,", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(56.7);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$heute_format", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(60.9);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Bearbeiterin", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(60.9);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(65.1);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Telefon", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(65.1);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[tel]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(69.3);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Fax", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(69.3);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[fax]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "e-mail", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_ansp[mail]", 0, 'R');
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(59.5);
|
||||
$pdf->SetX(23);
|
||||
$pdf->Cell(0, 3, "$row[vorname] $row[nachname]", 0, 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(64.5);
|
||||
$pdf->SetX(23);
|
||||
$pdf->Cell(0, 3, "$row[postrasse]", 0, 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', 'B', 12);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(23);
|
||||
$pdf->Cell(0, 3, "$row[poplz] $row[poort]", 0, 0, 'L');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', 'B', 12);
|
||||
$pdf->SetY(91);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Zuweisung zum praxisbegleitenden Unterricht", 0, 'L');
|
||||
|
||||
|
||||
|
||||
$res_ort = $db->query("SELECT bezeichnung
|
||||
FROM stan_pu_standorte, stan_pu_wunsch
|
||||
WHERE stan_pu_standorte.pusoid = stan_pu_wunsch.ort
|
||||
AND stan_pu_wunsch.uid = '$row[uid]'
|
||||
AND stan_pu_wunsch.prioritaet = '0'
|
||||
AND stan_pu_standorte.jahrgang='$jahrgang'
|
||||
");
|
||||
$row_ort = $res_ort->fetch_array();
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(110);
|
||||
$pdf->SetX(23);
|
||||
|
||||
|
||||
|
||||
$columns = 1; //five columns
|
||||
$pdf->SetStyle("t4","times","B",12,"0,0,0");
|
||||
|
||||
|
||||
|
||||
//we initialize the table class
|
||||
$pdf->Table_Init($columns, true, true);
|
||||
|
||||
$table_subtype = $table_default_table_type;
|
||||
$pdf->Set_Table_Type($table_subtype);
|
||||
|
||||
|
||||
|
||||
//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);
|
||||
|
||||
$ttxt[3] = "Sehr geehrte(r) $row[vorname] $row[nachname],\n\nfür die Zeit vom $row_v[beginn] bis $row_v[ende] werden Sie für den Besuch des praxisbegleitenden Unterrichts dem Standort <t4>$row_ort[bezeichnung]</t4> zugewiesen.\n\nSie erhalten von dem zuständigen PU-Leiter eine Einladung, in der Sie weitere Informationen zum Beginn des Unterrichts und zum Stundenplan finden.\n\nMit freundlichen Grüßen\n\n\n\n$row_ansp[name]";
|
||||
|
||||
$data[0]['TEXT'] = $ttxt[3];
|
||||
$data[0]['T_SIZE'] = 12;
|
||||
$data[0]['T_FONT'] = 'times';
|
||||
|
||||
#$data[0]['COLSPAN'] = 4;
|
||||
$data[0]['T_ALIGN'] = "J";
|
||||
$data[0]['LN_SIZE'] = 6;
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->Draw_Data($data);
|
||||
|
||||
|
||||
$pdf->Draw_Table_Border();
|
||||
|
||||
}// Ende While
|
||||
|
||||
|
||||
$db = dbconnect();
|
||||
$query = "SELECT uid, nachname, vorname, postrasse, poort, poplz, stg
|
||||
FROM stud
|
||||
WHERE stg='W' AND jahrgang='$jahrgang'
|
||||
";
|
||||
|
||||
$result = $db->query ($query)
|
||||
or die ("Cannot execute query");
|
||||
|
||||
while ($row = $result->fetch_array())
|
||||
{
|
||||
|
||||
|
||||
$pdf->addPage();
|
||||
$pdf->useTemplate($tplidx,0,0,0);
|
||||
|
||||
|
||||
$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ür Vergleiche erforderlich
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(56.7);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Ludwigsburg,", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(56.7);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$heute_format", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(60.9);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Bearbeiterin", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(60.9);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(65.1);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Telefon", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(65.1);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[tel]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(69.3);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Fax", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(69.3);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[fax]", 0, 'R');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "e-mail", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Times', '', 10);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(136.1);
|
||||
$pdf->MultiCell(47, 3, "$row_ansp[mail]", 0, 'R');
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(59.5);
|
||||
$pdf->SetX(23);
|
||||
$pdf->Cell(0, 3, "$row[vorname] $row[nachname]", 0, 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(64.5);
|
||||
$pdf->SetX(23);
|
||||
$pdf->Cell(0, 3, "$row[postrasse]", 0, 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Times', 'B', 12);
|
||||
$pdf->SetY(73.5);
|
||||
$pdf->SetX(23);
|
||||
$pdf->Cell(0, 3, "$row[poplz] $row[poort]", 0, 0, 'L');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', 'B', 12);
|
||||
$pdf->SetY(91);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(0, 4.5, "Zuweisung zum praxisbegleitenden Unterricht", 0, 'L');
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Times', '', 12);
|
||||
$pdf->SetY(110);
|
||||
$pdf->SetX(23);
|
||||
|
||||
|
||||
|
||||
$columns = 1; //five columns
|
||||
$pdf->SetStyle("t4","times","B",12,"0,0,0");
|
||||
|
||||
|
||||
|
||||
//we initialize the table class
|
||||
$pdf->Table_Init($columns, true, true);
|
||||
|
||||
$table_subtype = $table_default_table_type;
|
||||
$pdf->Set_Table_Type($table_subtype);
|
||||
|
||||
|
||||
|
||||
//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);
|
||||
|
||||
$ttxt[3] = "Sehr geehrte(r) $row[vorname] $row[nachname],\n\nfür die Zeit vom $row_w[beginn] bis $row_w[ende] werden Sie für den Besuch des praxisbegleitenden Unterrichts der Fachhochschule Ludwigsburg zugewiesen.\n\nWeitere Informationen zum Stundenplan etc. erhalten Sie zu gegebener Zeit über die Homepage/das Intranet der FH. \n\nEinteilungswünsche bezüglich einer gemeinsamen AG sollten bis <t4>spätestens Mitte Januar $row_w[jahr]</t4> an das Studentensekretariat gerichtet werden (per Email).\n\nMit freundlichen Grüßen\n\n\n\n$row_ansp[name]";
|
||||
|
||||
$data[0]['TEXT'] = $ttxt[3];
|
||||
$data[0]['T_SIZE'] = 12;
|
||||
$data[0]['T_FONT'] = 'times';
|
||||
|
||||
#$data[0]['COLSPAN'] = 4;
|
||||
$data[0]['T_ALIGN'] = "J";
|
||||
$data[0]['LN_SIZE'] = 6;
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->Draw_Data($data);
|
||||
|
||||
|
||||
$pdf->Draw_Table_Border();
|
||||
|
||||
}// Ende While
|
||||
|
||||
$pdf->Output("Zuweisung_PU_$jahrgang.pdf","I");
|
||||
$pdf->closeParsers();
|
||||
?>
|
Reference in New Issue
Block a user