1 |
<?php |
2 |
//$Id$ |
3 |
//gen openMairie le 10/02/2011 20:39 |
4 |
include('../gen/sql/pgsql/dossier.inc.php'); |
5 |
$table=DB_PREFIXE."dossier left join ". |
6 |
DB_PREFIXE."instructeur on dossier.instructeur = instructeur.instructeur left join ". |
7 |
DB_PREFIXE."om_utilisateur on instructeur.om_utilisateur = om_utilisateur.om_utilisateur left join ". |
8 |
DB_PREFIXE."avis_decision on avis_decision.avis_decision=dossier.avis_decision"; |
9 |
$champAffiche=array( |
10 |
'dossier.dossier as "'._("dossier").'"', |
11 |
'dossier.demandeur_nom as "'._("demandeur_nom").'"', |
12 |
'instructeur.nom as "'._("instructeur").'"', |
13 |
'to_char(dossier.date_demande ,\'DD/MM/YYYY\') as "'._("date_demande").'"', |
14 |
'to_char(dossier.date_depot ,\'DD/MM/YYYY\') as "'._("date_depot").'"', |
15 |
'to_char(dossier.date_complet ,\'DD/MM/YYYY\') as "'._("date_complet").'"', |
16 |
'to_char(dossier.date_notification_delai ,\'DD/MM/YYYY\') as "'._("date_notification_delai").'"', |
17 |
'to_char(dossier.date_limite ,\'DD/MM/YYYY\') as "'._("date_limite").'"', |
18 |
'etat as "'._("etat").'"', |
19 |
'avis_decision.libelle as "'._("avis_decision").'"', |
20 |
); |
21 |
|
22 |
$tri= "order by dossier.dossier"; |
23 |
|
24 |
$champRecherche=array("dossier","demandeur_nom"); |
25 |
|
26 |
$ico = "../img/ico_dossier.png"; |
27 |
|
28 |
$edition=""; |
29 |
|
30 |
if ($retourformulaire== 'architecte'){ |
31 |
$tab_actions['corner']['ajouter'] = NULL; |
32 |
$tab_actions['left']['consulter'] = NULL; |
33 |
$tab_actions['content'] =NULL; |
34 |
$selection=" where dossier.architecte ='".$idx."'"; |
35 |
} |
36 |
if ($retourformulaire== 'travaux'){ |
37 |
$tab_actions['corner']['ajouter'] = NULL; |
38 |
$tab_actions['left']['consulter'] = NULL; |
39 |
$tab_actions['content'] =NULL; |
40 |
$selection=" where dossier.travaux ='".$idx."'"; |
41 |
} |
42 |
|
43 |
if (isset($_GET["obj"]) && $_GET["obj"] == "dossier") { |
44 |
// Configuration de la recherche avancee |
45 |
if (!isset($options)) { |
46 |
$options = array(); |
47 |
} |
48 |
// Options pour les select de faux booléens |
49 |
$args = array( |
50 |
0 => array("", "Oui", "Non", ), |
51 |
1 => array(_("choisir")." "._("accord_tacite"), _("Oui"), _("Non"), ), |
52 |
); |
53 |
// |
54 |
$champs['dossier'] = array( |
55 |
'table' => 'dossier', |
56 |
'colonne' => 'dossier', |
57 |
'type' => 'text', |
58 |
'taille' => 30, |
59 |
'libelle' => _('dossier')); |
60 |
// |
61 |
$champs['nature'] = array( |
62 |
'table' => 'dossier', |
63 |
'colonne' => 'nature', |
64 |
'type' => 'select', |
65 |
'taille' => 30, |
66 |
'libelle' => _('nature')); |
67 |
|
68 |
|
69 |
|
70 |
// |
71 |
$champs['delegataire_nom'] = array( |
72 |
'table' => 'dossier', |
73 |
'colonne' => 'delegataire_nom', |
74 |
'type' => 'text', |
75 |
'taille' => 30, |
76 |
'libelle' => _('nom delegataire')); |
77 |
// |
78 |
$champs['demandeur_nom'] = array( |
79 |
'table' => 'dossier', |
80 |
'colonne' => 'demandeur_nom', |
81 |
'type' => 'text', |
82 |
'taille' => 30, |
83 |
'libelle' => _('nom demandeur')); |
84 |
|
85 |
|
86 |
// |
87 |
$champs['demandeur_societe'] = array( |
88 |
'table' => 'dossier', |
89 |
'colonne' => 'demandeur_societe', |
90 |
'type' => 'text', |
91 |
'taille' => 30, |
92 |
'libelle' => _('demandeur_societe')); |
93 |
// |
94 |
$champs['parcelle'] = array( |
95 |
'table' => 'dossier', |
96 |
'colonne' => 'parcelle', |
97 |
'type' => 'text', |
98 |
'taille' => 30, |
99 |
'libelle' => _('parcelle')); |
100 |
|
101 |
// |
102 |
$champs['rivoli'] = array( |
103 |
'table' => 'dossier', |
104 |
'colonne' => 'rivoli', |
105 |
'type' => 'text', |
106 |
'taille' => 30, |
107 |
'libelle' => _('rivoli')); |
108 |
// |
109 |
$champs['terrain_adresse'] = array( |
110 |
'table' => 'dossier', |
111 |
'colonne' => 'terrain_adresse', |
112 |
'type' => 'text', |
113 |
'taille' => 30, |
114 |
'libelle' => _('terrain_adresse')); |
115 |
|
116 |
|
117 |
|
118 |
|
119 |
// |
120 |
$champs['terrain_adresse_complement'] = array( |
121 |
'table' => 'dossier', |
122 |
'colonne' => 'terrain_adresse_complement', |
123 |
'type' => 'text', |
124 |
'taille' => 30, |
125 |
'libelle' => _('terrain_adresse_complement')); |
126 |
//// COL2 |
127 |
|
128 |
// |
129 |
$champs['etat'] = array( |
130 |
'table' => 'dossier', |
131 |
'colonne' => 'etat', |
132 |
'type' => 'select', |
133 |
'libelle' => _('etat')); |
134 |
// |
135 |
$champs['accord_tacite'] = array( |
136 |
'table' => 'dossier', |
137 |
'colonne' => 'accord_tacite', |
138 |
'type' => 'select', |
139 |
"subtype" => "manualselect", |
140 |
'libelle' => _('accord_tacite'), |
141 |
"args" => $args, |
142 |
); |
143 |
|
144 |
// |
145 |
$champs['travaux'] = array( |
146 |
'table' => 'dossier', |
147 |
'colonne' => 'travaux', |
148 |
'type' => 'select', |
149 |
'libelle' => _('travaux')); |
150 |
|
151 |
|
152 |
//// COL3 |
153 |
|
154 |
|
155 |
|
156 |
|
157 |
// |
158 |
$champs['instructeur'] = array( |
159 |
'table' => 'dossier', |
160 |
'colonne' => 'instructeur', |
161 |
'type' => 'select', |
162 |
'libelle' => _('instructeur')); |
163 |
// |
164 |
//$champs['architecte'] = array( |
165 |
// 'table' => 'dossier', |
166 |
// 'colonne' => 'architecte', |
167 |
// 'type' => 'select', |
168 |
// 'libelle' => _('architecte')); |
169 |
|
170 |
// |
171 |
$champs['date_depot'] = array( |
172 |
'colonne' => 'date_depot', |
173 |
'table' => 'dossier', |
174 |
'libelle' => _('date_depot'), |
175 |
'lib1'=> _("debut"), |
176 |
'lib2' => _("fin"), |
177 |
'type' => 'date', |
178 |
'taille' => 8, |
179 |
'where' => 'intervaldate'); |
180 |
// |
181 |
$champs['date_rejet'] = array( |
182 |
'colonne' => 'date_rejet', |
183 |
'table' => 'dossier', |
184 |
'libelle' => _('date_rejet'), |
185 |
'lib1'=> _("debut"), |
186 |
'lib2' => _("fin"), |
187 |
'type' => 'date', |
188 |
'taille' => 8, |
189 |
'where' => 'intervaldate'); |
190 |
|
191 |
// |
192 |
$champs['date_validite'] = array( |
193 |
'colonne' => 'date_validite', |
194 |
'table' => 'dossier', |
195 |
'libelle' => _('date_validite'), |
196 |
'lib1'=> _("debut"), |
197 |
'lib2' => _("fin"), |
198 |
'type' => 'date', |
199 |
'taille' => 8, |
200 |
'where' => 'intervaldate'); |
201 |
|
202 |
|
203 |
|
204 |
// |
205 |
$champs['date_complet'] = array( |
206 |
'colonne' => 'date_complet', |
207 |
'table' => 'dossier', |
208 |
'libelle' => _('date_complet'), |
209 |
'lib1'=> _("debut"), |
210 |
'lib2' => _("fin"), |
211 |
'type' => 'date', |
212 |
'taille' => 8, |
213 |
'where' => 'intervaldate'); |
214 |
// |
215 |
$champs['date_decision'] = array( |
216 |
'colonne' => 'date_decision', |
217 |
'table' => 'dossier', |
218 |
'libelle' => _('date_decision'), |
219 |
'lib1'=> _("debut"), |
220 |
'lib2' => _("fin"), |
221 |
'type' => 'date', |
222 |
'taille' => 8, |
223 |
'where' => 'intervaldate'); |
224 |
// |
225 |
$champs['date_limite'] = array( |
226 |
'colonne' => 'date_limite', |
227 |
'table' => 'dossier', |
228 |
'libelle' => _('date_limite'), |
229 |
'lib1'=> _("debut"), |
230 |
'lib2' => _("fin"), |
231 |
'type' => 'date', |
232 |
'taille' => 8, |
233 |
'where' => 'intervaldate'); |
234 |
|
235 |
|
236 |
|
237 |
|
238 |
// |
239 |
$champs['date_chantier'] = array( |
240 |
'colonne' => 'date_chantier', |
241 |
'table' => 'dossier', |
242 |
'libelle' => _('date_chantier'), |
243 |
'lib1'=> _("debut"), |
244 |
'lib2' => _("fin"), |
245 |
'type' => 'date', |
246 |
'taille' => 8, |
247 |
'where' => 'intervaldate'); |
248 |
// |
249 |
$champs['date_achevement'] = array( |
250 |
'colonne' => 'date_achevement', |
251 |
'table' => 'dossier', |
252 |
'libelle' => _('date_achevement'), |
253 |
'lib1'=> _("debut"), |
254 |
'lib2' => _("fin"), |
255 |
'type' => 'date', |
256 |
'taille' => 8, |
257 |
'where' => 'intervaldate'); |
258 |
// |
259 |
$champs['date_conformite'] = array( |
260 |
'colonne' => 'date_conformite', |
261 |
'table' => 'dossier', |
262 |
'libelle' => _('date_conformite'), |
263 |
'lib1'=> _("debut"), |
264 |
'lib2' => _("fin"), |
265 |
'type' => 'date', |
266 |
'taille' => 8, |
267 |
'where' => 'intervaldate'); |
268 |
// |
269 |
$options[] = array( |
270 |
'type' => 'search', |
271 |
'display' => true, |
272 |
'advanced' => $champs, |
273 |
'default_form' => 'advanced', |
274 |
'absolute_object' => 'dossier'); |
275 |
} |
276 |
|
277 |
|
278 |
$sousformulaire=array("instruction", |
279 |
"consultation", |
280 |
"terrain", |
281 |
"blocnote", |
282 |
"destination_shon", |
283 |
"statistique", |
284 |
"messages"); |
285 |
?> |