first commit
This commit is contained in:
90
prints3/praxisstellen.php
Executable file
90
prints3/praxisstellen.php
Executable file
@ -0,0 +1,90 @@
|
||||
<?php
|
||||
|
||||
include("kurs/datenbankanbindung.php"); // fügt die Datenbankanbindung ein: Sys:\php\includes\kurs\datenbankanbindung.php
|
||||
|
||||
$uid1=$_COOKIE["uid1"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
error_reporting (E_ALL);
|
||||
|
||||
|
||||
|
||||
define('FPDF_FONTPATH','font/');
|
||||
|
||||
require('as_utf_class.php');
|
||||
|
||||
|
||||
|
||||
$pdf= new utfFPDF();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pagecount = $pdf->setSourceFile("praxisstellen.pdf");
|
||||
|
||||
|
||||
|
||||
$tplidx = $pdf->ImportPage(1);
|
||||
|
||||
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
|
||||
|
||||
$res = $db->query("SELECT mtknr, nachname, vorname, postrasse, poort, poplz FROM stud WHERE uid='$uid1'");
|
||||
|
||||
$row = $res->fetch_array();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->addPage();
|
||||
|
||||
$pdf->useTemplate($tplidx,0,0,0);
|
||||
|
||||
$pdf->SetFont('Arial', '', 11);
|
||||
|
||||
$pdf->SetY(26);
|
||||
|
||||
$pdf->SetX(24);
|
||||
|
||||
$pdf->Cell(0, 3, "Matrikelnr.: $row[mtknr]" , 0, 0, 'L');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->SetFont('Arial', '', 7);
|
||||
|
||||
$pdf->SetY(52);
|
||||
|
||||
$pdf->SetX(24);
|
||||
|
||||
$pdf->Cell(0, 3, "$row[vorname] $row[nachname] - $row[postrasse] - $row[poplz] $row[poort]", 0, 0, 'L');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$pdf->SetLineWidth(0.2);
|
||||
|
||||
|
||||
|
||||
// Linie zeichnen
|
||||
|
||||
$pdf->Line(23, 55, 100, 55);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$query = "SELECT bezeichnung, bereich, str, plz, ort, sachbereich, DATE_FORMAT(beginn, '%d.%m.%Y') beginn, DATE_FORMAT(beginn, '%Y%m%d') beginnform, DATE_FORMAT(ende, '%d.%m.%Y') ende
|
||||
|
Reference in New Issue
Block a user