Subversion Repositories Applications.bazar

Rev

Rev 234 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 234 Rev 235
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.17 2007-04-11 08:30:12 neiluj Exp $
22
// CVS : $Id: bazar.fonct.cal.php,v 1.17.2.1 2007-05-09 13:56:49 alexandre_tb 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.17 $ $Date: 2007-04-11 08:30:12 $
32
*@version       $Revision: 1.17.2.1 $ $Date: 2007-05-09 13:56:49 $
33
// +------------------------------------------------------------------------------------------------------+
33
// +------------------------------------------------------------------------------------------------------+
34
*/
34
*/
Line 35... Line 35...
35
 
35
 
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
Line 136... Line 136...
136
								"FROM bazar_fiche, bazar_nature ".
136
								"FROM bazar_fiche, bazar_nature ".
137
								"WHERE YEAR(bf_date_debut_evenement) = ".date('Y',$curStamp)." ".
137
								"WHERE YEAR(bf_date_debut_evenement) = ".date('Y',$curStamp)." ".
138
								"AND month(bf_date_debut_evenement) = ".date('m',$curStamp)." ".
138
								"AND month(bf_date_debut_evenement) = ".date('m',$curStamp)." ".
139
								"AND bf_ce_nature = bn_id_nature ".
139
								"AND bf_ce_nature = bn_id_nature ".
140
								"AND bn_id_nature IN (".BAZ_NUM_ANNONCE_CALENDRIER.") ".
140
								"AND bn_id_nature IN (".BAZ_NUM_ANNONCE_CALENDRIER.") ".
141
								"AND bf_statut_fiche = 1";
141
								"AND bf_statut_fiche = 1 ".
-
 
142
								"ORDER BY bf_jour_debut_evenement";
Line 142... Line 143...
142
		
143
		
Line 143... Line 144...
143
	   	$resultat_evenement = $db->query($requete_evenements);
144
	   	$resultat_evenement = $db->query($requete_evenements);
144
	   	
145
	   	
Line 294... Line 295...
294
				if (defined('PAP_VERSION')) { //si on est dans Papyrus
295
				if (defined('PAP_VERSION')) { //si on est dans Papyrus
295
					GEN_stockerStyleExterne( 'bazar_interne2', 'client/bazar/bazar.interne.css');
296
					GEN_stockerStyleExterne( 'bazar_interne2', 'client/bazar/bazar.interne.css');
296
				}
297
				}
Line 297... Line 298...
297
			
298
			
298
				// Ajout d'un titre pour la page avec la date
299
				// Ajout d'un titre pour la page avec la date
299
				$jours = array ('lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi', 'dimanche') ;
300
				$jours = array ( 'dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi') ;
300
				$mois = array ('janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre',
301
				$mois = array ('janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre',
301
								'octobre', 'novembre', 'décembre') ;
302
								'octobre', 'novembre', 'décembre') ;
302
				$timestamp = strtotime ($_GET['y'].'/'.$_GET['m'].'/'.$_GET['d']) ;
303
				$timestamp = strtotime ($_GET['y'].'/'.$_GET['m'].'/'.$_GET['d']) ;
303
				$GLOBALS['_PAPYRUS_']['rendu']['CONTENU_CORPS'] = '<h1>'.$jours[date('w', $timestamp)].
304
				$GLOBALS['_PAPYRUS_']['rendu']['CONTENU_CORPS'] = '<h1>'.$jours[date('w', $timestamp)].