dreamjob/app/View/Elements/user_worker_cv_pdf.ctp

121 lines
3.3 KiB
Plaintext
Raw Permalink Normal View History

2015-03-31 14:49:03 +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>
<td><?=$this->Time->format('d.m.Y', $profil['AppUser']['bday']);?></td>
</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><?=$this->Time->format('d.m.Y',$cvc['DreamjobCvEntry']['startdate']);?> - <?=$this->Time->format('d.m.Y',$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><?=$this->Time->format('d.m.Y',$cvc['DreamjobCvEntry']['startdate']);?></td>
<?php
}else if($cvc['DreamjobListCvCategory']['enddate']){
?>
<td><?=$this->Time->format('d.m.Y',$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><?=$this->Time->format('d.m.Y',$cvc['DreamjobCvEntry']['startdate']);?> - <?=$this->Time->format('d.m.Y',$cvc['DreamjobCvEntry']['enddate']);?></td>
<?php
}else if($cvc['DreamjobListCvCategory']['startdate']){
?>
<td><?=$this->Time->format('d.m.Y',$cvc['DreamjobCvEntry']['startdate']);?></td>
<?php
}else if($cvc['DreamjobListCvCategory']['enddate']){
?>
<td><?=$this->Time->format('d.m.Y',$cvc['DreamjobCvEntry']['enddate']);?></td>
<?php
}else{
?>
ERROR
<?php
}
?>
<td><?=$cvc['DreamjobCvEntry']['title'];?></td>
<?php
}
?>
</tr>
<?php
}
?>
</table>
</div>