1 |
nhaye |
787 |
<?php |
2 |
|
|
//$Id$ |
3 |
|
|
|
4 |
|
|
require_once ("../obj/demandeur.class.php"); |
5 |
|
|
|
6 |
vpihour |
795 |
/* |
7 |
|
|
* Classe qui hérite de la classe demandeur |
8 |
|
|
*/ |
9 |
nhaye |
787 |
class petitionnaire extends demandeur { |
10 |
|
|
|
11 |
|
|
function petitionnaire($id,&$db,$debug) { |
12 |
|
|
$this->constructeur($id,$db,$debug); |
13 |
|
|
}// fin constructeur |
14 |
|
|
|
15 |
vpihour |
799 |
/* |
16 |
|
|
* Cache le champ type_demandeur. |
17 |
|
|
*/ |
18 |
|
|
function setType(&$form,$maj) { |
19 |
|
|
parent::setType($form,$maj); |
20 |
|
|
$form->setType('type_demandeur', 'hidden'); |
21 |
nhaye |
850 |
|
22 |
|
|
} |
23 |
vpihour |
799 |
/* |
24 |
nhaye |
828 |
* Ajout du fielset |
25 |
|
|
* Add fieldset |
26 |
|
|
*/ |
27 |
|
|
function setLayout(&$form, $maj){ |
28 |
|
|
if ( $maj < 2 OR $maj == 3 ) { |
29 |
|
|
|
30 |
|
|
$form->setBloc('particulier_civilite','D',"", "bloc_demandeur"); |
31 |
|
|
$form->setBloc('particulier_civilite','D',"", "particulier_fields"); |
32 |
|
|
|
33 |
|
|
$form->setBloc('particulier_civilite','D',""); |
34 |
|
|
$form->setBloc('particulier_civilite','F'); |
35 |
|
|
|
36 |
|
|
$form->setBloc('particulier_nom','D',"","group search_particulier_fields"); |
37 |
|
|
$form->setBloc('particulier_prenom','F'); |
38 |
|
|
|
39 |
|
|
$form->setBloc('particulier_date_naissance','D',"","group"); |
40 |
|
|
$form->setBloc('particulier_commune_naissance','F'); |
41 |
|
|
|
42 |
|
|
$form->setBloc('particulier_departement_naissance','D',""); |
43 |
|
|
$form->setBloc('particulier_departement_naissance','F'); |
44 |
|
|
|
45 |
|
|
$form->setBloc('particulier_departement_naissance','F'); |
46 |
|
|
|
47 |
|
|
$form->setBloc('personne_morale_denomination','D',"", "personne_morale_fields"); |
48 |
|
|
|
49 |
|
|
$form->setBloc('personne_morale_denomination','D',"","group"); |
50 |
|
|
$form->setBloc('personne_morale_denomination','D',"", "search_personne_morale_fields"); |
51 |
|
|
$form->setBloc('personne_morale_denomination','F'); |
52 |
|
|
$form->setBloc('personne_morale_raison_sociale','F'); |
53 |
|
|
|
54 |
|
|
$form->setBloc('personne_morale_siret','D',""); |
55 |
|
|
$form->setBloc('personne_morale_siret','F'); |
56 |
|
|
|
57 |
|
|
$form->setBloc('personne_morale_categorie_juridique','D',""); |
58 |
|
|
$form->setBloc('personne_morale_categorie_juridique','F'); |
59 |
|
|
|
60 |
|
|
$form->setBloc('personne_morale_civilite','D',""); |
61 |
|
|
$form->setBloc('personne_morale_civilite','F'); |
62 |
|
|
|
63 |
|
|
$form->setBloc('personne_morale_nom','D',"", "group"); |
64 |
|
|
$form->setBloc('personne_morale_nom','D',"", "search_personne_morale_fields"); |
65 |
|
|
$form->setBloc('personne_morale_nom','F'); |
66 |
|
|
$form->setBloc('personne_morale_prenom','F'); |
67 |
|
|
|
68 |
|
|
$form->setBloc('personne_morale_prenom','F'); |
69 |
|
|
|
70 |
|
|
$form->setBloc('numero','D',""); |
71 |
|
|
|
72 |
|
|
$form->setBloc('numero','D',"","group"); |
73 |
|
|
$form->setBloc('voie','F'); |
74 |
|
|
|
75 |
|
|
$form->setBloc('complement','D',""); |
76 |
|
|
$form->setBloc('complement','F'); |
77 |
|
|
|
78 |
|
|
$form->setBloc('lieu_dit','D',"","group"); |
79 |
|
|
$form->setBloc('localite','F'); |
80 |
|
|
|
81 |
|
|
$form->setBloc('code_postal','D',"","group"); |
82 |
|
|
$form->setBloc('cedex','F'); |
83 |
|
|
|
84 |
|
|
$form->setBloc('pays','D',"", "","group"); |
85 |
|
|
$form->setBloc('division_territoriale','F'); |
86 |
|
|
|
87 |
|
|
$form->setBloc('telephone_fixe','D',"", "group"); |
88 |
|
|
$form->setBloc('indicatif','F'); |
89 |
|
|
|
90 |
|
|
$form->setBloc('frequent','F'); |
91 |
|
|
$form->setBloc('frequent','F'); |
92 |
|
|
} |
93 |
|
|
} |
94 |
|
|
/* |
95 |
vpihour |
799 |
* Met le champ type_demandeur à delegataire par défaut |
96 |
|
|
*/ |
97 |
|
|
function setVal(&$form, $maj, $validation, &$db) { |
98 |
nhaye |
828 |
$form->setVal("type_demandeur","petitionnaire"); |
99 |
vpihour |
799 |
} |
100 |
nhaye |
819 |
/* |
101 |
|
|
* Met le champ type_demandeur à delegataire par défaut |
102 |
|
|
*/ |
103 |
|
|
function setValSousFormulaire(&$form, $maj, $validation, &$db) { |
104 |
nhaye |
828 |
$form->setVal("type_demandeur","petitionnaire"); |
105 |
nhaye |
819 |
} |
106 |
nhaye |
787 |
}// fin classe |
107 |
|
|
?> |