lebenslauf <-> profil-Kopf

This commit is contained in:
Martin Müller 2014-04-13 20:44:31 +02:00
parent cf44a07942
commit 6375ea62c9
1 changed files with 17 additions and 11 deletions

View File

@ -16,16 +16,8 @@ if($edit){
<?php <?php
$inCat= -1; $inCat= -1;
foreach($cv as $cvc){ ?>
if ( $inCat != $cvc['DreamjobListCvCategory']['id'] ){ <h4><?=$cvp0['DreamjobListCvCategory']['name'];?></h4>
if($cvp0['DreamjobListCvCategory']['id'] != $cvc['DreamjobListCvCategory']['id']){
?>
<h4><?=$cvc['DreamjobListCvCategory']['name'];?></h4>
<table class="cv">
<?php
}else{
?>
<h4><?=$cvp0['DreamjobListCvCategory']['name'];?></h4>
<table class="cv"> <table class="cv">
<tr> <tr>
<td><?=__("dreamjob.bday");?></td> <td><?=__("dreamjob.bday");?></td>
@ -50,7 +42,21 @@ if($edit){
<td><?=__("dreamjob.country.worker");?></td> <td><?=__("dreamjob.country.worker");?></td>
<td><?=$profil['DreamjobWorker']['country'];?></td> <td><?=$profil['DreamjobWorker']['country'];?></td>
</tr> </tr>
<?php } <?php
if(count($cv)==0){
?>
</table>
<?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']; $inCat = $cvc['DreamjobListCvCategory']['id'];
} }
?> ?>