1 |
vpihour |
1249 |
<?php |
2 |
|
|
//$Id$ |
3 |
|
|
//gen openMairie le 13/02/2013 14:41 |
4 |
|
|
|
5 |
|
|
require_once ("../gen/obj/cerfa.class.php"); |
6 |
|
|
|
7 |
|
|
class cerfa extends cerfa_gen { |
8 |
|
|
|
9 |
|
|
function cerfa($id,&$db,$debug) { |
10 |
|
|
$this->constructeur($id,$db,$debug); |
11 |
|
|
}// fin constructeur |
12 |
|
|
|
13 |
nhaye |
1258 |
|
14 |
|
|
function setType(&$form,$maj) { |
15 |
|
|
parent::setType($form,$maj); |
16 |
|
|
|
17 |
|
|
// Sais pas quoi faire de ce champ |
18 |
|
|
$form->setType('code_cnil', 'hidden'); |
19 |
|
|
|
20 |
|
|
if($maj == 0) { |
21 |
|
|
$form->setType('tab_surface', 'select'); |
22 |
|
|
}elseif($maj == 1) { |
23 |
|
|
$form->setType('tab_surface', 'select'); |
24 |
|
|
}elseif($maj == 2) { |
25 |
|
|
$form->setType('tab_surface', 'selecthiddenstatic'); |
26 |
|
|
}elseif($maj == 3) { |
27 |
|
|
$form->setType('tab_surface', 'selecthiddenstatic'); |
28 |
|
|
} |
29 |
|
|
} |
30 |
|
|
|
31 |
|
|
function setSelect(&$form, $maj,&$db,$debug) { |
32 |
|
|
parent::setSelect($form, $maj,$db,$debug); |
33 |
|
|
|
34 |
|
|
if(file_exists ("../sql/".$db->phptype."/".$this->table.".form.inc.php")) |
35 |
|
|
include ("../sql/".$db->phptype."/".$this->table.".form.inc.php"); |
36 |
|
|
elseif(file_exists ("../sql/".$db->phptype."/".$this->table.".form.inc")) |
37 |
|
|
include ("../sql/".$db->phptype."/".$this->table.".form.inc"); |
38 |
|
|
|
39 |
|
|
// parametrage du tableau de surface |
40 |
|
|
$contenu=array(); |
41 |
|
|
$contenu[0]=array_keys($tab_surface); |
42 |
|
|
$contenu[1]=array_values($tab_surface); |
43 |
|
|
$form->setSelect("tab_surface",$contenu); |
44 |
|
|
|
45 |
|
|
} |
46 |
|
|
|
47 |
|
|
function setLayout(&$form, $maj) { |
48 |
|
|
|
49 |
|
|
/*Fieldset Parametrage du cerfa */ |
50 |
|
|
$form->setBloc('libelle','D',"","col_12"); |
51 |
|
|
$form->setFieldset('libelle','D' |
52 |
|
|
,_("Parametrage du cerfa")); |
53 |
|
|
|
54 |
|
|
|
55 |
|
|
$form->setFieldset('dossier_instruction_type','F',''); |
56 |
|
|
$form->setBloc('dossier_instruction_type','F'); |
57 |
|
|
|
58 |
|
|
/*Fieldset n°4 Projet d'aménagement */ |
59 |
|
|
$form->setBloc('am_lotiss','D',"","col_12"); |
60 |
|
|
$form->setFieldset('am_lotiss','D' |
61 |
|
|
,_("Projet d'amenagement")); |
62 |
|
|
// bloc 4.1 |
63 |
|
|
$form->setBloc('am_lotiss','D',_("Nature des travaux, instalations |
64 |
|
|
ou aménagements envisagés"),"col_12"); |
65 |
|
|
|
66 |
|
|
$form->setBloc('am_tranche_desc','F'); |
67 |
|
|
|
68 |
|
|
// bloc 4.2 |
69 |
|
|
$form->setBloc('am_lot_max_nb','D',_("Demande concernant un lotissement"),"col_12"); |
70 |
|
|
|
71 |
|
|
$form->setBloc('am_lot_vente_ant','F'); |
72 |
|
|
|
73 |
|
|
// bloc 4.3 |
74 |
|
|
$form->setBloc('am_empl_nb','D',_("Amenagement d'un camping ou |
75 |
|
|
d'un terrain aménagé en vue de l'hébergement |
76 |
|
|
touristique"),"col_12"); |
77 |
|
|
|
78 |
|
|
$form->setBloc('am_exist_agrand','F'); |
79 |
|
|
|
80 |
|
|
$form->setFieldset('am_coupe_autr','F',''); |
81 |
|
|
|
82 |
|
|
$form->setBloc('am_coupe_autr','F'); |
83 |
|
|
|
84 |
|
|
/*Fieldset n°5 Projet de construction */ |
85 |
|
|
$form->setBloc('co_archi_recours','D',"","col_12"); |
86 |
|
|
$form->setFieldset('co_archi_recours','D' |
87 |
|
|
,_("Projet de construction")); |
88 |
|
|
// bloc 5.1 |
89 |
|
|
$form->setBloc('co_archi_recours','D',_("Architecte"),"col_12"); |
90 |
|
|
|
91 |
|
|
$form->setBloc('co_archi_recours','F'); |
92 |
|
|
|
93 |
|
|
// bloc 5.2 |
94 |
|
|
$form->setBloc('co_cstr_nouv','D',_("Nature du projet"),"col_12"); |
95 |
|
|
|
96 |
|
|
$form->setBloc('co_elec_tension','F'); |
97 |
|
|
|
98 |
|
|
// bloc 5.3 |
99 |
|
|
$form->setBloc('co_tot_log_nb','D',_("Informations complementaires"),"col_12"); |
100 |
|
|
|
101 |
|
|
$form->setBloc('co_trx_nivsup','F'); |
102 |
|
|
|
103 |
|
|
// bloc 5.4 |
104 |
|
|
$form->setBloc('co_demont_period','D',_("Construction periodiquement |
105 |
|
|
démontee et re-installee"),"col_12"); |
106 |
|
|
|
107 |
|
|
$form->setBloc('co_demont_period','F'); |
108 |
|
|
|
109 |
|
|
// bloc 5.5 |
110 |
|
|
$form->setBloc('tab_surface','D',_("Destination des constructions |
111 |
|
|
et tableau des surfaces"),"col_12"); |
112 |
|
|
|
113 |
|
|
$form->setBloc('tab_surface','F'); |
114 |
|
|
|
115 |
|
|
// bloc 5.6 |
116 |
|
|
$form->setBloc('co_sp_transport','D',_("Destination des constructions |
117 |
|
|
futures en cas de realisation au benefice d'un |
118 |
|
|
service public ou d'interet collectif"),"col_12"); |
119 |
|
|
|
120 |
|
|
$form->setBloc('co_sp_culture','F'); |
121 |
|
|
|
122 |
|
|
// bloc 5.7 |
123 |
|
|
$form->setBloc('co_statio_avt_nb','D',_("Stationnement"),"col_12"); |
124 |
|
|
|
125 |
|
|
$form->setBloc('co_statio_comm_cin_surf','F'); |
126 |
|
|
|
127 |
|
|
$form->setFieldset('co_statio_apr_surf','F',''); |
128 |
|
|
|
129 |
|
|
$form->setBloc('co_statio_apr_surf','F'); |
130 |
|
|
|
131 |
|
|
|
132 |
|
|
/*Fieldset n°6 Projet necessitant demolitions */ |
133 |
|
|
$form->setBloc('dm_constr_dates','D',"","col_12"); |
134 |
|
|
$form->setFieldset('dm_constr_dates','D' |
135 |
|
|
,_("Projet necessitant demolitions")); |
136 |
|
|
|
137 |
|
|
$form->setBloc('dm_constr_dates','D',"","col_12"); |
138 |
|
|
|
139 |
|
|
$form->setBloc('dm_tot_log_nb','F'); |
140 |
|
|
|
141 |
|
|
$form->setFieldset('dm_tot_log_nb','F',''); |
142 |
|
|
|
143 |
|
|
$form->setBloc('dm_tot_log_nb','F'); |
144 |
|
|
} |
145 |
|
|
|
146 |
vpihour |
1249 |
}// fin classe |
147 |
|
|
?> |