diff --git a/app/View/Elements/user_worker_cv.ctp b/app/View/Elements/user_worker_cv.ctp
index 439b3d3..a5a2c43 100644
--- a/app/View/Elements/user_worker_cv.ctp
+++ b/app/View/Elements/user_worker_cv.ctp
@@ -2,7 +2,6 @@
/*
*
*/
- if(empty($toPDF)){
?>
@@ -17,11 +16,9 @@ if($edit){
-
-
=$cvp0['DreamjobListCvCategory']['name'];?>
+
=$cvp0['DreamjobListCvCategory']['name'];?>
=__("dreamjob.bday");?> |
@@ -57,8 +54,6 @@ if($edit){
if($cvp0['DreamjobListCvCategory']['id'] != $cvc['DreamjobListCvCategory']['id']){
?>
-
-
=$cvc['DreamjobListCvCategory']['name'];?>
-
diff --git a/app/View/Layouts/default.ctp b/app/View/Layouts/default.ctp
index 8521f5b..a9229aa 100755
--- a/app/View/Layouts/default.ctp
+++ b/app/View/Layouts/default.ctp
@@ -32,7 +32,9 @@
=$this->Html->image('logo.png',array('url'=>array('controller'=>'home','action'=>'home'))); ?>
+ =$this->Html->image('mobil.png',array("url"=>array('controller'=>'home','action'=>'home')));?>
+ */ ?>
diff --git a/app/View/Pdf/application.ctp b/app/View/Pdf/application.ctp
index c24e0ac..d3242e7 100644
--- a/app/View/Pdf/application.ctp
+++ b/app/View/Pdf/application.ctp
@@ -3,16 +3,10 @@ App::import('Vendor','tcpdf/xtcpdf');
ob_end_clean();
header("Content-type: application/pdf");
-$cvinhalt = $this->element('user_worker_cv',array('toPDF'=>true,'profil'=>array('User'=>$application['WorkerUser']
+$cvinhalt = $this->element('user_worker_cv_pdf',array('profil'=>array('User'=>$application['WorkerUser']
,'AppUser'=>$application['AppUserWorker'],'DreamjobWorker'=>$application['DreamjobWorker'],'DreamjobListGraducation'=>$application['WorkerGraducation'],'DreamjobListCity'=>$application['DreamjobWorkerListCity'])));
- $cvinhalt .= '';
-
-
+
$dev = 0;
$tcpdf = new XTCPDF();
$tcpdf->SetMargins(25,35,25,20);
@@ -38,10 +32,10 @@ if($application['AppUserWorker']['take_systemwide']){
$tcpdf->Image($url,0,40,0,140,'','','','',300,'L');
$tcpdf->SetY(185);
-$tcpdf->SetFont($tcpdf->font,'B',$tcpdf->fontsize+4);
-$tcpdf->Cell(0,0, __('dreamjob.application'), 0,1,'L');
-$tcpdf->SetFont($tcpdf->font,'',$tcpdf->fontsize);
-$tcpdf->writeHTML(__('dreamjob.application.for').' '.$application['DreamjobJobOpening']['title']);
+//$tcpdf->SetFont($tcpdf->font,'B',$tcpdf->fontsize+4);
+//$tcpdf->Cell(0,0, , 0,1,'L');
+//$tcpdf->SetFont($tcpdf->font,'',$tcpdf->fontsize);
+$tcpdf->writeHTML('
'.__('dreamjob.application').'
'.__('dreamjob.application.for').' '.$application['DreamjobJobOpening']['title']);
$tcpdf->SetY(255);
$tcpdf->Cell(0,0, $application['Mannerofaddress']['name'].' '.$application['AppUserWorker']['first_name'].' '.$application['AppUserWorker']['last_name'], 0,1,'R');
@@ -64,7 +58,7 @@ $tcpdf->Cell(0,0, $application['AppUser']['nickname'], 0,1,'L');
$tcpdf->Cell(0,0, $application['DreamjobUser']['street'], 0,1,'L');
$tcpdf->Cell(0,0, $application['DreamjobUser']['postcode'].' '.$application['DreamjobListCity']['name'], 0,1,'L');
-$tcpdf->writeHTML('
'.$application['DreamjobJobApplication']['subject'].'
'.$application['DreamjobJobApplication']['text']);
+$tcpdf->writeHTML('
'.$application['DreamjobJobApplication']['subject'].'
'.$application['DreamjobJobApplication']['text']);
//Lebenslauf
$tcpdf->title=__('dreamjob.cv');
diff --git a/app/View/Pdf/profil.ctp b/app/View/Pdf/profil.ctp
index 9af37a7..c72ec13 100644
--- a/app/View/Pdf/profil.ctp
+++ b/app/View/Pdf/profil.ctp
@@ -5,13 +5,7 @@ ob_end_clean();
header("Content-type: application/pdf");
-$cvinhalt = $this->element('user_worker_cv',array('toPDF'=>true,'profil'=>$WORKER));
-$cvinhalt .= '';
+$cvinhalt = $this->element('user_worker_cv_pdf',array('profil'=>$WORKER));
$dev = 0;
$tcpdf = new XTCPDF();