/[openfoncier]/trunk/dyn/menu.inc.php
ViewVC logotype

Contents of /trunk/dyn/menu.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 315 - (show annotations)
Wed Mar 28 19:50:07 2012 UTC (12 years, 10 months ago) by atreal
File size: 16967 byte(s)
généralisation de menu ouvert

1 <?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" => _("Instruction"),
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
59 array_push($links,
60 array(
61 "href" => "../scr/tab.php?obj=PC",
62 "class" => "dossier",
63 "title" => _("PC"),
64 "right" => "PC",
65 "open" => "|PC"
66 ));
67
68 array_push($links,
69 array(
70 "href" => "../scr/tab.php?obj=DP",
71 "class" => "dossier",
72 "title" => _("DP"),
73 "right" => "DP",
74 "open" => "|DP"
75 ));
76
77
78 array_push($links,
79 array(
80 "href" => "../scr/tab.php?obj=PD",
81 "class" => "dossier",
82 "title" => _("PD"),
83 "right" => "PD",
84 "open" => "|PD"
85 ));
86
87 array_push($links,
88 array(
89 "href" => "../scr/tab.php?obj=PA",
90 "class" => "dossier",
91 "title" => _("PA"),
92 "right" => "PA",
93 "open" => "|PA"
94 ));
95
96 array_push($links,
97 array(
98 "title" => "<hr/>",
99 "right" => array(),
100 ));
101
102 array_push($links,
103 array(
104 "href" => "../scr/tab.php?obj=PC_accueil",
105 "class" => "dossier",
106 "title" => _("PC - accueil"),
107 "right" => "PC_accueil",
108 "open" => "|PC_accueil"
109 ));
110
111 array_push($links,
112 array(
113 "href" => "../scr/tab.php?obj=DP_accueil",
114 "class" => "dossier",
115 "title" => _("DP - accueil"),
116 "right" => "DP_accueil",
117 "open" => "|DP_accueil"
118 ));
119
120
121 array_push($links,
122 array(
123 "href" => "../scr/tab.php?obj=PD_accueil",
124 "class" => "dossier",
125 "title" => _("PD - accueil"),
126 "right" => "PD_accueil",
127 "open" => "|PD_accueil"
128 ));
129
130 array_push($links,
131 array(
132 "href" => "../scr/tab.php?obj=PA_accueil",
133 "class" => "dossier",
134 "title" => _("PA - accueil"),
135 "right" => "PA_accueil",
136 "open" => "|PA_accueil"
137 ));
138
139 array_push($links,
140 array(
141 "title" => "<hr/>",
142 "right" => array(),
143 ));
144
145 array_push($links,
146 array(
147 "href" => "../scr/tab.php?obj=PC_modificatif",
148 "class" => "traitement",
149 "title" => _("modificatif transfert"),
150 "right" => "PC_modificatif",
151 "open" => array("|PC_modificatif","dossier_modificatif.php|")
152 ));
153
154 array_push($links,
155 array(
156 "title" => "<hr/>",
157 "right" => array(),
158 ));
159
160 array_push($links,
161 array(
162 "href" => "../app/recherchedossier.php",
163 "class" => "dossier",
164 "title" => _("Recherche dossier"),
165 "right" => "recherchedossier",
166 "open" => "recherchedossier.php|"
167 ));
168
169 $rubrik['links'] = $links;
170 array_push($menu, $rubrik);
171
172 //}}}
173
174 // {{{ Rubrique EXPORT
175 $rubrik = array(
176 "title" => _("Export"),
177 "class" => "edition",
178 "right" => "menu_export",
179 );
180
181 $links = array();
182 array_push($links,
183 array(
184 "href" => "../scr/edition.php",
185 "class" => "edition",
186 "title" => _("Edition"),
187 "right" => "edition",
188 "open" => "edition.php|"
189 ));
190 array_push($links,
191 array(
192 "href" => "../app/edition_p.php",
193 "class" => "edition",
194 "title" => _("Edition date depot"),
195 "right" => "edition_p",
196 "open" => "edition_p.php|"
197 ));
198
199 array_push($links,
200 array(
201 "href" => "../app/edition_d.php",
202 "class" => "edition",
203 "title" => _("Edition date decision"),
204 "right" => "edition_d",
205 "open" => "edition_d.php|"
206 ));
207
208 array_push($links,
209 array(
210 "title" => "<hr/>",
211 "right" => array("reqmo", "export_pc", "export_dp", "export_sitadel")
212 ));
213
214 array_push($links,
215 array(
216 "href" => "../scr/reqmo.php",
217 "class" => "reqmo",
218 "title" => _("Requetes memorisees"),
219 "right" => "reqmo",
220 "open" => array("reqmo.php|","requeteur.php|",),
221 ));
222
223 array_push($links,
224 array(
225 "href" => "../app/export_pc.php",
226 "class" => "reqmo",
227 "title" => _("export PC Lascot"),
228 "right" => "export_pc",
229 "open" => "export_pc.php|"
230 ));
231
232 array_push($links,
233 array(
234 "href" => "../app/export_dp.php",
235 "class" => "reqmo",
236 "title" => _("export DP Lascot"),
237 "right" => "export_dp",
238 "open" => "export_dp.php|"
239 ));
240
241 array_push($links,
242 array(
243 "href" => "../app/sitadel.php",
244 "class" => "reqmo",
245 "title" => _("export")._("sitadel")." 2",
246 "right" => "export_sitadel",
247 "open" => "sitadel.php|"
248 ));
249
250
251 $rubrik['links'] = $links;
252 array_push($menu, $rubrik);
253 // }}}
254 // {{{ Rubrique parametrage de l'application
255
256 $rubrik = array(
257 "title" => _("Parametrage"),
258 "class" => "parametrage",
259 "right" => "menu_parametrage",
260 );
261 $links = array();
262 // *** TABLES DE PARAMETRAGE ***
263 // inserer ici vos tables de parametres
264 // ========================================================================
265 /*
266 array_push($links,
267 array(
268 "href" => "../scr/tab.php?obj=nom_table",
269 "class" => "nom_table",
270 "title" => _("nom_table"),
271 "right" => "nom_table"
272 ));
273 */
274 // ========================================================================
275
276
277 // param gaux
278
279 array_push($links,
280 array(
281 "href" => "../scr/form.php?obj=dossier_numeromanuel",
282 "class" => "traitement",
283 "title" => _("numero manuel"),
284 "right" => "dossier_numeromanuel",
285 "open" => "|dossier_numeromanuel"
286 ));
287
288 array_push($links,
289 array(
290 "href" => "../app/num_dossier.php",
291 "class" => "traitement",
292 "title" => _("remise a 0"),
293 "right" => "num_dossier",
294 "open" => "num_dossier.php|"
295 ));
296
297 array_push($links,
298 array(
299 "title" => "<hr/>",
300 "right" => array(),
301 ));
302
303
304 array_push($links,
305 array(
306 "href" => "../scr/tab.php?obj=architecte",
307 "class" => "architecte",
308 "title" => _("architecte"),
309 "right" => "architecte",
310 "open" => "|architecte"
311 ));
312
313
314
315 array_push($links,
316 array(
317 "href" => "../scr/tab.php?obj=service",
318 "class" => "service",
319 "title" => _("service"),
320 "right" => "service",
321 "open" => "|service"
322 ));
323
324 array_push($links,
325 array(
326 "href" => "../scr/tab.php?obj=travaux",
327 "class" => "travaux",
328 "title" => _("travaux"),
329 "right" => "travaux",
330 "open" => "|travaux",
331 ));
332
333 array_push($links,
334 array(
335 "href" => "../scr/tab.php?obj=categorie_demandeur",
336 "class" => "categorie_demandeur",
337 "title" => _("categorie_demandeur"),
338 "right" => "categorie_demandeur",
339 "open" => "|categorie_demandeur"
340 ));
341
342 array_push($links,
343 array(
344 "href" => "../scr/tab.php?obj=destination",
345 "class" => "destination",
346 "title" => _("destination"),
347 "right" => "destination",
348 "open" => "|destination"
349 ));
350
351 array_push($links,
352 array(
353 "href" => "../scr/tab.php?obj=nature",
354 "class" => "nature",
355 "title" => _("nature"),
356 "right" => "nature",
357 "open" => "|nature"
358 ));
359
360 array_push($links,
361 array(
362 "href" => "../scr/tab.php?obj=rivoli",
363 "class" => "rivoli",
364 "title" => _("rivoli"),
365 "right" => "rivoli",
366 "open" => "|rivoli"
367 ));
368
369 array_push($links,
370 array(
371 "href" => "../scr/tab.php?obj=civilite",
372 "class" => "civilite",
373 "title" => _("civilite"),
374 "right" => "civilite",
375 "open" => "|civilite"
376 ));
377
378
379
380
381 array_push($links,
382 array(
383 "href" => "../scr/tab.php?obj=parametre",
384 "class" => "parametre",
385 "title" => _("parametre")." "._("statistique"),
386 "right" => "parametre",
387 "open" => "|parametre"
388 ));
389
390
391
392 // workflows
393 array_push($links,
394 array(
395 "title" => "<hr/>",
396 "right" => array("action_tab", "transition_tab", "etat_tab",
397 "evenement_tab", "bible", "avis")
398 ));
399
400 array_push($links,
401 array(
402 "href" => "../scr/tab.php?obj=action",
403 "class" => "action",
404 "title" => _("action"),
405 "right" => "action",
406 "open" => "|action"
407 ));
408
409 array_push($links,
410 array(
411 "href" => "../scr/tab.php?obj=transition",
412 "class" => "transition",
413 "title" => _("transition"),
414 "right" => "transition",
415 "open" => "|transition"
416 ));
417
418 array_push($links,
419 array(
420 "href" => "../scr/tab.php?obj=etat",
421 "class" => "etat",
422 "title" => _("etat"),
423 "right" => "etat",
424 "open" => "|etat"
425 ));
426
427 array_push($links,
428 array(
429 "href" => "../scr/tab.php?obj=evenement",
430 "class" => "evenement",
431 "title" => _("evenement"),
432 "right" => "evenement",
433 "open" => "|evenement"
434 ));
435
436 array_push($links,
437 array(
438 "href" => "../scr/tab.php?obj=bible",
439 "class" => "bible",
440 "title" => _("bible"),
441 "right" => "bible",
442 "open" => "|bible"
443 ));
444
445 array_push($links,
446 array(
447 "href" => "../scr/tab.php?obj=avis",
448 "class" => "avis",
449 "title" => _("avis"),
450 "right" => "avis",
451 "open" => "|avis"
452 ));
453 array_push($links,
454 array(
455 "title" => "<hr/>",
456 "right" => array("om_etat_tab", "om_sousetat_tab", "om_lettretype_tab"),
457 ));
458 array_push($links,
459 array(
460 "href" => "../scr/tab.php?obj=om_etat",
461 "class" => "etat",
462 "title" => _("om_etat"),
463 "right" => "om_etat_tab",
464 "open" => "|om_etat"
465 ));
466 array_push($links,
467 array(
468 "href" => "../scr/tab.php?obj=om_sousetat",
469 "class" => "sousetat",
470 "title" => _("om_sousetat"),
471 "right" => "om_sousetat_tab",
472 "open" => "|om_sousetat"
473 ));
474 array_push($links,
475 array(
476 "href" => "../scr/tab.php?obj=om_lettretype",
477 "class" => "lettretype",
478 "title" => _("om_lettretype"),
479 "right" => "om_lettretype_tab",
480 "open" => "|om_lettretype"
481 ));
482
483
484 $rubrik['links'] = $links;
485 array_push($menu, $rubrik);
486 //}}}
487 //{{{ SIG
488
489 $rubrik = array(
490 "title" => _("SIG"),
491 "class" => "sig",
492 "right" => "menu_sig",
493 );
494 $links = array();
495 array_push($links,
496 array(
497 "href" => "../scr/tab.php?obj=parcelle",
498 "class" => "parcelle",
499 "title" => _("parcelle"),
500 "right" => "parcelle",
501 "open" => "|parcelle",
502 ));
503
504 array_push($links,
505 array(
506 "href" => "../scr/tab.php?obj=proprietaire",
507 "class" => "proprietaire",
508 "title" => _("proprietaire"),
509 "right" => "proprietaire",
510 "open" => "|proprietaire"
511 ));
512
513
514
515
516 // servitudes
517 array_push($links,
518 array(
519 "title" => "<hr/>",
520 "right" => array("pos_tab", "servitude_tab", "servitude_tab", "servitude_tab")
521 ));
522 array_push($links,
523 array(
524 "href" => "../scr/tab.php?obj=pos",
525 "class" => "pos",
526 "title" => _("pos"),
527 "right" => "pos",
528 "open" => "|pos",
529 ));
530 array_push($links,
531 array(
532 "href" => "../scr/tab.php?obj=servitude_surfacique",
533 "class" => "servitude",
534 "title" => _("servitude")." "._("surfacique"),
535 "right" => "servitude_surfacique",
536 "open" => "|servitude_surfacique"
537 ));
538 array_push($links,
539 array(
540 "href" => "../scr/tab.php?obj=servitude_ligne",
541 "class" => "servitude",
542 "title" => _("servitude")." "._("ligne"),
543 "right" => "servitude_ligne",
544 "open" => "|servitude_ligne"
545 ));
546 array_push($links,
547 array(
548 "href" => "../scr/tab.php?obj=servitude_point",
549 "class" => "servitude",
550 "title" => _("servitude")." "._("point"),
551 "right" => "servitude_point",
552 "open" => "|servitude_point"
553 ));
554
555 array_push($links,
556 array(
557 "href" => "../scr/tab.php?obj=parcelle_lot",
558 "class" => "parcelle",
559 "title" => _("parcelle")." "._("lot"),
560 "right" => "parcelle_lot",
561 "open" => "|parcelle_lot"
562 ));
563
564
565 $rubrik['links'] = $links;
566 array_push($menu, $rubrik);
567
568
569 //}}}
570 // {{{ Rubrique ADMINISTRATION
571 //
572 $rubrik = array(
573 "title" => _("Administration"),
574 "class" => "administration",
575 "right" => "menu_administration",
576 );
577 //
578 $links = array();
579 array_push($links,
580 array(
581 "href" => "../scr/tab.php?obj=om_collectivite",
582 "class" => "collectivite",
583 "title" => _("om_collectivite"),
584 "right" => "om_collectivite_tab",
585 "open" => "|om_collectivite"
586 ));
587 array_push($links,
588 array(
589 "href" => "../scr/tab.php?obj=om_parametre",
590 "class" => "collectivite",
591 "title" => _("om_parametre"),
592 "right" => "om_parametre_tab",
593 "open" => "|om_parametre"
594 ));
595
596
597 array_push($links,
598 array(
599 "title" => "<hr/>",
600 "right" => array("om_utilisateur_tab", "om_profil_tab", "om_droit_tab")
601 ));
602 array_push($links,
603 array(
604 "href" => "../scr/tab.php?obj=om_profil",
605 "class" => "profil",
606 "title" => _("om_profil"),
607 "right" => "om_profil_tab",
608 "open" => "|om_profil"
609 ));
610 array_push($links,
611 array(
612 "href" => "../scr/tab.php?obj=om_droit",
613 "class" => "droit",
614 "title" => _("om_droit"),
615 "right" => "om_droit_multi",
616 "open" => "|om_droit"
617 ));
618 array_push($links,
619 array(
620 "href" => "../scr/tab.php?obj=om_utilisateur",
621 "class" => "utilisateur",
622 "title" => _("om_utilisateur"),
623 "right" => "om_utilisateur_tab",
624 "open" => "|om_utilisateur"
625 ));
626 array_push($links,
627 array(
628 "title" => "<hr />",
629 "right" => array("directory"),
630 ));
631 array_push($links,
632 array(
633 "href" => "../scr/directory.php",
634 "title" => _("Annuaire"),
635 "right" => "directory",
636 "class" => "utilisateur",
637 "open" => "directory.php|"
638 ));
639 array_push($links,
640 array(
641 "title" => "<hr/>",
642 "right" => array("om_etat_tab", "om_sousetat_tab", "om_lettretype_tab"),
643 ));
644 array_push($links,
645 array(
646 "href" => "../scr/tab.php?obj=om_sig_point",
647 "class" => "om_sig_point",
648 "title" => _("om SIG"),
649 "right" => "om_sig_point_tab",
650 "open" => "|om_sig_point"
651 ));
652 array_push($links,
653 array(
654 "href" => "../scr/tab.php?obj=om_widget",
655 "class" => "om_widget",
656 "title" => _("widget"),
657 "right" => "om_widget",
658 "open" => "|om_widget"
659 ));
660 array_push($links,
661 array(
662 "title" => "<hr/>",
663 "right" => array("import"),
664 ));
665 array_push($links,
666 array(
667 "href" => "../scr/import.php",
668 "class" => "import",
669 "title" => _("Import"),
670 "right" => "import",
671 "open" => "import.php|"
672 ));
673
674 array_push($links,
675 array(
676 "title" => "<hr/>",
677 "right" => array("gen"),
678 ));
679 array_push($links,
680 array(
681 "title" => _("Generateur"),
682 "href" => "../scr/gen.php",
683 "class" => "generator",
684 "right" => "gen",
685 "open" => "gen.php|"
686 ));
687 $rubrik['links'] = $links;
688 array_push($menu, $rubrik);
689 // }}}
690
691 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26