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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 204 - (show annotations)
Mon Oct 17 07:44:45 2011 UTC (13 years, 3 months ago) by fraynaud
File size: 15198 byte(s)


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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26