externe bewerbung Formulat

This commit is contained in:
Martin Müller 2014-08-16 09:44:10 +02:00
parent f6292f474f
commit 0b2e8f6a19
3 changed files with 10 additions and 2 deletions

View File

@ -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');

View File

@ -6,7 +6,9 @@
<div class="box">
<h1><?=__('dreamjob.application.extern');?></h1>
<?php echo $this->Form->create('DreamjobJobApplication',$default_Form); ?>
<?=$this->Form->input('DreamjobUser.mail');?>
<fieldset>
<legend><?=__("dreamjob.application.form");?></legend>
<?=$WORKER['AppUser']['first_name'].' '.$WORKER['AppUser']['last_name'];?><br/>
<?=$WORKER['DreamjobUser']['street'];?><br/>

View File

@ -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;
?>