correction des bugs d'affichages

This commit is contained in:
Damien LASSERRE 2012-04-03 08:38:34 +00:00
parent 82fd8a3fae
commit b0ba3c25ba

View File

@ -33,10 +33,18 @@ a
<td>
<?php if(is_array($valeur)):?>
<?php $i=0; foreach ($valeur as $val):?>
<?php if($label['type'] != 'textarea' and $label['type'] != 'interval') :?>
<?php if($label['type'] != 'textarea' and $label['type'] != 'interval' and $label['type'] != 'intervalSelect') :?>
<?php echo $label['fields'][$label['type']]['value'][$val];?> <?php (($i%3 == 0)?'<br />':''); $i++;?>
<?php else :?>
<?php echo $val;?>,
<?php
if($label['type'] == 'interval') {
if(empty($val)) {
echo '-';
} else
echo $val;
} else
echo $val.', ';
?>
<?php endif;?>
<?php endforeach;?>
<?php else: ?>