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 |
fraynaud |
4 |
array_push($links, |
59 |
|
|
array( |
60 |
|
|
"href" => "../scr/tab.php?obj=dossier", |
61 |
|
|
"class" => "dossier", |
62 |
|
|
"title" => _("dossier"), |
63 |
|
|
"right" => "dossier" |
64 |
|
|
)); |
65 |
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
fraynaud |
3 |
$rubrik['links'] = $links; |
69 |
|
|
array_push($menu, $rubrik); |
70 |
|
|
|
71 |
|
|
// {{{ Rubrique EXPORT |
72 |
|
|
$rubrik = array( |
73 |
|
|
"title" => _("Export"), |
74 |
|
|
"class" => "edition", |
75 |
|
|
"right" => "menu_export", |
76 |
|
|
); |
77 |
|
|
|
78 |
|
|
$links = array(); |
79 |
|
|
array_push($links, |
80 |
|
|
array( |
81 |
|
|
"href" => "../scr/edition.php", |
82 |
|
|
"class" => "edition", |
83 |
|
|
"title" => _("Edition"), |
84 |
|
|
"right" => "edition" |
85 |
|
|
)); |
86 |
|
|
array_push($links, |
87 |
|
|
array( |
88 |
|
|
"href" => "../scr/reqmo.php", |
89 |
|
|
"class" => "reqmo", |
90 |
|
|
"title" => _("Requetes memorisees"), |
91 |
|
|
"right" => "reqmo" |
92 |
|
|
)); |
93 |
|
|
$rubrik['links'] = $links; |
94 |
|
|
array_push($menu, $rubrik); |
95 |
|
|
// }}} |
96 |
|
|
|
97 |
|
|
// {{{ Rubrique TRAITEMENT |
98 |
|
|
|
99 |
|
|
$rubrik = array( |
100 |
|
|
"title" => _("Traitement"), |
101 |
|
|
"class" => "traitement", |
102 |
|
|
"right" => "menu_traitement", |
103 |
|
|
); |
104 |
|
|
$links = array(); |
105 |
|
|
// *** TRAITEMENT *** |
106 |
|
|
// inserez le lien d acces au traitement |
107 |
|
|
// ======================================================================== |
108 |
|
|
/* |
109 |
|
|
array_push($links, |
110 |
|
|
array( |
111 |
|
|
"href" => "../trt/nom_du_traitement.php", |
112 |
|
|
"class" => "traitement", |
113 |
|
|
"title" => _("Traitement"), |
114 |
|
|
"right" => "traitement" |
115 |
|
|
)); |
116 |
|
|
*/ |
117 |
|
|
// ======================================================================== |
118 |
|
|
$rubrik['links'] = $links; |
119 |
|
|
array_push($menu, $rubrik); |
120 |
|
|
// }}} |
121 |
|
|
|
122 |
|
|
|
123 |
|
|
|
124 |
|
|
// {{{ Rubrique parametrage de l'application |
125 |
|
|
|
126 |
|
|
$rubrik = array( |
127 |
|
|
"title" => _("Parametrage"), |
128 |
|
|
"class" => "parametrage", |
129 |
|
|
"right" => "menu_parametrage", |
130 |
|
|
); |
131 |
|
|
$links = array(); |
132 |
|
|
// *** TABLES DE PARAMETRAGE *** |
133 |
|
|
// inserer ici vos tables de parametres |
134 |
|
|
// ======================================================================== |
135 |
|
|
/* |
136 |
|
|
array_push($links, |
137 |
|
|
array( |
138 |
|
|
"href" => "../scr/tab.php?obj=nom_table", |
139 |
|
|
"class" => "nom_table", |
140 |
|
|
"title" => _("nom_table"), |
141 |
|
|
"right" => "nom_table" |
142 |
|
|
)); |
143 |
|
|
*/ |
144 |
|
|
// ======================================================================== |
145 |
|
|
|
146 |
fraynaud |
4 |
|
147 |
|
|
// urbanisme |
148 |
|
|
|
149 |
fraynaud |
3 |
array_push($links, |
150 |
|
|
array( |
151 |
fraynaud |
4 |
"href" => "../scr/tab.php?obj=architecte", |
152 |
|
|
"class" => "architecte", |
153 |
|
|
"title" => _("architecte"), |
154 |
|
|
"right" => "architecte" |
155 |
|
|
)); |
156 |
|
|
|
157 |
|
|
array_push($links, |
158 |
|
|
array( |
159 |
|
|
"href" => "../scr/tab.php?obj=avis", |
160 |
|
|
"class" => "avis", |
161 |
|
|
"title" => _("avis"), |
162 |
|
|
"right" => "avis" |
163 |
|
|
)); |
164 |
|
|
|
165 |
|
|
array_push($links, |
166 |
|
|
array( |
167 |
|
|
"href" => "../scr/tab.php?obj=bible", |
168 |
|
|
"class" => "bible", |
169 |
|
|
"title" => _("bible"), |
170 |
|
|
"right" => "bible" |
171 |
|
|
)); |
172 |
|
|
|
173 |
|
|
array_push($links, |
174 |
|
|
array( |
175 |
|
|
"href" => "../scr/tab.php?obj=service", |
176 |
|
|
"class" => "service", |
177 |
|
|
"title" => _("service"), |
178 |
|
|
"right" => "service" |
179 |
|
|
)); |
180 |
|
|
// workflow |
181 |
|
|
|
182 |
|
|
array_push($links, |
183 |
|
|
array( |
184 |
|
|
"href" => "../scr/tab.php?obj=evenement", |
185 |
|
|
"class" => "evenement", |
186 |
|
|
"title" => _("evenement"), |
187 |
|
|
"right" => "evenement" |
188 |
|
|
)); |
189 |
|
|
|
190 |
|
|
array_push($links, |
191 |
|
|
array( |
192 |
|
|
"href" => "../scr/tab.php?obj=regle", |
193 |
|
|
"class" => "regle", |
194 |
|
|
"title" => _("regle"), |
195 |
|
|
"right" => "regle" |
196 |
|
|
)); |
197 |
|
|
|
198 |
|
|
array_push($links, |
199 |
|
|
array( |
200 |
fraynaud |
3 |
"href" => "../scr/tab.php?obj=action", |
201 |
|
|
"class" => "action", |
202 |
|
|
"title" => _("action"), |
203 |
|
|
"right" => "action" |
204 |
|
|
)); |
205 |
|
|
|
206 |
fraynaud |
4 |
array_push($links, |
207 |
|
|
array( |
208 |
|
|
"href" => "../scr/tab.php?obj=transition", |
209 |
|
|
"class" => "transition", |
210 |
|
|
"title" => _("transition"), |
211 |
|
|
"right" => "transition" |
212 |
|
|
)); |
213 |
|
|
|
214 |
|
|
array_push($links, |
215 |
|
|
array( |
216 |
|
|
"href" => "../scr/tab.php?obj=etat", |
217 |
|
|
"class" => "etat", |
218 |
|
|
"title" => _("etat"), |
219 |
|
|
"right" => "etat" |
220 |
|
|
)); |
221 |
fraynaud |
3 |
|
222 |
fraynaud |
4 |
// param gaux |
223 |
|
|
|
224 |
|
|
array_push($links, |
225 |
|
|
array( |
226 |
|
|
"href" => "../scr/tab.php?obj=categorie_demandeur", |
227 |
|
|
"class" => "categorie_demandeur", |
228 |
|
|
"title" => _("categorie_demandeur"), |
229 |
|
|
"right" => "categorie_demandeur" |
230 |
|
|
)); |
231 |
|
|
|
232 |
|
|
array_push($links, |
233 |
|
|
array( |
234 |
|
|
"href" => "../scr/tab.php?obj=civilite", |
235 |
|
|
"class" => "civilite", |
236 |
|
|
"title" => _("civilite"), |
237 |
|
|
"right" => "civilite" |
238 |
|
|
)); |
239 |
|
|
|
240 |
|
|
array_push($links, |
241 |
|
|
array( |
242 |
|
|
"href" => "../scr/tab.php?obj=destination", |
243 |
|
|
"class" => "destination", |
244 |
|
|
"title" => _("destination"), |
245 |
|
|
"right" => "destination" |
246 |
|
|
)); |
247 |
|
|
|
248 |
|
|
array_push($links, |
249 |
|
|
array( |
250 |
|
|
"href" => "../scr/tab.php?obj=nature", |
251 |
|
|
"class" => "nature", |
252 |
|
|
"title" => _("nature"), |
253 |
|
|
"right" => "nature" |
254 |
|
|
)); |
255 |
|
|
|
256 |
|
|
|
257 |
|
|
// cadastre interne |
258 |
|
|
|
259 |
|
|
array_push($links, |
260 |
|
|
array( |
261 |
|
|
"href" => "../scr/tab.php?obj=parcelle", |
262 |
|
|
"class" => "parcelle", |
263 |
|
|
"title" => _("parcelle"), |
264 |
|
|
"right" => "parcelle" |
265 |
|
|
)); |
266 |
|
|
|
267 |
|
|
array_push($links, |
268 |
|
|
array( |
269 |
|
|
"href" => "../scr/tab.php?obj=proprietaire", |
270 |
|
|
"class" => "proprietaire", |
271 |
|
|
"title" => _("proprietaire"), |
272 |
|
|
"right" => "proprietaire" |
273 |
|
|
)); |
274 |
|
|
|
275 |
|
|
array_push($links, |
276 |
|
|
array( |
277 |
|
|
"href" => "../scr/tab.php?obj=pos", |
278 |
|
|
"class" => "pos", |
279 |
|
|
"title" => _("pos"), |
280 |
|
|
"right" => "pos" |
281 |
|
|
)); |
282 |
|
|
|
283 |
|
|
array_push($links, |
284 |
|
|
array( |
285 |
|
|
"href" => "../scr/tab.php?obj=rivoli", |
286 |
|
|
"class" => "rivoli", |
287 |
|
|
"title" => _("rivoli"), |
288 |
|
|
"right" => "rivoli" |
289 |
|
|
)); |
290 |
|
|
|
291 |
fraynaud |
3 |
$rubrik['links'] = $links; |
292 |
|
|
array_push($menu, $rubrik); |
293 |
|
|
|
294 |
|
|
|
295 |
|
|
|
296 |
|
|
|
297 |
|
|
|
298 |
|
|
// {{{ Rubrique ADMINISTRATION |
299 |
|
|
// |
300 |
|
|
$rubrik = array( |
301 |
|
|
"title" => _("Administration"), |
302 |
|
|
"class" => "administration", |
303 |
|
|
"right" => "menu_administration", |
304 |
|
|
); |
305 |
|
|
// |
306 |
|
|
$links = array(); |
307 |
|
|
array_push($links, |
308 |
|
|
array( |
309 |
|
|
"href" => "../scr/tab.php?obj=om_collectivite", |
310 |
|
|
"class" => "collectivite", |
311 |
|
|
"title" => _("om_collectivite"), |
312 |
|
|
"right" => "om_collectivite_tab" |
313 |
|
|
)); |
314 |
|
|
array_push($links, |
315 |
|
|
array( |
316 |
|
|
"href" => "../scr/tab.php?obj=om_parametre", |
317 |
|
|
"class" => "collectivite", |
318 |
|
|
"title" => _("om_parametre"), |
319 |
|
|
"right" => "om_parametre_tab" |
320 |
|
|
)); |
321 |
|
|
|
322 |
|
|
|
323 |
|
|
array_push($links, |
324 |
|
|
array( |
325 |
|
|
"title" => "<hr/>", |
326 |
|
|
"right" => array("om_utilisateur_tab", "om_profil_tab", "om_droit_tab") |
327 |
|
|
)); |
328 |
|
|
array_push($links, |
329 |
|
|
array( |
330 |
|
|
"href" => "../scr/tab.php?obj=om_profil", |
331 |
|
|
"class" => "profil", |
332 |
|
|
"title" => _("om_profil"), |
333 |
|
|
"right" => "om_profil_tab" |
334 |
|
|
)); |
335 |
|
|
array_push($links, |
336 |
|
|
array( |
337 |
|
|
"href" => "../scr/tab.php?obj=om_droit", |
338 |
|
|
"class" => "droit", |
339 |
|
|
"title" => _("om_droit"), |
340 |
|
|
"right" => "om_droit_multi" |
341 |
|
|
)); |
342 |
|
|
array_push($links, |
343 |
|
|
array( |
344 |
|
|
"href" => "../scr/tab.php?obj=om_utilisateur", |
345 |
|
|
"class" => "utilisateur", |
346 |
|
|
"title" => _("om_utilisateur"), |
347 |
|
|
"right" => "om_utilisateur_tab" |
348 |
|
|
)); |
349 |
|
|
array_push($links, |
350 |
|
|
array( |
351 |
|
|
"title" => "<hr/>", |
352 |
|
|
"right" => array("om_etat_tab", "om_sousetat_tab", "om_lettretype_tab"), |
353 |
|
|
)); |
354 |
|
|
array_push($links, |
355 |
|
|
array( |
356 |
|
|
"href" => "../scr/tab.php?obj=om_etat", |
357 |
|
|
"class" => "etat", |
358 |
|
|
"title" => _("om_etat"), |
359 |
|
|
"right" => "om_etat_tab" |
360 |
|
|
)); |
361 |
|
|
array_push($links, |
362 |
|
|
array( |
363 |
|
|
"href" => "../scr/tab.php?obj=om_sousetat", |
364 |
|
|
"class" => "sousetat", |
365 |
|
|
"title" => _("om_sousetat"), |
366 |
|
|
"right" => "om_sousetat_tab" |
367 |
|
|
)); |
368 |
|
|
array_push($links, |
369 |
|
|
array( |
370 |
|
|
"href" => "../scr/tab.php?obj=om_lettretype", |
371 |
|
|
"class" => "lettretype", |
372 |
|
|
"title" => _("om_lettretype"), |
373 |
|
|
"right" => "om_lettretype_tab" |
374 |
|
|
)); |
375 |
|
|
array_push($links, |
376 |
|
|
array( |
377 |
|
|
"title" => "<hr/>", |
378 |
|
|
"right" => array("import"), |
379 |
|
|
)); |
380 |
|
|
array_push($links, |
381 |
|
|
array( |
382 |
|
|
"href" => "../scr/import.php", |
383 |
|
|
"class" => "import", |
384 |
|
|
"title" => _("Import"), |
385 |
|
|
"right" => "import" |
386 |
|
|
)); |
387 |
|
|
|
388 |
|
|
array_push($links, |
389 |
|
|
array( |
390 |
|
|
"title" => "<hr/>", |
391 |
|
|
"right" => array("gen"), |
392 |
|
|
)); |
393 |
|
|
array_push($links, |
394 |
|
|
array( |
395 |
|
|
"title" => _("Generateur"), |
396 |
|
|
"href" => "../gen/gen.php", |
397 |
|
|
"class" => "generator", |
398 |
|
|
"right" => "gen", |
399 |
|
|
)); |
400 |
|
|
$rubrik['links'] = $links; |
401 |
|
|
array_push($menu, $rubrik); |
402 |
|
|
// }}} |
403 |
|
|
|
404 |
|
|
?> |