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.22 2007-07-05 10:40:25 alexandre_tb Exp $
|
22 |
// CVS : $Id: bazar.fonct.cal.php,v 1.23 2007-09-06 12:49:51 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.22 $ $Date: 2007-07-05 10:40:25 $
|
32 |
*@version $Revision: 1.23 $ $Date: 2007-09-06 12:49:51 $
|
33 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
// +------------------------------------------------------------------------------------------------------+
|
34 |
*/
|
34 |
*/
|
Line 35... |
Line 35... |
35 |
|
35 |
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
Line 65... |
Line 65... |
65 |
|
65 |
|
66 |
|
66 |
|
67 |
// $type : calendrier
|
67 |
// $type : calendrier
|
68 |
// $type : calendrier_appplette
|
68 |
// $type : calendrier_appplette
|
69 |
function GestionAffichageCalendrier($arguments = array(), $type = 'calendrier') {
|
69 |
function GestionAffichageCalendrier($arguments = array(), $type = 'calendrier') {
|
70 |
|
70 |
$script = '';
|
71 |
// recuperation des arguments de l applette
|
71 |
// recuperation des arguments de l applette
|
72 |
$balise = isset ($arguments[0]) ? $arguments[0] : '';
|
72 |
$balise = isset ($arguments[0]) ? $arguments[0] : '';
|
73 |
$tab_arguments = $arguments;
|
73 |
$tab_arguments = $arguments;
|
Line 212... |
Line 212... |
212 |
ob_end_clean();
|
212 |
ob_end_clean();
|
213 |
}
|
213 |
}
|
214 |
// Vue Mois calendrier ou vue applette
|
214 |
// Vue Mois calendrier ou vue applette
|
Line 215... |
Line 215... |
215 |
|
215 |
|
216 |
if ((!isset($_GET['id_fiche']) && $type == 'calendrier') || ($type == 'calendrier_applette')){
|
216 |
if ((!isset($_GET['id_fiche']) && $type == 'calendrier') || ($type == 'calendrier_applette')){
|
217 |
trigger_error('ICI', E_USER_NOTICE);
|
217 |
// trigger_error('ICI', E_USER_NOTICE);
|
218 |
// Recherche evenement de la periode selectionnée
|
218 |
// Recherche evenement de la periode selectionnée
|
219 |
$ts_jour_fin_mois = $month->nextMonth('timestamp');
|
219 |
$ts_jour_fin_mois = $month->nextMonth('timestamp');
|
220 |
$ts_jour_debut_mois = $month->thisMonth('timestamp');;
|
220 |
$ts_jour_debut_mois = $month->thisMonth('timestamp');;
|
221 |
$requete_evenements = "SELECT DISTINCT bf_id_fiche, bf_titre, bf_lieu_evenement, DAY(bf_date_debut_evenement) AS bf_jour_debut_evenement, bf_date_debut_evenement, bf_date_fin_evenement, bf_description ".
|
221 |
$requete_evenements = "SELECT DISTINCT bf_id_fiche, bf_titre, bf_lieu_evenement, DAY(bf_date_debut_evenement) AS bf_jour_debut_evenement, bf_date_debut_evenement, bf_date_fin_evenement, bf_description ".
|