48 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
| <?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();
 | |
| 
 | |
| 
 | |
| 
 | |
| $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->addPage();
 | |
| 
 | |
| $pdf->useTemplate($tplidx,0,0,0);
 | |
| 
 | |
| 
 | |
| 
 | |
| $pdf->SetFont('Times', '', 12);
 | |
| 
 | |
| $pdf->SetY(59.5);
 | |
| 
 | |
| $pdf->SetX(65);
 | |
| 
 | |
| $pdf->Cell(0, 3, "$row[vorname] $row[nachname]", 0, 0, 'L');
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| $pdf->SetFont('Times', '', 12);
 | |
| 
 | |
| $pdf->SetY(269.4);
 | |
| 
 | |
| $pdf->SetX(107);
 | |
| 
 | |
| $pdf->Cell(0, 3, "$row1[antrag_bis]", 0, 0, 'L');
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| //$pdf->Output("newpdf.pdf","i");
 | |
| 
 | |
| //$pdf->closeParsers();
 | |
| 
 | |
| ?>
 |