2019-04 Update Mailversand
Archiv
Auswertung
admin
balance_img
fancybox
images
js
mail
standort
#prints
FCKeditor
anschreiben
images
prints
#alt
Praxisstellen-Dateien
decoders
doc
font
tutorial
20k_c1.txt
20k_c2.txt
calligra.afm
calligra.php
calligra.ttf
calligra.z
countries.txt
index.htm
logo.png
logo_pb.png
makefont.php
tuto1.htm
tuto1.php
tuto2.htm
tuto2.php
tuto3.htm
tuto3.php
tuto4.htm
tuto4.php
tuto5.htm
tuto5.php
tuto6.htm
tuto6.php
tuto7.htm
tuto7.php
FAQ.htm
LICENSE
NOTICE
Praxisstellen.doc
Praxisstellen.htm
Zustimmung.doc
changelog.txt
demo.php
fpdf.css
fpdf.php
fpdf_tpl.php
fpdi.php
fpdi_pdf_parser.php
histo.htm
install.txt
newpdf.pdf
pdf_context.php
pdf_gen.php
pdf_parser.php
pdfdoc.pdf
praxisstellen.pdf
praxisstellen.php
wrapper_functions.php
zustimmung.pdf
zustimmung.php
Praxisstellen-Dateien
decoders
doc
filters
font
listen
makefont
tutorial
02_Liste_Erstpruefer_Student_Zweitpruefer.php
03_Liste_Zweitpruefer_Student_Erstpruefer.php
FAQ.htm
LICENSE
NOTICE
Praxisstellen.doc
Praxisstellen.htm
Zustimmung.doc
as_utf_class.php
blanko_ludwigsburg.pdf
changelog.txt
class.fpdf_table.php
class.multicelltag.php
class.string_tags.php
deckblatt.pdf
deckblatt.php
deckblatt_doz.php
demo.php
ex.php
fpdf.css
fpdf.php
fpdf_tpl.php
fpdi.php
fpdi_bridge.php
fpdi_pdf_parser.php
histo.htm
install.txt
newpdf.pdf
pdf_context.php
pdf_gen.php
pdf_parser.php
pdfdoc.pdf
praxisstellen.pdf
praxisstellen.php
sozuweisung.php
table_def.inc
table_def_kehl.inc
teilnehmer.php
teilnehmer_alt.php
teilnehmer_neu.php
wrapper_functions.php
zustimmung.pdf
zustimmung.php
browserSniffer.js
dynCalendar.css
dynCalendar.js
hauptframe.php
hauptframe_jahr.php
index.php
index_frame.htm
jahrgang.php
kennwortwechsel.php
logout.php
mail_teilnehmer.php
mail_teilnehmer_alt.php
mail_teilnehmer_neu.php
menuframe.php
pers_daten_ver.php
termine.php
topframe.php
vert_bereich.php
stud
#pdf_gen.php
#pdf_gen_alt.php
#pdf_gen_ges_lubu.php
#pdf_gen_kehl.php
#pdf_gen_kehl_alt.php
#pdf_gen_kehl_neu.php
#pdf_gen_neu.php
++ Printqueue zurücksetzen.txt.lnk
.gitignore
Auswertung_besuchte Stellen der Studs - alle Jahrgänge.sql
Auswertung_besuchte Stellen der Studs.sql
Pflicht.sql
Trigger.sql
VIEW_stan_zuw_so.sql
VIEW_stan_zuw_so_neu.sql
anz_anm.php
bearbeiten_neu.php
historie.php
historie_alt.php
historie_neu.php
index.php
index_db.php
index_ldap.php
ldap_info.php
ldap_info_hsnet.php
login.css
menuframe.php
styles_pc.css
test.html
umzugsverguetung.sql
84 lines
1.7 KiB
PHP
Executable File
84 lines
1.7 KiB
PHP
Executable File
<?php
|
|
require('../fpdf.php');
|
|
|
|
class PDF extends FPDF
|
|
{
|
|
function Header()
|
|
{
|
|
global $title;
|
|
|
|
//Arial bold 15
|
|
$this->SetFont('Arial','B',15);
|
|
//Calculate width of title and position
|
|
$w=$this->GetStringWidth($title)+6;
|
|
$this->SetX((210-$w)/2);
|
|
//Colors of frame, background and text
|
|
$this->SetDrawColor(0,80,180);
|
|
$this->SetFillColor(230,230,0);
|
|
$this->SetTextColor(220,50,50);
|
|
//Thickness of frame (1 mm)
|
|
$this->SetLineWidth(1);
|
|
//Title
|
|
$this->Cell($w,9,$title,1,1,'C',1);
|
|
//Line break
|
|
$this->Ln(10);
|
|
}
|
|
|
|
function Footer()
|
|
{
|
|
//Position at 1.5 cm from bottom
|
|
$this->SetY(-15);
|
|
//Arial italic 8
|
|
$this->SetFont('Arial','I',8);
|
|
//Text color in gray
|
|
$this->SetTextColor(128);
|
|
//Page number
|
|
$this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');
|
|
}
|
|
|
|
function ChapterTitle($num,$label)
|
|
{
|
|
//Arial 12
|
|
$this->SetFont('Arial','',12);
|
|
//Background color
|
|
$this->SetFillColor(200,220,255);
|
|
//Title
|
|
$this->Cell(0,6,"Chapter $num : $label",0,1,'L',1);
|
|
//Line break
|
|
$this->Ln(4);
|
|
}
|
|
|
|
function ChapterBody($file)
|
|
{
|
|
//Read text file
|
|
$f=fopen($file,'r');
|
|
$txt=fread($f,filesize($file));
|
|
fclose($f);
|
|
//Times 12
|
|
$this->SetFont('Times','',12);
|
|
//Output justified text
|
|
$this->MultiCell(0,5,$txt);
|
|
//Line break
|
|
$this->Ln();
|
|
//Mention in italics
|
|
$this->SetFont('','I');
|
|
$this->Cell(0,5,'(end of excerpt)');
|
|
}
|
|
|
|
function PrintChapter($num,$title,$file)
|
|
{
|
|
$this->AddPage();
|
|
$this->ChapterTitle($num,$title);
|
|
$this->ChapterBody($file);
|
|
}
|
|
}
|
|
|
|
$pdf=new PDF();
|
|
$title='20000 Leagues Under the Seas';
|
|
$pdf->SetTitle($title);
|
|
$pdf->SetAuthor('Jules Verne');
|
|
$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt');
|
|
$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt');
|
|
$pdf->Output();
|
|
?>
|