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" => _("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 |
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 |
$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 |
|
147 |
// param gaux |
148 |
|
149 |
array_push($links, |
150 |
array( |
151 |
"href" => "../scr/tab.php?obj=architecte", |
152 |
"class" => "architecte", |
153 |
"title" => _("architecte"), |
154 |
"right" => "architecte" |
155 |
)); |
156 |
|
157 |
|
158 |
|
159 |
array_push($links, |
160 |
array( |
161 |
"href" => "../scr/tab.php?obj=service", |
162 |
"class" => "service", |
163 |
"title" => _("service"), |
164 |
"right" => "service" |
165 |
)); |
166 |
|
167 |
array_push($links, |
168 |
array( |
169 |
"href" => "../scr/tab.php?obj=travaux", |
170 |
"class" => "travaux", |
171 |
"title" => _("travaux"), |
172 |
"right" => "travaux" |
173 |
)); |
174 |
|
175 |
array_push($links, |
176 |
array( |
177 |
"href" => "../scr/tab.php?obj=regle", |
178 |
"class" => "regle", |
179 |
"title" => _("regle"), |
180 |
"right" => "regle" |
181 |
)); |
182 |
|
183 |
array_push($links, |
184 |
array( |
185 |
"href" => "../scr/tab.php?obj=categorie_demandeur", |
186 |
"class" => "categorie_demandeur", |
187 |
"title" => _("categorie_demandeur"), |
188 |
"right" => "categorie_demandeur" |
189 |
)); |
190 |
|
191 |
array_push($links, |
192 |
array( |
193 |
"href" => "../scr/tab.php?obj=destination", |
194 |
"class" => "destination", |
195 |
"title" => _("destination"), |
196 |
"right" => "destination" |
197 |
)); |
198 |
|
199 |
array_push($links, |
200 |
array( |
201 |
"href" => "../scr/tab.php?obj=nature", |
202 |
"class" => "nature", |
203 |
"title" => _("nature"), |
204 |
"right" => "nature" |
205 |
)); |
206 |
|
207 |
// workflows |
208 |
array_push($links, |
209 |
array( |
210 |
"title" => "<hr/>", |
211 |
"right" => array("action_tab", "transition_tab", "etat_tab", |
212 |
"evenement_tab", "bible", "avis") |
213 |
)); |
214 |
|
215 |
array_push($links, |
216 |
array( |
217 |
"href" => "../scr/tab.php?obj=action", |
218 |
"class" => "action", |
219 |
"title" => _("action"), |
220 |
"right" => "action" |
221 |
)); |
222 |
|
223 |
array_push($links, |
224 |
array( |
225 |
"href" => "../scr/tab.php?obj=transition", |
226 |
"class" => "transition", |
227 |
"title" => _("transition"), |
228 |
"right" => "transition" |
229 |
)); |
230 |
|
231 |
array_push($links, |
232 |
array( |
233 |
"href" => "../scr/tab.php?obj=etat", |
234 |
"class" => "etat", |
235 |
"title" => _("etat"), |
236 |
"right" => "etat" |
237 |
)); |
238 |
|
239 |
array_push($links, |
240 |
array( |
241 |
"href" => "../scr/tab.php?obj=evenement", |
242 |
"class" => "evenement", |
243 |
"title" => _("evenement"), |
244 |
"right" => "evenement" |
245 |
)); |
246 |
|
247 |
array_push($links, |
248 |
array( |
249 |
"href" => "../scr/tab.php?obj=bible", |
250 |
"class" => "bible", |
251 |
"title" => _("bible"), |
252 |
"right" => "bible" |
253 |
)); |
254 |
|
255 |
array_push($links, |
256 |
array( |
257 |
"href" => "../scr/tab.php?obj=avis", |
258 |
"class" => "avis", |
259 |
"title" => _("avis"), |
260 |
"right" => "avis" |
261 |
)); |
262 |
|
263 |
// cadastre interne |
264 |
array_push($links, |
265 |
array( |
266 |
"title" => "<hr/>", |
267 |
"right" => array("parcelle_tab", "proprietaire_tab", "civilite_tab", "pos_tab", "rivoli_tab") |
268 |
)); |
269 |
array_push($links, |
270 |
array( |
271 |
"href" => "../scr/tab.php?obj=parcelle", |
272 |
"class" => "parcelle", |
273 |
"title" => _("parcelle"), |
274 |
"right" => "parcelle" |
275 |
)); |
276 |
|
277 |
array_push($links, |
278 |
array( |
279 |
"href" => "../scr/tab.php?obj=proprietaire", |
280 |
"class" => "proprietaire", |
281 |
"title" => _("proprietaire"), |
282 |
"right" => "proprietaire" |
283 |
)); |
284 |
|
285 |
array_push($links, |
286 |
array( |
287 |
"href" => "../scr/tab.php?obj=civilite", |
288 |
"class" => "civilite", |
289 |
"title" => _("civilite"), |
290 |
"right" => "civilite" |
291 |
)); |
292 |
|
293 |
array_push($links, |
294 |
array( |
295 |
"href" => "../scr/tab.php?obj=pos", |
296 |
"class" => "pos", |
297 |
"title" => _("pos"), |
298 |
"right" => "pos" |
299 |
)); |
300 |
|
301 |
array_push($links, |
302 |
array( |
303 |
"href" => "../scr/tab.php?obj=rivoli", |
304 |
"class" => "rivoli", |
305 |
"title" => _("rivoli"), |
306 |
"right" => "rivoli" |
307 |
)); |
308 |
|
309 |
$rubrik['links'] = $links; |
310 |
array_push($menu, $rubrik); |
311 |
|
312 |
|
313 |
|
314 |
|
315 |
|
316 |
// {{{ Rubrique ADMINISTRATION |
317 |
// |
318 |
$rubrik = array( |
319 |
"title" => _("Administration"), |
320 |
"class" => "administration", |
321 |
"right" => "menu_administration", |
322 |
); |
323 |
// |
324 |
$links = array(); |
325 |
array_push($links, |
326 |
array( |
327 |
"href" => "../scr/tab.php?obj=om_collectivite", |
328 |
"class" => "collectivite", |
329 |
"title" => _("om_collectivite"), |
330 |
"right" => "om_collectivite_tab" |
331 |
)); |
332 |
array_push($links, |
333 |
array( |
334 |
"href" => "../scr/tab.php?obj=om_parametre", |
335 |
"class" => "collectivite", |
336 |
"title" => _("om_parametre"), |
337 |
"right" => "om_parametre_tab" |
338 |
)); |
339 |
|
340 |
|
341 |
array_push($links, |
342 |
array( |
343 |
"title" => "<hr/>", |
344 |
"right" => array("om_utilisateur_tab", "om_profil_tab", "om_droit_tab") |
345 |
)); |
346 |
array_push($links, |
347 |
array( |
348 |
"href" => "../scr/tab.php?obj=om_profil", |
349 |
"class" => "profil", |
350 |
"title" => _("om_profil"), |
351 |
"right" => "om_profil_tab" |
352 |
)); |
353 |
array_push($links, |
354 |
array( |
355 |
"href" => "../scr/tab.php?obj=om_droit", |
356 |
"class" => "droit", |
357 |
"title" => _("om_droit"), |
358 |
"right" => "om_droit_multi" |
359 |
)); |
360 |
array_push($links, |
361 |
array( |
362 |
"href" => "../scr/tab.php?obj=om_utilisateur", |
363 |
"class" => "utilisateur", |
364 |
"title" => _("om_utilisateur"), |
365 |
"right" => "om_utilisateur_tab" |
366 |
)); |
367 |
array_push($links, |
368 |
array( |
369 |
"title" => "<hr/>", |
370 |
"right" => array("om_etat_tab", "om_sousetat_tab", "om_lettretype_tab"), |
371 |
)); |
372 |
array_push($links, |
373 |
array( |
374 |
"href" => "../scr/tab.php?obj=om_etat", |
375 |
"class" => "etat", |
376 |
"title" => _("om_etat"), |
377 |
"right" => "om_etat_tab" |
378 |
)); |
379 |
array_push($links, |
380 |
array( |
381 |
"href" => "../scr/tab.php?obj=om_sousetat", |
382 |
"class" => "sousetat", |
383 |
"title" => _("om_sousetat"), |
384 |
"right" => "om_sousetat_tab" |
385 |
)); |
386 |
array_push($links, |
387 |
array( |
388 |
"href" => "../scr/tab.php?obj=om_lettretype", |
389 |
"class" => "lettretype", |
390 |
"title" => _("om_lettretype"), |
391 |
"right" => "om_lettretype_tab" |
392 |
)); |
393 |
array_push($links, |
394 |
array( |
395 |
"title" => "<hr/>", |
396 |
"right" => array("import"), |
397 |
)); |
398 |
array_push($links, |
399 |
array( |
400 |
"href" => "../scr/import.php", |
401 |
"class" => "import", |
402 |
"title" => _("Import"), |
403 |
"right" => "import" |
404 |
)); |
405 |
|
406 |
array_push($links, |
407 |
array( |
408 |
"title" => "<hr/>", |
409 |
"right" => array("gen"), |
410 |
)); |
411 |
array_push($links, |
412 |
array( |
413 |
"title" => _("Generateur"), |
414 |
"href" => "../gen/gen.php", |
415 |
"class" => "generator", |
416 |
"right" => "gen", |
417 |
)); |
418 |
$rubrik['links'] = $links; |
419 |
array_push($menu, $rubrik); |
420 |
// }}} |
421 |
|
422 |
?> |