From 28525f0b4424198b35c6a7b5d853c503317cbdc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Wed, 23 Apr 2014 14:55:40 +0200 Subject: [PATCH] cv im pdf --- app/View/Elements/user_worker_cv.ctp | 7 +++++++ app/View/Pdf/opening.ctp | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/View/Elements/user_worker_cv.ctp b/app/View/Elements/user_worker_cv.ctp index da7281f..5455dab 100644 --- a/app/View/Elements/user_worker_cv.ctp +++ b/app/View/Elements/user_worker_cv.ctp @@ -2,10 +2,12 @@ /* * */ + if(empty($toPDF)){ ?>

'.__('dreamjob.edit').''; @@ -15,8 +17,10 @@ if($edit){

+

@@ -57,6 +61,8 @@ if($edit){ if($cvp0['DreamjobListCvCategory']['id'] != $cvc['DreamjobListCvCategory']['id']){ ?>
+
+

+
diff --git a/app/View/Pdf/opening.ctp b/app/View/Pdf/opening.ctp index 67ea039..09ff490 100644 --- a/app/View/Pdf/opening.ctp +++ b/app/View/Pdf/opening.ctp @@ -1,13 +1,13 @@ element('user_worker_cv',array('profil'=>array('User'=>$application['WorkerUser'] +$cvinhalt = $this->element('user_worker_cv',array('toPDF'=>true,'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; +$dev = 0; $tcpdf = new XTCPDF(); $tcpdf->SetAuthor("Miconware");