cv im pdf

This commit is contained in:
Martin Müller 2014-04-23 14:55:40 +02:00
parent 8cfb0eda06
commit 28525f0b44
2 changed files with 9 additions and 2 deletions

View File

@ -2,10 +2,12 @@
/*
*
*/
if(empty($toPDF)){
?>
<h3>
<?php
echo __("dreamjob.cv")." ";
if($edit){
$text ='<span class="label label-default edit" style="font-size:12px;"><span class="glyphicon glyphicon-edit"></span> '.__('dreamjob.edit').'</span>';
@ -15,8 +17,10 @@ if($edit){
</h3>
<?php
}
$inCat= -1;
?>
<div nobr="true">
<h4><?=$cvp0['DreamjobListCvCategory']['name'];?></h4>
<table class="cv">
<tr>
@ -57,6 +61,8 @@ if($edit){
if($cvp0['DreamjobListCvCategory']['id'] != $cvc['DreamjobListCvCategory']['id']){
?>
</table>
</div>
<div nobr="true">
<h4><?=$cvc['DreamjobListCvCategory']['name'];?></h4>
<table class="cv">
<?php
@ -121,3 +127,4 @@ if($edit){
}
?>
</table>
</div>

View File

@ -1,13 +1,13 @@
<?php
App::import('Vendor','tcpdf/xtcpdf');
$cvinhalt = $this->element('user_worker_cv',array('profil'=>array('User'=>$application['WorkerUser']
$cvinhalt = $this->element('user_worker_cv',array('toPDF'=>true,'profil'=>array('User'=>$application['WorkerUser']
,'AppUser'=>$application['AppUserWorker'],'DreamjobWorker'=>$application['DreamjobWorker'],'DreamjobListGraducation'=>$application['WorkerGraducation'],'DreamjobListCity'=>$application['DreamjobWorkerListCity'])));
//die($cvinhalt);
//$cvinhalt = "<i>asd</i>";
ob_end_clean();
$dev = 1;
$dev = 0;
$tcpdf = new XTCPDF();
$tcpdf->SetAuthor("Miconware");