236 |
$id_tab_tax_su_tot = $this->cerfa->getVal("tab_tax_su_tot"); |
$id_tab_tax_su_tot = $this->cerfa->getVal("tab_tax_su_tot"); |
237 |
$id_tab_tax_su_non_habit_surf = $this->cerfa->getVal("tab_tax_su_non_habit_surf"); |
$id_tab_tax_su_non_habit_surf = $this->cerfa->getVal("tab_tax_su_non_habit_surf"); |
238 |
$id_tab_tax_am = $this->cerfa->getVal("tab_tax_am"); |
$id_tab_tax_am = $this->cerfa->getVal("tab_tax_am"); |
239 |
$hidden = false; |
$hidden = true; |
240 |
|
|
241 |
|
// On cache tous les champs |
242 |
|
$form->setType($champ,'hidden'); |
243 |
|
|
244 |
|
// On défini l'affichage des champs des tableaux de configuration |
245 |
|
// Si les tableau sont définis dans le cerfa on test si les champs des données |
246 |
|
// techniques sont définis dans les tableaux de configuration des tableaux |
247 |
|
// pour chaque cerfa alors on les affiche en type "text" |
248 |
if(!empty($id_tab_surface)) { |
if(!empty($id_tab_surface)) { |
249 |
if(!in_array($champ, $tab_surface[$this->cerfa->getVal("tab_surface")]['values'])) { |
if(in_array($champ, $tab_surface[$this->cerfa->getVal("tab_surface")]['values'])) { |
250 |
$hidden = true; |
$hidden = false; |
251 |
} |
} |
252 |
} |
} |
253 |
if(!empty($id_tab_tax_su_princ)) { |
if(!empty($id_tab_tax_su_princ)) { |
254 |
if(!in_array($champ, $tab_tax_su_princ[$this->cerfa->getVal("tab_tax_su_princ")]['values'])) { |
if(in_array($champ, $tab_tax_su_princ[$this->cerfa->getVal("tab_tax_su_princ")]['values'])) { |
255 |
$hidden = true; |
$hidden = false; |
256 |
} |
} |
257 |
} |
} |
258 |
if(!empty($id_tab_tax_su_heber)) { |
if(!empty($id_tab_tax_su_heber)) { |
259 |
if(!in_array($champ, $tab_surface[$this->cerfa->getVal("tab_surface")]['values'])) { |
if(in_array($champ, $tab_tax_su_heber[$this->cerfa->getVal("tab_tax_su_heber")]['values'])) { |
260 |
$hidden = true; |
$hidden = false; |
261 |
} |
} |
262 |
} |
} |
263 |
if(!empty($id_tab_tax_su_secon)) { |
if(!empty($id_tab_tax_su_secon)) { |
264 |
if(!in_array($champ, $tab_tax_su_secon[$this->cerfa->getVal("tab_tax_su_secon")]['values'])) { |
if(in_array($champ, $tab_tax_su_secon[$this->cerfa->getVal("tab_tax_su_secon")]['values'])) { |
265 |
$hidden = true; |
$hidden = false; |
266 |
} |
} |
267 |
} |
} |
268 |
if(!empty($id_tab_tax_su_tot)) { |
if(!empty($id_tab_tax_su_tot)) { |
269 |
if(!in_array($champ, $tab_tax_su_tot[$this->cerfa->getVal("tab_tax_su_tot")]['values'])) { |
if(in_array($champ, $tab_tax_su_tot[$this->cerfa->getVal("tab_tax_su_tot")]['values'])) { |
270 |
$hidden = true; |
$hidden = false; |
271 |
} |
} |
272 |
} |
} |
273 |
if(!empty($id_tab_tax_su_non_habit_surf)) { |
if(!empty($id_tab_tax_su_non_habit_surf)) { |
274 |
if(!in_array($champ, $tab_tax_su_non_habit_surf[$this->cerfa->getVal("tab_tax_su_non_habit_surf")]['values'])) { |
if(in_array($champ, $tab_tax_su_non_habit_surf[$this->cerfa->getVal("tab_tax_su_non_habit_surf")]['values'])) { |
275 |
$hidden = true; |
$hidden = false; |
276 |
} |
} |
277 |
} |
} |
278 |
if(!empty($id_tab_tax_am)) { |
if(!empty($id_tab_tax_am)) { |
279 |
if(!in_array($champ, $tab_tax_am[$this->cerfa->getVal("tab_tax_am")]['values'])) { |
if(in_array($champ, $tab_tax_am[$this->cerfa->getVal("tab_tax_am")]['values'])) { |
280 |
$hidden = true; |
$hidden = false; |
281 |
} |
} |
282 |
} |
} |
283 |
if($hidden){ |
|
284 |
$form->setType($champ,'hidden'); |
if(!$hidden){ |
285 |
|
$form->setType($champ,'text'); |
286 |
} |
} |
287 |
} |
} |
288 |
} |
} |