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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 269 - (show annotations)
Thu Dec 8 15:39:42 2011 UTC (13 years, 1 month ago) by fraynaud
File size: 15327 byte(s)
correction divers bugs version operationnelle



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 ));
66
67 array_push($links,
68 array(
69 "href" => "../scr/tab.php?obj=DP",
70 "class" => "dossier",
71 "title" => _("DP"),
72 "right" => "DP"
73 ));
74
75
76 array_push($links,
77 array(
78 "href" => "../scr/tab.php?obj=PD",
79 "class" => "dossier",
80 "title" => _("PD"),
81 "right" => "PD"
82 ));
83
84 array_push($links,
85 array(
86 "href" => "../scr/tab.php?obj=PA",
87 "class" => "dossier",
88 "title" => _("PA"),
89 "right" => "PA"
90 ));
91
92 array_push($links,
93 array(
94 "title" => "<hr/>",
95 "right" => array(),
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" => "PC_accueil"
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" => "DP_accueil"
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" => "PD_accueil"
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" => "PA_accueil"
129 ));
130 array_push($links,
131 array(
132 "title" => "<hr/>",
133 "right" => array(),
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_p"
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_d"
176 ));
177
178 array_push($links,
179 array(
180 "title" => "<hr/>",
181 "right" => array("reqmo", "export_pc", "export_dp", "export_sitadel")
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" => "export_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" => "dossier_numeromanuel"
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" => "PC_modificatif"
256 ));
257
258 array_push($links,
259 array(
260 "href" => "../app/num_dossier.php",
261 "class" => "traitement",
262 "title" => _("remise a 0"),
263 "right" => "num_dossier"
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=categorie_demandeur",
326 "class" => "categorie_demandeur",
327 "title" => _("categorie_demandeur"),
328 "right" => "categorie_demandeur"
329 ));
330
331 array_push($links,
332 array(
333 "href" => "../scr/tab.php?obj=destination",
334 "class" => "destination",
335 "title" => _("destination"),
336 "right" => "destination"
337 ));
338
339 array_push($links,
340 array(
341 "href" => "../scr/tab.php?obj=nature",
342 "class" => "nature",
343 "title" => _("nature"),
344 "right" => "nature"
345 ));
346
347 array_push($links,
348 array(
349 "href" => "../scr/tab.php?obj=rivoli",
350 "class" => "rivoli",
351 "title" => _("rivoli"),
352 "right" => "rivoli"
353 ));
354
355 array_push($links,
356 array(
357 "href" => "../scr/tab.php?obj=civilite",
358 "class" => "civilite",
359 "title" => _("civilite"),
360 "right" => "civilite"
361 ));
362
363
364
365
366 array_push($links,
367 array(
368 "href" => "../scr/tab.php?obj=parametre",
369 "class" => "parametre",
370 "title" => _("parametre")." "._("statistique"),
371 "right" => "parametre"
372 ));
373
374
375
376 // workflows
377 array_push($links,
378 array(
379 "title" => "<hr/>",
380 "right" => array("action_tab", "transition_tab", "etat_tab",
381 "evenement_tab", "bible", "avis")
382 ));
383
384 array_push($links,
385 array(
386 "href" => "../scr/tab.php?obj=action",
387 "class" => "action",
388 "title" => _("action"),
389 "right" => "action"
390 ));
391
392 array_push($links,
393 array(
394 "href" => "../scr/tab.php?obj=transition",
395 "class" => "transition",
396 "title" => _("transition"),
397 "right" => "transition"
398 ));
399
400 array_push($links,
401 array(
402 "href" => "../scr/tab.php?obj=etat",
403 "class" => "etat",
404 "title" => _("etat"),
405 "right" => "etat"
406 ));
407
408 array_push($links,
409 array(
410 "href" => "../scr/tab.php?obj=evenement",
411 "class" => "evenement",
412 "title" => _("evenement"),
413 "right" => "evenement"
414 ));
415
416 array_push($links,
417 array(
418 "href" => "../scr/tab.php?obj=bible",
419 "class" => "bible",
420 "title" => _("bible"),
421 "right" => "bible"
422 ));
423
424 array_push($links,
425 array(
426 "href" => "../scr/tab.php?obj=avis",
427 "class" => "avis",
428 "title" => _("avis"),
429 "right" => "avis"
430 ));
431
432
433 $rubrik['links'] = $links;
434 array_push($menu, $rubrik);
435
436 // sig
437
438 $rubrik = array(
439 "title" => _("SIG"),
440 "class" => "sig",
441 "right" => "menu_sig",
442 );
443 $links = array();
444 array_push($links,
445 array(
446 "href" => "../scr/tab.php?obj=parcelle",
447 "class" => "parcelle",
448 "title" => _("parcelle"),
449 "right" => "parcelle"
450 ));
451
452 array_push($links,
453 array(
454 "href" => "../scr/tab.php?obj=proprietaire",
455 "class" => "proprietaire",
456 "title" => _("proprietaire"),
457 "right" => "proprietaire"
458 ));
459
460
461
462
463 // servitudes
464 array_push($links,
465 array(
466 "title" => "<hr/>",
467 "right" => array("pos_tab", "servitude_tab", "servitude_tab", "servitude_tab")
468 ));
469 array_push($links,
470 array(
471 "href" => "../scr/tab.php?obj=pos",
472 "class" => "pos",
473 "title" => _("pos"),
474 "right" => "pos"
475 ));
476 array_push($links,
477 array(
478 "href" => "../scr/tab.php?obj=servitude_surfacique",
479 "class" => "servitude",
480 "title" => _("servitude")." "._("surfacique"),
481 "right" => "servitude_surfacique"
482 ));
483 array_push($links,
484 array(
485 "href" => "../scr/tab.php?obj=servitude_ligne",
486 "class" => "servitude",
487 "title" => _("servitude")." "._("ligne"),
488 "right" => "servitude_ligne"
489 ));
490 array_push($links,
491 array(
492 "href" => "../scr/tab.php?obj=servitude_point",
493 "class" => "servitude",
494 "title" => _("servitude")." "._("point"),
495 "right" => "servitude_point"
496 ));
497
498 array_push($links,
499 array(
500 "href" => "../scr/tab.php?obj=parcelle_lot",
501 "class" => "parcelle",
502 "title" => _("parcelle")." "._("lot"),
503 "right" => "parcelle_lot"
504 ));
505 $rubrik['links'] = $links;
506 array_push($menu, $rubrik);
507
508
509
510 // {{{ Rubrique ADMINISTRATION
511 //
512 $rubrik = array(
513 "title" => _("Administration"),
514 "class" => "administration",
515 "right" => "menu_administration",
516 );
517 //
518 $links = array();
519 array_push($links,
520 array(
521 "href" => "../scr/tab.php?obj=om_collectivite",
522 "class" => "collectivite",
523 "title" => _("om_collectivite"),
524 "right" => "om_collectivite_tab"
525 ));
526 array_push($links,
527 array(
528 "href" => "../scr/tab.php?obj=om_parametre",
529 "class" => "collectivite",
530 "title" => _("om_parametre"),
531 "right" => "om_parametre_tab"
532 ));
533
534
535 array_push($links,
536 array(
537 "title" => "<hr/>",
538 "right" => array("om_utilisateur_tab", "om_profil_tab", "om_droit_tab")
539 ));
540 array_push($links,
541 array(
542 "href" => "../scr/tab.php?obj=om_profil",
543 "class" => "profil",
544 "title" => _("om_profil"),
545 "right" => "om_profil_tab"
546 ));
547 array_push($links,
548 array(
549 "href" => "../scr/tab.php?obj=om_droit",
550 "class" => "droit",
551 "title" => _("om_droit"),
552 "right" => "om_droit_multi"
553 ));
554 array_push($links,
555 array(
556 "href" => "../scr/tab.php?obj=om_utilisateur",
557 "class" => "utilisateur",
558 "title" => _("om_utilisateur"),
559 "right" => "om_utilisateur_tab"
560 ));
561 array_push($links,
562 array(
563 "title" => "<hr />",
564 "right" => array("directory"),
565 ));
566 array_push($links,
567 array(
568 "href" => "../scr/directory.php",
569 "title" => _("Annuaire"),
570 "right" => "directory",
571 "class" => "utilisateur",
572 ));
573 array_push($links,
574 array(
575 "title" => "<hr/>",
576 "right" => array("om_etat_tab", "om_sousetat_tab", "om_lettretype_tab"),
577 ));
578 array_push($links,
579 array(
580 "href" => "../scr/tab.php?obj=om_etat",
581 "class" => "etat",
582 "title" => _("om_etat"),
583 "right" => "om_etat_tab"
584 ));
585 array_push($links,
586 array(
587 "href" => "../scr/tab.php?obj=om_sousetat",
588 "class" => "sousetat",
589 "title" => _("om_sousetat"),
590 "right" => "om_sousetat_tab"
591 ));
592 array_push($links,
593 array(
594 "href" => "../scr/tab.php?obj=om_lettretype",
595 "class" => "lettretype",
596 "title" => _("om_lettretype"),
597 "right" => "om_lettretype_tab"
598 ));
599 array_push($links,
600 array(
601 "href" => "../scr/tab.php?obj=om_sig_point",
602 "class" => "om_sig_point",
603 "title" => _("om SIG"),
604 "right" => "om_sig_point_tab"
605 ));
606 array_push($links,
607 array(
608 "href" => "../scr/tab.php?obj=om_widget",
609 "class" => "om_widget",
610 "title" => _("widget"),
611 "right" => "om_widget"
612 ));
613 array_push($links,
614 array(
615 "title" => "<hr/>",
616 "right" => array("import"),
617 ));
618 array_push($links,
619 array(
620 "href" => "../scr/import.php",
621 "class" => "import",
622 "title" => _("Import"),
623 "right" => "import"
624 ));
625
626 array_push($links,
627 array(
628 "title" => "<hr/>",
629 "right" => array("gen"),
630 ));
631 array_push($links,
632 array(
633 "title" => _("Generateur"),
634 "href" => "../scr/gen.php",
635 "class" => "generator",
636 "right" => "gen",
637 ));
638 $rubrik['links'] = $links;
639 array_push($menu, $rubrik);
640 // }}}
641
642 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26