first commit
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user