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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3 - (hide annotations)
Thu Feb 10 20:46:18 2011 UTC (13 years, 11 months ago) by fraynaud
File size: 6436 byte(s)
version initiale


1 fraynaud 3 <?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" => _("Application"),
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     $rubrik['links'] = $links;
59     array_push($menu, $rubrik);
60    
61     // {{{ Rubrique EXPORT
62     $rubrik = array(
63     "title" => _("Export"),
64     "class" => "edition",
65     "right" => "menu_export",
66     );
67    
68     $links = array();
69     array_push($links,
70     array(
71     "href" => "../scr/edition.php",
72     "class" => "edition",
73     "title" => _("Edition"),
74     "right" => "edition"
75     ));
76     array_push($links,
77     array(
78     "href" => "../scr/reqmo.php",
79     "class" => "reqmo",
80     "title" => _("Requetes memorisees"),
81     "right" => "reqmo"
82     ));
83     $rubrik['links'] = $links;
84     array_push($menu, $rubrik);
85     // }}}
86    
87     // {{{ Rubrique TRAITEMENT
88    
89     $rubrik = array(
90     "title" => _("Traitement"),
91     "class" => "traitement",
92     "right" => "menu_traitement",
93     );
94     $links = array();
95     // *** TRAITEMENT ***
96     // inserez le lien d acces au traitement
97     // ========================================================================
98     /*
99     array_push($links,
100     array(
101     "href" => "../trt/nom_du_traitement.php",
102     "class" => "traitement",
103     "title" => _("Traitement"),
104     "right" => "traitement"
105     ));
106     */
107     // ========================================================================
108     $rubrik['links'] = $links;
109     array_push($menu, $rubrik);
110     // }}}
111    
112    
113    
114     // {{{ Rubrique parametrage de l'application
115    
116     $rubrik = array(
117     "title" => _("Parametrage"),
118     "class" => "parametrage",
119     "right" => "menu_parametrage",
120     );
121     $links = array();
122     // *** TABLES DE PARAMETRAGE ***
123     // inserer ici vos tables de parametres
124     // ========================================================================
125     /*
126     array_push($links,
127     array(
128     "href" => "../scr/tab.php?obj=nom_table",
129     "class" => "nom_table",
130     "title" => _("nom_table"),
131     "right" => "nom_table"
132     ));
133     */
134     // ========================================================================
135    
136     array_push($links,
137     array(
138     "href" => "../scr/tab.php?obj=action",
139     "class" => "action",
140     "title" => _("action"),
141     "right" => "action"
142     ));
143    
144    
145     $rubrik['links'] = $links;
146     array_push($menu, $rubrik);
147    
148    
149    
150    
151    
152     // {{{ Rubrique ADMINISTRATION
153     //
154     $rubrik = array(
155     "title" => _("Administration"),
156     "class" => "administration",
157     "right" => "menu_administration",
158     );
159     //
160     $links = array();
161     array_push($links,
162     array(
163     "href" => "../scr/tab.php?obj=om_collectivite",
164     "class" => "collectivite",
165     "title" => _("om_collectivite"),
166     "right" => "om_collectivite_tab"
167     ));
168     array_push($links,
169     array(
170     "href" => "../scr/tab.php?obj=om_parametre",
171     "class" => "collectivite",
172     "title" => _("om_parametre"),
173     "right" => "om_parametre_tab"
174     ));
175    
176    
177     array_push($links,
178     array(
179     "title" => "<hr/>",
180     "right" => array("om_utilisateur_tab", "om_profil_tab", "om_droit_tab")
181     ));
182     array_push($links,
183     array(
184     "href" => "../scr/tab.php?obj=om_profil",
185     "class" => "profil",
186     "title" => _("om_profil"),
187     "right" => "om_profil_tab"
188     ));
189     array_push($links,
190     array(
191     "href" => "../scr/tab.php?obj=om_droit",
192     "class" => "droit",
193     "title" => _("om_droit"),
194     "right" => "om_droit_multi"
195     ));
196     array_push($links,
197     array(
198     "href" => "../scr/tab.php?obj=om_utilisateur",
199     "class" => "utilisateur",
200     "title" => _("om_utilisateur"),
201     "right" => "om_utilisateur_tab"
202     ));
203     array_push($links,
204     array(
205     "title" => "<hr/>",
206     "right" => array("om_etat_tab", "om_sousetat_tab", "om_lettretype_tab"),
207     ));
208     array_push($links,
209     array(
210     "href" => "../scr/tab.php?obj=om_etat",
211     "class" => "etat",
212     "title" => _("om_etat"),
213     "right" => "om_etat_tab"
214     ));
215     array_push($links,
216     array(
217     "href" => "../scr/tab.php?obj=om_sousetat",
218     "class" => "sousetat",
219     "title" => _("om_sousetat"),
220     "right" => "om_sousetat_tab"
221     ));
222     array_push($links,
223     array(
224     "href" => "../scr/tab.php?obj=om_lettretype",
225     "class" => "lettretype",
226     "title" => _("om_lettretype"),
227     "right" => "om_lettretype_tab"
228     ));
229     array_push($links,
230     array(
231     "title" => "<hr/>",
232     "right" => array("import"),
233     ));
234     array_push($links,
235     array(
236     "href" => "../scr/import.php",
237     "class" => "import",
238     "title" => _("Import"),
239     "right" => "import"
240     ));
241    
242     array_push($links,
243     array(
244     "title" => "<hr/>",
245     "right" => array("gen"),
246     ));
247     array_push($links,
248     array(
249     "title" => _("Generateur"),
250     "href" => "../gen/gen.php",
251     "class" => "generator",
252     "right" => "gen",
253     ));
254     $rubrik['links'] = $links;
255     array_push($menu, $rubrik);
256     // }}}
257    
258     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26