From 38bd0827ee15767b67af55453c78bd6ea1745d78 Mon Sep 17 00:00:00 2001 From: wlx Date: Tue, 22 Nov 2011 12:46:58 +0000 Subject: [PATCH] =?UTF-8?q?=E5=BC=95=E5=85=A5=E6=96=B0=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/models/ApplicantPDF.php | 32 +++++++++++++---------------- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/application/models/ApplicantPDF.php b/application/models/ApplicantPDF.php index 032ab2ba..272ad3e3 100644 --- a/application/models/ApplicantPDF.php +++ b/application/models/ApplicantPDF.php @@ -10,36 +10,32 @@ class ApplicantPDF extends FPDI function drawWestdc() { $pagecount = $this->setSourceFile($this->template); - $tplidx = $this->importPage(1, '/MediaBox'); + $tplidx = $this->importPage(1); $this->addPage(); $this->useTemplate($tplidx); $this->AddUniGBhwFont('ugb','AdobeSongStd-Light-Acro'); $this->SetFont('ugb','',$this->fontsize); - $this->setXY(45,62); + $this->setXY(71,45); $this->Write($this->fontsize,$this->data['realname']); - $this->SetXY(34,72); + $this->SetXY(34,55); $this->MultiCell (166, 4, str_replace(";","\n",$this->data['datalist'])); - $this->setXY(30,110); + $this->setXY(30,100); $this->MultiCell(166,4,trim($this->data['project'])); //$this->setXY(34,239); //$this->Write($this->fontsize,$this->data['realname']); - $this->setXY(34,245); + $this->setXY(32,225); $this->Write($this->fontsize,$this->data['unit']); - $this->setXY(100,245); - $this->Write($this->fontsize,$this->data['address']); - $this->setXY(164,245); - $this->Write($this->fontsize,$this->data['postcode']); - $this->setXY(34,251); + $this->setXY(112,225); $this->Write($this->fontsize,$this->data['email']); - $this->setXY(100,251); + $this->setXY(174,225); + $this->Write($this->fontsize,$this->data['postcode']); + $this->setXY(32,231); + $this->Write($this->fontsize,$this->data['address']); + $this->setXY(112,231); $this->Write($this->fontsize,$this->data['phone']); - $t=getdate(); - $this->setXY(163,251); - $this->Write($this->fontsize,$t['year']); - $this->setXY(175,251); - $this->Write($this->fontsize,$t['mon']); - $this->setXY(184,251); - $this->Write($this->fontsize,$t['mday']); + $t=date("Y-m-d"); + $this->setXY(174,231); + $this->Write($this->fontsize,$t); } } ?> \ No newline at end of file