first commit

This commit is contained in:
aschwarz
2023-02-27 11:44:33 +01:00
commit 7055693182
2401 changed files with 450050 additions and 0 deletions

90
prints3/praxisstellen.php Executable file
View File

@ -0,0 +1,90 @@
<?php
include("kurs/datenbankanbindung.php"); // f&uuml;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