Critere dans les details des comptages.

This commit is contained in:
Damien LASSERRE 2012-03-07 11:14:27 +00:00
parent 2bb37b2e11
commit 05b829d0d7

View File

@ -1,11 +1,17 @@
<div id="dashboard" style="padding:10px">
<a href="/dashboard/index">Tableau de bord</a> > Detail du ciblage
<h2></h2>
<fieldset>
<legend>Critères</legend>
<?php foreach(json_decode($this->criteres['criteres'], true) as $critere => $valeur): ?>
<?php echo '<b>'.$critere . '</b> : '.$valeur;?>,
<?php if(!empty($valeur) and $valeur != ',' and !empty($critere)): ?>
<?php $label = $this->label->get($critere); ?>
<?php if($label['type'] != 'textarea' and $label['type'] != 'interval') :?>
<?php echo '<b>'.$label['label'] . '</b> : '.$label['fields'][$label['type']]['value'][$valeur];?><br />
<?php else: ?>
<?php echo '<b>'.$label['label'] . '</b>:'.$valeur; ?><br />
<?php endif; ?>
<?php endif; ?>
<?php endforeach;?>
</fieldset>