Subversion Repositories eFlore/Applications.bibliobota

Compare Revisions

Ignore whitespace Rev 26 → Rev 27

/trunk/bibliotheque/bb_commun.fonct.php
19,7 → 19,7
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: bb_commun.fonct.php,v 1.2 2007-02-13 17:40:22 jp_milcent Exp $
// CVS : $Id: bb_commun.fonct.php,v 1.3 2007-02-14 11:37:50 jp_milcent Exp $
/**
* Fonctions communes aux applications de Biblio Bota.
*
32,7 → 32,7
//Autres auteurs :
*@author Jean-Pascal MILCENT <jpm@clapas.org>
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.2 $ $Date: 2007-02-13 17:40:22 $
*@version $Revision: 1.3 $ $Date: 2007-02-14 11:37:50 $
// +------------------------------------------------------------------------------------------------------+
*/
 
100,6 → 100,9
$annee = $match[1];
$mois = $match[2];
switch ($mois) {
case '00' :
$mois_sortie = '';
break;
case '01' :
$mois_sortie = 'janvier';
break;
137,7 → 140,11
$mois_sortie = 'décembre';
break;
}
return $mois_sortie.' '.$annee;
if ($mois_sortie != '') {
return $mois_sortie.' '.$annee;
} else {
return $annee;
}
} else {
return '?';
}
145,6 → 152,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.2 2007/02/13 17:40:22 jp_milcent
* Ajout d'une fonction pour formater de manière conviviale les dates Mysql.
*
* Revision 1.1 2005/11/23 10:22:25 jp_milcent
* Ajout au dépot de l'application BiblioBota.
* Elle doit à terme migrer dans eFlore.