Subversion Repositories Applications.bazar

Rev

Rev 446 | Rev 479 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 446 Rev 468
Line 110... Line 110...
110
	if (count($tab_params) == 0) {
110
	if (count($tab_params) == 0) {
111
		$tab_params = explode('&', $chaine_url);
111
		$tab_params = explode('&', $chaine_url);
112
	}
112
	}
113
	foreach ($tab_params as $param) {
113
	foreach ($tab_params as $param) {
114
		$tab_parametre = explode('=', $param);
114
		$tab_parametre = explode('=', $param);
-
 
115
		// note d'Aurélien, si on nettoie l'URL on perd la vue en cours  
115
		$url->removeQueryString($tab_parametre[0]);
116
		//$url->removeQueryString($tab_parametre[0]);
116
	}
117
	}
Line 117... Line 118...
117
 
118
	
118
	if (!isset($_GET['y'])) {
119
	if (!isset($_GET['y'])) { 
119
		$_GET['y'] = date('Y');
120
		$_GET['y'] = date('Y');
Line 326... Line 327...
326
				} else {
327
							} else {
327
					$naviguer = false;
328
								$naviguer = false;
328
				}
329
							}				
329
	    	}
330
			}
330
		}
331
		}
331
 
-
 
332
 
-
 
333
		// Add the decorator to the selection
332
		// Add the decorator to the selection
334
		foreach ($tablo_jours as $jour) {
333
		foreach ($tablo_jours as $jour) {
335
			$selection[] = $jour['Diary_Event'];
334
			$selection[] = $jour['Diary_Event'];				
336
		}
335
		}
Line 420... Line 419...
420
				if ($day->isSelected() ) {
419
				if ($day->isSelected() ) {
421
					$evenements = $day->getEntry();
420
					$evenements = $day->getEntry();
422
					$evenements_nbre = count($evenements);
421
					$evenements_nbre = count($evenements);
423
					$evenemt_xhtml = '';
422
					$evenemt_xhtml = '';
424
					while ($ligne_evenement = array_pop($evenements)) {
423
					while ($ligne_evenement = array_pop($evenements)) {
-
 
424
 
425
						$id_fiches = array();
425
						$id_fiches = array();
426
						$id_fiches[] = $ligne_evenement->bf_id_fiche;
426
						$id_fiches[] = $ligne_evenement->bf_id_fiche;
427
						$url->addQueryString ('id_fiches',$id_fiches);
427
						$url->addQueryString ('id_fiches',$id_fiches);
-
 
428
 
-
 
429
						$lien_voir = new Net_Url(BAZ_URL_BASE_APPLI);
-
 
430
						$lien_voir->addQueryString(BAZ_VARIABLE_ACTION, BAZ_VOIR_FICHE);
-
 
431
						$lien_voir->addQueryString('id_fiche', $ligne_evenement->bf_id_fiche);
-
 
432
						$lien_voir->addQueryString('typeannonce', $ligne_evenement->bn_id_nature);
428
						$link = $url->getUrl();
433
						$link=$lien_voir->getURL();
Line 429... Line 434...
429
 
434
						
430
						if (!isset($_GET['tt']) || (isset($_GET['tt']) && $_GET['tt'] == '1')) {
435
						if (!isset($_GET['tt']) || (isset($_GET['tt']) && $_GET['tt'] == '1')) {
431
							$titre_taille = strlen($ligne_evenement->bf_titre);
436
							$titre_taille = strlen($ligne_evenement->bf_titre);
432
							$titre = ($titre_taille > 20)?substr($ligne_evenement->bf_titre, 0, 20).'...':$ligne_evenement->bf_titre;
437
							$titre = ($titre_taille > 20)?substr($ligne_evenement->bf_titre, 0, 20).'...':$ligne_evenement->bf_titre;
Line 480... Line 485...
480
 
485
		
481
		$GLOBALS['_PAPYRUS_']['rendu']['CONTENU_NAVIGATION'] = '';
486
		$GLOBALS['_PAPYRUS_']['rendu']['CONTENU_NAVIGATION'] = '';
482
		$GLOBALS['_PAPYRUS_']['rendu']['CONTENU_TETE'] = '';
487
		$GLOBALS['_PAPYRUS_']['rendu']['CONTENU_TETE'] = '';
483
		$GLOBALS['_PAPYRUS_']['rendu']['CONTENU_CORPS'] = '<h1>'.$jours[date('w', $timestamp)].
488
		$GLOBALS['_PAPYRUS_']['rendu']['CONTENU_CORPS'] = '<h1>'.$jours[date('w', $timestamp)].
484
						' '.$_GET['d'].' '.$mois[$_GET['m']-1].' '.$_GET['y'].'</h1>' ;
489
						' '.$_GET['d'].' '.$mois[$_GET['m']-1].' '.$_GET['y'].'</h1>' ;
Line 485... Line 490...
485
		$GLOBALS['_PAPYRUS_']['rendu']['CONTENU_CORPS'] .= baz_voir_fiches(0,$_GET['id_fiches'] );
490
		$GLOBALS['_PAPYRUS_']['rendu']['CONTENU_CORPS'] .= baz_voir_fiches(1,$_GET['id_fiches'] );
Line 486... Line 491...
486
 
491
 
487
		$GLOBALS['_GEN_commun']['info_menu'] = '';
492
		$GLOBALS['_GEN_commun']['info_menu'] = '';