dreamjob/app/View/Elements/user_worker_cv_pdf.ctp

121 lines
3.1 KiB
Plaintext
Raw Normal View History

2014-05-11 12:26:32 +02:00
<?php
/*
*
*/
$inCat= -1;
?>
<style>
span{
font-style:italic;
font-size:10px;
}
.h{
font-weight:bolder;
border-bottom:1px solid grey;
font-size:12px;
width:100%;
margin-bottom:10px;
}
table{
border-spacing:0px 6px;
}
</style>
<div nobr="true">
<div class="h"><?=$cvp0['DreamjobListCvCategory']['name'];?></div>
<table class="cv">
<tr>
<td><?=__("dreamjob.bday");?></td>
2014-11-18 02:17:46 +01:00
<td><?=$this->Time->format('d.m.Y', $profil['AppUser']['bday']);?></td>
2014-05-11 12:26:32 +02:00
</tr>
<tr>
<td><?=__("dreamjob.workexperience");?></td>
<td><?=$profil['DreamjobWorker']['workexperience'].' '.__('dreamjob.years');?></td>
</tr>
<tr>
<td><?=__("dreamjob.graducation.worker");?></td>
<td><?=$profil['DreamjobListGraducation']['name'];?></td>
</tr>
<tr>
<td><?=__("dreamjob.city");?></td>
<td><?=$profil['DreamjobListCity']['name'];?></td>
</tr>
<tr>
<td><?=__("dreamjob.country.worker");?></td>
<td><?=$profil['DreamjobWorker']['country'];?></td>
</tr>
<?php
foreach($cv as $cvc){
if ( $inCat != $cvc['DreamjobListCvCategory']['id'] ){
if($cvp0['DreamjobListCvCategory']['id'] != $cvc['DreamjobListCvCategory']['id']){
?>
</table>
</div>
<div nobr="true">
<div class="h"><?=$cvc['DreamjobListCvCategory']['name'];?></div>
<table class="cv">
<?php
}
$inCat = $cvc['DreamjobListCvCategory']['id'];
}
?>
<tr>
<?php
if($cvc['DreamjobListCvCategory']['startdate'] and $cvc['DreamjobListCvCategory']['enddate'] and $cvc['DreamjobListCvCategory']['place']){
?>
<td><?=$cvc['DreamjobCvEntry']['startdate'];?> - <?=$cvc['DreamjobCvEntry']['enddate'];?></td>
<td><?=$cvc['DreamjobCvEntry']['title'];?><br/><span><?=$cvc['DreamjobCvEntry']['place'];?></span></td>
<?php
}else if($cvc['DreamjobListCvCategory']['place']){
if($cvc['DreamjobListCvCategory']['startdate']){
?>
<td><?=$cvc['DreamjobCvEntry']['startdate'];?></td>
<?php
}else if($cvc['DreamjobListCvCategory']['enddate']){
?>
<td><?=$cvc['DreamjobCvEntry']['enddate'];?></td>
<?php
}else{
?>
<td><?=$cvc['DreamjobCvEntry']['title'];?></td>
<td><?=$cvc['DreamjobCvEntry']['place'];?></td>
<?php
}
?>
<?php
if($cvc['DreamjobListCvCategory']['startdate'] or $cvc['DreamjobListCvCategory']['enddate']){
?>
<td><?=$cvc['DreamjobCvEntry']['title'];?><br/><span><?=$cvc['DreamjobCvEntry']['place'];?></span></td>
<?php
}
}else{
if($cvc['DreamjobListCvCategory']['startdate'] and $cvc['DreamjobListCvCategory']['enddate']){
?>
<td><?=$cvc['DreamjobCvEntry']['startdate'];?> - <?=$cvc['DreamjobCvEntry']['enddate'];?></td>
<?php
}else if($cvc['DreamjobListCvCategory']['startdate']){
?>
<td><?=$cvc['DreamjobCvEntry']['startdate'];?></td>
<?php
}else if($cvc['DreamjobListCvCategory']['enddate']){
?>
<td><?=$cvc['DreamjobCvEntry']['enddate'];?></td>
<?php
}else{
?>
ERROR
<?php
}
?>
<td><?=$cvc['DreamjobCvEntry']['title'];?></td>
<?php
}
?>
</tr>
<?php
}
?>
</table>
</div>