70 lines
2.0 KiB
PHTML
Raw Normal View History

2012-03-06 13:38:42 +00:00
<style>
.color {
background-color:#DEDEDE;
}
2012-03-20 08:24:41 +00:00
a
{
text-decoration: none;
}
2012-03-06 13:38:42 +00:00
#criteres_ra
{
2012-03-20 08:24:41 +00:00
width:93%;
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-03-20 08:24:41 +00:00
<table id="criteres_ra" style="margin:10px">
2012-03-06 13:38:42 +00:00
<tr>
2012-04-12 13:54:45 +00:00
<td class="Valide" style="text-align: center" colspan="3">
<a class="previsualisation" href="/comptage/previsualisation">Prévisualisation</a>
</td>
2012-03-06 13:38:42 +00:00
</tr>
<?php $color = 0;foreach($this->criteres as $critere => $valeur):?>
<?php $label = $this->field->get($critere); ?>
2012-04-13 08:56:39 +00:00
<?php if($valeur != 'tous' and $valeur != null and $valeur != 'null' and $valeur != ',' and !empty($valeur)):?>
2012-04-06 09:49:41 +00:00
<?php if(!is_array($valeur)) {$valeur = explode(',', $valeur);} ?>
2012-04-17 15:10:17 +00:00
<tr <?php echo ((($color%2) == 0)?'class="color"':''); $color++;?>>
<td valign="top" style="padding:5px;width:150px">
<?php echo $label['label'];?>
</td>
<td>
<?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; ?>
</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>
2012-03-06 13:38:42 +00:00
<?php endif;?>
<?php endforeach;?>
2012-04-12 13:54:45 +00:00
<tr>
<td class="Valide" style="text-align: center" colspan="3">
<a class="saveciblage" href="/comptage/savedialog">Valider mon comptage</a></td>
</tr>
2012-02-15 09:25:21 +00:00
</table>