pdf verbesserung
This commit is contained in:
parent
b9255be77a
commit
f105e57762
|
@ -11,9 +11,9 @@ class XTCPDF extends TCPDF{
|
||||||
function Header(){
|
function Header(){
|
||||||
$this->SetY(25);
|
$this->SetY(25);
|
||||||
$this->SetTextColor(0,0, 0);
|
$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->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=='')
|
if($this->title=='')
|
||||||
$this->Image(WWW_ROOT.DS.'img'.DS.'pdf-logo-lang.png',0,10,85,20,'','','','',300,'R');
|
$this->Image(WWW_ROOT.DS.'img'.DS.'pdf-logo-lang.png',0,10,85,20,'','','','',300,'R');
|
||||||
else
|
else
|
||||||
|
|
|
@ -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'])));
|
,'AppUser'=>$application['AppUserWorker'],'DreamjobWorker'=>$application['DreamjobWorker'],'DreamjobListGraducation'=>$application['WorkerGraducation'],'DreamjobListCity'=>$application['DreamjobWorkerListCity'])));
|
||||||
|
|
||||||
$cvinhalt .= '<style>span{font-style:italic;font-size:10px;}h1,h2,h3,h4,h5{
|
$cvinhalt .= '<style>span{font-style:italic;font-size:10px;}h1,h2,h3,h4,h5{
|
||||||
border-bottom:2px solid grey;
|
border-bottom:1px solid grey;
|
||||||
|
margin-bottom:3px;
|
||||||
width:100%;
|
width:100%;
|
||||||
}</style>';
|
}</style>';
|
||||||
|
|
||||||
|
@ -26,8 +27,8 @@ $tcpdf->AddPage();
|
||||||
$tcpdf->SetY(35);
|
$tcpdf->SetY(35);
|
||||||
$tcpdf->SetTextColor(0, 0, 0);
|
$tcpdf->SetTextColor(0, 0, 0);
|
||||||
$tcpdf->SetFont($tcpdf->font);
|
$tcpdf->SetFont($tcpdf->font);
|
||||||
$tcpdf->Image(WWW_ROOT.DS.'uploads'.DS.$application['AppUserWorker']['avatar'],0,35,0,140,'','','','',300,'L');
|
$tcpdf->Image(WWW_ROOT.DS.'uploads'.DS.$application['AppUserWorker']['avatar'],0,40,0,140,'','','','',300,'L');
|
||||||
$tcpdf->SetY(180);
|
$tcpdf->SetY(185);
|
||||||
$tcpdf->SetFont($tcpdf->font,'B',$tcpdf->fontsize);
|
$tcpdf->SetFont($tcpdf->font,'B',$tcpdf->fontsize);
|
||||||
$tcpdf->Cell(0,0, __('dreamjob.application'), 0,1,'L');
|
$tcpdf->Cell(0,0, __('dreamjob.application'), 0,1,'L');
|
||||||
$tcpdf->SetFont($tcpdf->font);
|
$tcpdf->SetFont($tcpdf->font);
|
||||||
|
|
|
@ -7,7 +7,8 @@ header("Content-type: application/pdf");
|
||||||
|
|
||||||
$cvinhalt = $this->element('user_worker_cv',array('toPDF'=>true,'profil'=>$WORKER));
|
$cvinhalt = $this->element('user_worker_cv',array('toPDF'=>true,'profil'=>$WORKER));
|
||||||
$cvinhalt .= '<style>span{font-style:italic;font-size:10px;}h1,h2,h3,h4,h5{
|
$cvinhalt .= '<style>span{font-style:italic;font-size:10px;}h1,h2,h3,h4,h5{
|
||||||
border-bottom:2px solid grey;
|
border-bottom:1px solid grey;
|
||||||
|
margin-bottom:3px;
|
||||||
width:100%;
|
width:100%;
|
||||||
}</style>';
|
}</style>';
|
||||||
|
|
||||||
|
@ -25,8 +26,8 @@ $tcpdf->AddPage();
|
||||||
$tcpdf->SetY(35);
|
$tcpdf->SetY(35);
|
||||||
$tcpdf->SetTextColor(0, 0, 0);
|
$tcpdf->SetTextColor(0, 0, 0);
|
||||||
$tcpdf->SetFont($tcpdf->font);
|
$tcpdf->SetFont($tcpdf->font);
|
||||||
$tcpdf->Image(WWW_ROOT.DS.'uploads'.DS.$WORKER['AppUser']['avatar'],0,35,0,140,'','','','',300,'L');
|
$tcpdf->Image(WWW_ROOT.DS.'uploads'.DS.$WORKER['AppUser']['avatar'],0,40,0,140,'','','','',300,'L');
|
||||||
$tcpdf->SetY(180);
|
$tcpdf->SetY(185);
|
||||||
$tcpdf->SetFont($tcpdf->font,'B',$tcpdf->fontsize);
|
$tcpdf->SetFont($tcpdf->font,'B',$tcpdf->fontsize);
|
||||||
$tcpdf->Cell(0,0, __('dreamjob.application.mappe'), 0,1,'L');
|
$tcpdf->Cell(0,0, __('dreamjob.application.mappe'), 0,1,'L');
|
||||||
$tcpdf->SetFont($tcpdf->font);
|
$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');
|
$tcpdf->Cell(0,0, $WORKER['DreamjobUser']['postcode'].' '.$WORKER['DreamjobListCity']['name'], 0,1,'R');
|
||||||
|
|
||||||
//Lebenslauf
|
//Lebenslauf
|
||||||
|
$tcpdf->SetAutoPageBreak( true,50);
|
||||||
$tcpdf->title=__('dreamjob.cv');
|
$tcpdf->title=__('dreamjob.cv');
|
||||||
$tcpdf->AddPage();
|
$tcpdf->AddPage();
|
||||||
$tcpdf->SetY(35);
|
$tcpdf->SetY(35);
|
||||||
|
|
|
@ -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`
|
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 "_:%"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue