26 lines
685 B
PHTML
26 lines
685 B
PHTML
<div>
|
|
<?php foreach($this->champs as $champ){
|
|
$valeur = explode(':', $champ['type']);
|
|
switch ($valeur[0]) {
|
|
case 'select':
|
|
echo $this->Select($champ['name'], $champ['libelle'], $champ['parametres']);
|
|
break;
|
|
case 'interval':
|
|
echo $this->Interval($champ['name'], $champ['libelle'], (isset($valeur[1])?$valeur[1]:false));
|
|
break;
|
|
case 'text':
|
|
echo $this->Text($champ['name'], $champ['libelle']);
|
|
break;
|
|
case 'textarea':
|
|
echo $this->Textarea($champ['name'], $champ['libelle']);
|
|
break;
|
|
default:
|
|
echo $champ['name'].'<br />';
|
|
}
|
|
} ?>
|
|
</div>
|
|
|
|
<div style="text-align:right;">
|
|
<a href="">Réinitialiser les critères économiques</a>
|
|
</div>
|