pdf: underline

This commit is contained in:
Martin Müller 2014-05-11 12:21:24 +02:00
parent 79a7ef1e11
commit 70251ae5f7
4 changed files with 11 additions and 27 deletions

View File

@ -2,7 +2,6 @@
/* /*
* *
*/ */
if(empty($toPDF)){
?> ?>
<h3> <h3>
@ -17,10 +16,8 @@ if($edit){
</h3> </h3>
<?php <?php
}
$inCat= -1; $inCat= -1;
?> ?>
<div nobr="true">
<h4><?=$cvp0['DreamjobListCvCategory']['name'];?></h4> <h4><?=$cvp0['DreamjobListCvCategory']['name'];?></h4>
<table class="cv"> <table class="cv">
<tr> <tr>
@ -57,8 +54,6 @@ if($edit){
if($cvp0['DreamjobListCvCategory']['id'] != $cvc['DreamjobListCvCategory']['id']){ if($cvp0['DreamjobListCvCategory']['id'] != $cvc['DreamjobListCvCategory']['id']){
?> ?>
</table> </table>
</div>
<div nobr="true">
<h4><?=$cvc['DreamjobListCvCategory']['name'];?></h4> <h4><?=$cvc['DreamjobListCvCategory']['name'];?></h4>
<table class="cv"> <table class="cv">
<?php <?php
@ -123,4 +118,3 @@ if($edit){
} }
?> ?>
</table> </table>
</div>

View File

@ -32,7 +32,9 @@
<div id="logo"> <div id="logo">
<?=$this->Html->image('logo.png',array('url'=>array('controller'=>'home','action'=>'home'))); ?> <?=$this->Html->image('logo.png',array('url'=>array('controller'=>'home','action'=>'home'))); ?>
</div> </div>
<?php /*
<div id="logo_right"><?=$this->Html->image('mobil.png',array("url"=>array('controller'=>'home','action'=>'home')));?></div> <div id="logo_right"><?=$this->Html->image('mobil.png',array("url"=>array('controller'=>'home','action'=>'home')));?></div>
*/ ?>
</div> </div>
<div id="navbar"> <div id="navbar">
<!-- navbar --> <!-- navbar -->

View File

@ -3,15 +3,9 @@ App::import('Vendor','tcpdf/xtcpdf');
ob_end_clean(); ob_end_clean();
header("Content-type: application/pdf"); 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']))); ,'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{
border-bottom:1px solid grey;
margin-bottom:3px;
width:100%;
}</style>';
$dev = 0; $dev = 0;
$tcpdf = new XTCPDF(); $tcpdf = new XTCPDF();
@ -38,10 +32,10 @@ if($application['AppUserWorker']['take_systemwide']){
$tcpdf->Image($url,0,40,0,140,'','','','',300,'L'); $tcpdf->Image($url,0,40,0,140,'','','','',300,'L');
$tcpdf->SetY(185); $tcpdf->SetY(185);
$tcpdf->SetFont($tcpdf->font,'B',$tcpdf->fontsize+4); //$tcpdf->SetFont($tcpdf->font,'B',$tcpdf->fontsize+4);
$tcpdf->Cell(0,0, __('dreamjob.application'), 0,1,'L'); //$tcpdf->Cell(0,0, , 0,1,'L');
$tcpdf->SetFont($tcpdf->font,'',$tcpdf->fontsize); //$tcpdf->SetFont($tcpdf->font,'',$tcpdf->fontsize);
$tcpdf->writeHTML(__('dreamjob.application.for').' '.$application['DreamjobJobOpening']['title']); $tcpdf->writeHTML('<h1>'.__('dreamjob.application').'</h1>'.__('dreamjob.application.for').' '.$application['DreamjobJobOpening']['title']);
$tcpdf->SetY(255); $tcpdf->SetY(255);
$tcpdf->Cell(0,0, $application['Mannerofaddress']['name'].' '.$application['AppUserWorker']['first_name'].' '.$application['AppUserWorker']['last_name'], 0,1,'R'); $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']['street'], 0,1,'L');
$tcpdf->Cell(0,0, $application['DreamjobUser']['postcode'].' '.$application['DreamjobListCity']['name'], 0,1,'L'); $tcpdf->Cell(0,0, $application['DreamjobUser']['postcode'].' '.$application['DreamjobListCity']['name'], 0,1,'L');
$tcpdf->writeHTML('<br/><br/><h1>'.$application['DreamjobJobApplication']['subject'].'</h1><br/>'.$application['DreamjobJobApplication']['text']); $tcpdf->writeHTML('<br/><h2>'.$application['DreamjobJobApplication']['subject'].'</h2><br/>'.$application['DreamjobJobApplication']['text']);
//Lebenslauf //Lebenslauf
$tcpdf->title=__('dreamjob.cv'); $tcpdf->title=__('dreamjob.cv');

View File

@ -5,13 +5,7 @@ ob_end_clean();
header("Content-type: application/pdf"); header("Content-type: application/pdf");
$cvinhalt = $this->element('user_worker_cv',array('toPDF'=>true,'profil'=>$WORKER)); $cvinhalt = $this->element('user_worker_cv_pdf',array('profil'=>$WORKER));
$cvinhalt .= '<style>span{font-style:italic;font-size:10px;}h1,h2,h3,h4,h5{
border-bottom:1px solid grey;
padding:0px;
width:100%;
}
</style>';
$dev = 0; $dev = 0;
$tcpdf = new XTCPDF(); $tcpdf = new XTCPDF();