dreamjob/app/View/Elements/user_worker_cv.ctp

88 lines
2.3 KiB
Plaintext
Raw Normal View History

2014-03-12 17:44:49 +01:00
<?php
/*
*
*/
?>
2014-04-01 20:58:36 +02:00
<h3>
<?php
2014-04-01 21:06:55 +02:00
echo __("dreamjob.cv")." ";
2014-04-01 20:58:36 +02:00
if($edit){
2014-04-01 21:06:55 +02:00
$text ='<span class="label label-default edit" style="font-size:12px;"><span class="glyphicon glyphicon-edit"></span> '.__('dreamjob.edit').'</span>';
2014-04-01 20:58:36 +02:00
echo $this->Html->link($text,array('controller'=>'user','action'=>'profil_edit'),array('escape' => false));
}
?>
</h3>
2014-03-12 17:44:49 +01:00
<?php
2014-04-01 20:58:36 +02:00
$inCat= -1;
2014-03-12 17:44:49 +01:00
foreach($cv as $cvc){
2014-04-01 20:58:36 +02:00
if ( $inCat != $cvc['DreamjobListCvCategory']['id'] ){
if($inCat == -1){
?>
</table>
<?php } ?>
<h4><?=$cvc['DreamjobListCvCategory']['name'];?></h4>
<table class="cv">
2014-03-12 17:44:49 +01:00
<?php
2014-04-01 20:58:36 +02:00
$inCat = $cvc['DreamjobListCvCategory']['id'];
}
?>
<tr>
<?php
if($cvc['DreamjobListCvCategory']['startdate'] and $cvc['DreamjobListCvCategory']['enddate'] and $cvc['DreamjobListCvCategory']['place']){
2014-03-12 17:44:49 +01:00
?>
2014-04-01 20:58:36 +02:00
<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
}
?>
2014-03-12 17:44:49 +01:00
<?php
2014-04-01 20:58:36 +02:00
if($cvc['DreamjobListCvCategory']['startdate'] or $cvc['DreamjobListCvCategory']['enddate']){
2014-03-12 17:44:49 +01:00
?>
2014-04-01 20:58:36 +02:00
<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>
2014-03-12 17:44:49 +01:00
<?php
2014-04-01 20:58:36 +02:00
}else if($cvc['DreamjobListCvCategory']['startdate']){
2014-03-12 17:44:49 +01:00
?>
2014-04-01 20:58:36 +02:00
<td><?=$cvc['DreamjobCvEntry']['startdate'];?></td>
<?php
}else if($cvc['DreamjobListCvCategory']['enddate']){
?>
<td><?=$cvc['DreamjobCvEntry']['enddate'];?></td>
2014-03-12 17:44:49 +01:00
<?php
}else{
2014-04-01 20:58:36 +02:00
?>
ERROR
2014-03-12 17:44:49 +01:00
<?php
}
?>
2014-04-01 20:58:36 +02:00
<td><?=$cvc['DreamjobCvEntry']['title'];?></td>
2014-03-12 17:44:49 +01:00
<?php
}
?>
2014-04-01 20:58:36 +02:00
</tr>
2014-03-12 17:44:49 +01:00
<?php
}
?>
2014-04-01 20:58:36 +02:00
</table>