1 | <?php |
---|
2 | /***************************************************************************\ |
---|
3 | * Associaspip, extension de SPIP pour gestion d'associations * |
---|
4 | * * |
---|
5 | * Copyright (c) 2007 Bernard Blazin & Fran�ois de Montlivault (V1) * |
---|
6 | * Copyright (c) 2010-2011 Emmanuel Saint-James & Jeannot Lapin (V2) * |
---|
7 | * Ecrit par Marcel BOLLA en 09/2011 * |
---|
8 | * * |
---|
9 | * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * |
---|
10 | * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * |
---|
11 | \***************************************************************************/ |
---|
12 | |
---|
13 | /* TODO : ce module n'est pas implemente ! Il existe juste pour ne pas generer |
---|
14 | * une erreur lors de son activation dans les raccourcis de compte |
---|
15 | */ |
---|
16 | |
---|
17 | if (!defined('_ECRIRE_INC_VERSION')) |
---|
18 | return; |
---|
19 | |
---|
20 | include_spip ('inc/navigation_modules'); |
---|
21 | |
---|
22 | function exec_annexe() |
---|
23 | { |
---|
24 | if (!autoriser('associer', 'comptes')) { |
---|
25 | include_spip('inc/minipres'); |
---|
26 | echo minipres(); |
---|
27 | } else { |
---|
28 | $plan = sql_countsel('spip_asso_plan'); |
---|
29 | $exercice = intval(_request('exercice')); |
---|
30 | if(!$exercice){ |
---|
31 | /* on recupere l'id_exercice dont la date "fin" est "la plus grande" */ |
---|
32 | $exercice = sql_getfetsel('id_exercice','spip_asso_exercices', '', '', 'fin DESC'); |
---|
33 | if(!$exercice) |
---|
34 | $exercice = 0; |
---|
35 | } |
---|
36 | $exercice_data = sql_asso1ligne('exercice', $exercice); |
---|
37 | onglets_association('titre_onglet_comptes'); |
---|
38 | // INTRO : rappel de l'exercicee affichee |
---|
39 | $infos['exercice_entete_debut'] = association_datefr($exercice_data['debut'], 'dtstart'); |
---|
40 | $infos['exercice_entete_fin'] = association_datefr($exercice_data['fin'], 'dtend'); |
---|
41 | echo totauxinfos_intro($exercice_data['intitule'], 'exercice', $exercice, $infos); |
---|
42 | // datation et raccourcis |
---|
43 | icones_association(array('comptes', "exercice=$exercice"), array( |
---|
44 | 'cpte_resultat_titre_general' => array('finances-24.png', 'compte_resultat', "exercice=$exercice"), |
---|
45 | 'bilan' => array('finances-24.png', 'bilan', "exercice=$exercice"), |
---|
46 | )); |
---|
47 | debut_cadre_association('finances-32.jpg', 'annexe_titre_general', $exercice_data['intitule']); |
---|
48 | echo _T('asso:non_implemente'); |
---|
49 | fin_page_association(); |
---|
50 | } |
---|
51 | } |
---|
52 | |
---|
53 | ?> |
---|