From 0b2e8f6a192aef5e60110c039d7a1fe919a9be76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Sat, 16 Aug 2014 09:44:10 +0200 Subject: [PATCH] externe bewerbung Formulat --- app/Controller/JobController.php | 6 ++++++ app/View/Job/application_send_ext.ctp | 2 ++ app/View/Pdf/application_ext.ctp | 4 ++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/Controller/JobController.php b/app/Controller/JobController.php index 7e8da35..0f98f9f 100644 --- a/app/Controller/JobController.php +++ b/app/Controller/JobController.php @@ -392,6 +392,12 @@ class JobController extends AppController { } else { $this->MiconwareSession->setFlash(__('dreamjob.agb.error.notAccept'), 'flash', array('alert' => 'danger')); } + }elseif(count($this->request->query)>0){ + $this->request->data['DreamjobUser']['mail'] = $this->request->query('mail'); + $this->request->data['AppUser']['nickname'] = $this->request->query('company'); + $this->request->data['DreamjobUser']['street'] = $this->request->query('street'); + $this->request->data['DreamjobUser']['postcode'] = $this->request->query('postcode'); + $this->request->data['DreamjobListCity']['name'] = $this->request->query('city'); } $this->set('pages', $w['DreamjobPageInh']); $this->render('/Job/application_send_ext'); diff --git a/app/View/Job/application_send_ext.ctp b/app/View/Job/application_send_ext.ctp index 1a96a74..1545a9a 100644 --- a/app/View/Job/application_send_ext.ctp +++ b/app/View/Job/application_send_ext.ctp @@ -6,7 +6,9 @@

Form->create('DreamjobJobApplication',$default_Form); ?> + Form->input('DreamjobUser.mail');?>
+

diff --git a/app/View/Pdf/application_ext.ctp b/app/View/Pdf/application_ext.ctp index 1825bfa..6ebad03 100644 --- a/app/View/Pdf/application_ext.ctp +++ b/app/View/Pdf/application_ext.ctp @@ -100,6 +100,6 @@ foreach($application['Page'] as $page){ //$tcpdf->Output('filename.pdf','I'); // TO Download -$tcpdf->Output('filename.pdf','D'); -return null; +$tcpdf->Output('/tmp/filename.pdf','F'); +// return null; ?>