2011-12-19 16:48:03 +00:00

38 lines
1.1 KiB
PHTML

<div>
<select class="printCritere" style="width:200px;">
<option>Selectionnez un critère</option>
<?php foreach($this->selectRow['entreprise'] as $elements):?>
<option value="<?php echo $elements; ?>"><?php echo $elements; ?></option>
<?php endforeach;?>
</select>
<br />
Votre selection :
<div style="border:1px solid silver;margin-top:20px;">
<?php $i=0; foreach($this->champs as $champ){
$valeur = explode(':', $champ['type']);
switch ($valeur[0]) {
case 'select':
echo $this->Select($champ['name'], $champ['libelle'], $champ['parametres']);
$i++;
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>
<div style="text-align:right;margin-top:20px;">
<a href="">Réinitialiser les critères entreprises</a>
</div>