60 lines
1.7 KiB
PHTML
60 lines
1.7 KiB
PHTML
<style>
|
|
.color {
|
|
background-color:#DEDEDE;
|
|
}
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
#criteres_ra {
|
|
font-size: 11px;
|
|
}
|
|
|
|
#criteres_ra tr td {
|
|
border-left: 1px solid black;
|
|
border-right: 1px solid black;
|
|
padding-left:5px;
|
|
}
|
|
</style>
|
|
<h2>Résumé de vos critères</h2>
|
|
<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);} ?>
|
|
|
|
<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; ?>
|
|
<?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.', ';
|
|
?>
|
|
<?php $i++; endif;?>
|
|
<?php endforeach;?>
|
|
<?php else: ?>
|
|
<?php echo $val;?>
|
|
<?php endif; ?>
|
|
|
|
<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;?>
|
|
</div>
|
|
<div><a class="previsualisation" href="/comptage/previsualisation">Prévisualisation</a></div>
|
|
<div><a href="/comptage/reset">Initialiser les critères</a></div>
|
|
<div><a class="saveciblage" href="/comptage/savedialog">Sauvegarder</a></div>
|