Line 17... |
Line 17... |
17 |
// | |
|
17 |
// | |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
22 |
// CVS : $Id: bazar.fonct.cal.php,v 1.24.2.1 2007-11-20 10:26:38 alexandre_tb Exp $
|
22 |
// CVS : $Id: bazar.fonct.cal.php,v 1.24.2.2 2008-03-13 17:42:07 jp_milcent Exp $
|
23 |
/**
|
23 |
/**
|
24 |
*
|
24 |
*
|
25 |
* Fonctions calendrier du module bazar
|
25 |
* Fonctions calendrier du module bazar
|
26 |
*
|
26 |
*
|
27 |
*@package bazar
|
27 |
*@package bazar
|
28 |
//Auteur original :
|
28 |
//Auteur original :
|
29 |
*@author David Delon <david.delon@clapas.net>
|
29 |
*@author David Delon <david.delon@clapas.net>
|
30 |
//Autres auteurs :
|
30 |
//Autres auteurs :
|
31 |
*@copyright Tela-Botanica 2000-2004
|
31 |
*@copyright Tela-Botanica 2000-2004
|
32 |
*@version $Revision: 1.24.2.1 $ $Date: 2007-11-20 10:26:38 $
|
32 |
*@version $Revision: 1.24.2.2 $ $Date: 2008-03-13 17:42:07 $
|
33 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
// +------------------------------------------------------------------------------------------------------+
|
34 |
*/
|
34 |
*/
|
Line 35... |
Line 35... |
35 |
|
35 |
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
Line 258... |
Line 258... |
258 |
if ($ts_jour_suivant < $ts_jour_fin_mois) {
|
258 |
if ($ts_jour_suivant < $ts_jour_fin_mois) {
|
259 |
$cle_j = date('Y-m-d', $ts_jour_suivant);
|
259 |
$cle_j = date('Y-m-d', $ts_jour_suivant);
|
260 |
if (!isset($tablo_jours[$cle_j])) {
|
260 |
if (!isset($tablo_jours[$cle_j])) {
|
261 |
$tablo_jours[$cle_j]['Calendar_Day'] = new Calendar_Day(date('Y', $ts_jour_suivant),date('m', $ts_jour_suivant), date('d', $ts_jour_suivant));
|
261 |
$tablo_jours[$cle_j]['Calendar_Day'] = new Calendar_Day(date('Y', $ts_jour_suivant),date('m', $ts_jour_suivant), date('d', $ts_jour_suivant));
|
262 |
$tablo_jours[$cle_j]['Diary_Event'] = new DiaryEvent($tablo_jours[$cle_j]['Calendar_Day']);
|
262 |
$tablo_jours[$cle_j]['Diary_Event'] = new DiaryEvent($tablo_jours[$cle_j]['Calendar_Day']);
|
- |
|
263 |
trigger_error('<pre>la :'.print_r($cle_j, true).'</pre>', E_USER_WARNING);
|
263 |
}
|
264 |
}
|
264 |
$tablo_jours[$cle_j]['Diary_Event']->setEntry($ligne_evenements);
|
265 |
$tablo_jours[$cle_j]['Diary_Event']->setEntry($ligne_evenements);
|
Line 265... |
Line 266... |
265 |
|
266 |
|
266 |
$ts_jour_suivant = $Calendrier->nextDay('timestamp');
|
267 |
$ts_jour_suivant = $Calendrier->nextDay('timestamp');
|
Line 274... |
Line 275... |
274 |
$naviguer = false;
|
275 |
$naviguer = false;
|
275 |
}
|
276 |
}
|
276 |
}
|
277 |
}
|
277 |
} else {
|
278 |
} else {
|
278 |
$curday_ymd = $annee.$mois.$ligne_evenements->bf_jour_debut_evenement;
|
279 |
$curday_ymd = $annee.$mois.$ligne_evenements->bf_jour_debut_evenement;
|
279 |
$cle_j = $annee.'-'.$mois.'-'.$ligne_evenements->bf_jour_debut_evenement;
|
280 |
$cle_j = $annee.'-'.$mois.'-'.sprintf('%02s', $ligne_evenements->bf_jour_debut_evenement);
|
280 |
if (!isset($tablo_jours[$cle_j])) {
|
281 |
if (!isset($tablo_jours[$cle_j])) {
|
281 |
$tablo_jours[$cle_j]['Calendar_Day'] = new Calendar_Day($annee, $mois, $ligne_evenements->bf_jour_debut_evenement);
|
282 |
$tablo_jours[$cle_j]['Calendar_Day'] = new Calendar_Day($annee, $mois, $ligne_evenements->bf_jour_debut_evenement);
|
282 |
$tablo_jours[$cle_j]['Diary_Event'] = new DiaryEvent($tablo_jours[$cle_j]['Calendar_Day']);
|
283 |
$tablo_jours[$cle_j]['Diary_Event'] = new DiaryEvent($tablo_jours[$cle_j]['Calendar_Day']);
|
- |
|
284 |
trigger_error('<pre>ici :'.print_r($cle_j, true).'</pre>', E_USER_WARNING);
|
283 |
}
|
285 |
}
|
284 |
$tablo_jours[$cle_j]['Diary_Event']->setEntry($ligne_evenements);
|
286 |
$tablo_jours[$cle_j]['Diary_Event']->setEntry($ligne_evenements);
|
285 |
}
|
287 |
}
|
286 |
}
|
288 |
}
|
- |
|
289 |
|
287 |
// Add the decorator to the selection
|
290 |
// Add the decorator to the selection
|
288 |
foreach ($tablo_jours as $jour) {
|
291 |
foreach ($tablo_jours as $jour) {
|
289 |
$selection[] = $jour['Diary_Event'];
|
292 |
$selection[] = $jour['Diary_Event'];
|
290 |
}
|
293 |
}
|
291 |
|
294 |
|
292 |
// Affichage Calendrier
|
295 |
// Affichage Calendrier
|
293 |
$month->build($selection);
|
296 |
$month->build($selection);
|
294 |
if ($type == 'calendrier') {
|
297 |
if ($type == 'calendrier') {
|
295 |
$retour.= '<table class="calendrier">'.
|
298 |
$retour.= '<table class="calendrier">'.
|
296 |
'<colgroup>'.
|
299 |
'<colgroup>'.
|