File "html_22956e86f83acc0891337a4f8cb38999.php"
Full path: /home/argothem/www/cache/skel/html_22956e86f83acc0891337a4f8cb38999.php
File size: 2.76 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Squelette : squelettes/modeles/lesauteurs.html
* Date : Tue, 28 Jun 2022 09:29:44 GMT
* Compile : Mon, 26 Feb 2024 11:27:43 GMT
* Boucles : _auteurs
*/
function BOUCLE_auteurshtml_22956e86f83acc0891337a4f8cb38999(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'auteurs';
$command['id'] = '_auteurs';
$command['from'] = array('auteurs' => 'spip_auteurs','L1' => 'spip_auteurs_liens');
$command['type'] = array();
$command['groupby'] = array("auteurs.id_auteur");
$command['select'] = array("auteurs.nom",
"auteurs.id_auteur");
$command['orderby'] = array('auteurs.nom');
$command['join'] = array('L1' => array('auteurs','id_auteur'));
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
quete_condition_statut('auteurs.statut','!5poubelle','!5poubelle',''),
array('=', 'L1.id_objet', sql_quote(($Pile[0]['id_objet'] ?? null), '','bigint(21) NOT NULL DEFAULT \'0\'')),
array('=', 'L1.objet', sql_quote(($Pile[0]['objet'] ?? null), '','varchar(25) NOT NULL DEFAULT \'\'')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = Spip\Compilateur\Iterateur\Factory::create(
"SQL",
$command,
array('squelettes/modeles/lesauteurs.html','html_22956e86f83acc0891337a4f8cb38999','_auteurs',9,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t1 = (
'
<span class="vcard author"><a class="url fn spip_in" href="' .
vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_auteur'], 'auteur', '', '', true))) .
'">' .
interdire_scripts(safehtml(supprimer_numero(typo($Pile[$SP]['nom'], "TYPO", $connect, $Pile[0])))) .
'</a></span>');
$t0 .= ((strlen($t1) && strlen($t0)) ? ', ' : '') . $t1;
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_auteurs @ squelettes/modeles/lesauteurs.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
//
// Fonction principale du squelette squelettes/modeles/lesauteurs.html
// Temps de compilation total: 12.187 ms
//
function html_22956e86f83acc0891337a4f8cb38999($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_auteurshtml_22956e86f83acc0891337a4f8cb38999($Cache, $Pile, $doublons, $Numrows, $SP));
return analyse_resultat_skel('html_22956e86f83acc0891337a4f8cb38999', $Cache, $page, 'squelettes/modeles/lesauteurs.html');
}