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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 130 - (show annotations)
Wed Sep 21 10:33:41 2011 UTC (13 years, 4 months ago) by fraynaud
File size: 14782 byte(s)
servitudes gen *.inc + menu var vues


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/export_sitadel.php",
211 "class" => "reqmo",
212 "title" => _("export sitadel"),
213 "right" => "export_sitadel"
214 ));
215
216 $rubrik['links'] = $links;
217 array_push($menu, $rubrik);
218 // }}}
219
220 // {{{ Rubrique TRAITEMENT
221
222 $rubrik = array(
223 "title" => _("Traitement"),
224 "class" => "traitement",
225 "right" => "menu_traitement",
226 );
227 $links = array();
228 // *** TRAITEMENT ***
229 // inserez le lien d acces au traitement
230 // ========================================================================
231 /*
232 array_push($links,
233 array(
234 "href" => "../trt/nom_du_traitement.php",
235 "class" => "traitement",
236 "title" => _("Traitement"),
237 "right" => "traitement"
238 ));
239 */
240 // ========================================================================
241 array_push($links,
242 array(
243 "href" => "../scr/form.php?obj=dossier_numeromanuel",
244 "class" => "traitement",
245 "title" => _("numero manuel"),
246 "right" => "traitement"
247 ));
248
249 array_push($links,
250 array(
251 "href" => "../scr/tab.php?obj=PC_modificatif",
252 "class" => "traitement",
253 "title" => _("modificatif transfert"),
254 "right" => "traitement"
255 ));
256
257 array_push($links,
258 array(
259 "href" => "../app/num_dossier.php",
260 "class" => "traitement",
261 "title" => _("remise a 0"),
262 "right" => "traitement"
263 ));
264
265 $rubrik['links'] = $links;
266 array_push($menu, $rubrik);
267 // }}}
268
269
270
271 // {{{ Rubrique parametrage de l'application
272
273 $rubrik = array(
274 "title" => _("Parametrage"),
275 "class" => "parametrage",
276 "right" => "menu_parametrage",
277 );
278 $links = array();
279 // *** TABLES DE PARAMETRAGE ***
280 // inserer ici vos tables de parametres
281 // ========================================================================
282 /*
283 array_push($links,
284 array(
285 "href" => "../scr/tab.php?obj=nom_table",
286 "class" => "nom_table",
287 "title" => _("nom_table"),
288 "right" => "nom_table"
289 ));
290 */
291 // ========================================================================
292
293
294 // param gaux
295
296 array_push($links,
297 array(
298 "href" => "../scr/tab.php?obj=architecte",
299 "class" => "architecte",
300 "title" => _("architecte"),
301 "right" => "architecte"
302 ));
303
304
305
306 array_push($links,
307 array(
308 "href" => "../scr/tab.php?obj=service",
309 "class" => "service",
310 "title" => _("service"),
311 "right" => "service"
312 ));
313
314 array_push($links,
315 array(
316 "href" => "../scr/tab.php?obj=travaux",
317 "class" => "travaux",
318 "title" => _("travaux"),
319 "right" => "travaux"
320 ));
321
322 array_push($links,
323 array(
324 "href" => "../scr/tab.php?obj=regle",
325 "class" => "regle",
326 "title" => _("regle"),
327 "right" => "regle"
328 ));
329
330 array_push($links,
331 array(
332 "href" => "../scr/tab.php?obj=categorie_demandeur",
333 "class" => "categorie_demandeur",
334 "title" => _("categorie_demandeur"),
335 "right" => "categorie_demandeur"
336 ));
337
338 array_push($links,
339 array(
340 "href" => "../scr/tab.php?obj=destination",
341 "class" => "destination",
342 "title" => _("destination"),
343 "right" => "destination"
344 ));
345
346 array_push($links,
347 array(
348 "href" => "../scr/tab.php?obj=nature",
349 "class" => "nature",
350 "title" => _("nature"),
351 "right" => "nature"
352 ));
353
354 // workflows
355 array_push($links,
356 array(
357 "title" => "<hr/>",
358 "right" => array("action_tab", "transition_tab", "etat_tab",
359 "evenement_tab", "bible", "avis")
360 ));
361
362 array_push($links,
363 array(
364 "href" => "../scr/tab.php?obj=action",
365 "class" => "action",
366 "title" => _("action"),
367 "right" => "action"
368 ));
369
370 array_push($links,
371 array(
372 "href" => "../scr/tab.php?obj=transition",
373 "class" => "transition",
374 "title" => _("transition"),
375 "right" => "transition"
376 ));
377
378 array_push($links,
379 array(
380 "href" => "../scr/tab.php?obj=etat",
381 "class" => "etat",
382 "title" => _("etat"),
383 "right" => "etat"
384 ));
385
386 array_push($links,
387 array(
388 "href" => "../scr/tab.php?obj=evenement",
389 "class" => "evenement",
390 "title" => _("evenement"),
391 "right" => "evenement"
392 ));
393
394 array_push($links,
395 array(
396 "href" => "../scr/tab.php?obj=bible",
397 "class" => "bible",
398 "title" => _("bible"),
399 "right" => "bible"
400 ));
401
402 array_push($links,
403 array(
404 "href" => "../scr/tab.php?obj=avis",
405 "class" => "avis",
406 "title" => _("avis"),
407 "right" => "avis"
408 ));
409
410 // cadastre interne
411 array_push($links,
412 array(
413 "title" => "<hr/>",
414 "right" => array("parcelle_tab", "proprietaire_tab", "civilite_tab", "pos_tab", "rivoli_tab")
415 ));
416 array_push($links,
417 array(
418 "href" => "../scr/tab.php?obj=parcelle",
419 "class" => "parcelle",
420 "title" => _("parcelle"),
421 "right" => "parcelle"
422 ));
423
424 array_push($links,
425 array(
426 "href" => "../scr/tab.php?obj=proprietaire",
427 "class" => "proprietaire",
428 "title" => _("proprietaire"),
429 "right" => "proprietaire"
430 ));
431
432 array_push($links,
433 array(
434 "href" => "../scr/tab.php?obj=civilite",
435 "class" => "civilite",
436 "title" => _("civilite"),
437 "right" => "civilite"
438 ));
439
440 array_push($links,
441 array(
442 "href" => "../scr/tab.php?obj=pos",
443 "class" => "pos",
444 "title" => _("pos"),
445 "right" => "pos"
446 ));
447
448 array_push($links,
449 array(
450 "href" => "../scr/tab.php?obj=rivoli",
451 "class" => "rivoli",
452 "title" => _("rivoli"),
453 "right" => "rivoli"
454 ));
455
456 // servitudes
457 array_push($links,
458 array(
459 "title" => "<hr/>",
460 "right" => array("servitude_tab", "servitude_tab", "servitude_tab")
461 ));
462 array_push($links,
463 array(
464 "href" => "../scr/tab.php?obj=servitude_surfacique",
465 "class" => "servitude",
466 "title" => _("servitude")." "._("surfacique"),
467 "right" => "servitude"
468 ));
469 array_push($links,
470 array(
471 "href" => "../scr/tab.php?obj=servitude_ligne",
472 "class" => "servitude",
473 "title" => _("servitude")." "._("ligne"),
474 "right" => "servitude"
475 ));
476 array_push($links,
477 array(
478 "href" => "../scr/tab.php?obj=servitude_point",
479 "class" => "servitude",
480 "title" => _("servitude")." "._("point"),
481 "right" => "servitude"
482 ));
483
484 $rubrik['links'] = $links;
485 array_push($menu, $rubrik);
486
487
488
489
490
491 // {{{ Rubrique ADMINISTRATION
492 //
493 $rubrik = array(
494 "title" => _("Administration"),
495 "class" => "administration",
496 "right" => "menu_administration",
497 );
498 //
499 $links = array();
500 array_push($links,
501 array(
502 "href" => "../scr/tab.php?obj=om_collectivite",
503 "class" => "collectivite",
504 "title" => _("om_collectivite"),
505 "right" => "om_collectivite_tab"
506 ));
507 array_push($links,
508 array(
509 "href" => "../scr/tab.php?obj=om_parametre",
510 "class" => "collectivite",
511 "title" => _("om_parametre"),
512 "right" => "om_parametre_tab"
513 ));
514
515
516 array_push($links,
517 array(
518 "title" => "<hr/>",
519 "right" => array("om_utilisateur_tab", "om_profil_tab", "om_droit_tab")
520 ));
521 array_push($links,
522 array(
523 "href" => "../scr/tab.php?obj=om_profil",
524 "class" => "profil",
525 "title" => _("om_profil"),
526 "right" => "om_profil_tab"
527 ));
528 array_push($links,
529 array(
530 "href" => "../scr/tab.php?obj=om_droit",
531 "class" => "droit",
532 "title" => _("om_droit"),
533 "right" => "om_droit_multi"
534 ));
535 array_push($links,
536 array(
537 "href" => "../scr/tab.php?obj=om_utilisateur",
538 "class" => "utilisateur",
539 "title" => _("om_utilisateur"),
540 "right" => "om_utilisateur_tab"
541 ));
542 array_push($links,
543 array(
544 "title" => "<hr/>",
545 "right" => array("om_etat_tab", "om_sousetat_tab", "om_lettretype_tab"),
546 ));
547 array_push($links,
548 array(
549 "href" => "../scr/tab.php?obj=om_etat",
550 "class" => "etat",
551 "title" => _("om_etat"),
552 "right" => "om_etat_tab"
553 ));
554 array_push($links,
555 array(
556 "href" => "../scr/tab.php?obj=om_sousetat",
557 "class" => "sousetat",
558 "title" => _("om_sousetat"),
559 "right" => "om_sousetat_tab"
560 ));
561 array_push($links,
562 array(
563 "href" => "../scr/tab.php?obj=om_lettretype",
564 "class" => "lettretype",
565 "title" => _("om_lettretype"),
566 "right" => "om_lettretype_tab"
567 ));
568 array_push($links,
569 array(
570 "href" => "../scr/tab.php?obj=om_sig_point",
571 "class" => "om_sig_point",
572 "title" => _("om SIG"),
573 "right" => "om_sig_point_tab"
574 ));
575 array_push($links,
576 array(
577 "href" => "../scr/tab.php?obj=om_widget",
578 "class" => "om_widget",
579 "title" => _("widget"),
580 "right" => "om_widget"
581 ));
582 array_push($links,
583 array(
584 "title" => "<hr/>",
585 "right" => array("import"),
586 ));
587 array_push($links,
588 array(
589 "href" => "../scr/import.php",
590 "class" => "import",
591 "title" => _("Import"),
592 "right" => "import"
593 ));
594
595 array_push($links,
596 array(
597 "title" => "<hr/>",
598 "right" => array("gen"),
599 ));
600 array_push($links,
601 array(
602 "title" => _("Generateur"),
603 "href" => "../scr/gen.php",
604 "class" => "generator",
605 "right" => "gen",
606 ));
607 $rubrik['links'] = $links;
608 array_push($menu, $rubrik);
609 // }}}
610
611 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26