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>
@ -17,11 +16,9 @@ if($edit){
</h3>
<?php
}
$inCat= -1;
?>
<div nobr="true">
<h4><?=$cvp0['DreamjobListCvCategory']['name'];?></h4>
<h4><?=$cvp0['DreamjobListCvCategory']['name'];?></h4>
<table class="cv">
<tr>
<td><?=__("dreamjob.bday");?></td>
@ -57,8 +54,6 @@ if($edit){
if($cvp0['DreamjobListCvCategory']['id'] != $cvc['DreamjobListCvCategory']['id']){
?>
</table>
</div>
<div nobr="true">
<h4><?=$cvc['DreamjobListCvCategory']['name'];?></h4>
<table class="cv">
<?php
@ -123,4 +118,3 @@ if($edit){
}
?>
</table>
</div>

View File

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

View File

@ -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 .= '<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;
$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('<h1>'.__('dreamjob.application').'</h1>'.__('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('<br/><br/><h1>'.$application['DreamjobJobApplication']['subject'].'</h1><br/>'.$application['DreamjobJobApplication']['text']);
$tcpdf->writeHTML('<br/><h2>'.$application['DreamjobJobApplication']['subject'].'</h2><br/>'.$application['DreamjobJobApplication']['text']);
//Lebenslauf
$tcpdf->title=__('dreamjob.cv');

View File

@ -5,13 +5,7 @@ ob_end_clean();
header("Content-type: application/pdf");
$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{
border-bottom:1px solid grey;
padding:0px;
width:100%;
}
</style>';
$cvinhalt = $this->element('user_worker_cv_pdf',array('profil'=>$WORKER));
$dev = 0;
$tcpdf = new XTCPDF();