Line | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * Plugin Association |
---|
4 | * |
---|
5 | * Copyright (c) 2007-2008 |
---|
6 | * Bernard Blazin & François de Montlivault |
---|
7 | * http://www.plugandspip.com |
---|
8 | * Ce programme est un logiciel libre distribue sous licence GNU/GPL. |
---|
9 | * Pour plus de details voir le fichier COPYING.txt. |
---|
10 | * |
---|
11 | **/ |
---|
12 | |
---|
13 | //Conversion de date |
---|
14 | function association_datefr($date) { |
---|
15 | $split = explode('-',$date); |
---|
16 | $annee = $split[0]; |
---|
17 | $mois = $split[1]; |
---|
18 | $jour = $split[2]; |
---|
19 | return $jour.'/'.$mois.'/'.$annee; |
---|
20 | } |
---|
21 | |
---|
22 | function association_nbrefr($montant) { |
---|
23 | $montant = number_format($montant, 2, ',', ' '); |
---|
24 | return $montant; |
---|
25 | } |
---|
26 | |
---|
27 | //Affichage du message indiquant la date |
---|
28 | function association_date_du_jour($heure=false) { |
---|
29 | return '<p>'.($heure ? _T('asso:date_du_jour_heure') : _T('asso:date_du_jour')).'</p>'; |
---|
30 | } |
---|
31 | |
---|
32 | function association_header_prive($flux){ |
---|
33 | $flux .= '<link rel="stylesheet" type="text/css" href="'.direction_css(find_in_path('association.css')).'" />'; |
---|
34 | return $flux; |
---|
35 | } |
---|
36 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.