Changeset 60765 in spip-zone
- Timestamp:
- Apr 29, 2012, 8:31:02 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/Association/Associaspip/exec/bilan.php
r60763 r60765 40 40 $infos['exercice_entete_fin'] = association_datefr($exercice_data['fin'], 'dtend'); 41 41 echo totauxinfos_intro($exercice_data['intitule'], 'exercice', $exercice, $infos); 42 if ($GLOBALS['association_metas']['destinations']=='on') {43 // cree un menu a choix multiple des destinations a inserer dans la boite info et recupere les intitule de toutes les destinations dans un tableau44 $select_destination = '';45 $intitule_destinations = array();46 $query = sql_select('id_destination, intitule', 'spip_asso_destination', '', '', 'intitule');47 while ($data = sql_fetch($query)) {48 $select_destination .= '<option value="'.$data['id_destination'].'"';49 if (!(array_search($data['id_destination'], $ids_destination_bilan)===FALSE))50 $select_destination .= ' selected="selected"';51 $select_destination .= '>'.$data['intitule'].'</option>';52 $intitule_destinations[$data['id_destination']] = $data['intitule'];53 }54 echo '<form method="post" action="'.generer_url_ecrire('bilan', "exercice=$exercice").'"><div>';55 echo '<select name ="destination[]" class="fondl" multiple>';56 echo '<option value="0"';57 if (!(array_search(0, $ids_destination_bilan)===FALSE))58 echo ' selected="selected"';59 echo '>'._T('asso:toutes_destinations').'</option><option disabled="disabled">--------</option>'.$select_destination;60 echo '</select>';61 echo '<p class="boutons"><input type="submit" value="Bilan" /></p>';62 echo '</div></form>';63 }64 42 // datation et raccourcis 65 43 icones_association(array('comptes', "exercice=$exercice"), array( … … 68 46 'encaisse' => array('finances-24.png', 'encaisse', "exercice=$exercice"), 69 47 )); 48 // selecteur de destinations 49 if ($GLOBALS['association_metas']['destinations']) {// on affiche une liste de choix de destinations et on cree parallelement les intitule de toutes les destinations dans un tableau 50 $select_destination = ''; 51 $intitule_destinations = array(); 52 $query = sql_select('id_destination, intitule', 'spip_asso_destination', '', '', 'intitule'); 53 while ($data = sql_fetch($query)) { 54 $select_destination .= '<div class="choix"><input type="checkbox" name ="destination[]" value="'.$data['id_destination'].'"'; 55 if (!(array_search($data['id_destination'], $ids_destination_bilan)===FALSE)) 56 $select_destination .= ' selected="selected"'; 57 $select_destination .= ' /><label>'.$data['intitule'].'</label></div>'; 58 $intitule_destinations[$data['id_destination']] = $data['intitule']; 59 } 60 echo debut_cadre_enfonce('',true); 61 echo '<h3>'. _T('plugins_vue_liste') .'</h3>'; 62 echo '<form method="post" action="'.generer_url_ecrire('bilan', "exercice=$exercice").'"><div>'; 63 echo '<div class="choix"><input type="checkbox" name ="destination[]" value="0"'; 64 if (!(array_search(0, $ids_destination_bilan)===FALSE)) 65 echo ' selected="selected"'; 66 echo ' /><label>'._T('asso:toutes_destinations').'</label></div>'.$select_destination; 67 echo '</div>'; 68 echo '<p class="boutons"><input type="submit" value="Bilan" /></p>'; 69 echo '</div></form>'; 70 echo fin_cadre_enfonce(true); 71 } 70 72 debut_cadre_association('finances-24.png', 'resultat_courant', $exercice_data['intitule']); 71 73 if ($plan) {
Note: See TracChangeset
for help on using the changeset viewer.