1 |
fraynaud |
3 |
<?php |
2 |
|
|
/** |
3 |
|
|
* Ce fichier permet de configurer quelles actions vont etre disponibles |
4 |
|
|
* dans le menu. |
5 |
|
|
* |
6 |
|
|
* |
7 |
|
|
* |
8 |
|
|
* @package openmairie_exemple |
9 |
|
|
* @version SVN : $Id: menu.inc.php 324 2010-12-06 16:06:21Z fraynaud $ |
10 |
|
|
*/ |
11 |
|
|
|
12 |
|
|
/** |
13 |
|
|
* $menu est le tableau associatif qui contient tout le menu de |
14 |
|
|
* l'application, il contient lui meme un tableau par rubrique, puis chaque |
15 |
|
|
* rubrique contient un tableau par lien |
16 |
|
|
* |
17 |
|
|
* Caracteristiques : |
18 |
|
|
* --- tableau rubrik |
19 |
|
|
* - title [obligatoire] |
20 |
|
|
* - description (texte qui s'affiche au survol de la rubrique) |
21 |
|
|
* - href (contenu du lien href) |
22 |
|
|
* - class (classe css qui s'affiche sur la rubrique) |
23 |
|
|
* - right (droit que l'utilisateur doit avoir pour visionner cette rubrique) |
24 |
|
|
* - links [obligatoire] |
25 |
|
|
* |
26 |
|
|
* --- tableau links |
27 |
|
|
* - title [obligatoire] |
28 |
|
|
* - href [obligatoire] (contenu du lien href) |
29 |
|
|
* - class (classe css qui s'affiche sur l'element) |
30 |
|
|
* - right (droit que l'utilisateur doit avoir pour visionner cet element) |
31 |
|
|
* - target (pour ouvrir le lien dans une nouvelle fenetre) |
32 |
|
|
*/ |
33 |
|
|
$menu = array(); |
34 |
|
|
|
35 |
|
|
// {{{ Rubrique application |
36 |
|
|
// inserer ici vos tables principales |
37 |
|
|
|
38 |
|
|
$rubrik = array( |
39 |
|
|
"title" => _("Application"), |
40 |
|
|
"class" => "application", |
41 |
|
|
"right" => "menu_application", |
42 |
|
|
); |
43 |
|
|
$links = array(); |
44 |
|
|
// *** APPLICATION *** |
45 |
|
|
// inserez ici les tables de votra application |
46 |
|
|
// ======================================================================== |
47 |
|
|
/* |
48 |
|
|
array_push($links, |
49 |
|
|
array( |
50 |
|
|
"href" => "../scr/tab.php?obj=nom_table", |
51 |
|
|
"class" => "nom_table", |
52 |
|
|
"title" => _("nom_table"), |
53 |
|
|
"right" => "nom_table" |
54 |
|
|
)); |
55 |
|
|
*/ |
56 |
|
|
// ======================================================================== |
57 |
|
|
|
58 |
fraynaud |
11 |
/* |
59 |
fraynaud |
4 |
array_push($links, |
60 |
|
|
array( |
61 |
|
|
"href" => "../scr/tab.php?obj=dossier", |
62 |
|
|
"class" => "dossier", |
63 |
|
|
"title" => _("dossier"), |
64 |
|
|
"right" => "dossier" |
65 |
|
|
)); |
66 |
fraynaud |
11 |
*/ |
67 |
fraynaud |
4 |
|
68 |
fraynaud |
11 |
array_push($links, |
69 |
|
|
array( |
70 |
|
|
"href" => "../scr/tab.php?obj=PC", |
71 |
|
|
"class" => "dossier", |
72 |
|
|
"title" => _("PC"), |
73 |
|
|
"right" => "dossier" |
74 |
|
|
)); |
75 |
|
|
|
76 |
|
|
array_push($links, |
77 |
|
|
array( |
78 |
|
|
"href" => "../scr/tab.php?obj=DP", |
79 |
|
|
"class" => "dossier", |
80 |
|
|
"title" => _("DP"), |
81 |
|
|
"right" => "dossier" |
82 |
|
|
)); |
83 |
fraynaud |
4 |
|
84 |
|
|
|
85 |
fraynaud |
11 |
array_push($links, |
86 |
|
|
array( |
87 |
|
|
"href" => "../scr/tab.php?obj=PD", |
88 |
|
|
"class" => "dossier", |
89 |
|
|
"title" => _("PD"), |
90 |
|
|
"right" => "dossier" |
91 |
|
|
)); |
92 |
|
|
|
93 |
|
|
array_push($links, |
94 |
|
|
array( |
95 |
|
|
"href" => "../scr/tab.php?obj=PA", |
96 |
|
|
"class" => "dossier", |
97 |
|
|
"title" => _("PA"), |
98 |
|
|
"right" => "dossier" |
99 |
|
|
)); |
100 |
|
|
|
101 |
|
|
array_push($links, |
102 |
|
|
array( |
103 |
|
|
"title" => "<hr/>", |
104 |
|
|
"right" => array("gen"), |
105 |
|
|
)); |
106 |
|
|
|
107 |
|
|
array_push($links, |
108 |
|
|
array( |
109 |
|
|
"href" => "../scr/tab.php?obj=PC_accueil", |
110 |
|
|
"class" => "dossier", |
111 |
|
|
"title" => _("PC - accueil"), |
112 |
|
|
"right" => "dossier" |
113 |
|
|
)); |
114 |
|
|
|
115 |
|
|
array_push($links, |
116 |
|
|
array( |
117 |
|
|
"href" => "../scr/tab.php?obj=DP_accueil", |
118 |
|
|
"class" => "dossier", |
119 |
|
|
"title" => _("DP - accueil"), |
120 |
|
|
"right" => "dossier" |
121 |
|
|
)); |
122 |
|
|
|
123 |
|
|
|
124 |
|
|
array_push($links, |
125 |
|
|
array( |
126 |
|
|
"href" => "../scr/tab.php?obj=PD_accueil", |
127 |
|
|
"class" => "dossier", |
128 |
|
|
"title" => _("PD - accueil"), |
129 |
|
|
"right" => "dossier" |
130 |
|
|
)); |
131 |
|
|
|
132 |
|
|
array_push($links, |
133 |
|
|
array( |
134 |
|
|
"href" => "../scr/tab.php?obj=PA_accueil", |
135 |
|
|
"class" => "dossier", |
136 |
|
|
"title" => _("PA - accueil"), |
137 |
|
|
"right" => "dossier" |
138 |
|
|
)); |
139 |
|
|
|
140 |
|
|
|
141 |
fraynaud |
3 |
$rubrik['links'] = $links; |
142 |
|
|
array_push($menu, $rubrik); |
143 |
|
|
|
144 |
|
|
// {{{ Rubrique EXPORT |
145 |
|
|
$rubrik = array( |
146 |
|
|
"title" => _("Export"), |
147 |
|
|
"class" => "edition", |
148 |
|
|
"right" => "menu_export", |
149 |
|
|
); |
150 |
|
|
|
151 |
|
|
$links = array(); |
152 |
|
|
array_push($links, |
153 |
|
|
array( |
154 |
|
|
"href" => "../scr/edition.php", |
155 |
|
|
"class" => "edition", |
156 |
|
|
"title" => _("Edition"), |
157 |
|
|
"right" => "edition" |
158 |
|
|
)); |
159 |
|
|
array_push($links, |
160 |
|
|
array( |
161 |
|
|
"href" => "../scr/reqmo.php", |
162 |
|
|
"class" => "reqmo", |
163 |
|
|
"title" => _("Requetes memorisees"), |
164 |
|
|
"right" => "reqmo" |
165 |
|
|
)); |
166 |
|
|
$rubrik['links'] = $links; |
167 |
|
|
array_push($menu, $rubrik); |
168 |
|
|
// }}} |
169 |
|
|
|
170 |
|
|
// {{{ Rubrique TRAITEMENT |
171 |
|
|
|
172 |
|
|
$rubrik = array( |
173 |
|
|
"title" => _("Traitement"), |
174 |
|
|
"class" => "traitement", |
175 |
|
|
"right" => "menu_traitement", |
176 |
|
|
); |
177 |
|
|
$links = array(); |
178 |
|
|
// *** TRAITEMENT *** |
179 |
|
|
// inserez le lien d acces au traitement |
180 |
|
|
// ======================================================================== |
181 |
|
|
/* |
182 |
|
|
array_push($links, |
183 |
|
|
array( |
184 |
|
|
"href" => "../trt/nom_du_traitement.php", |
185 |
|
|
"class" => "traitement", |
186 |
|
|
"title" => _("Traitement"), |
187 |
|
|
"right" => "traitement" |
188 |
|
|
)); |
189 |
|
|
*/ |
190 |
|
|
// ======================================================================== |
191 |
|
|
$rubrik['links'] = $links; |
192 |
|
|
array_push($menu, $rubrik); |
193 |
|
|
// }}} |
194 |
|
|
|
195 |
|
|
|
196 |
|
|
|
197 |
|
|
// {{{ Rubrique parametrage de l'application |
198 |
|
|
|
199 |
|
|
$rubrik = array( |
200 |
|
|
"title" => _("Parametrage"), |
201 |
|
|
"class" => "parametrage", |
202 |
|
|
"right" => "menu_parametrage", |
203 |
|
|
); |
204 |
|
|
$links = array(); |
205 |
|
|
// *** TABLES DE PARAMETRAGE *** |
206 |
|
|
// inserer ici vos tables de parametres |
207 |
|
|
// ======================================================================== |
208 |
|
|
/* |
209 |
|
|
array_push($links, |
210 |
|
|
array( |
211 |
|
|
"href" => "../scr/tab.php?obj=nom_table", |
212 |
|
|
"class" => "nom_table", |
213 |
|
|
"title" => _("nom_table"), |
214 |
|
|
"right" => "nom_table" |
215 |
|
|
)); |
216 |
|
|
*/ |
217 |
|
|
// ======================================================================== |
218 |
|
|
|
219 |
fraynaud |
4 |
|
220 |
fraynaud |
10 |
// param gaux |
221 |
fraynaud |
4 |
|
222 |
fraynaud |
3 |
array_push($links, |
223 |
|
|
array( |
224 |
fraynaud |
4 |
"href" => "../scr/tab.php?obj=architecte", |
225 |
|
|
"class" => "architecte", |
226 |
|
|
"title" => _("architecte"), |
227 |
|
|
"right" => "architecte" |
228 |
|
|
)); |
229 |
|
|
|
230 |
|
|
|
231 |
|
|
|
232 |
|
|
array_push($links, |
233 |
|
|
array( |
234 |
|
|
"href" => "../scr/tab.php?obj=service", |
235 |
|
|
"class" => "service", |
236 |
|
|
"title" => _("service"), |
237 |
|
|
"right" => "service" |
238 |
|
|
)); |
239 |
fraynaud |
10 |
|
240 |
fraynaud |
4 |
array_push($links, |
241 |
|
|
array( |
242 |
fraynaud |
10 |
"href" => "../scr/tab.php?obj=travaux", |
243 |
|
|
"class" => "travaux", |
244 |
|
|
"title" => _("travaux"), |
245 |
|
|
"right" => "travaux" |
246 |
fraynaud |
4 |
)); |
247 |
|
|
|
248 |
|
|
array_push($links, |
249 |
|
|
array( |
250 |
|
|
"href" => "../scr/tab.php?obj=regle", |
251 |
|
|
"class" => "regle", |
252 |
|
|
"title" => _("regle"), |
253 |
|
|
"right" => "regle" |
254 |
|
|
)); |
255 |
|
|
|
256 |
|
|
array_push($links, |
257 |
|
|
array( |
258 |
fraynaud |
10 |
"href" => "../scr/tab.php?obj=categorie_demandeur", |
259 |
|
|
"class" => "categorie_demandeur", |
260 |
|
|
"title" => _("categorie_demandeur"), |
261 |
|
|
"right" => "categorie_demandeur" |
262 |
|
|
)); |
263 |
|
|
|
264 |
|
|
array_push($links, |
265 |
|
|
array( |
266 |
|
|
"href" => "../scr/tab.php?obj=destination", |
267 |
|
|
"class" => "destination", |
268 |
|
|
"title" => _("destination"), |
269 |
|
|
"right" => "destination" |
270 |
|
|
)); |
271 |
|
|
|
272 |
|
|
array_push($links, |
273 |
|
|
array( |
274 |
|
|
"href" => "../scr/tab.php?obj=nature", |
275 |
|
|
"class" => "nature", |
276 |
|
|
"title" => _("nature"), |
277 |
|
|
"right" => "nature" |
278 |
|
|
)); |
279 |
|
|
|
280 |
|
|
// workflows |
281 |
|
|
array_push($links, |
282 |
|
|
array( |
283 |
|
|
"title" => "<hr/>", |
284 |
|
|
"right" => array("action_tab", "transition_tab", "etat_tab", |
285 |
|
|
"evenement_tab", "bible", "avis") |
286 |
|
|
)); |
287 |
|
|
|
288 |
|
|
array_push($links, |
289 |
|
|
array( |
290 |
fraynaud |
3 |
"href" => "../scr/tab.php?obj=action", |
291 |
|
|
"class" => "action", |
292 |
|
|
"title" => _("action"), |
293 |
|
|
"right" => "action" |
294 |
|
|
)); |
295 |
|
|
|
296 |
fraynaud |
4 |
array_push($links, |
297 |
|
|
array( |
298 |
|
|
"href" => "../scr/tab.php?obj=transition", |
299 |
|
|
"class" => "transition", |
300 |
|
|
"title" => _("transition"), |
301 |
|
|
"right" => "transition" |
302 |
|
|
)); |
303 |
|
|
|
304 |
|
|
array_push($links, |
305 |
|
|
array( |
306 |
|
|
"href" => "../scr/tab.php?obj=etat", |
307 |
|
|
"class" => "etat", |
308 |
|
|
"title" => _("etat"), |
309 |
|
|
"right" => "etat" |
310 |
|
|
)); |
311 |
fraynaud |
3 |
|
312 |
fraynaud |
10 |
array_push($links, |
313 |
|
|
array( |
314 |
|
|
"href" => "../scr/tab.php?obj=evenement", |
315 |
|
|
"class" => "evenement", |
316 |
|
|
"title" => _("evenement"), |
317 |
|
|
"right" => "evenement" |
318 |
|
|
)); |
319 |
|
|
|
320 |
|
|
array_push($links, |
321 |
fraynaud |
4 |
array( |
322 |
fraynaud |
10 |
"href" => "../scr/tab.php?obj=bible", |
323 |
|
|
"class" => "bible", |
324 |
|
|
"title" => _("bible"), |
325 |
|
|
"right" => "bible" |
326 |
fraynaud |
4 |
)); |
327 |
fraynaud |
10 |
|
328 |
fraynaud |
4 |
array_push($links, |
329 |
|
|
array( |
330 |
fraynaud |
10 |
"href" => "../scr/tab.php?obj=avis", |
331 |
|
|
"class" => "avis", |
332 |
|
|
"title" => _("avis"), |
333 |
|
|
"right" => "avis" |
334 |
fraynaud |
4 |
)); |
335 |
|
|
|
336 |
fraynaud |
10 |
// cadastre interne |
337 |
|
|
array_push($links, |
338 |
fraynaud |
4 |
array( |
339 |
fraynaud |
10 |
"title" => "<hr/>", |
340 |
|
|
"right" => array("parcelle_tab", "proprietaire_tab", "civilite_tab", "pos_tab", "rivoli_tab") |
341 |
fraynaud |
4 |
)); |
342 |
|
|
array_push($links, |
343 |
|
|
array( |
344 |
|
|
"href" => "../scr/tab.php?obj=parcelle", |
345 |
|
|
"class" => "parcelle", |
346 |
|
|
"title" => _("parcelle"), |
347 |
|
|
"right" => "parcelle" |
348 |
|
|
)); |
349 |
|
|
|
350 |
|
|
array_push($links, |
351 |
|
|
array( |
352 |
|
|
"href" => "../scr/tab.php?obj=proprietaire", |
353 |
|
|
"class" => "proprietaire", |
354 |
|
|
"title" => _("proprietaire"), |
355 |
|
|
"right" => "proprietaire" |
356 |
|
|
)); |
357 |
|
|
|
358 |
|
|
array_push($links, |
359 |
|
|
array( |
360 |
fraynaud |
10 |
"href" => "../scr/tab.php?obj=civilite", |
361 |
|
|
"class" => "civilite", |
362 |
|
|
"title" => _("civilite"), |
363 |
|
|
"right" => "civilite" |
364 |
|
|
)); |
365 |
|
|
|
366 |
|
|
array_push($links, |
367 |
|
|
array( |
368 |
fraynaud |
4 |
"href" => "../scr/tab.php?obj=pos", |
369 |
|
|
"class" => "pos", |
370 |
|
|
"title" => _("pos"), |
371 |
|
|
"right" => "pos" |
372 |
|
|
)); |
373 |
|
|
|
374 |
|
|
array_push($links, |
375 |
|
|
array( |
376 |
|
|
"href" => "../scr/tab.php?obj=rivoli", |
377 |
|
|
"class" => "rivoli", |
378 |
|
|
"title" => _("rivoli"), |
379 |
|
|
"right" => "rivoli" |
380 |
|
|
)); |
381 |
|
|
|
382 |
fraynaud |
3 |
$rubrik['links'] = $links; |
383 |
|
|
array_push($menu, $rubrik); |
384 |
|
|
|
385 |
|
|
|
386 |
|
|
|
387 |
|
|
|
388 |
|
|
|
389 |
|
|
// {{{ Rubrique ADMINISTRATION |
390 |
|
|
// |
391 |
|
|
$rubrik = array( |
392 |
|
|
"title" => _("Administration"), |
393 |
|
|
"class" => "administration", |
394 |
|
|
"right" => "menu_administration", |
395 |
|
|
); |
396 |
|
|
// |
397 |
|
|
$links = array(); |
398 |
|
|
array_push($links, |
399 |
|
|
array( |
400 |
|
|
"href" => "../scr/tab.php?obj=om_collectivite", |
401 |
|
|
"class" => "collectivite", |
402 |
|
|
"title" => _("om_collectivite"), |
403 |
|
|
"right" => "om_collectivite_tab" |
404 |
|
|
)); |
405 |
|
|
array_push($links, |
406 |
|
|
array( |
407 |
|
|
"href" => "../scr/tab.php?obj=om_parametre", |
408 |
|
|
"class" => "collectivite", |
409 |
|
|
"title" => _("om_parametre"), |
410 |
|
|
"right" => "om_parametre_tab" |
411 |
|
|
)); |
412 |
|
|
|
413 |
|
|
|
414 |
|
|
array_push($links, |
415 |
|
|
array( |
416 |
|
|
"title" => "<hr/>", |
417 |
|
|
"right" => array("om_utilisateur_tab", "om_profil_tab", "om_droit_tab") |
418 |
|
|
)); |
419 |
|
|
array_push($links, |
420 |
|
|
array( |
421 |
|
|
"href" => "../scr/tab.php?obj=om_profil", |
422 |
|
|
"class" => "profil", |
423 |
|
|
"title" => _("om_profil"), |
424 |
|
|
"right" => "om_profil_tab" |
425 |
|
|
)); |
426 |
|
|
array_push($links, |
427 |
|
|
array( |
428 |
|
|
"href" => "../scr/tab.php?obj=om_droit", |
429 |
|
|
"class" => "droit", |
430 |
|
|
"title" => _("om_droit"), |
431 |
|
|
"right" => "om_droit_multi" |
432 |
|
|
)); |
433 |
|
|
array_push($links, |
434 |
|
|
array( |
435 |
|
|
"href" => "../scr/tab.php?obj=om_utilisateur", |
436 |
|
|
"class" => "utilisateur", |
437 |
|
|
"title" => _("om_utilisateur"), |
438 |
|
|
"right" => "om_utilisateur_tab" |
439 |
|
|
)); |
440 |
|
|
array_push($links, |
441 |
|
|
array( |
442 |
|
|
"title" => "<hr/>", |
443 |
|
|
"right" => array("om_etat_tab", "om_sousetat_tab", "om_lettretype_tab"), |
444 |
|
|
)); |
445 |
|
|
array_push($links, |
446 |
|
|
array( |
447 |
|
|
"href" => "../scr/tab.php?obj=om_etat", |
448 |
|
|
"class" => "etat", |
449 |
|
|
"title" => _("om_etat"), |
450 |
|
|
"right" => "om_etat_tab" |
451 |
|
|
)); |
452 |
|
|
array_push($links, |
453 |
|
|
array( |
454 |
|
|
"href" => "../scr/tab.php?obj=om_sousetat", |
455 |
|
|
"class" => "sousetat", |
456 |
|
|
"title" => _("om_sousetat"), |
457 |
|
|
"right" => "om_sousetat_tab" |
458 |
|
|
)); |
459 |
|
|
array_push($links, |
460 |
|
|
array( |
461 |
|
|
"href" => "../scr/tab.php?obj=om_lettretype", |
462 |
|
|
"class" => "lettretype", |
463 |
|
|
"title" => _("om_lettretype"), |
464 |
|
|
"right" => "om_lettretype_tab" |
465 |
|
|
)); |
466 |
|
|
array_push($links, |
467 |
|
|
array( |
468 |
|
|
"title" => "<hr/>", |
469 |
|
|
"right" => array("import"), |
470 |
|
|
)); |
471 |
|
|
array_push($links, |
472 |
|
|
array( |
473 |
|
|
"href" => "../scr/import.php", |
474 |
|
|
"class" => "import", |
475 |
|
|
"title" => _("Import"), |
476 |
|
|
"right" => "import" |
477 |
|
|
)); |
478 |
|
|
|
479 |
|
|
array_push($links, |
480 |
|
|
array( |
481 |
|
|
"title" => "<hr/>", |
482 |
|
|
"right" => array("gen"), |
483 |
|
|
)); |
484 |
|
|
array_push($links, |
485 |
|
|
array( |
486 |
|
|
"title" => _("Generateur"), |
487 |
|
|
"href" => "../gen/gen.php", |
488 |
|
|
"class" => "generator", |
489 |
|
|
"right" => "gen", |
490 |
|
|
)); |
491 |
|
|
$rubrik['links'] = $links; |
492 |
|
|
array_push($menu, $rubrik); |
493 |
|
|
// }}} |
494 |
|
|
|
495 |
|
|
?> |