60 lines
1.7 KiB
PHTML
Raw Normal View History

2012-03-06 13:38:42 +00:00
<style>
.color {
background-color:#DEDEDE;
}
2012-05-06 13:53:19 +00:00
a {
2012-03-20 08:24:41 +00:00
text-decoration: none;
}
2012-05-06 13:53:19 +00:00
#criteres_ra {
2012-03-06 13:38:42 +00:00
font-size: 11px;
}
#criteres_ra tr td {
border-left: 1px solid black;
2012-03-20 08:24:41 +00:00
border-right: 1px solid black;
2012-03-06 13:38:42 +00:00
padding-left:5px;
}
</style>
2012-05-06 13:53:19 +00:00
<h2>Résumé de vos critères</h2>
<div id="criteres_ra">
2012-05-06 13:53:19 +00:00
<?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'];?>
2012-05-06 13:53:19 +00:00
<?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;?>
2012-05-06 13:53:19 +00:00
<?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>
2012-05-06 13:53:19 +00:00
<?php endif;?>
<?php endforeach;?>
</div>
2012-05-06 13:53:19 +00:00
<div><a class="previsualisation" href="/comptage/previsualisation">Prévisualisation</a></div>
<div><a href="/comptage/reset">Initialiser les critères</a></div>
2012-05-06 13:53:19 +00:00
<div><a class="saveciblage" href="/comptage/savedialog">Sauvegarder</a></div>