ajout des champs multiples
This commit is contained in:
parent
7f3954d470
commit
9db6f449a1
@ -25,7 +25,7 @@ a
|
||||
<?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 != ',' and $critere != 'adr_com'):?>
|
||||
<?php $valeur = explode(',', $valeur); ?>
|
||||
<?php if($label['type'] =! 'selectMultiple') $valeur = explode(',', $valeur); ?>
|
||||
<tr <?php echo ((($color%2) == 0)?'class="color"':''); $color++;?>>
|
||||
<td valign="top" style="padding:5px;width:150px">
|
||||
<?php echo $label['label'];?>
|
||||
@ -33,20 +33,22 @@ a
|
||||
<td>
|
||||
<?php if(is_array($valeur)):?>
|
||||
<?php $i=0; foreach ($valeur as $val):?>
|
||||
<?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
|
||||
if($label['type'] == 'interval') {
|
||||
if(empty($val)) {
|
||||
echo '-';
|
||||
<?php if(!empty($val)) :?>
|
||||
<?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
|
||||
if($label['type'] == 'interval') {
|
||||
if(empty($val)) {
|
||||
echo '-';
|
||||
} else
|
||||
echo $val;
|
||||
} else
|
||||
echo $val;
|
||||
} else
|
||||
echo $val.', ';
|
||||
?>
|
||||
echo $val.', ';
|
||||
?>
|
||||
<?php endif;?>
|
||||
<?php endif;?>
|
||||
<?php endforeach;?>
|
||||
<?php endforeach;?>
|
||||
<?php else: ?>
|
||||
<?php echo $val;?>
|
||||
<?php endif; ?>
|
||||
|
Loading…
Reference in New Issue
Block a user