From 5f80801abbbc4e4845287ee91e9548e9f3edff9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Wed, 23 Apr 2014 12:38:18 +0200 Subject: [PATCH] lala --- app/Controller/PdfController.php | 9 +++++---- app/Controller/RegistrationController.php | 2 +- app/View/Elements/barleft.ctp | 2 +- app/View/Pdf/opening.ctp | 10 ++++++++-- app/View/Registration/main.ctp | 4 ++-- 5 files changed, 17 insertions(+), 10 deletions(-) diff --git a/app/Controller/PdfController.php b/app/Controller/PdfController.php index 9c69545..e25fb59 100644 --- a/app/Controller/PdfController.php +++ b/app/Controller/PdfController.php @@ -25,10 +25,11 @@ class PdfController extends AppController { $this->render('/Home/error'); }else{ $this->set('application',$application); - //$cv = $this->DreamjobCvEntry->find('all',array('conditions' => array('worker_id'=> $application['DreamjobJobApplication']['worker_id']))); - //$this->set("cv",$cv); - //$cvp0 = $this->DreamjobListCvCategory->find('first',array('conditions' => array('DreamjobListCvCategory.position' => 0))); - //$this->set('cvp0', $cvp0); + $cv = $this->DreamjobCvEntry->find('all',array('conditions' => array('worker_id'=> $application['DreamjobJobApplication']['worker_id']))); + $this->set("cv",$cv); + $cvp0 = $this->DreamjobListCvCategory->find('first',array('conditions' => array('DreamjobListCvCategory.position' => 0))); + $this->set('cvp0', $cvp0); + $this->set('edit', false); $this->layout = 'pdf'; $this->render('/Pdf/opening'); } diff --git a/app/Controller/RegistrationController.php b/app/Controller/RegistrationController.php index 885ed5b..10289aa 100644 --- a/app/Controller/RegistrationController.php +++ b/app/Controller/RegistrationController.php @@ -10,7 +10,7 @@ class RegistrationController extends AppController { * @var array */ public $componens = array('MiconwareSession'); - public $uses = array('Mannerofaddress','DreamjobListGraducation','DreamjobListBranch','DreamjobWorker','DreamjobCompany','User'); + public $uses = array('Mannerofaddress','DreamjobListGraducation','DreamjobListBranch','DreamjobWorker','DreamjobCompany','User','DreamjobListCity'); public function main() { diff --git a/app/View/Elements/barleft.ctp b/app/View/Elements/barleft.ctp index 4414989..3b22377 100755 --- a/app/View/Elements/barleft.ctp +++ b/app/View/Elements/barleft.ctp @@ -51,6 +51,6 @@ if($isLoggedin){ --> Html->link(__('dreamjob.company.to'),array('controller'=>'home', 'action'=>'home'),array("class" => "btn btn-primary")); + echo $this->Html->link(__('dreamjob.company.startpage'),array('controller'=>'home', 'action'=>'home'),array("class" => "btn btn-primary")); } ?> diff --git a/app/View/Pdf/opening.ctp b/app/View/Pdf/opening.ctp index b3962ea..67ea039 100644 --- a/app/View/Pdf/opening.ctp +++ b/app/View/Pdf/opening.ctp @@ -1,6 +1,12 @@ element('user_worker_cv',array('profil'=>array('User'=>$application['WorkerUser'] + ,'AppUser'=>$application['AppUserWorker'],'DreamjobWorker'=>$application['DreamjobWorker'],'DreamjobListGraducation'=>$application['WorkerGraducation'],'DreamjobListCity'=>$application['DreamjobWorkerListCity']))); +//die($cvinhalt); +//$cvinhalt = "asd"; ob_end_clean(); + + $dev = 1; $tcpdf = new XTCPDF(); @@ -56,8 +62,8 @@ $tcpdf->SetY(35); $tcpdf->SetTextColor(0, 0, 0); $tcpdf->SetFont($tcpdf->font); -$tcpdf->writeHTMLCell(0,235,10,35, $this->element('user_worker_cv'), $dev,0,false,true,'L'); - +//$tcpdf->writeHTML(0,235,10,35, $cvinhalt, $dev,0,false,true,'L'); +$tcpdf->writeHTML($cvinhalt); $tcpdf->SetAutoPageBreak( false ); //Anhang diff --git a/app/View/Registration/main.ctp b/app/View/Registration/main.ctp index 52298e7..048b1e1 100644 --- a/app/View/Registration/main.ctp +++ b/app/View/Registration/main.ctp @@ -6,8 +6,8 @@

Html->link(__('dreamjob.worker'),array('controller'=>'registration','action'=>'worker')); + echo $this->Html->link(__('dreamjob.registration.worker'),array('controller'=>'registration','action'=>'worker')); echo '
'; - echo $this->Html->link(__('dreamjob.company'),array('controller'=>'registration','action'=>'company')); + echo $this->Html->link(__('dreamjob.registration.company'),array('controller'=>'registration','action'=>'company')); ?>