Merge branch 'main' of ssh://www.ja-schwarz.de:2222/aschwarz/stellenantrag_neu into main

This commit is contained in:
aschwarz 2024-02-22 14:35:03 +01:00
commit cec9d00f91

View File

@ -1,5 +1,4 @@
<?php
include("kurs/datenbankanbindung.php"); // f&uuml;gt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
$uid1=$_COOKIE["uid1"];
@ -55,7 +54,7 @@ $pdf->SetFont('Arial', '', 11);
$pdf->SetY(61.3);
$pdf->SetX(24);
if($row_hs['hs'] == 'K' or $row_hs['hs'] == 'k'){
$pdf->MultiCell(0, 4.5, "Hochschule Kehl\nServicezentrum Studium & Lehre\nKinzigallee 1\n77694 Kehl", 0, 'L');
$pdf->MultiCell(0, 4.5, "Hochschule Kehl\nPostfach 1549\n77675 Kehl", 0, 'L');
}else{
$pdf->MultiCell(0, 4.5, "Hochschule Ludwigsburg\nZulassungsamt\nReuteallee 36\n71634 Ludwigsburg", 0, 'L');
}
@ -92,8 +91,8 @@ $pdf->SetY(120);
for($i=0; $i<$columns; $i++) $header_type[$i] = $table_default_header_type;
$header_type[0]['WIDTH'] = 6;
$header_type[1]['WIDTH'] = 60;
$header_type[2]['WIDTH'] = 64;
$header_type[1]['WIDTH'] = 50;
$header_type[2]['WIDTH'] = 74;
$header_type[3]['WIDTH'] = 35;
$header_type[0]['TEXT'] = "";
@ -130,6 +129,7 @@ $pdf->SetY(120);
, t1.saaid saaid
, t1.aendid
, t1.status
, t1.umzugsverg
FROM stan_antrag t1
WHERE t1.status = (
SELECT MAX(t2.status)
@ -141,13 +141,13 @@ $pdf->SetY(120);
AND t1.uid = '$uid1'
AND (t1.zuweisung is NULL OR t1.zuweisung='Z')
ORDER BY beginnform";
#echo $query;
#exit;
$result = $db->query ($query)
or die ("Cannot execute query1");
$hinweis_umzug=0;
while ($row = $result->fetch_array())
{
$data = Array();
@ -158,7 +158,12 @@ $pdf->SetY(120);
$res4 = $db->query("SELECT bez, ort, str, plz FROM stan_dienststellen WHERE dst_id='$row[dst_id]'");
$row4 = $res4->fetch_array();
if($row4['bez'] != ''){
$dst_bez = $row4['bez']." ".$row4['name'];
if($row['umzugsverg'] == 'J'){
$dst_bez = "$row4[bez] ".trim($row4['name'])."*";
$hinweis_umzug=1;
}else{
$dst_bez = $row4['bez']." ".$row4['name'];
}
$ort = $row4['ort'];
$str = $row4['str'];
$plz = $row4['plz'];
@ -166,7 +171,12 @@ $pdf->SetY(120);
if($row4['bez'] == ''){
$res5 = $db->query("SELECT bez, ort, str, plz FROM stan_dienststellen_tmp WHERE dst_id='$row[dst_id]'");
$row5 = $res5->fetch_array();
$dst_bez = $row5['bez']." ".$row5['name'];
if($row['umzugsverg'] == 'J'){
$dst_bez = "$row5[bez] $row5[name]*";
$hinweis_umzug=1;
}else{
$dst_bez = $row5['bez']." ".$row5['name'];
}
$ort = $row5['ort'];
$str = $row5['str'];
$plz = $row5['plz'];
@ -207,7 +217,7 @@ $pdf->SetY(120);
$data[1]['T_ALIGN'] = "L";
$data[1]['V_ALIGN'] = "M";
$data[2]['TEXT'] = "$row2[bezeichnung]";
$data[2]['TEXT'] = trim($row2['bezeichnung']);
$data[2]['T_ALIGN'] = "L";
$data[2]['V_ALIGN'] = "M";
@ -373,7 +383,14 @@ $pdf->SetY($pos);
if($hinweis_umzug == 1){
$pos=$pdf->GetY();
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($pos);
$pdf->SetX(24);
$pdf->MultiCell(190, 5, "* Für diesen Praxisabschnitt wird eine Umzugsvergütung gewährt.", 0, 'J');
}
@ -393,7 +410,7 @@ $pdf->SetFont('Arial', 'B', 12);
$pdf->SetY($pos);
$pdf->SetX(31);
if($row_hs['hs'] == 'K' or $row_hs['hs'] == 'k'){
$pdf->MultiCell(160, 5, "Die Hinweise der Hochschule Kehl zur praktischen Ausbildung gem. § 22 AprOVw gD (Praxisjahr) habe ich zur Kenntnis genommen.", 0, 'L');
$pdf->MultiCell(160, 5, "Die Hinweise der Hochschule Kehl zur praktischen Ausbildung gem. § 23 AprOVw gD (Praxisjahr) habe ich zur Kenntnis genommen.", 0, 'L');
}else{
$pdf->MultiCell(160, 5, "Die Hinweise der Hochschule Ludwigsburg zur praktischen Ausbildung gem. § 23 AprOVw gD (Praxisjahr) habe ich zur Kenntnis genommen.", 0, 'L');
}