Simplification de l'affichage des critères

This commit is contained in:
Michael RICOIS 2012-05-06 14:42:11 +00:00
parent c9bba47a74
commit 639b476294

View File

@ -16,14 +16,15 @@ a {
}
</style>
<h2>Résumé de vos critères</h2>
<table id="criteres_ra">
<div id="criteres_ra">
<?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 !empty($valeur)):?>
<?php if(!is_array($valeur)) {$valeur = explode(',', $valeur);} ?>
<tr <?php echo ((($color%2) == 0)?'class="color"':''); $color++;?>>
<td valign="top" style="padding:5px;width:140px"><?php echo $label['label'];?></td>
<td>
<div <?php echo ((($color%2) == 0) ? 'class="color"' : ''); $color++; ?>>
<?=$label['label'];?>
<?php if(is_array($valeur)):?>
<?php $i=0; foreach ($valeur as $val):?>
<?php if($i>5)break; ?>
@ -44,17 +45,16 @@ a {
<?php else: ?>
<?php echo $val;?>
<?php endif; ?>
</td>
<td style="text-align: center">
<a class="remove" href="index/remove/critere/<?php echo $critere;?>">
<img width="14px;" src="/themes/default/images/cross.png" />
</a>
<img src="/themes/default/images/help.png" />
</td>
</tr>
<a class="remove" href="index/remove/critere/<?=$critere;?>">
<img width="14px;" src="/themes/default/images/cross.png" />
</a>
<img src="/themes/default/images/help.png" />
</div>
<?php endif;?>
<?php endforeach;?>
</table>
</div>
<div><a class="previsualisation" href="/comptage/previsualisation">Prévisualisation</a></div>
<div><a class="saveciblage" href="/comptage/reset">Initialiser les critères</a></div>
<div><a href="/comptage/reset">Initialiser les critères</a></div>
<div><a class="saveciblage" href="/comptage/savedialog">Sauvegarder</a></div>