premiére beta affichage des critères.

This commit is contained in:
Damien LASSERRE 2012-03-06 13:14:53 +00:00
parent 9c860a1f1f
commit ad3c39fcfc

View File

@ -6,9 +6,15 @@
<tr>
<td valign="top" style="width:150px"><b style="text-decoration: underline"><?php echo $critere;?></b></td>
<td>
<?php if(is_array($valeur)):?>
<?php if(is_array($valeur)):
$label = $this->field->get($critere);
?>
<?php $i=0; foreach ($valeur as $val):?>
<b><?php echo $val?></b> <?php (($i%3 == 0)?'<br />':''); $i++;?>
<?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 else :?>
<b><?php echo $val;?></b>
<?php endif;?>
<?php endforeach;?>
<?php else: ?>
<b><?php echo $val;?></b>