//Autres auteurs :
*@copyright Tela-Botanica 2000-2008
*@version $Revision: 1.2 $
// +------------------------------------------------------------------------------------------------------+
*/
include_once PAP_CHEMIN_API_PEAR.'PEAR.php';
class Bazar_listedatedeb extends PEAR {
var $option = array();
function Bazar_listedatedeb($options) {
$this->options = $options;
}
function toHTML($valeur) {
$html = '';
$val = $this->options['nom_bdd'];
if (!in_array($val, array ('bf_date_debut_validite_fiche', 'bf_date_fin_validite_fiche'))) {
if ($valeur != '' && $valeur != '0000-00-00') {
// Petit test pour afficher la date de debut et de fin d evenement
if ($val == 'bf_date_debut_evenement' || $val == 'bf_date_fin_evenement') {
if ($GLOBALS['_BAZAR_']['ligne_resultat']['bf_date_debut_evenement'] == $GLOBALS['_BAZAR_']['ligne_resultat']['bf_date_fin_evenement']) {
if ($val == 'bf_date_debut_evenement') return;
$html .= '
'."\n".
''.BAZ_LE.' : '."\n";
$html .= ' '.strftime('%d.%m.%Y',strtotime($GLOBALS['_BAZAR_']['ligne_resultat']['bf_date_debut_evenement'])).''.
"\n".'
'."\n";
continue;
} else {
if ($val == 'bf_date_debut_evenement') {
$html .= ''."\n".
'';
$html .= BAZ_DU;
$html .= ''."\n".' '.strftime('%d.%m.%Y',strtotime($valeur)).''."\n";
} else {
$html .= ''.BAZ_AU;
$html .= ''."\n".' '.strftime('%d.%m.%Y',strtotime($valeur)).
''."\n".'
'."\n";
}
return $html;
}
}
$html .= ''."\n".
''.$this->options['label'].' : '."\n";
$html .= ' '.strftime('%d.%m.%Y',strtotime($valeur)).''."\n".'
'."\n";
}
}
return $html;
}
}
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: listedatedeb.php,v $
* Revision 1.2 2008-09-17 14:18:12 alexandre_tb
* fusion avec aha
*
* Revision 1.1.2.1 2008-04-16 12:35:25 alexandre_tb
* version initiale
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>