17 |
// Sais pas quoi faire de ce champ |
// Sais pas quoi faire de ce champ |
18 |
$form->setType('code_cnil', 'hidden'); |
$form->setType('code_cnil', 'hidden'); |
19 |
|
|
20 |
|
//Ajout des select sur les tableaux |
21 |
if($maj == 0) { |
if($maj == 0) { |
22 |
|
|
23 |
$form->setType('tab_surface', 'select'); |
$form->setType('tab_surface', 'select'); |
24 |
|
$form->setType('tab_tax_su_princ', 'select'); |
25 |
|
$form->setType('tab_tax_su_heber', 'select'); |
26 |
|
$form->setType('tab_tax_su_secon', 'select'); |
27 |
|
$form->setType('tab_tax_su_tot', 'select'); |
28 |
|
$form->setType('tab_tax_su_non_habit_surf', 'select'); |
29 |
|
$form->setType('tab_tax_am', 'select'); |
30 |
}elseif($maj == 1) { |
}elseif($maj == 1) { |
31 |
|
|
32 |
$form->setType('tab_surface', 'select'); |
$form->setType('tab_surface', 'select'); |
33 |
|
$form->setType('tab_tax_su_princ', 'select'); |
34 |
|
$form->setType('tab_tax_su_heber', 'select'); |
35 |
|
$form->setType('tab_tax_su_secon', 'select'); |
36 |
|
$form->setType('tab_tax_su_tot', 'select'); |
37 |
|
$form->setType('tab_tax_su_non_habit_surf', 'select'); |
38 |
|
$form->setType('tab_tax_am', 'select'); |
39 |
}elseif($maj == 2) { |
}elseif($maj == 2) { |
40 |
|
|
41 |
$form->setType('tab_surface', 'selecthiddenstatic'); |
$form->setType('tab_surface', 'selecthiddenstatic'); |
42 |
|
$form->setType('tab_tax_su_princ', 'selecthiddenstatic'); |
43 |
|
$form->setType('tab_tax_su_heber', 'selecthiddenstatic'); |
44 |
|
$form->setType('tab_tax_su_secon', 'selecthiddenstatic'); |
45 |
|
$form->setType('tab_tax_su_tot', 'selecthiddenstatic'); |
46 |
|
$form->setType('tab_tax_su_non_habit_surf', 'selecthiddenstatic'); |
47 |
|
$form->setType('tab_tax_am', 'selecthiddenstatic'); |
48 |
}elseif($maj == 3) { |
}elseif($maj == 3) { |
49 |
|
|
50 |
$form->setType('tab_surface', 'selecthiddenstatic'); |
$form->setType('tab_surface', 'selecthiddenstatic'); |
51 |
|
$form->setType('tab_tax_su_princ', 'selecthiddenstatic'); |
52 |
|
$form->setType('tab_tax_su_heber', 'selecthiddenstatic'); |
53 |
|
$form->setType('tab_tax_su_secon', 'selecthiddenstatic'); |
54 |
|
$form->setType('tab_tax_su_tot', 'selecthiddenstatic'); |
55 |
|
$form->setType('tab_tax_su_non_habit_surf', 'selecthiddenstatic'); |
56 |
|
$form->setType('tab_tax_am', 'selecthiddenstatic'); |
57 |
} |
} |
58 |
} |
} |
59 |
|
|
162 |
// bloc 5.1 |
// bloc 5.1 |
163 |
$form->setBloc('co_archi_recours','D',_("Architecte"),"col_12"); |
$form->setBloc('co_archi_recours','D',_("Architecte"),"col_12"); |
164 |
|
|
165 |
$form->setBloc('co_archi_recours','F'); |
$form->setBloc('co_archi_mail','F'); |
166 |
|
|
167 |
// bloc 5.2 |
// bloc 5.2 |
168 |
$form->setBloc('co_cstr_nouv','D',_("Nature du projet"),"col_12"); |
$form->setBloc('co_cstr_nouv','D',_("Nature du projet"),"col_12"); |