first commit
This commit is contained in:
BIN
standort/anschreiben/Logo.GIF
Normal file
BIN
standort/anschreiben/Logo.GIF
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
BIN
standort/anschreiben/Logo.jpg
Normal file
BIN
standort/anschreiben/Logo.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.0 KiB |
BIN
standort/anschreiben/Logo.png
Normal file
BIN
standort/anschreiben/Logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
standort/anschreiben/Zuweisung_Anw.pdf
Normal file
BIN
standort/anschreiben/Zuweisung_Anw.pdf
Normal file
Binary file not shown.
BIN
standort/anschreiben/alt/Dienstzeugnisvordruck.doc
Normal file
BIN
standort/anschreiben/alt/Dienstzeugnisvordruck.doc
Normal file
Binary file not shown.
BIN
standort/anschreiben/alt/aenderungschreiben_anwaerter.doc
Normal file
BIN
standort/anschreiben/alt/aenderungschreiben_anwaerter.doc
Normal file
Binary file not shown.
327
standort/anschreiben/alt/aenderungschreiben_anwaerter.php
Normal file
327
standort/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
standort/anschreiben/alt/aenderungschreiben_praxisstelle.php
Normal file
275
standort/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
standort/anschreiben/alt/anlage_zuweisungschreiben_anwaerter.doc
Normal file
BIN
standort/anschreiben/alt/anlage_zuweisungschreiben_anwaerter.doc
Normal file
Binary file not shown.
BIN
standort/anschreiben/alt/anlage_zuweisungschreiben_anwaerter.pdf
Normal file
BIN
standort/anschreiben/alt/anlage_zuweisungschreiben_anwaerter.pdf
Normal file
Binary file not shown.
128
standort/anschreiben/alt/anlage_zuweisungschreiben_anwaerter.php
Normal file
128
standort/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
standort/anschreiben/alt/auszug_apro_ausbildungsstellen.doc
Normal file
BIN
standort/anschreiben/alt/auszug_apro_ausbildungsstellen.doc
Normal file
Binary file not shown.
BIN
standort/anschreiben/alt/auszug_apro_ausbildungsstellen.pdf
Normal file
BIN
standort/anschreiben/alt/auszug_apro_ausbildungsstellen.pdf
Normal file
Binary file not shown.
BIN
standort/anschreiben/alt/briefkopf_blanko.doc
Normal file
BIN
standort/anschreiben/alt/briefkopf_blanko.doc
Normal file
Binary file not shown.
BIN
standort/anschreiben/alt/briefkopf_blanko.pdf
Normal file
BIN
standort/anschreiben/alt/briefkopf_blanko.pdf
Normal file
Binary file not shown.
BIN
standort/anschreiben/alt/dienstzeugnisvordruck.pdf
Normal file
BIN
standort/anschreiben/alt/dienstzeugnisvordruck.pdf
Normal file
Binary file not shown.
220
standort/anschreiben/alt/listendruck_pu.php
Normal file
220
standort/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
standort/anschreiben/alt/listendruck_w.php
Normal file
141
standort/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
standort/anschreiben/alt/praxisstellenubersicht.php
Normal file
1
standort/anschreiben/alt/praxisstellenubersicht.php
Normal file
File diff suppressed because one or more lines are too long
269
standort/anschreiben/alt/praxisstellenubersicht_anwaerter.php
Normal file
269
standort/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
standort/anschreiben/alt/rahmenplan.doc
Normal file
BIN
standort/anschreiben/alt/rahmenplan.doc
Normal file
Binary file not shown.
BIN
standort/anschreiben/alt/rahmenplan.pdf
Normal file
BIN
standort/anschreiben/alt/rahmenplan.pdf
Normal file
Binary file not shown.
BIN
standort/anschreiben/alt/urlaubskarte.doc
Normal file
BIN
standort/anschreiben/alt/urlaubskarte.doc
Normal file
Binary file not shown.
BIN
standort/anschreiben/alt/urlaubskarte.pdf
Normal file
BIN
standort/anschreiben/alt/urlaubskarte.pdf
Normal file
Binary file not shown.
48
standort/anschreiben/alt/urlaubskarte.php
Normal file
48
standort/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();
|
||||
|
||||
|
||||
|
327
standort/anschreiben/alt/zuweisungschreiben_anwaerter.php
Normal file
327
standort/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
standort/anschreiben/alt/zuweisungsschreiben_praxisstelle.doc
Normal file
BIN
standort/anschreiben/alt/zuweisungsschreiben_praxisstelle.doc
Normal file
Binary file not shown.
BIN
standort/anschreiben/alt/zuweisungsschreiben_praxisstelle.pdf
Normal file
BIN
standort/anschreiben/alt/zuweisungsschreiben_praxisstelle.pdf
Normal file
Binary file not shown.
287
standort/anschreiben/alt/zuweisungsschreiben_praxisstelle.php
Normal file
287
standort/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
standort/anschreiben/alt/zuweisungsschreiben_pu.php
Normal file
360
standort/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();
|
||||
?>
|
BIN
standort/anschreiben/blanko_ludwigsburg.pdf
Normal file
BIN
standort/anschreiben/blanko_ludwigsburg.pdf
Normal file
Binary file not shown.
BIN
standort/anschreiben/blanko_ludwigsburg_alt.pdf
Normal file
BIN
standort/anschreiben/blanko_ludwigsburg_alt.pdf
Normal file
Binary file not shown.
BIN
standort/anschreiben/urlaubskarte.doc
Normal file
BIN
standort/anschreiben/urlaubskarte.doc
Normal file
Binary file not shown.
BIN
standort/anschreiben/urlaubskarte.pdf
Normal file
BIN
standort/anschreiben/urlaubskarte.pdf
Normal file
Binary file not shown.
321
standort/anschreiben/zuweisung_erstantrag_student.php
Normal file
321
standort/anschreiben/zuweisung_erstantrag_student.php
Normal file
@ -0,0 +1,321 @@
|
||||
<?php
|
||||
|
||||
########Kontaktdaten HS #####################
|
||||
$db = dbconnect();
|
||||
$res_ansp = $db->query("SELECT wert1 name, wert2 mail FROM parameter WHERE pid='6'");
|
||||
$row_ansp = $res_ansp->fetch_array();
|
||||
|
||||
$res_kontakt = $db->query("SELECT wert1 tel, wert2 fax FROM parameter WHERE pid='5'");
|
||||
$row_kontakt = $res_kontakt->fetch_array();
|
||||
|
||||
|
||||
$heute_format = date("d.m.Y", mktime(0, 0, 0, date("m"), date("d"), date("Y"))); // ISO-8601 Format wie in der Datenbank: Formatierung für Vergleiche erforderlich
|
||||
|
||||
$pdf->Image('anschreiben/logo.jpg', 116, 10,64); #http://www.fpdf.de/funktionsreferenz/?funktion=Image
|
||||
|
||||
$pdf->SetFont('Arial', 'B', 10);
|
||||
$pdf->SetY(56);
|
||||
#$pdf->SetTextColor(255,0,0);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Zulassung", 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Arial', '', 8);
|
||||
$pos=$pdf->GetY()+3.7;
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Ludwigsburg,", 0, 'L');
|
||||
|
||||
|
||||
$pdf->SetFont('Arial', '', 8);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(143.1);
|
||||
$pdf->MultiCell(47, 3, "$heute_format", 0, 'R');
|
||||
|
||||
$pos=$pdf->GetY()+0.3;
|
||||
|
||||
$pdf->SetFont('Arial', '', 8);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Bearbeiterin", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Arial', '', 8);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(143.1);
|
||||
$pdf->MultiCell(47, 3, "$row_ansp[name]", 0, 'R');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+0.3;
|
||||
|
||||
$pdf->SetFont('Arial', '', 8);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Telefon", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Arial', '', 8);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(143.1);
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[tel]", 0, 'R');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+0.3;
|
||||
|
||||
$pdf->SetFont('Arial', '', 8);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "Fax", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Arial', '', 8);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(143.1);
|
||||
$pdf->MultiCell(47, 3, "$row_kontakt[fax]", 0, 'R');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+0.3;
|
||||
|
||||
$pdf->SetFont('Arial', '', 8);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(117.9);
|
||||
$pdf->MultiCell(47, 3, "e-mail", 0, 'L');
|
||||
|
||||
$pdf->SetFont('Arial', '', 8);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(143.1);
|
||||
$pdf->MultiCell(47, 3, "$row_ansp[mail]", 0, 'R');
|
||||
|
||||
$pdf->SetFont('Arial', '', 8);
|
||||
$pdf->SetY(45);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(80, 3, "HS Ludwigsburg ".uchr(149)." Postfach 0489 ".uchr(149)." 71604 Ludwigsburg", 0, 'L');
|
||||
|
||||
|
||||
########Kontaktdaten HS Ende #####################
|
||||
|
||||
######## Betreff #################################
|
||||
|
||||
$pdf->SetFont('Arial', 'B', 12);
|
||||
$pdf->SetY(96.2);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(150, 3, "Ausbildung im gehobenen Verwaltungsdienst;", 0, 'L');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+1.8;
|
||||
|
||||
$pdf->SetFont('Arial', 'B', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(150, 3, "Zuweisung zu den Ausbildungsstellen in der praktischen Ausbildung", 0, 'L');
|
||||
|
||||
######## Betreff Ende ############################
|
||||
|
||||
$pos=$pdf->GetY()+7.0;
|
||||
|
||||
$pdf->SetFont('Arial', 'BU', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(150, 3, "Anlagen", 0, 'L');
|
||||
|
||||
$pos=$pdf->GetY()+1.8;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(150, 3, "Urlaubskarte", 0, 'L');
|
||||
|
||||
$pos=$pdf->GetY()+1.8;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(150, 3, "Weitere Bestimmungen zum Zuweisungsbescheid", 0, 'L');
|
||||
|
||||
#################################################################################
|
||||
|
||||
$pos=$pdf->GetY()+6.6;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(150, 3, "Sehr geehrte(r) ANREDE NAME ,", 0, 'L');
|
||||
|
||||
|
||||
$pos=$pdf->GetY()+6.0;
|
||||
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$pdf->SetY($pos);
|
||||
$pdf->SetX(23);
|
||||
$pdf->MultiCell(168, 4.8, "wir weisen Sie gem. § 23 (3) Ausbildungs- und Prüfungsordnung für den gehobenen Verwaltungsdienst (APrOVw gD, GBl. vom 26.09.2007,S.400) für die praktische Ausbildung im Vorbereitungsdienst folgenden Stellen zu:", 0, 'J');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$columns = 5; //five columns
|
||||
|
||||
$pdf->SetStyle("p", "times", "", 12, "130, 0, 30");
|
||||
$pdf->SetStyle("pb", "times", "B", 11, "130, 0, 30");
|
||||
$pdf->SetStyle("t1", "arial", "", 11, "254, 252, 222");
|
||||
$pdf->SetStyle("t1", "arial", "", 11, "0, 151, 200");
|
||||
$pdf->SetStyle("t2", "arial", "", 11, "0, 151, 200");
|
||||
$pdf->SetStyle("t3", "times", "B", 14, "203, 0, 48");
|
||||
$pdf->SetStyle("t4", "arial", "BI", 11, "0, 151, 200");
|
||||
$pdf->SetStyle("hh", "times", "B", 11, "255, 189, 12");
|
||||
$pdf->SetStyle("font", "helvetica", "", 10, "0, 0, 255");
|
||||
$pdf->SetStyle("style", "helvetica", "BI", 10, "0, 0, 220");
|
||||
$pdf->SetStyle("size", "times", "BI", 13, "0, 0, 120");
|
||||
$pdf->SetStyle("color", "times", "BI", 13, "0, 255, 255");
|
||||
|
||||
$ttxt[1] = "<size>Tag-Based MultiCell TABLE</size>
|
||||
|
||||
Done by <t1 href='mailto:klodoma@ar-sd.net'>Bintintan Andrei</t1>";
|
||||
$ttxt[2] = "<p>
|
||||
<t3>Description</t3>
|
||||
|
||||
\tThis method allows printing <t4><TAG></t4> formated text with line breaks. They can be automatic (as soon as the text reaches the right border of the cell) or explicit (via the <pb>\\n</pb> character). As many cells as necessary are output, one below the other.
|
||||
Text can be <hh>aligned</hh>, <hh>centered</hh> or <hh>justified</hh>. Different <font>Font</font>, <size>Sizes</size>, <style>Styles</style>, <color>Colors</color> can be used. The cell block can be framed and the background painted. The behavior/paramaters of the method are the same as to the <t2 href='http://www.fpdf.org/en/doc/multicell.htm'>FPDF Multicell method</t2>. <style href='www.fpdf.org'>Links</style> can be used in any tag.
|
||||
\t<t4>TAB</t4> spaces (<pb>\\t</pb>) can be used. The <t4><<ttags>></t4> Tag name is reserved for the TAB SPACES.</p>
|
||||
|
||||
\tIf no <t4><TAG></t4> is specified then the FPDF current settings are used.\n\n";
|
||||
$ttxt[3] ="\t\t<style>Best Regards</style>";
|
||||
|
||||
|
||||
//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'] = 20;
|
||||
$header_type[1]['WIDTH'] = 30;
|
||||
$header_type[2]['WIDTH'] = 40;
|
||||
$header_type[3]['WIDTH'] = 40;
|
||||
$header_type[4]['WIDTH'] = 20;
|
||||
|
||||
$header_type[0]['TEXT'] = "Header 1";
|
||||
$header_type[1]['TEXT'] = "Header 2 With COLSPAN";
|
||||
$header_type[2]['TEXT'] = "Header 3";
|
||||
$header_type[3]['TEXT'] = "Header 4";
|
||||
$header_type[4]['TEXT'] = "Header 5";
|
||||
|
||||
$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 = 5;
|
||||
$colspan = 1;
|
||||
$rr = 255;
|
||||
|
||||
for ($j=0; $j<30; $j++)
|
||||
{
|
||||
$data = Array();
|
||||
$data[0]['TEXT'] = "No.$j";
|
||||
$data[1]['TEXT'] = "Test Test - $j";
|
||||
$data[2]['TEXT'] = "Test Test - $j";
|
||||
$data[3]['TEXT'] = "Text Longer <p href='www.google.com'>TexTest Longer Text</p> Test Longer Text - $j";
|
||||
$data[4]['TEXT'] = "Test text2 - $j";
|
||||
|
||||
$data[0]['T_SIZE'] = $fsize;
|
||||
$data[1]['T_SIZE'] = 13 - $fsize;
|
||||
$data[3]['T_SIZE'] = 14 - $fsize;
|
||||
|
||||
$data[0]['T_COLOR'] = array($rr, 0, 0);
|
||||
$data[0]['BG_COLOR'] = array($rr, $rr, $rr);
|
||||
$data[3]['T_COLOR'] = array($rr, 240, 240);
|
||||
$data[3]['BG_COLOR'] = array($rr, 100, 135);
|
||||
|
||||
$fsize++;
|
||||
if ($fsize > 11) $fsize = 5;
|
||||
|
||||
if ($j>3 && $j<13){
|
||||
$data[0]['TEXT'] = "Colspan Example$j";
|
||||
$data[0]['COLSPAN'] = $colspan;
|
||||
$data[0]['BG_COLOR'] = array($rr, 0, 0);
|
||||
$data[0]['T_COLOR'] = array(255, 255, $rr);
|
||||
$colspan++;
|
||||
if ($colspan>5) $colspan = 1;
|
||||
}
|
||||
|
||||
if ($j>15 && $j<25){
|
||||
$data[2]['TEXT'] = "Colspan Example$j";
|
||||
$data[2]['COLSPAN'] = $colspan;
|
||||
$data[2]['BG_COLOR'] = array($rr, 0, 0);
|
||||
$data[2]['T_COLOR'] = array(255, 255, $rr);
|
||||
$colspan++;
|
||||
if ($colspan>3) $colspan = 1;
|
||||
}
|
||||
|
||||
if ($j>1){
|
||||
$data[2]['BG_COLOR'] = array(255-$rr, $rr, $rr);
|
||||
$data[2]['T_COLOR'] = array(255, 255, $rr);
|
||||
}
|
||||
|
||||
if ($j==0){
|
||||
$data[0]['TEXT'] = "Top Right Align <p>Align Top</p> Right Right Align ";
|
||||
$data[0]['T_ALIGN'] = "R";
|
||||
$data[0]['V_ALIGN'] = "T";
|
||||
|
||||
$data[1]['TEXT'] = "Middle Center Align Bold Italic";
|
||||
$data[1]['T_ALIGN'] = "C";
|
||||
$data[1]['T_TYPE'] = "BI";
|
||||
$data[1]['V_ALIGN'] = "M";
|
||||
|
||||
$data[2]['TEXT'] = "\n\n\n\n\nBottom Left Align";
|
||||
$data[2]['T_ALIGN'] = "L";
|
||||
$data[2]['V_ALIGN'] = "B";
|
||||
|
||||
$data[3]['TEXT'] = "Middle Justified Align Longer text";
|
||||
$data[3]['T_ALIGN'] = "J";
|
||||
$data[3]['V_ALIGN'] = "M";
|
||||
|
||||
$data[4]['TEXT'] = "TOP RIGHT Align";
|
||||
$data[4]['T_ALIGN'] = "R";
|
||||
$data[4]['V_ALIGN'] = "T";
|
||||
}
|
||||
|
||||
if ($j>0 and $j<4){
|
||||
$data[0]['TEXT'] = "";
|
||||
$data[1]['TEXT'] = "";
|
||||
$data[2]['TEXT'] = "";
|
||||
$data[3]['TEXT'] = "";
|
||||
$data[4]['TEXT'] = "";
|
||||
$data[$j-1]['TEXT'] = $ttxt[$j];
|
||||
$data[$j-1]['COLSPAN'] = 4;
|
||||
$data[$j-1]['T_ALIGN'] = "J";
|
||||
$data[$j-1]['LN_SIZE'] = 5;
|
||||
}
|
||||
|
||||
if ($j== 17) {
|
||||
$data[1]['TEXT'] = "<size>Colspan = 4 and ... this\nCELL\nIS\nSPLITTED. Turn this split off with:\nFPDF_TABLE::Set_Table_SplitMode(true(default)/false) function</size>";
|
||||
$data[1]['T_ALIGN'] = "C";
|
||||
$data[1]['BG_COLOR'] = array(240, 245, 221);
|
||||
$data[1]['COLSPAN'] = 4;
|
||||
}
|
||||
|
||||
|
||||
$rr -= 25;
|
||||
if ($rr<100) $rr = 255;
|
||||
|
||||
$pdf->Draw_Data($data);
|
||||
}
|
||||
|
||||
$pdf->Draw_Table_Border();
|
||||
?>
|
Reference in New Issue
Block a user