Création du formulaire Geographique

This commit is contained in:
Damien LASSERRE 2012-01-12 09:39:40 +00:00
parent 510155bdb6
commit b0a6f73fd0

View File

@ -1,36 +1,10 @@
<div>
<ul id="fieldsblock">
<?php
$i=0;
foreach($this->champs as $champ) {
?>
<li>
<?php
$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 />';
}
?>
</li>
<?php
}
?>
<li><?php echo $this->Field('adr_cp', $this->fields->get('adr_cp'));?></li>
<li><?php echo $this->Field('adr_dep', $this->fields->get('adr_dep'));?></li>
<li><?php echo $this->Field('adr_com', $this->fields->get('adr_com'));?></li>
</ul>
</div>
<div style="text-align:right;">
<a href="">Réinitialiser les critères géographiques</a>
<div style="text-align:right;margin-top:20px;">
<a href="">Réinitialiser les critères entreprises</a>
</div>