Your IP : 216.73.216.20


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

<?php

/*
 * Squelette : plugins/auto/zpip/extra/breve.html
 * Date :      Tue, 29 Mar 2011 12:00:04 GMT
 * Compile :   Sun, 22 Feb 2015 14:59:47 GMT
 * Boucles :   _breves, _mots, _breve_principal
 */ 

/* BOUCLE breves  */

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

	static $connect = '';
	static $table = 'breves';
	static $id = '_breves';
	static $from = array('breves' => 'spip_breves');
	static $type = array();
	static $groupby = array();
	static $select = array("breves.date_heure",
		"breves.date_heure AS date",
		"breves.id_breve",
		"breves.id_rubrique",
		"breves.titre",
		"breves.lang");
	static $orderby = array('breves.date_heure DESC');
	$where = 
			array(
			array('=', 'breves.statut', '\'publie\''), 
			array('=', 'breves.id_rubrique', sql_quote($Pile[$SP]['id_rubrique'],'','int')));
	static $join = array();
	static $limit = '0,10';
	static $having = 
			array();
	$t0 = "";
	// REQUETE
	$result = calculer_select($select, $from, $type, $where, $join, $groupby, $orderby, $limit, $having, $table, $id, $connect,
		 array('plugins/auto/zpip/extra/breve.html','html_35e15946252fbc670af59ad0dc7db1a7','_breves',3,$GLOBALS['spip_lang']));
	if ($result) {
	lang_select($GLOBALS['spip_lang']);
	$SP++;
	// RESULTATS
	while ($Pile[$SP] = @sql_fetch($result)) {

		lang_select_public($Pile[$SP]['lang'], '', $Pile[$SP]['titre']);
		$t0 .= (
'
          <li class="item">' .
(($t1 = strval(interdire_scripts(affdate_jourcourt(normaliser_date($Pile[$SP]['date'])))))!=='' ?
		($t1 . ' &ndash; ') :
		'') .
'<a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_breve'], 'breve', '', '', true))) .
'"' .
(calcul_exposer($Pile[$SP]['id_breve'], 'id_breve', $Pile[0], $Pile[$SP]['id_rubrique'], 'id_breve', '')  ?
		(' class="' . 'on' . '"') :
		'') .
'>' .
interdire_scripts(typo(supprimer_numero($Pile[$SP]['titre']),"TYPO",$connect)) .
'</a></li>
          ');
	}
	lang_select();
	@sql_free($result);
	}
	return $t0;
}



/* BOUCLE mots  */

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

	static $connect = '';
	static $table = 'mots';
	static $id = '_mots';
	static $from = array('mots' => 'spip_mots','L1' => 'spip_mots_breves');
	static $type = array();
	static $groupby = array();
	static $select = array("mots.titre",
		"mots.id_mot");
	static $orderby = array('mots.titre');
	$where = 
			array(
			array('=', 'L1.id_breve', sql_quote($Pile[$SP]['id_breve'])));
	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/zpip/extra/breve.html','html_35e15946252fbc670af59ad0dc7db1a7','_mots',15,$GLOBALS['spip_lang']));
	if ($result) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP] = @sql_fetch($result)) {

		$t0 .= (
'
          <li class="item"><a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_mot'], 'mot', '', '', true))) .
'" rel="tag">' .
interdire_scripts(typo(supprimer_numero($Pile[$SP]['titre']),"TYPO",$connect)) .
'</a></li>
      ');
	}
	@sql_free($result);
	}
	return $t0;
}



/* BOUCLE breves  */

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

	static $connect = '';
	static $table = 'breves';
	static $id = '_breve_principal';
	static $from = array('breves' => 'spip_breves');
	static $type = array();
	static $groupby = array();
	static $select = array("breves.id_rubrique",
		"breves.id_breve",
		"breves.lang",
		"breves.titre");
	static $orderby = array();
	$where = 
			array(
			array('=', 'breves.statut', '\'publie\''), 
			array('=', 'breves.id_breve', sql_quote($Pile[0]['id_breve'],'','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/zpip/extra/breve.html','html_35e15946252fbc670af59ad0dc7db1a7','_breve_principal',1,$GLOBALS['spip_lang']));
	if ($result) {
	lang_select($GLOBALS['spip_lang']);
	$SP++;
	// RESULTATS
	while ($Pile[$SP] = @sql_fetch($result)) {

		lang_select_public($Pile[$SP]['lang'], '', $Pile[$SP]['titre']);
		$t0 .= (
'
  
  ' .
(($t1 = BOUCLE_breveshtml_35e15946252fbc670af59ad0dc7db1a7($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
		((	'
  <div class="liste breves">
      <h2 class="h2">' .
		_T('public/spip/ecrire:autres_breves') .
		'</h2>
      <ul class="liste-items">
          ') . $t1 . '
      </ul>
  </div>
  ') :
		'') .
'

  
  ' .
(($t1 = BOUCLE_motshtml_35e15946252fbc670af59ad0dc7db1a7($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
		((	'
  <div class="liste mots">
      <h2 class="h2">' .
		_T('public/spip/ecrire:mots_clefs') .
		'</h2>
      <ul class="liste-items">
      ') . $t1 . '
      </ul>
  </div>
  ') :
		'') .
'
');
	}
	lang_select();
	@sql_free($result);
	}
	return $t0;
}


//
// Fonction principale du squelette plugins/auto/zpip/extra/breve.html
// Temps de compilation total: 9.600 ms
//

function html_35e15946252fbc670af59ad0dc7db1a7($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_breve_principalhtml_35e15946252fbc670af59ad0dc7db1a7($Cache, $Pile, $doublons, $Numrows, $SP);

	return analyse_resultat_skel('html_35e15946252fbc670af59ad0dc7db1a7', $Cache, $page, 'plugins/auto/zpip/extra/breve.html');
}
?>