1 |
<?php |
<?php |
2 |
//$Id$ |
//$Id$ |
3 |
//gen openMairie le 21/11/2012 16:25 |
//gen openMairie le 21/11/2012 17:04 |
4 |
|
|
5 |
require_once ("../obj/om_dbform.class.php"); |
require_once ("../obj/om_dbform.class.php"); |
6 |
|
|
25 |
} else { |
} else { |
26 |
$this->valF['type_demandeur'] = $val['type_demandeur']; |
$this->valF['type_demandeur'] = $val['type_demandeur']; |
27 |
} |
} |
28 |
if ($val['qualification'] == "") { |
if ($val['qualite'] == "") { |
29 |
$this->valF['qualification'] = NULL; |
$this->valF['qualite'] = NULL; |
30 |
} else { |
} else { |
31 |
$this->valF['qualification'] = $val['qualification']; |
$this->valF['qualite'] = $val['qualite']; |
|
} |
|
|
if ($val['role'] == "") { |
|
|
$this->valF['role'] = NULL; |
|
|
} else { |
|
|
$this->valF['role'] = $val['role']; |
|
32 |
} |
} |
33 |
if ($val['particulier_nom'] == "") { |
if ($val['particulier_nom'] == "") { |
34 |
$this->valF['particulier_nom'] = NULL; |
$this->valF['particulier_nom'] = NULL; |
203 |
if ($maj==0){ //ajout |
if ($maj==0){ //ajout |
204 |
$form->setType('demandeur','hidden');// cle automatique |
$form->setType('demandeur','hidden');// cle automatique |
205 |
$form->setType('type_demandeur','text'); |
$form->setType('type_demandeur','text'); |
206 |
$form->setType('qualification','text'); |
$form->setType('qualite','text'); |
|
$form->setType('role','text'); |
|
207 |
$form->setType('particulier_nom','text'); |
$form->setType('particulier_nom','text'); |
208 |
$form->setType('particulier_prenom','text'); |
$form->setType('particulier_prenom','text'); |
209 |
if($this->retourformulaire=='') |
if($this->retourformulaire=='') |
252 |
if ($maj==1){ //modifier |
if ($maj==1){ //modifier |
253 |
$form->setType('demandeur','hiddenstatic'); |
$form->setType('demandeur','hiddenstatic'); |
254 |
$form->setType('type_demandeur','text'); |
$form->setType('type_demandeur','text'); |
255 |
$form->setType('qualification','text'); |
$form->setType('qualite','text'); |
|
$form->setType('role','text'); |
|
256 |
$form->setType('particulier_nom','text'); |
$form->setType('particulier_nom','text'); |
257 |
$form->setType('particulier_prenom','text'); |
$form->setType('particulier_prenom','text'); |
258 |
if($this->retourformulaire=='') |
if($this->retourformulaire=='') |
301 |
if ($maj==2){ //supprimer |
if ($maj==2){ //supprimer |
302 |
$form->setType('demandeur','hiddenstatic'); |
$form->setType('demandeur','hiddenstatic'); |
303 |
$form->setType('type_demandeur','hiddenstatic'); |
$form->setType('type_demandeur','hiddenstatic'); |
304 |
$form->setType('qualification','hiddenstatic'); |
$form->setType('qualite','hiddenstatic'); |
|
$form->setType('role','hiddenstatic'); |
|
305 |
$form->setType('particulier_nom','hiddenstatic'); |
$form->setType('particulier_nom','hiddenstatic'); |
306 |
$form->setType('particulier_prenom','hiddenstatic'); |
$form->setType('particulier_prenom','hiddenstatic'); |
307 |
$form->setType('particulier_date_naissance','hiddenstatic'); |
$form->setType('particulier_date_naissance','hiddenstatic'); |
335 |
if ($maj==3){ //consulter |
if ($maj==3){ //consulter |
336 |
$form->setType('demandeur','static'); |
$form->setType('demandeur','static'); |
337 |
$form->setType('type_demandeur','static'); |
$form->setType('type_demandeur','static'); |
338 |
$form->setType('qualification','static'); |
$form->setType('qualite','static'); |
|
$form->setType('role','static'); |
|
339 |
$form->setType('particulier_nom','static'); |
$form->setType('particulier_nom','static'); |
340 |
$form->setType('particulier_prenom','static'); |
$form->setType('particulier_prenom','static'); |
341 |
$form->setType('particulier_date_naissance','datestatic'); |
$form->setType('particulier_date_naissance','datestatic'); |
381 |
function setTaille(&$form, $maj) { |
function setTaille(&$form, $maj) { |
382 |
$form->setTaille("demandeur", 11); |
$form->setTaille("demandeur", 11); |
383 |
$form->setTaille("type_demandeur", 30); |
$form->setTaille("type_demandeur", 30); |
384 |
$form->setTaille("qualification", 30); |
$form->setTaille("qualite", 30); |
|
$form->setTaille("role", 30); |
|
385 |
$form->setTaille("particulier_nom", 30); |
$form->setTaille("particulier_nom", 30); |
386 |
$form->setTaille("particulier_prenom", 30); |
$form->setTaille("particulier_prenom", 30); |
387 |
$form->setTaille("particulier_date_naissance", 12); |
$form->setTaille("particulier_date_naissance", 12); |
419 |
function setMax(&$form, $maj) { |
function setMax(&$form, $maj) { |
420 |
$form->setMax("demandeur", 11); |
$form->setMax("demandeur", 11); |
421 |
$form->setMax("type_demandeur", 40); |
$form->setMax("type_demandeur", 40); |
422 |
$form->setMax("qualification", 40); |
$form->setMax("qualite", 40); |
|
$form->setMax("role", 40); |
|
423 |
$form->setMax("particulier_nom", 40); |
$form->setMax("particulier_nom", 40); |
424 |
$form->setMax("particulier_prenom", 40); |
$form->setMax("particulier_prenom", 40); |
425 |
$form->setMax("particulier_date_naissance", 12); |
$form->setMax("particulier_date_naissance", 12); |
456 |
//libelle des champs |
//libelle des champs |
457 |
$form->setLib('demandeur',_('demandeur')); |
$form->setLib('demandeur',_('demandeur')); |
458 |
$form->setLib('type_demandeur',_('type_demandeur')); |
$form->setLib('type_demandeur',_('type_demandeur')); |
459 |
$form->setLib('qualification',_('qualification')); |
$form->setLib('qualite',_('qualite')); |
|
$form->setLib('role',_('role')); |
|
460 |
$form->setLib('particulier_nom',_('particulier_nom')); |
$form->setLib('particulier_nom',_('particulier_nom')); |
461 |
$form->setLib('particulier_prenom',_('particulier_prenom')); |
$form->setLib('particulier_prenom',_('particulier_prenom')); |
462 |
$form->setLib('particulier_date_naissance',_('particulier_date_naissance')); |
$form->setLib('particulier_date_naissance',_('particulier_date_naissance')); |