This commit is contained in:
Martin Müller 2014-04-23 12:38:18 +02:00
parent 9dadc49948
commit 5f80801abb
5 changed files with 17 additions and 10 deletions

View File

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

View File

@ -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() {

View File

@ -51,6 +51,6 @@ if($isLoggedin){
-->
</style>
<?php
echo $this->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"));
}
?>

View File

@ -1,6 +1,12 @@
<?php
App::import('Vendor','tcpdf/xtcpdf');
$cvinhalt = $this->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 = "<i>asd</i>";
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

View File

@ -6,8 +6,8 @@
<div class="box">
<h1><?=__('dreamjob.registration');?></h1>
<?php
echo $this->Html->link(__('dreamjob.worker'),array('controller'=>'registration','action'=>'worker'));
echo $this->Html->link(__('dreamjob.registration.worker'),array('controller'=>'registration','action'=>'worker'));
echo '<br/>';
echo $this->Html->link(__('dreamjob.company'),array('controller'=>'registration','action'=>'company'));
echo $this->Html->link(__('dreamjob.registration.company'),array('controller'=>'registration','action'=>'company'));
?>
</div>