Création du formulaire Juridique

This commit is contained in:
Damien LASSERRE 2012-01-12 09:39:59 +00:00
parent b0a6f73fd0
commit 7b15b7bba7

View File

@ -1,30 +1,12 @@
<div>
<ul id="fieldsblock">
<?php
$i=0;
foreach($this->champs as $champ) {
$valeur = explode(':', $champ['type']);
switch ($valeur[0]) {
case 'select':
echo '<li>'.$this->Select($champ['name'], $champ['libelle'], $champ['parametres']).'</li>';
break;
case 'interval':
echo '<li>'.$this->Interval($champ['name'], $champ['libelle'], (isset($valeur[1])?$valeur[1]:false)).'</li>';
break;
case 'text':
echo '<li>'.$this->Text($champ['name'], $champ['libelle']).'</li>';
break;
case 'textarea':
echo '<li>'.$this->Textarea($champ['name'], $champ['libelle']).'</li>';
break;
default:
echo '<li>'.$champ['name'].'</li>'.'<br />';
}
}
?>
<li><?php echo $this->Field('cj', $this->fields->get('cj'));?></li>
<li><?php echo $this->Field('actifEco', $this->fields->get('actifEco'));?></li>
<li><?php echo $this->Field('procolHisto', $this->fields->get('procolHisto'));?></li>
<li><?php echo $this->Field('tvaIntraValide', $this->fields->get('tvaIntraValide'));?></li>
<li><?php echo $this->Field('dateImmat', $this->fields->get('dateImmat'));?></li>
</ul>
</div>
<div style="text-align:right;">
<a href="">Réinitialiser les critères juridiques</a>
<div style="text-align:right;margin-top:20px;">
<a href="">Réinitialiser les critères entreprises</a>
</div>