Autor | Zpráva | ||
---|---|---|---|
mackopu Profil |
#1 · Zasláno: 10. 1. 2008, 10:19:05 · Upravil/a: mackopu
|
||
djlj Profil |
#2 · Zasláno: 10. 1. 2008, 12:01:05
Má to písmo v sobě i diakritiku?
|
||
mackopu Profil |
#3 · Zasláno: 10. 1. 2008, 13:02:21
Ano, to je ono, teď na to koukám! Chtělo to definovat písmo přímo ve funkci FancyTable. Takže ta teď vypadá takto:
function FancyTable($header,$data) { //Colors, line width and bold font $this->SetFillColor(26,49,79); $this->SetTextColor(255); $this->SetDrawColor(128,0,0); $this->SetLineWidth(.3); $this->SetFont('arialbd',''); //Header $w=array(40,70,20,20,10,10,20); // šířky sloupců for($i=0;$i<count($header);$i++) $this->Cell($w[$i],5,$header[$i],1,0,'C',1); $this->Ln(); //Color and font restoration $this->SetFillColor(230,230,230); $this->SetTextColor(0); $this->SetFont('arial',''); //Data $fill=0; foreach($data as $row) { $this->Cell($w[0],4,$row[0],'LR',0,'L',$fill); $this->Cell($w[1],4,$row[1],'LR',0,'L',$fill); $this->Cell($w[2],4,$row[2],'LR',0,'C',$fill); $this->Cell($w[3],4,$row[3],'LR',0,'C',$fill); $this->Cell($w[4],4,$row[4],'LR',0,'C',$fill); $this->Cell($w[5],4,$row[5],'LR',0,'C',$fill); $this->Cell($w[6],4,$row[6],'LR',0,'R',$fill); $this->Ln(); $fill=!$fill; } $this->Cell(array_sum($w),0,'','T'); } A funguje to. Díky! |
||
Časová prodleva: 16 let
|
0