[Tutos-commits] tutos/php/report-engine/rep_envelope rep_envelope.pinc, 1.3, 1.4
Projects / CRM / PLM / Calendar / Tasks / SCRUM / Test / Inventory
Brought to you by:
gokohnert
From: Gero K. <gok...@us...> - 2007-09-25 13:34:59
|
Update of /cvsroot/tutos/tutos/php/report-engine/rep_envelope In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv24669/report-engine/rep_envelope Modified Files: rep_envelope.pinc Log Message: fix Index: rep_envelope.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/report-engine/rep_envelope/rep_envelope.pinc,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- rep_envelope.pinc 23 Jun 2006 12:06:03 -0000 1.3 +++ rep_envelope.pinc 25 Sep 2007 13:34:58 -0000 1.4 @@ -43,22 +43,22 @@ $pdf->AddPage(); $h = 5; - $x = 7; - $y = 9; + $x = 7; + $y = 9; $pdf->SetFont('Arial','',14); $pdf->Text($x,$y,$this->obj->getFullName()); - $y += $h; + $y += $h; $pdf->Text($x,$y,$this->loc->street1); - $y += $h; + $y += $h; $pdf->Text($x,$y,$this->loc->street2); - $y += $h; + $y += $h; $pdf->Text($x,$y,$this->loc->city); - $y += $h; + $y += $h; $pdf->Text($x,$y,$this->loc->zip); - $y += $h; + $y += $h; $pdf->Text($x,$y,$lang['countrycde'][$this->loc->country]); - $y += $h; + $y += $h; $pdf->Close(); @@ -68,7 +68,7 @@ if(headers_sent()) { Fatal_Error('Some data has already been output to browser, can\'t send PDF file'); } - Header("Content-Disposition: inline; filename=\"". $this->obj->name .".pdf\""); + Header("Content-Disposition: inline; filename=\"". $this->obj->getFullName() .".pdf\""); Header("Content-Description: Upload from TUTOS" ); Header('Content-Length: '.strlen($data)); return $data; @@ -89,9 +89,9 @@ $r .= "<select name=\"loc\">\n"; foreach ($this->obj->location as $i => $f) { $r .= "<option value=\"".$i."\">". $f->getFullname() ."</option>\n"; - } + } $r .= "</select>\n"; - return $r; + return $r; } function getFullname() { |