Subversion Repositories Applications.bazar

Compare Revisions

Ignore whitespace Rev 378 → Rev 379

/branches/livraison_aha/bibliotheque/bazar.fonct.cal.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: bazar.fonct.cal.php,v 1.24.2.1 2007-11-20 10:26:38 alexandre_tb Exp $
// CVS : $Id: bazar.fonct.cal.php,v 1.24.2.2 2008-03-13 17:42:07 jp_milcent Exp $
/**
*
* Fonctions calendrier du module bazar
29,7 → 29,7
*@author David Delon <david.delon@clapas.net>
//Autres auteurs :
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.24.2.1 $ $Date: 2007-11-20 10:26:38 $
*@version $Revision: 1.24.2.2 $ $Date: 2008-03-13 17:42:07 $
// +------------------------------------------------------------------------------------------------------+
*/
 
260,6 → 260,7
if (!isset($tablo_jours[$cle_j])) {
$tablo_jours[$cle_j]['Calendar_Day'] = new Calendar_Day(date('Y', $ts_jour_suivant),date('m', $ts_jour_suivant), date('d', $ts_jour_suivant));
$tablo_jours[$cle_j]['Diary_Event'] = new DiaryEvent($tablo_jours[$cle_j]['Calendar_Day']);
trigger_error('<pre>la :'.print_r($cle_j, true).'</pre>', E_USER_WARNING);
}
$tablo_jours[$cle_j]['Diary_Event']->setEntry($ligne_evenements);
276,19 → 277,21
}
} else {
$curday_ymd = $annee.$mois.$ligne_evenements->bf_jour_debut_evenement;
$cle_j = $annee.'-'.$mois.'-'.$ligne_evenements->bf_jour_debut_evenement;
$cle_j = $annee.'-'.$mois.'-'.sprintf('%02s', $ligne_evenements->bf_jour_debut_evenement);
if (!isset($tablo_jours[$cle_j])) {
$tablo_jours[$cle_j]['Calendar_Day'] = new Calendar_Day($annee, $mois, $ligne_evenements->bf_jour_debut_evenement);
$tablo_jours[$cle_j]['Diary_Event'] = new DiaryEvent($tablo_jours[$cle_j]['Calendar_Day']);
trigger_error('<pre>ici :'.print_r($cle_j, true).'</pre>', E_USER_WARNING);
}
$tablo_jours[$cle_j]['Diary_Event']->setEntry($ligne_evenements);
}
}
// Add the decorator to the selection
foreach ($tablo_jours as $jour) {
$selection[] = $jour['Diary_Event'];
$selection[] = $jour['Diary_Event'];
}
// Affichage Calendrier
$month->build($selection);
if ($type == 'calendrier') {