dreamjob/app/View/Elements/user_worker_cv.ctp

88 lines
2.3 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;
foreach($cv as $cvc){
if ( $inCat != $cvc['DreamjobListCvCategory']['id'] ){
if($inCat == -1){
?>
</table>
<?php } ?>
<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>