');
$controller->set('default_sForm',array(
'inputDefaults' => array(
'div' => array('class' => 'control-group'),
diff --git a/app/Vendor/tcpdf/xtcpdf.php b/app/Vendor/tcpdf/xtcpdf.php
index c25e8be..650370d 100644
--- a/app/Vendor/tcpdf/xtcpdf.php
+++ b/app/Vendor/tcpdf/xtcpdf.php
@@ -11,9 +11,9 @@ class XTCPDF extends TCPDF{
function Header(){
$this->SetY(25);
$this->SetTextColor(0,0, 0);
- $this->SetFont($this->font,'B',$this->fontsize);
+ $this->SetFont($this->font,'B',($this->fontsize)+2);
$this->Cell(0,0, $this->title, array('B'=>array('width' => 1,'color'=>array(157,18,22))),1,'L');
- $this->SetY(25);
+ $this->SetY(22);
if($this->title=='')
$this->Image(WWW_ROOT.DS.'img'.DS.'pdf-logo-lang.png',0,10,85,20,'','','','',300,'R');
else
diff --git a/app/View/Pdf/application.ctp b/app/View/Pdf/application.ctp
index f869532..a5a660d 100644
--- a/app/View/Pdf/application.ctp
+++ b/app/View/Pdf/application.ctp
@@ -7,7 +7,8 @@ $cvinhalt = $this->element('user_worker_cv',array('toPDF'=>true,'profil'=>array(
,'AppUser'=>$application['AppUserWorker'],'DreamjobWorker'=>$application['DreamjobWorker'],'DreamjobListGraducation'=>$application['WorkerGraducation'],'DreamjobListCity'=>$application['DreamjobWorkerListCity'])));
$cvinhalt .= '';
@@ -26,8 +27,8 @@ $tcpdf->AddPage();
$tcpdf->SetY(35);
$tcpdf->SetTextColor(0, 0, 0);
$tcpdf->SetFont($tcpdf->font);
-$tcpdf->Image(WWW_ROOT.DS.'uploads'.DS.$application['AppUserWorker']['avatar'],0,35,0,140,'','','','',300,'L');
-$tcpdf->SetY(180);
+$tcpdf->Image(WWW_ROOT.DS.'uploads'.DS.$application['AppUserWorker']['avatar'],0,40,0,140,'','','','',300,'L');
+$tcpdf->SetY(185);
$tcpdf->SetFont($tcpdf->font,'B',$tcpdf->fontsize);
$tcpdf->Cell(0,0, __('dreamjob.application'), 0,1,'L');
$tcpdf->SetFont($tcpdf->font);
diff --git a/app/View/Pdf/profil.ctp b/app/View/Pdf/profil.ctp
index b7d748c..c90bbf1 100644
--- a/app/View/Pdf/profil.ctp
+++ b/app/View/Pdf/profil.ctp
@@ -7,7 +7,8 @@ header("Content-type: application/pdf");
$cvinhalt = $this->element('user_worker_cv',array('toPDF'=>true,'profil'=>$WORKER));
$cvinhalt .= '';
@@ -25,8 +26,8 @@ $tcpdf->AddPage();
$tcpdf->SetY(35);
$tcpdf->SetTextColor(0, 0, 0);
$tcpdf->SetFont($tcpdf->font);
-$tcpdf->Image(WWW_ROOT.DS.'uploads'.DS.$WORKER['AppUser']['avatar'],0,35,0,140,'','','','',300,'L');
-$tcpdf->SetY(180);
+$tcpdf->Image(WWW_ROOT.DS.'uploads'.DS.$WORKER['AppUser']['avatar'],0,40,0,140,'','','','',300,'L');
+$tcpdf->SetY(185);
$tcpdf->SetFont($tcpdf->font,'B',$tcpdf->fontsize);
$tcpdf->Cell(0,0, __('dreamjob.application.mappe'), 0,1,'L');
$tcpdf->SetFont($tcpdf->font);
@@ -37,6 +38,7 @@ $tcpdf->Cell(0,0, $WORKER['DreamjobUser']['street'], 0,1,'R');
$tcpdf->Cell(0,0, $WORKER['DreamjobUser']['postcode'].' '.$WORKER['DreamjobListCity']['name'], 0,1,'R');
//Lebenslauf
+$tcpdf->SetAutoPageBreak( true,50);
$tcpdf->title=__('dreamjob.cv');
$tcpdf->AddPage();
$tcpdf->SetY(35);
diff --git a/update.sql b/update.sql
index cc781af..ee753c8 100644
--- a/update.sql
+++ b/update.sql
@@ -99,7 +99,7 @@ ALTER TABLE `mic_dj_jobs_opening` CHANGE `city` `city_id` INT(11) NOT NULL;
ALTER TABLE `mic_dj_jobs_application` ADD `subject` VARCHAR( 255 ) NOT NULL AFTER `opening_id`
-
+--- update `mic_sys_micacc` `n` left join `mic_sys_micacc` `o` on o.id=n.id SET n.code = md5(SUBSTRING(o.code, 3, CHAR_LENGTH(o.code)-2)) WHERE n.`code` Like "_:%" and o.`code` Like "_:%"