Your IP : 216.73.216.249


Current Path : /home/etiennec/www/oldsite/tmp/cache/skel/
Upload File :
Current File : /home/etiennec/www/oldsite/tmp/cache/skel/html_8dca4133dd2c4232e3b08e2f715645aa.php

<?php

/*
 * Squelette : ../plugins/auto/agenda_2_0/modeles/evenement_vevent.html
 * Date :      Tue, 27 Jul 2010 09:37:20 GMT
 * Compile :   Sat, 20 Dec 2014 21:19:05 GMT
 * Boucles :   _mots, _vevent
 */ 

/* BOUCLE mots  */

 function BOUCLE_motshtml_8dca4133dd2c4232e3b08e2f715645aa(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	static $connect = '';
	static $table = 'mots';
	static $id = '_mots';
	static $from = array('mots' => 'spip_mots','L1' => 'spip_mots_evenements');
	static $type = array();
	static $groupby = array();
	static $select = array("0+mots.titre AS num",
		"mots.titre");
	static $orderby = array('num', 'mots.titre');
	$where = 
			array(
			array('=', 'L1.id_evenement', sql_quote($Pile[$SP]['id_evenement'])));
	static $join = array('L1' => array('mots','id_mot'));
	static $limit = '';
	static $having = 
			array();
	$t0 = "";
	// REQUETE
	$result = calculer_select($select, $from, $type, $where, $join, $groupby, $orderby, $limit, $having, $table, $id, $connect,
		 array('../plugins/auto/agenda_2_0/modeles/evenement_vevent.html','html_8dca4133dd2c4232e3b08e2f715645aa','_mots',8,$GLOBALS['spip_lang']));
	if ($result) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP] = @sql_fetch($result)) {

		$t1 = interdire_scripts(typo(supprimer_numero($Pile[$SP]['titre']),"TYPO",$connect));
		$t0 .= (($t1 && $t0) ? ', ' : '') . $t1;
	}
	@sql_free($result);
	}
	return $t0;
}



/* BOUCLE evenements  */

 function BOUCLE_veventhtml_8dca4133dd2c4232e3b08e2f715645aa(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	static $connect = '';
	static $table = 'evenements';
	static $id = '_vevent';
	static $from = array('evenements' => 'spip_evenements');
	static $type = array();
	static $groupby = array();
	static $select = array("evenements.id_evenement",
		"evenements.titre",
		"evenements.inscription",
		"evenements.places",
		"evenements.date_debut",
		"evenements.date_fin",
		"evenements.horaire",
		"evenements.descriptif",
		"evenements.lieu",
		"evenements.adresse");
	static $orderby = array();
	$where = 
			array(
			array('=', 'evenements.id_evenement', sql_quote(interdire_scripts(entites_html(sinon(@$Pile[0]['id'],interdire_scripts(entites_html((@$Pile[0]['id_evenement']),true))),true)),'','int')));
	static $join = array();
	static $limit = '';
	static $having = 
			array();
	$t0 = "";
	// REQUETE
	$result = calculer_select($select, $from, $type, $where, $join, $groupby, $orderby, $limit, $having, $table, $id, $connect,
		 array('../plugins/auto/agenda_2_0/modeles/evenement_vevent.html','html_8dca4133dd2c4232e3b08e2f715645aa','_vevent',1,$GLOBALS['spip_lang']));
	if ($result) {
	
	$l1 = _T('agenda:inscrits');$SP++;
	// RESULTATS
	while ($Pile[$SP] = @sql_fetch($result)) {

		$t0 .= (
'
<div class="vevent id_' .
$Pile[$SP]['id_evenement'] .
'">
<h3 class="summary ">' .
interdire_scripts(typo(supprimer_numero($Pile[$SP]['titre']),"TYPO",$connect)) .
'</h3>
' .
(($t1 = strval(interdire_scripts(($Pile[$SP]['inscription'] ? ' ':''))))!=='' ?
		($t1 . (	'<p class="inscrits">' .
	interdire_scripts(sql_countsel('spip_evenements_participants','id_evenement='.intval($Pile[$SP]['id_evenement']).' AND reponse=\'oui\'')) .
	(($t2 = strval(interdire_scripts($Pile[$SP]['places'])))!=='' ?
			('/' . $t2 . ' ') :
			'') .
	$l1 .
	'</p>')) :
		'') .
'
' .
(($t1 = strval(interdire_scripts(agenda_affdate_debut_fin($Pile[$SP]['date_debut'],interdire_scripts($Pile[$SP]['date_fin']),interdire_scripts($Pile[$SP]['horaire']),'hcal'))))!=='' ?
		('<p class="date">' . $t1 . '</p>') :
		'') .
'
' .
(($t1 = strval(interdire_scripts(propre($Pile[$SP]['descriptif'], $connect))))!=='' ?
		((	'<div class="description  ">') . $t1 . '</div>') :
		'') .
'
' .
(($t1 = strval(interdire_scripts(propre($Pile[$SP]['lieu']))))!=='' ?
		((	'<p class="lieu"><span class="location ">') . $t1 . (	'</span>' .
	(($t2 = strval(interdire_scripts(PtoBR($Pile[$SP]['adresse']))))!=='' ?
			((	'<span class="adresse ">') . $t2 . '</span>') :
			'') .
	'</p>')) :
		'') .
'
' .
(($t1 = BOUCLE_motshtml_8dca4133dd2c4232e3b08e2f715645aa($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
		('<p class=\'category\'>' . $t1 . '</p>') :
		'') .
'
</div>
');
	}
	@sql_free($result);
	}
	return $t0;
}


//
// Fonction principale du squelette ../plugins/auto/agenda_2_0/modeles/evenement_vevent.html
// Temps de compilation total: 22.020 ms
//

function html_8dca4133dd2c4232e3b08e2f715645aa($Cache, $Pile, $doublons=array(), $Numrows=array(), $SP=0) {


	if (isset($Pile[0]["doublons"]) AND is_array($Pile[0]["doublons"]))
		$doublons = nettoyer_env_doublons($Pile[0]["doublons"]);

	$connect = '';
	$page = (
BOUCLE_veventhtml_8dca4133dd2c4232e3b08e2f715645aa($Cache, $Pile, $doublons, $Numrows, $SP) .
'
');

	return analyse_resultat_skel('html_8dca4133dd2c4232e3b08e2f715645aa', $Cache, $page, '../plugins/auto/agenda_2_0/modeles/evenement_vevent.html');
}
?>