2019-04 Update Mailversand
Archiv
Auswertung
admin
balance_img
fancybox
images
mail
standort
stud
FCKeditor
dyncalendar
images
livesearch
overlib
prints
decoders
doc
filters
font
makefont
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
FPDI-1.6.1.zip
LICENSE
NOTICE
Praxisstellen.doc
Praxisstellen.htm
Praxisstellen_neu.doc
Zustimmung.doc
ali.php
as_utf_class.php
changelog.htm
changelog.txt
class.fpdf_table.php
class.multicelltag.php
class.string_tags.php
composer.json
demo.php
ex.pdf
ex.php
fpdf.css
fpdf.php
fpdf181.zip
fpdf_tpl.php
fpdi.php
fpdi_bridge.php
fpdi_pdf_parser.php
histo.htm
info.htm
install.txt
klassenliste.php
license.txt
newpdf.pdf
own.php
pdf_context.php
pdf_parser.php
pdf_table.zip
pdfdoc.pdf
praxisstellen.pdf
praxisstellen.php
praxisstellen_neu.php
table_def.inc
table_def_zuweis.inc
wrapper_functions.php
zustimmung.pdf
zustimmung.php
###antrag.php
#check_aend.php
#index.php
Kopie von antrag_aend.php
ag_standorte.pdf
ag_tage.php
ag_tage_alt.php
ag_tage_neu.php
ag_ubersicht.php
ag_ubersicht_alt.php
ag_ubersicht_neu.php
ajax.js
antrag-mit splitt.php
antrag.php
antrag1.php
antrag2.php
antrag_aend.php
antrag_save.php
bearbeiten.php
bearbeiten1.php
browserSniffer.js
check_aend.php
check_aendantrag.php
check_erstantrag.php
check_splitt_vt.php
check_weitere_daten.php
check_zweig.php
daten_vervollst.php
dynCalendar.css
dynCalendar.js
dyncalendar.php
func_anz_stellen.php
func_anz_stellen.txt
func_check_aend.php
func_check_vertiefungsbereich.php
func_get_block.php
func_pflichtfelder.php
func_pflichtfelder_2019-02-20.php
func_vertiefungsbereich.php
gesamtcheck.php
hauptframe.php
hinweis_aend.php
index - Kopie.php
index.php
index_db.php
index_frame.htm
index_ldap.php
kennwortwechsel.php
livesearch.php
logout.php
menuframe.php
pers_daten_ver.php
status_aend.php
test.php
test1.php
test2.php
text-expand.php
topframe.php
wunschort.php
#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
103 lines
2.3 KiB
PHP
Executable File
103 lines
2.3 KiB
PHP
Executable File
<?php
|
|
require('../fpdf.php');
|
|
|
|
class PDF extends FPDF
|
|
{
|
|
// Load data
|
|
function LoadData($file)
|
|
{
|
|
// Read file lines
|
|
$lines = file($file);
|
|
$data = array();
|
|
foreach($lines as $line)
|
|
$data[] = explode(';',trim($line));
|
|
return $data;
|
|
}
|
|
|
|
// Simple table
|
|
function BasicTable($header, $data)
|
|
{
|
|
// Header
|
|
foreach($header as $col)
|
|
$this->Cell(40,7,$col,1);
|
|
$this->Ln();
|
|
// Data
|
|
foreach($data as $row)
|
|
{
|
|
foreach($row as $col)
|
|
$this->Cell(40,6,$col,1);
|
|
$this->Ln();
|
|
}
|
|
}
|
|
|
|
// Better table
|
|
function ImprovedTable($header, $data)
|
|
{
|
|
// Column widths
|
|
$w = array(40, 35, 40, 45);
|
|
// Header
|
|
for($i=0;$i<count($header);$i++)
|
|
$this->Cell($w[$i],7,$header[$i],1,0,'C');
|
|
$this->Ln();
|
|
// Data
|
|
foreach($data as $row)
|
|
{
|
|
$this->Cell($w[0],6,$row[0],'LR');
|
|
$this->Cell($w[1],6,$row[1],'LR');
|
|
$this->Cell($w[2],6,number_format($row[2]),'LR',0,'R');
|
|
$this->Cell($w[3],6,number_format($row[3]),'LR',0,'R');
|
|
$this->Ln();
|
|
}
|
|
// Closing line
|
|
$this->Cell(array_sum($w),0,'','T');
|
|
}
|
|
|
|
// Colored table
|
|
function FancyTable($header, $data)
|
|
{
|
|
// Colors, line width and bold font
|
|
$this->SetFillColor(255,0,0);
|
|
$this->SetTextColor(255);
|
|
$this->SetDrawColor(128,0,0);
|
|
$this->SetLineWidth(.3);
|
|
$this->SetFont('','B');
|
|
// Header
|
|
$w = array(40, 35, 40, 45);
|
|
for($i=0;$i<count($header);$i++)
|
|
$this->Cell($w[$i],7,$header[$i],1,0,'C',true);
|
|
$this->Ln();
|
|
// Color and font restoration
|
|
$this->SetFillColor(224,235,255);
|
|
$this->SetTextColor(0);
|
|
$this->SetFont('');
|
|
// Data
|
|
$fill = false;
|
|
foreach($data as $row)
|
|
{
|
|
$this->Cell($w[0],6,$row[0],'LR',0,'L',$fill);
|
|
$this->Cell($w[1],6,$row[1],'LR',0,'L',$fill);
|
|
$this->Cell($w[2],6,number_format($row[2]),'LR',0,'R',$fill);
|
|
$this->Cell($w[3],6,number_format($row[3]),'LR',0,'R',$fill);
|
|
$this->Ln();
|
|
$fill = !$fill;
|
|
}
|
|
// Closing line
|
|
$this->Cell(array_sum($w),0,'','T');
|
|
}
|
|
}
|
|
|
|
$pdf = new PDF();
|
|
// Column headings
|
|
$header = array('Country', 'Capital', 'Area (sq km)', 'Pop. (thousands)');
|
|
// Data loading
|
|
$data = $pdf->LoadData('countries.txt');
|
|
$pdf->SetFont('Arial','',14);
|
|
$pdf->AddPage();
|
|
$pdf->BasicTable($header,$data);
|
|
$pdf->AddPage();
|
|
$pdf->ImprovedTable($header,$data);
|
|
$pdf->AddPage();
|
|
$pdf->FancyTable($header,$data);
|
|
$pdf->Output();
|
|
?>
|