Subversion Repositories Applications.bazar

Rev

Rev 42 | Rev 78 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 42 Rev 55
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
16
// | Lesser General Public License for more details.                                                      |
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.4 2005-10-31 17:10:56 ddelon Exp $
22
// CVS : $Id: bazar.fonct.cal.php,v 1.5 2005-11-30 13:58:45 florian 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.4 $ $Date: 2005-10-31 17:10:56 $
32
*@version       $Revision: 1.5 $ $Date: 2005-11-30 13:58:45 $
33
// +------------------------------------------------------------------------------------------------------+
33
// +------------------------------------------------------------------------------------------------------+
34
*/
34
*/
35
 
35
 
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
37
// |                                            ENTETE du PROGRAMME                                       |
37
// |                                            ENTETE du PROGRAMME                                       |
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
 
39
 
40
require_once 'Calendar/Month/Weekdays.php';
40
require_once PAP_CHEMIN_RACINE.'api/pear/Calendar/Month/Weekdays.php';
41
require_once 'Calendar/Day.php';
41
require_once PAP_CHEMIN_RACINE.'api/pear/Calendar/Day.php';
42
require_once 'Calendar/Decorator.php'; 
42
require_once PAP_CHEMIN_RACINE.'api/pear/Calendar/Decorator.php'; 
43
 
43
 
44
 
44
 
45
// +------------------------------------------------------------------------------------------------------+
45
// +------------------------------------------------------------------------------------------------------+
46
// |                                           LISTE de FONCTIONS                                         |
46
// |                                           LISTE de FONCTIONS                                         |
47
// +------------------------------------------------------------------------------------------------------+
47
// +------------------------------------------------------------------------------------------------------+
48
 
48
 
49
 
49
 
50
// Classe Utilitaire pour Calendrier
50
// Classe Utilitaire pour Calendrier
51
 
51
 
52
class DiaryEvent extends Calendar_Decorator {
52
class DiaryEvent extends Calendar_Decorator {
53
	var $entry=array();
53
	var $entry=array();
54
	function DiaryEvent($calendar) {
54
	function DiaryEvent($calendar) {
55
		Calendar_Decorator::Calendar_Decorator($calendar);
55
		Calendar_Decorator::Calendar_Decorator($calendar);
56
	}
56
	}
57
	function setEntry($entry) {
57
	function setEntry($entry) {
58
		$this->entry[]=$entry;
58
		$this->entry[]=$entry;
59
		
59
		
60
	}
60
	}
61
	function getEntry() {
61
	function getEntry() {
62
		return $this->entry;
62
		return $this->entry;
63
	}
63
	}
64
} 
64
} 
65
 
65
 
66
 
66
 
67
// $type : calendrier
67
// $type : calendrier
68
// $type : calendrier_appplette
68
// $type : calendrier_appplette
69
 
69
 
70
function GestionAffichageCalendrier($type='calendrier') {
70
function GestionAffichageCalendrier($type='calendrier') {
71
	
71
	
72
	
72
	
73
	$retour='';
73
	$retour='';
74
 
74
 
75
	$url = $GLOBALS['_GEN_commun']['url'] ;
75
	$url = $GLOBALS['_GEN_commun']['url'] ;
76
	$db = &$GLOBALS['_GEN_commun']['pear_db'] ;
76
	$db = &$GLOBALS['_GEN_commun']['pear_db'] ;
77
	$auth = &$GLOBALS['_GEN_commun']['pear_auth'] ;
77
	$auth = &$GLOBALS['_GEN_commun']['pear_auth'] ;
78
	
78
	
79
	if (!isset($_GET['y'])) { 
79
	if (!isset($_GET['y'])) { 
80
		$_GET['y'] = date('Y');
80
		$_GET['y'] = date('Y');
81
	}
81
	}
82
	
82
	
83
	if (!isset($_GET['m'])) { 
83
	if (!isset($_GET['m'])) { 
84
		$_GET['m'] = date('m');
84
		$_GET['m'] = date('m');
85
	}
85
	}
86
	
86
	
87
	
87
	
88
	// 	Construction Mois en Cours 
88
	// 	Construction Mois en Cours 
89
	$month = new Calendar_Month_Weekdays($_GET['y'],$_GET['m']);
89
	$month = new Calendar_Month_Weekdays($_GET['y'],$_GET['m']);
90
 
90
 
91
	$curStamp=$month->getTimeStamp();
91
	$curStamp=$month->getTimeStamp();
92
	$url->addQueryString ('y', date('Y',$curStamp));
92
	$url->addQueryString ('y', date('Y',$curStamp));
93
	$url->addQueryString ('m', date('n',$curStamp));
93
	$url->addQueryString ('m', date('n',$curStamp));
94
	$url->addQueryString ('d', date('j',$curStamp));
94
	$url->addQueryString ('d', date('j',$curStamp));
95
	$cur = $url->getUrl();
95
	$cur = $url->getUrl();
96
	
96
	
97
	// Navigation 
97
	// Navigation 
98
	$prevStamp = $month->prevMonth(true);
98
	$prevStamp = $month->prevMonth(true);
99
	$url->addQueryString ('y', date('Y',$prevStamp));
99
	$url->addQueryString ('y', date('Y',$prevStamp));
100
	$url->addQueryString ('m', date('n',$prevStamp));
100
	$url->addQueryString ('m', date('n',$prevStamp));
101
	$url->addQueryString ('d', date('j',$prevStamp));
101
	$url->addQueryString ('d', date('j',$prevStamp));
102
	$prev = $url->getUrl();
102
	$prev = $url->getUrl();
103
	$nextStamp = $month->nextMonth(true);
103
	$nextStamp = $month->nextMonth(true);
104
	$url->addQueryString ('y', date('Y',$nextStamp));
104
	$url->addQueryString ('y', date('Y',$nextStamp));
105
	$url->addQueryString ('m', date('n',$nextStamp));
105
	$url->addQueryString ('m', date('n',$nextStamp));
106
	$url->addQueryString ('d', date('j',$nextStamp));
106
	$url->addQueryString ('d', date('j',$nextStamp));
107
	$next = $url->getUrl();
107
	$next = $url->getUrl();
108
 
108
 
109
	$fr_month=array("1"=>BAZ_JANVIER,"2"=>BAZ_FEVRIER,"3"=>BAZ_MARS,"4"=>BAZ_AVRIL,"5"=>BAZ_MAI,"6"=>BAZ_JUIN,"7"=>BAZ_JUILLET,"8"=>BAZ_AOUT,"9"=>BAZ_SEPTEMBRE,"10"=>BAZ_OCTOBRE,"11"=>BAZ_NOVEMBRE,"12"=>BAZ_DECEMBRE);
109
	$fr_month=array("1"=>BAZ_JANVIER,"2"=>BAZ_FEVRIER,"3"=>BAZ_MARS,"4"=>BAZ_AVRIL,"5"=>BAZ_MAI,"6"=>BAZ_JUIN,"7"=>BAZ_JUILLET,"8"=>BAZ_AOUT,"9"=>BAZ_SEPTEMBRE,"10"=>BAZ_OCTOBRE,"11"=>BAZ_NOVEMBRE,"12"=>BAZ_DECEMBRE);
110
 
110
 
111
	$retour.= "<div class=\"navi\">";
111
	$retour.= "<div class=\"navi\">";
112
	$retour.= "<a href=\"".$prev."\"> &lt;&lt; </a>"; 
112
	$retour.= "<a href=\"".$prev."\"> &lt;&lt; </a>"; 
113
 
113
 
114
	$retour.= "&nbsp;&nbsp;";
114
	$retour.= "&nbsp;&nbsp;";
115
	$retour.= "<a href=\"".$cur;
115
	$retour.= "<a href=\"".$cur;
116
	$retour.= "\"> ";
116
	$retour.= "\"> ";
117
	$retour.= $fr_month[(date('n',$curStamp))]; 
117
	$retour.= $fr_month[(date('n',$curStamp))]; 
118
	$retour.= "&nbsp;";
118
	$retour.= "&nbsp;";
119
	$retour.= (date('Y',$curStamp));
119
	$retour.= (date('Y',$curStamp));
120
	$retour.= "</a>";
120
	$retour.= "</a>";
121
	$retour.= "&nbsp;&nbsp;";
121
	$retour.= "&nbsp;&nbsp;";
122
	$retour.= "<a href=\"".$next."\"> &gt;&gt; </a>";
122
	$retour.= "<a href=\"".$next."\"> &gt;&gt; </a>";
123
 
123
 
124
	$retour.= "</div>";
124
	$retour.= "</div>";
125
 
125
 
126
	$retour.="<br></br>";
126
	$retour.="<br></br>";
127
 
127
 
128
	// Vue Mois calendrier ou vue applette
128
	// Vue Mois calendrier ou vue applette
129
		
129
		
130
	if ((!isset($_GET['id_fiche']) && ($type=='calendrier')) || ($type=='calendrier_applette')){
130
	if ((!isset($_GET['id_fiche']) && ($type=='calendrier')) || ($type=='calendrier_applette')){
131
			
131
			
132
		// Recherche evenement de la periode selectionnée 
132
		// Recherche evenement de la periode selectionnée 
133
		
133
		
134
	 	// TODO : Selectionner element du mois en cours 
134
	 	// TODO : Selectionner element du mois en cours 
135
	 	
135
	 	
136
	    $requete_evenements = "SELECT DISTINCT bf_id_fiche, bf_titre, bf_lieu_evenement, day(bf_date_debut_evenement) as bf_jour_debut_evenement , bf_date_fin_evenement, bf_description FROM bazar_fiche, bazar_nature where year(bf_date_debut_evenement) =".date('Y',$curStamp)." and month(bf_date_debut_evenement)=".date('m',$curStamp)." and bf_ce_nature=bn_id_nature and bn_label_nature='Évènements'";
136
	    $requete_evenements = "SELECT DISTINCT bf_id_fiche, bf_titre, bf_lieu_evenement, day(bf_date_debut_evenement) as bf_jour_debut_evenement , bf_date_fin_evenement, bf_description FROM bazar_fiche, bazar_nature where year(bf_date_debut_evenement) =".date('Y',$curStamp)." and month(bf_date_debut_evenement)=".date('m',$curStamp)." and bf_ce_nature=bn_id_nature and bn_label_nature='Évènements'";
137
	            
137
	            
138
	            
138
	            
139
	   	$resultat_evenement = $db->query($requete_evenements);
139
	   	$resultat_evenement = $db->query($requete_evenements);
140
	   	
140
	   	
141
	    (DB::isError($resultat_evenement))
141
	    (DB::isError($resultat_evenement))
142
	    ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat_evenement->getMessage(), $requete_evenements))
142
	    ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat_evenement->getMessage(), $requete_evenements))
143
	    : '';
143
	    : '';
144
	
144
	
145
		$calcom="";
145
		$calcom="";
146
		
146
		
147
		$selection=array();
147
		$selection=array();
148
		$evenements=array();
148
		$evenements=array();
149
		 
149
		 
150
		$prev_curday_ymd=0;
150
		$prev_curday_ymd=0;
151
		
151
		
152
	    while ($ligne_evenements = $resultat_evenement->fetchRow(DB_FETCHMODE_OBJECT)) {
152
	    while ($ligne_evenements = $resultat_evenement->fetchRow(DB_FETCHMODE_OBJECT)) {
153
	    	
153
	    	
154
			$curday_ymd=date('Ym',$curStamp).$ligne_evenements->bf_jour_debut_evenement;
154
			$curday_ymd=date('Ym',$curStamp).$ligne_evenements->bf_jour_debut_evenement;
155
			if ($curday_ymd!=$prev_curday_ymd) {
155
			if ($curday_ymd!=$prev_curday_ymd) {
156
				$Day = new Calendar_Day(date('Y',$curStamp),date('m',$curStamp), $ligne_evenements->bf_jour_debut_evenement);
156
				$Day = new Calendar_Day(date('Y',$curStamp),date('m',$curStamp), $ligne_evenements->bf_jour_debut_evenement);
157
				$DiaryEvent = new DiaryEvent($Day);
157
				$DiaryEvent = new DiaryEvent($Day);
158
				$prev_curday_ymd=$curday_ymd;
158
				$prev_curday_ymd=$curday_ymd;
159
			}
159
			}
160
			
160
			
161
			$DiaryEvent->setEntry($ligne_evenements);
161
			$DiaryEvent->setEntry($ligne_evenements);
162
			
162
			
163
			// Add the decorator to the selection
163
			// Add the decorator to the selection
164
			$selection[] = $DiaryEvent;
164
			$selection[] = $DiaryEvent;
165
				
165
				
166
		}
166
		}
167
			
167
			
168
		// Affichage Calendrier
168
		// Affichage Calendrier
169
		
169
		
170
		
170
		
171
		$month->build($selection);
171
		$month->build($selection);
172
	
172
	
173
		if ($type=='calendrier') {
173
		if ($type=='calendrier') {
174
			$retour.= "<table class=\"calendar\">
174
			$retour.= "<table class=\"calendar\">
175
			 <tr>
175
			 <tr>
176
			
176
			
177
			  <th> ". BAZ_LUNDI ."</th>
177
			  <th> ". BAZ_LUNDI ."</th>
178
			  <th> ". BAZ_MARDI ."</th>
178
			  <th> ". BAZ_MARDI ."</th>
179
			  <th> ". BAZ_MERCREDI ."</th>
179
			  <th> ". BAZ_MERCREDI ."</th>
180
			  <th> ". BAZ_JEUDI ."</th>
180
			  <th> ". BAZ_JEUDI ."</th>
181
			  <th> ". BAZ_VENDREDI ."</th>
181
			  <th> ". BAZ_VENDREDI ."</th>
182
			  <th> ". BAZ_SAMEDI ."</th>
182
			  <th> ". BAZ_SAMEDI ."</th>
183
			  <th> ". BAZ_DIMANCHE ."</th>
183
			  <th> ". BAZ_DIMANCHE ."</th>
184
			 </tr>
184
			 </tr>
185
			 ";
185
			 ";
186
		}
186
		}
187
		else {
187
		else {
188
			$retour.= "<table class=\"calendar\">
188
			$retour.= "<table class=\"calendar\">
189
			 <tr>
189
			 <tr>
190
			
190
			
191
			  <th> ". BAZ_LUNDI_COURT ."</th>
191
			  <th> ". BAZ_LUNDI_COURT ."</th>
192
			  <th> ". BAZ_MARDI_COURT ."</th>
192
			  <th> ". BAZ_MARDI_COURT ."</th>
193
			  <th> ". BAZ_MERCREDI_COURT ."</th>
193
			  <th> ". BAZ_MERCREDI_COURT ."</th>
194
			  <th> ". BAZ_JEUDI_COURT ."</th>
194
			  <th> ". BAZ_JEUDI_COURT ."</th>
195
			  <th> ". BAZ_VENDREDI_COURT ."</th>
195
			  <th> ". BAZ_VENDREDI_COURT ."</th>
196
			  <th> ". BAZ_SAMEDI_COURT ."</th>
196
			  <th> ". BAZ_SAMEDI_COURT ."</th>
197
			  <th> ". BAZ_DIMANCHE_COURT ."</th>
197
			  <th> ". BAZ_DIMANCHE_COURT ."</th>
198
			 </tr>
198
			 </tr>
199
			 ";
199
			 ";
200
		}
200
		}
201
		
201
		
202
			
202
			
203
		$todayStamp=time();
203
		$todayStamp=time();
204
		
204
		
205
		$today_ymd=date('Ymd',$todayStamp);
205
		$today_ymd=date('Ymd',$todayStamp);
206
	
206
	
207
		// Other month : mois 
207
		// Other month : mois 
208
		//
208
		//
209
		
209
		
210
		while ($day = $month->fetch() ) {
210
		while ($day = $month->fetch() ) {
211
				
211
				
212
				$dayStamp = $day->thisDay(true);
212
				$dayStamp = $day->thisDay(true);
213
				$day_ymd=date('Ymd',$dayStamp);
213
				$day_ymd=date('Ymd',$dayStamp);
214
				
214
				
215
				if ( $day->isEmpty() ) {
215
				if ( $day->isEmpty() ) {
216
						$class = "other_month";
216
						$class = "other_month";
217
				}
217
				}
218
				else {
218
				else {
219
					if (($day_ymd < $today_ymd)) {
219
					if (($day_ymd < $today_ymd)) {
220
						$class= "previous_month";
220
						$class= "previous_month";
221
					}
221
					}
222
					else {
222
					else {
223
						 if ($day_ymd == $today_ymd) {
223
						 if ($day_ymd == $today_ymd) {
224
						 	$class= "current_day";
224
						 	$class= "current_day";
225
						 }
225
						 }
226
						 else {
226
						 else {
227
							$class="current_month";
227
							$class="current_month";
228
						 }
228
						 }
229
					}
229
					}
230
				}
230
				}
231
				
231
				
232
				$url->addQueryString ('y', date('Y',$dayStamp));
232
				$url->addQueryString ('y', date('Y',$dayStamp));
233
				$url->addQueryString ('m', date('n',$dayStamp));
233
				$url->addQueryString ('m', date('n',$dayStamp));
234
				$url->addQueryString ('d', date('j',$dayStamp));
234
				$url->addQueryString ('d', date('j',$dayStamp));
235
				
235
				
236
				$link = $url->getUrl();
236
				$link = $url->getUrl();
237
			
237
			
238
				// isFirst() to find start of week
238
				// isFirst() to find start of week
239
				if ($day->isFirst())
239
				if ($day->isFirst())
240
					$retour.= ( "<tr>\n" );
240
					$retour.= ( "<tr>\n" );
241
				
241
				
242
				//$retour.= ( "<td class=\"".$class."\"><a href=\"".$link."\">".$day->thisDay()."</a>\n" );
242
				//$retour.= ( "<td class=\"".$class."\"><a href=\"".$link."\">".$day->thisDay()."</a>\n" );
243
				
243
				
244
				if ($type=='calendrier') {
244
				if ($type=='calendrier') {
245
					$retour.= "<td class=\"".$class."\">".$day->thisDay()."\n";
245
					$retour.= "<td class=\"".$class."\">".$day->thisDay()."\n";
246
					if ($day->isSelected() ) {
246
					if ($day->isSelected() ) {
247
						$evenements=$day->getEntry();
247
						$evenements=$day->getEntry();
248
						while ($ligne_evenement=array_pop($evenements)) {
248
						while ($ligne_evenement=array_pop($evenements)) {
249
							$id_fiches=array();
249
							$id_fiches=array();
250
							$id_fiches[]=$ligne_evenement->bf_id_fiche;
250
							$id_fiches[]=$ligne_evenement->bf_id_fiche;
251
							$url->addQueryString ('id_fiches',$id_fiches);
251
							$url->addQueryString ('id_fiches',$id_fiches);
252
							$link = $url->getUrl();
252
							$link = $url->getUrl();
253
							$retour.= "<a href=\"".$link."\">".$ligne_evenement->bf_titre."</a>\n";
253
							$retour.= "<a href=\"".$link."\">".$ligne_evenement->bf_titre."</a>\n";
254
							$url->removeQueryString ('id_fiches');
254
							$url->removeQueryString ('id_fiches');
255
						}
255
						}
256
					}
256
					}
257
				}
257
				}
258
				else {
258
				else {
259
					$lien_date= "<td class=\"".$class."\">".$day->thisDay()."\n";
259
					$lien_date= "<td class=\"".$class."\">".$day->thisDay()."\n";
260
					if ($day->isSelected() ) {
260
					if ($day->isSelected() ) {
261
						$evenements=$day->getEntry();
261
						$evenements=$day->getEntry();
262
						$id_fiches=array();
262
						$id_fiches=array();
263
						while ($ligne_evenement=array_pop($evenements)) {
263
						while ($ligne_evenement=array_pop($evenements)) {
264
							$id_fiches[]=$ligne_evenement->bf_id_fiche;
264
							$id_fiches[]=$ligne_evenement->bf_id_fiche;
265
						}
265
						}
266
						$url->addQueryString ('id_fiches',$id_fiches);
266
						$url->addQueryString ('id_fiches',$id_fiches);
267
						$link = $url->getUrl();
267
						$link = $url->getUrl();
268
						$lien_date= "<td class=\"".$class."\"><a href=\"".$link."\">".$day->thisDay()."</a>\n";
268
						$lien_date= "<td class=\"".$class."\"><a href=\"".$link."\">".$day->thisDay()."</a>\n";
269
						$url->removeQueryString ('id_fiches');
269
						$url->removeQueryString ('id_fiches');
270
					}
270
					}
271
					$retour.=$lien_date;
271
					$retour.=$lien_date;
272
				}
272
				}
273
				
273
				
274
				$retour.= ( "</td>\n" );
274
				$retour.= ( "</td>\n" );
275
				
275
				
276
				// isLast() to find end of week
276
				// isLast() to find end of week
277
				if ( $day->isLast() )
277
				if ( $day->isLast() )
278
					$retour.= ( "</tr>\n" );
278
					$retour.= ( "</tr>\n" );
279
			}
279
			}
280
		
280
		
281
			$retour.= "</table>";
281
			$retour.= "</table>";
282
			
282
			
283
			
283
			
284
		}
284
		}
285
		
285
		
286
		// Vue detail
286
		// Vue detail
287
		
287
		
288
		if ((isset($_GET['id_fiches']))) {
288
		if ((isset($_GET['id_fiches']))) {
289
				$GLOBALS['_PAPYRUS_']['rendu']['CONTENU_CORPS'] = baz_voir_fiches(0,$_GET['id_fiches'] );
289
				$GLOBALS['_PAPYRUS_']['rendu']['CONTENU_CORPS'] = baz_voir_fiches(0,$_GET['id_fiches'] );
290
		}
290
		}
291
			
291
			
292
		return $retour;
292
		return $retour;
293
		
293
		
294
	}
294
	}
295
 
295
 
296
?>
296
?>