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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 203 - (show annotations)
Mon Oct 17 07:42:05 2011 UTC (13 years, 3 months ago) by fraynaud
File size: 15197 byte(s)
remontee rivoli en parametre pour menu


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 // workflows
356 array_push($links,
357 array(
358 "title" => "<hr/>",
359 "right" => array("action_tab", "transition_tab", "etat_tab",
360 "evenement_tab", "bible", "avis")
361 ));
362
363 array_push($links,
364 array(
365 "href" => "../scr/tab.php?obj=action",
366 "class" => "action",
367 "title" => _("action"),
368 "right" => "action"
369 ));
370
371 array_push($links,
372 array(
373 "href" => "../scr/tab.php?obj=transition",
374 "class" => "transition",
375 "title" => _("transition"),
376 "right" => "transition"
377 ));
378
379 array_push($links,
380 array(
381 "href" => "../scr/tab.php?obj=etat",
382 "class" => "etat",
383 "title" => _("etat"),
384 "right" => "etat"
385 ));
386
387 array_push($links,
388 array(
389 "href" => "../scr/tab.php?obj=evenement",
390 "class" => "evenement",
391 "title" => _("evenement"),
392 "right" => "evenement"
393 ));
394
395 array_push($links,
396 array(
397 "href" => "../scr/tab.php?obj=bible",
398 "class" => "bible",
399 "title" => _("bible"),
400 "right" => "bible"
401 ));
402
403 array_push($links,
404 array(
405 "href" => "../scr/tab.php?obj=avis",
406 "class" => "avis",
407 "title" => _("avis"),
408 "right" => "avis"
409 ));
410
411
412 array_push($links,
413 array(
414 "href" => "../scr/tab.php?obj=rivoli",
415 "class" => "rivoli",
416 "title" => _("rivoli"),
417 "right" => "rivoli"
418 ));
419
420 array_push($links,
421 array(
422 "href" => "../scr/tab.php?obj=civilite",
423 "class" => "civilite",
424 "title" => _("civilite"),
425 "right" => "civilite"
426 ));
427
428
429
430
431 array_push($links,
432 array(
433 "href" => "../scr/tab.php?obj=parametre",
434 "class" => "parametre",
435 "title" => _("parametre")." "._("statistique"),
436 "right" => "parametre"
437 ));
438
439
440 $rubrik['links'] = $links;
441 array_push($menu, $rubrik);
442
443 // sig
444
445 $rubrik = array(
446 "title" => _("SIG"),
447 "class" => "sig",
448 "right" => "menu_sig",
449 );
450 $links = array();
451 array_push($links,
452 array(
453 "href" => "../scr/tab.php?obj=parcelle",
454 "class" => "parcelle",
455 "title" => _("parcelle"),
456 "right" => "parcelle"
457 ));
458
459 array_push($links,
460 array(
461 "href" => "../scr/tab.php?obj=proprietaire",
462 "class" => "proprietaire",
463 "title" => _("proprietaire"),
464 "right" => "proprietaire"
465 ));
466
467
468
469
470 // servitudes
471 array_push($links,
472 array(
473 "title" => "<hr/>",
474 "right" => array("pos_tab", "servitude_tab", "servitude_tab", "servitude_tab")
475 ));
476 array_push($links,
477 array(
478 "href" => "../scr/tab.php?obj=pos",
479 "class" => "pos",
480 "title" => _("pos"),
481 "right" => "pos"
482 ));
483 array_push($links,
484 array(
485 "href" => "../scr/tab.php?obj=servitude_surfacique",
486 "class" => "servitude",
487 "title" => _("servitude")." "._("surfacique"),
488 "right" => "servitude"
489 ));
490 array_push($links,
491 array(
492 "href" => "../scr/tab.php?obj=servitude_ligne",
493 "class" => "servitude",
494 "title" => _("servitude")." "._("ligne"),
495 "right" => "servitude"
496 ));
497 array_push($links,
498 array(
499 "href" => "../scr/tab.php?obj=servitude_point",
500 "class" => "servitude",
501 "title" => _("servitude")." "._("point"),
502 "right" => "servitude"
503 ));
504
505 array_push($links,
506 array(
507 "href" => "../scr/tab.php?obj=parcelle_lot",
508 "class" => "parcelle",
509 "title" => _("parcelle")." "._("lot"),
510 "right" => "parcelle_lot"
511 ));
512 $rubrik['links'] = $links;
513 array_push($menu, $rubrik);
514
515
516
517 // {{{ Rubrique ADMINISTRATION
518 //
519 $rubrik = array(
520 "title" => _("Administration"),
521 "class" => "administration",
522 "right" => "menu_administration",
523 );
524 //
525 $links = array();
526 array_push($links,
527 array(
528 "href" => "../scr/tab.php?obj=om_collectivite",
529 "class" => "collectivite",
530 "title" => _("om_collectivite"),
531 "right" => "om_collectivite_tab"
532 ));
533 array_push($links,
534 array(
535 "href" => "../scr/tab.php?obj=om_parametre",
536 "class" => "collectivite",
537 "title" => _("om_parametre"),
538 "right" => "om_parametre_tab"
539 ));
540
541
542 array_push($links,
543 array(
544 "title" => "<hr/>",
545 "right" => array("om_utilisateur_tab", "om_profil_tab", "om_droit_tab")
546 ));
547 array_push($links,
548 array(
549 "href" => "../scr/tab.php?obj=om_profil",
550 "class" => "profil",
551 "title" => _("om_profil"),
552 "right" => "om_profil_tab"
553 ));
554 array_push($links,
555 array(
556 "href" => "../scr/tab.php?obj=om_droit",
557 "class" => "droit",
558 "title" => _("om_droit"),
559 "right" => "om_droit_multi"
560 ));
561 array_push($links,
562 array(
563 "href" => "../scr/tab.php?obj=om_utilisateur",
564 "class" => "utilisateur",
565 "title" => _("om_utilisateur"),
566 "right" => "om_utilisateur_tab"
567 ));
568 array_push($links,
569 array(
570 "title" => "<hr/>",
571 "right" => array("om_etat_tab", "om_sousetat_tab", "om_lettretype_tab"),
572 ));
573 array_push($links,
574 array(
575 "href" => "../scr/tab.php?obj=om_etat",
576 "class" => "etat",
577 "title" => _("om_etat"),
578 "right" => "om_etat_tab"
579 ));
580 array_push($links,
581 array(
582 "href" => "../scr/tab.php?obj=om_sousetat",
583 "class" => "sousetat",
584 "title" => _("om_sousetat"),
585 "right" => "om_sousetat_tab"
586 ));
587 array_push($links,
588 array(
589 "href" => "../scr/tab.php?obj=om_lettretype",
590 "class" => "lettretype",
591 "title" => _("om_lettretype"),
592 "right" => "om_lettretype_tab"
593 ));
594 array_push($links,
595 array(
596 "href" => "../scr/tab.php?obj=om_sig_point",
597 "class" => "om_sig_point",
598 "title" => _("om SIG"),
599 "right" => "om_sig_point_tab"
600 ));
601 array_push($links,
602 array(
603 "href" => "../scr/tab.php?obj=om_widget",
604 "class" => "om_widget",
605 "title" => _("widget"),
606 "right" => "om_widget"
607 ));
608 array_push($links,
609 array(
610 "title" => "<hr/>",
611 "right" => array("import"),
612 ));
613 array_push($links,
614 array(
615 "href" => "../scr/import.php",
616 "class" => "import",
617 "title" => _("Import"),
618 "right" => "import"
619 ));
620
621 array_push($links,
622 array(
623 "title" => "<hr/>",
624 "right" => array("gen"),
625 ));
626 array_push($links,
627 array(
628 "title" => _("Generateur"),
629 "href" => "../scr/gen.php",
630 "class" => "generator",
631 "right" => "gen",
632 ));
633 $rubrik['links'] = $links;
634 array_push($menu, $rubrik);
635 // }}}
636
637 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26