correction des champs labels
This commit is contained in:
parent
74187e5e35
commit
4a3f20b578
@ -1,26 +1,46 @@
|
||||
<h1>Vos critères de selections</h1>
|
||||
<table style="margin-top:15px">
|
||||
<?php foreach($this->criteres as $critere => $valeur):?>
|
||||
|
||||
<style>
|
||||
.color {
|
||||
background-color:#DEDEDE;
|
||||
}
|
||||
#criteres_ra
|
||||
{
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
#criteres_ra tr td {
|
||||
border-left: 1px solid black;
|
||||
padding-left:5px;
|
||||
}
|
||||
</style>
|
||||
<table id="criteres_ra" style="margin-top:15px">
|
||||
<tr>
|
||||
<td><b>Champ séléction</b></td>
|
||||
<td><b>Votre critère</b></td>
|
||||
</tr>
|
||||
<?php $color = 0;foreach($this->criteres as $critere => $valeur):?>
|
||||
<?php $label = $this->field->get($critere); ?>
|
||||
<?php if($valeur != 'tous' and $valeur != null and $valeur != 'null' and $valeur != ','):?>
|
||||
<?php $valeur = explode(',', $valeur); ?>
|
||||
<tr>
|
||||
<td valign="top" style="width:150px"><b style="text-decoration: underline"><?php echo $critere;?></b></td>
|
||||
<tr <?php echo ((($color%2) == 0)?'class="color"':''); $color++;?>>
|
||||
<td valign="top" style="width:150px">
|
||||
<?php echo $label['label'];?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if(is_array($valeur)):
|
||||
$label = $this->field->get($critere);
|
||||
?>
|
||||
<?php if(is_array($valeur)):?>
|
||||
<?php $i=0; foreach ($valeur as $val):?>
|
||||
<?php if($label['type'] != 'textarea' and $label['type'] != 'interval') :?>
|
||||
<b><?php echo $label['fields'][$label['type']]['value'][$val];?></b> <?php (($i%3 == 0)?'<br />':''); $i++;?>
|
||||
<?php echo $label['fields'][$label['type']]['value'][$val];?> <?php (($i%3 == 0)?'<br />':''); $i++;?>
|
||||
<?php else :?>
|
||||
<b><?php echo $val;?></b>
|
||||
<?php echo $val;?>,
|
||||
<?php endif;?>
|
||||
<?php endforeach;?>
|
||||
<?php else: ?>
|
||||
<b><?php echo $val;?></b>
|
||||
<?php echo $val;?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php endif;?>
|
||||
<?php endforeach;?>
|
||||
</table>
|
Loading…
Reference in New Issue
Block a user