114 lines
3.0 KiB
PHP
114 lines
3.0 KiB
PHP
<?php
|
|
/*
|
|
*
|
|
*/
|
|
?>
|
|
|
|
<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>';
|
|
echo $this->Html->link($text,array('controller'=>'user','action'=>'profil_edit'),array('escape' => false));
|
|
}
|
|
?>
|
|
</h3>
|
|
|
|
<?php
|
|
$inCat= -1;
|
|
?>
|
|
<h4><?=$cvp0['DreamjobListCvCategory']['name'];?></h4>
|
|
<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>
|
|
<h4><?=$cvc['DreamjobListCvCategory']['name'];?></h4>
|
|
<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>
|