| Current Path : /home/etiennec/www/oldsite/tmp/cache/skel/ |
| Current File : /home/etiennec/www/oldsite/tmp/cache/skel/html_672c8b258f77fb7f9efbb08058e59f19.php |
<?php
/*
* Squelette : plugins/auto/zpip/extra/auteur.html
* Date : Tue, 29 Mar 2011 12:00:04 GMT
* Compile : Mon, 21 May 2012 01:03:07 GMT
* Boucles : _auteurs, _extra_auteur
*/
/* BOUCLE auteurs */
function BOUCLE_auteurshtml_672c8b258f77fb7f9efbb08058e59f19(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $connect = '';
static $table = 'auteurs';
static $id = '_auteurs';
static $from = array('auteurs' => 'spip_auteurs','L1' => 'spip_auteurs_articles','L2' => 'spip_articles');
static $type = array();
static $groupby = array("auteurs.id_auteur");
static $select = array("auteurs.nom",
"auteurs.id_auteur");
static $orderby = array('auteurs.nom');
$where =
array(
array('!=', 'auteurs.statut', '\'5poubelle\''),
array('<=', 'L2.date', sql_quote(quete_date_postdates())),
array('=', 'L2.statut', '\'publie\''));
static $join = array('L1' => array('auteurs','id_auteur'), 'L2' => array('L1','id_article'));
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/auteur.html','html_672c8b258f77fb7f9efbb08058e59f19','_auteurs',3,$GLOBALS['spip_lang']));
if ($result) {
// COMPTEUR
$Numrows['_auteurs']['compteur_boucle'] = 0;
$Numrows['_auteurs']['total'] = @intval(sql_count($result));
$debut_boucle = isset($Pile[0]['debut_auteurs']) ? $Pile[0]['debut_auteurs'] : _request('debut_auteurs');
if(substr($debut_boucle,0,1)=='@'){
$debut_boucle = $Pile[0]['debut_auteurs'] = quete_debut_pagination('id_auteur',$Pile[0]['@id_auteur'] = 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['_auteurs']['total']-1)/(20))*(20)));
$fin_boucle = min(($tout ? $Numrows['_auteurs']['total'] : $debut_boucle + 19), $Numrows['_auteurs']['total'] - 1);
$Numrows['_auteurs']['grand_total'] = $Numrows['_auteurs']['total'];
$Numrows['_auteurs']["total"] = max(0,$fin_boucle - $debut_boucle + 1);
if ($debut_boucle>0 AND $debut_boucle < $Numrows['_auteurs']['grand_total'] AND sql_seek($result,$debut_boucle,'','continue'))
$Numrows['_auteurs']['compteur_boucle'] = $debut_boucle;
$SP++;
// RESULTATS
while ($Pile[$SP] = @sql_fetch($result)) {
$Numrows['_auteurs']['compteur_boucle']++;
if ($Numrows['_auteurs']['compteur_boucle'] <= $debut_boucle) continue;
if ($Numrows['_auteurs']['compteur_boucle']-1 > $fin_boucle) break;
$t0 .= (
'
<li class="item"><a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_auteur'], 'auteur', '', '', true))) .
'"' .
(calcul_exposer($Pile[$SP]['id_auteur'], 'id_auteur', $Pile[0], '', 'id_auteur', '') ?
(' class="' . 'on' . '"') :
'') .
'>' .
interdire_scripts(couper(typo(supprimer_numero($Pile[$SP]['nom']),"TYPO",$connect),'80')) .
'</a></li>
');
}
@sql_free($result);
}
return $t0;
}
/* BOUCLE auteurs */
function BOUCLE_extra_auteurhtml_672c8b258f77fb7f9efbb08058e59f19(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $connect = '';
static $table = 'auteurs';
static $id = '_extra_auteur';
static $from = array('auteurs' => 'spip_auteurs','L1' => 'spip_auteurs_articles','L2' => 'spip_articles');
static $type = array();
static $groupby = array("auteurs.id_auteur");
static $select = array("1");
static $orderby = array();
$where =
array(
array('!=', 'auteurs.statut', '\'5poubelle\''),
array('<=', 'L2.date', sql_quote(quete_date_postdates())),
array('=', 'L2.statut', '\'publie\''),
array('=', 'auteurs.id_auteur', sql_quote($Pile[0]['id_auteur'],'','int')));
static $join = array('L1' => array('auteurs','id_auteur'), 'L2' => array('L1','id_article'));
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/auteur.html','html_672c8b258f77fb7f9efbb08058e59f19','_extra_auteur',1,$GLOBALS['spip_lang']));
if ($result) {
$l1 = _T('public/spip/ecrire:info_auteurs');$SP++;
// RESULTATS
while ($Pile[$SP] = @sql_fetch($result)) {
$t0 .= (
'
' .
(($t1 = BOUCLE_auteurshtml_672c8b258f77fb7f9efbb08058e59f19($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
(( '
<div class="liste auteurs">
' .
filtre_pagination_dist($Numrows["_auteurs"]["grand_total"],
'_auteurs',
isset($Pile[0]['debut_auteurs'])?$Pile[0]['debut_auteurs']:intval(_request('debut_auteurs')),
20, false, '', '', array()) .
'
<h2 class="h2">' .
$l1 .
'</h2>
<ul class="liste-items">
') . $t1 . ( '
</ul>
' .
(($t3 = strval(filtre_pagination_dist($Numrows["_auteurs"]["grand_total"],
'_auteurs',
isset($Pile[0]['debut_auteurs'])?$Pile[0]['debut_auteurs']:intval(_request('debut_auteurs')),
20, true, '', '', array())))!=='' ?
('<p class="pagination">' . $t3 . '</p>') :
'') .
'
</div>
')) :
'') .
'
');
}
@sql_free($result);
}
return $t0;
}
//
// Fonction principale du squelette plugins/auto/zpip/extra/auteur.html
// Temps de compilation total: 1.778 ms
//
function html_672c8b258f77fb7f9efbb08058e59f19($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_extra_auteurhtml_672c8b258f77fb7f9efbb08058e59f19($Cache, $Pile, $doublons, $Numrows, $SP) .
'
');
return analyse_resultat_skel('html_672c8b258f77fb7f9efbb08058e59f19', $Cache, $page, 'plugins/auto/zpip/extra/auteur.html');
}
?>