Your IP : 216.73.216.20


Current Path : /home/e/t/i/etiennec/www/oldsite/tmp/cache/skel/
Upload File :
Current File : /home/e/t/i/etiennec/www/oldsite/tmp/cache/skel/html_e2df9062b32a5275beed6a970fb46d12.php

<?php

/*
 * Squelette : ../plugins/auto/agenda_2_0/formulaires/inc-navigateur-mots_evenements.html
 * Date :      Tue, 27 Jul 2010 09:37:20 GMT
 * Compile :   Sat, 20 Dec 2014 21:11:21 GMT
 * Boucles :   _groupes, _mots, _ungroupe
 */ 

/* BOUCLE groupes_mots  */

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

	static $connect = '';
	static $table = 'groupes_mots';
	static $id = '_groupes';
	static $from = array('groupes_mots' => 'spip_groupes_mots');
	static $type = array();
	static $groupby = array();
	static $select = array("groupes_mots.id_groupe",
		"groupes_mots.titre");
	static $orderby = array();
	static $where = 
			array(
			array('REGEXP', 'groupes_mots.tables_liees', "'evenements'"));
	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/formulaires/inc-navigateur-mots_evenements.html','html_e2df9062b32a5275beed6a970fb46d12','_groupes',13,$GLOBALS['spip_lang']));
	if ($result) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP] = @sql_fetch($result)) {

		$t0 .= (
'
	<li class=\'groupe\'><a href=\'' .
parametre_url(self(),'id_groupe',$Pile[$SP]['id_groupe']) .
'\' class=\'ajax\'>' .
interdire_scripts(supprimer_tags(typo(supprimer_numero($Pile[$SP]['titre']),"TYPO",$connect))) .
'</a></li>
	');
	}
	@sql_free($result);
	}
	return $t0;
}



/* BOUCLE mots  */

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

	static $connect = '';
	static $table = 'mots';
	static $id = '_mots';
	static $from = array('mots' => 'spip_mots');
	static $type = array();
	static $groupby = array();
	static $select = array("0+mots.titre AS num",
		"mots.titre",
		"mots.id_mot");
	static $orderby = array('num', 'mots.titre');
	$where = 
			array(
			array('=', 'mots.id_groupe', sql_quote($Pile[$SP]['id_groupe'],'','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/formulaires/inc-navigateur-mots_evenements.html','html_e2df9062b32a5275beed6a970fb46d12','_mots',7,$GLOBALS['spip_lang']));
	if ($result) {
	
	// COMPTEUR
	$Numrows['_mots']['compteur_boucle'] = 0;
	$Numrows['_mots']['total'] = @intval(sql_count($result));
	$debut_boucle = isset($Pile[0]['debut_mots']) ? $Pile[0]['debut_mots'] : _request('debut_mots');
	if(substr($debut_boucle,0,1)=='@'){
		$debut_boucle = $Pile[0]['debut_mots'] = quete_debut_pagination('id_mot',$Pile[0]['@id_mot'] = substr($debut_boucle,1),20,$result,'');
		if (!sql_seek($result,0,'')){
			@sql_free($result,'');
			$result = calculer_select($select, $from, $type, $where, $join, $groupby, $orderby, $limit, $having, $table, $id, $connect);
		}
	}
	$debut_boucle = intval($debut_boucle);
	$debut_boucle = (($tout=($debut_boucle == -1))?0:($debut_boucle));
	$debut_boucle = max(0,min($debut_boucle,floor(($Numrows['_mots']['total']-1)/(20))*(20)));
	$fin_boucle = min(($tout ? $Numrows['_mots']['total'] : $debut_boucle + 19), $Numrows['_mots']['total'] - 1);
	$Numrows['_mots']['grand_total'] = $Numrows['_mots']['total'];
	$Numrows['_mots']["total"] = max(0,$fin_boucle - $debut_boucle + 1);
	if ($debut_boucle>0 AND $debut_boucle < $Numrows['_mots']['grand_total'] AND sql_seek($result,$debut_boucle,'','continue'))
		$Numrows['_mots']['compteur_boucle'] = $debut_boucle;
	
	$SP++;
	// RESULTATS
	while ($Pile[$SP] = @sql_fetch($result)) {

		$Numrows['_mots']['compteur_boucle']++;
		if ($Numrows['_mots']['compteur_boucle'] <= $debut_boucle) continue;
		if ($Numrows['_mots']['compteur_boucle']-1 > $fin_boucle) break;
		$t0 .= (
'<li 
class=\'mot\'><a href=\'#\' onclick="mot_sel_add(' .
$Pile[$SP]['id_mot'] .
',\'' .
interdire_scripts(texte_script(supprimer_tags(typo(supprimer_numero($Pile[$SP]['titre']),"TYPO",$connect)))) .
'\',\'' .
interdire_scripts(entites_html((@$Pile[0]['name']),true)) .
'\');return false;"
>' .
interdire_scripts(supprimer_tags(typo(supprimer_numero($Pile[$SP]['titre']),"TYPO",$connect))) .
'</a></li>');
	}
	@sql_free($result);
	}
	return $t0;
}



/* BOUCLE groupes_mots  */

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

	static $connect = '';
	static $table = 'groupes_mots';
	static $id = '_ungroupe';
	static $from = array('groupes_mots' => 'spip_groupes_mots');
	static $type = array();
	static $groupby = array();
	static $select = array("groupes_mots.id_groupe",
		"groupes_mots.titre");
	static $orderby = array();
	$where = 
			array(
			array('=', 'groupes_mots.id_groupe', sql_quote($Pile[0]['id_groupe'],'','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/formulaires/inc-navigateur-mots_evenements.html','html_e2df9062b32a5275beed6a970fb46d12','_ungroupe',3,$GLOBALS['spip_lang']));
	if ($result) {
	
	$l1 = _T('agenda:groupes_mots');$SP++;
	// RESULTATS
	while ($Pile[$SP] = @sql_fetch($result)) {

		$t0 .= (
'
	<div class=\'mots_chemin\'>
	<a href=\'' .
parametre_url(self(),'id_groupe|debut_mots','') .
'\' class=\'ajax\'>' .
$l1 .
'</a> &gt; ' .
interdire_scripts(supprimer_tags(typo(supprimer_numero($Pile[$SP]['titre']),"TYPO",$connect))) .
'
	</div>
	' .
(($t1 = BOUCLE_motshtml_e2df9062b32a5275beed6a970fb46d12($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
		((	'
	' .
		(($t3 = strval(filtre_pagination_dist($Numrows["_mots"]["grand_total"],
 		'_mots',
		isset($Pile[0]['debut_mots'])?$Pile[0]['debut_mots']:intval(_request('debut_mots')),
		20, true, '', '', array())))!=='' ?
				('<p class=\'pagination\'>' . $t3 . '</p>') :
				'') .
		'
	<ul class=\'groupes_contenus\'>') . $t1 . '</ul>
	') :
		'') .
'	
');
	}
	@sql_free($result);
	}
	return $t0;
}


//
// Fonction principale du squelette ../plugins/auto/agenda_2_0/formulaires/inc-navigateur-mots_evenements.html
// Temps de compilation total: 7.105 ms
//

function html_e2df9062b32a5275beed6a970fb46d12($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 = (($t1 = BOUCLE_ungroupehtml_e2df9062b32a5275beed6a970fb46d12($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
		$t1 :
		((($t2 = BOUCLE_groupeshtml_e2df9062b32a5275beed6a970fb46d12($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
			((	'<div class=\'mots_chemin\'>
	' .
			_T('agenda:groupes_mots') .
			'
	</div>
	<ul class=\'groupes_contenus\'>
	') . $t2 . '
	</ul>
	') :
			'')));

	return analyse_resultat_skel('html_e2df9062b32a5275beed6a970fb46d12', $Cache, $page, '../plugins/auto/agenda_2_0/formulaires/inc-navigateur-mots_evenements.html');
}
?>