Subversion Repositories Applications.bazar

Rev

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

Rev 254 Rev 258
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.18 2007-06-12 14:58:25 alexandre_tb Exp $
22
// CVS : $Id: bazar.fonct.cal.php,v 1.19 2007-06-25 08:29:04 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.18 $ $Date: 2007-06-12 14:58:25 $
32
*@version       $Revision: 1.19 $ $Date: 2007-06-25 08:29:04 $
33
// +------------------------------------------------------------------------------------------------------+
33
// +------------------------------------------------------------------------------------------------------+
34
*/
34
*/
Line 35... Line 35...
35
 
35
 
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
Line 64... Line 64...
64
} 
64
} 
Line 65... Line 65...
65
 
65
 
66
 
66
 
67
// $type : calendrier
67
// $type : calendrier
Line -... Line 68...
-
 
68
// $type : calendrier_appplette
-
 
69
function GestionAffichageCalendrier($arguments = array(), $type = 'calendrier') {
-
 
70
	
-
 
71
	// recuperation des arguments de l applette
-
 
72
	$balise = isset ($arguments[0]) ? $arguments[0] : '';
-
 
73
    $tab_arguments = $arguments;
-
 
74
	unset($tab_arguments[0]);
-
 
75
	if (is_array($tab_arguments)) {
-
 
76
	    foreach($tab_arguments as $argument) {
-
 
77
	    	if ($argument != '') {
-
 
78
		    	$tab_parametres = explode('=', $argument, 2);
-
 
79
		    	$options[$tab_parametres[0]] = trim($tab_parametres[1], '"');
-
 
80
	    	}
-
 
81
	    }
-
 
82
	}
-
 
83
    
-
 
84
    if (!isset($options['template'])) {
-
 
85
		$options['template'] = BAZ_CHEMIN_SQUELETTE.BAZ_SQUELETTE_DEFAUT;
-
 
86
	} else {
-
 
87
		if (file_exists(BAZ_CHEMIN_SQUELETTE.$options['template'])) {
-
 
88
			$options['template'] = BAZ_CHEMIN_SQUELETTE.$options['template'];
68
// $type : calendrier_appplette
89
		}
Line 69... Line 90...
69
function GestionAffichageCalendrier($type = 'calendrier') {
90
	}
70
	
91
    
71
	$retour = '';
92
	$retour = '';
Line 105... Line 126...
105
	$next = $url->getUrl();
126
	$next = $url->getUrl();
Line 106... Line 127...
106
	
127
	
107
	$fr_month = array(	"1"=>BAZ_JANVIER,"2"=>BAZ_FEVRIER,"3"=>BAZ_MARS,"4"=>BAZ_AVRIL,"5"=>BAZ_MAI,"6"=>BAZ_JUIN,
128
	$fr_month = array(	"1"=>BAZ_JANVIER,"2"=>BAZ_FEVRIER,"3"=>BAZ_MARS,"4"=>BAZ_AVRIL,"5"=>BAZ_MAI,"6"=>BAZ_JUIN,
Line 108... Line -...
108
						"7"=>BAZ_JUILLET,"8"=>BAZ_AOUT,"9"=>BAZ_SEPTEMBRE,"10"=>BAZ_OCTOBRE,"11"=>BAZ_NOVEMBRE,"12"=>BAZ_DECEMBRE);
-
 
109
 
-
 
110
	$retour.= "<div class=\"navi\">";
-
 
111
	$retour.= "<a href=\"".$prev."\" id=\"navi_ant\"> &lt;&lt; </a>"; 
-
 
112
 
-
 
113
	$retour.= "&nbsp;&nbsp;";
-
 
114
	$retour.= "<a href=\"".$cur;
-
 
115
	$retour.= "\"> ";
129
						"7"=>BAZ_JUILLET,"8"=>BAZ_AOUT,"9"=>BAZ_SEPTEMBRE,"10"=>BAZ_OCTOBRE,"11"=>BAZ_NOVEMBRE,"12"=>BAZ_DECEMBRE);
116
	$retour.= $fr_month[(date('n',$curStamp))]; 
-
 
117
	$retour.= "&nbsp;";
-
 
118
	$retour.= (date('Y',$curStamp));
-
 
119
	$retour.= "</a>";
-
 
Line -... Line 130...
-
 
130
 
-
 
131
	// Appel du template
120
	$retour.= "&nbsp;&nbsp;";
132
 
-
 
133
	ob_start();
121
	$retour.= "<a href=\"".$next."\" id=\"navi_post\"> &gt;&gt; </a>";
134
	include ($options['template']);
122
 
-
 
Line 123... Line 135...
123
	$retour.= "</div>";
135
	$retour .= ob_get_contents();
Line 124... Line 136...
124
 
136
	ob_end_clean();
Line 258... Line 270...
258
							$url->removeQueryString ('id_fiches');
270
							$url->removeQueryString ('id_fiches');
259
						}
271
						}
260
					}
272
					}
261
				}
273
				}
262
				else {
274
				else {
-
 
275
				
263
					$lien_date= "<td class=\"".$class."\">".$day->thisDay()."\n";
276
					$lien_date= "<td class=\"".$class."\">".$day->thisDay()."\n";
264
					if ($day->isSelected() ) {
277
					if ($day->isSelected() ) {
265
						$evenements=$day->getEntry();
278
						$evenements=$day->getEntry();
266
						$id_fiches=array();
279
						$id_fiches=array();
267
						while ($ligne_evenement=array_pop($evenements)) {
280
						while ($ligne_evenement=array_pop($evenements)) {