File "html_5aa02308ab703912db6f106f763a0f88.php"

Full path: /home/argothem/www/organecyberpresse/tmp/cache/skel/html_5aa02308ab703912db6f106f763a0f88.php
File size: 4 KB
MIME-type: text/x-php
Charset: utf-8

<?php

/*
 * Squelette : ../prive/formulaires/selecteur/inc-sel-articles.html
 * Date :      Tue, 10 Jun 2025 11:25:04 GMT
 * Compile :   Sun, 24 Aug 2025 16:04:40 GMT
 * Boucles :   _sel
 */ 

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

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	$in = array();
	if (!(is_array($a = (retablir_echappements_modeles(interdire_scripts(picker_selected(entites_html(table_valeur($Pile[0]??[], (string)'selected', null),true),'article')))))))
		$in[]= $a;
	else $in = array_merge($in, $a);
	$in1 = array();
	if (!(is_array($a = (($Pile[0]['statut'] ?? null)))))
		$in1[]= $a;
	else $in1 = array_merge($in1, $a);
	if (!isset($command['table'])) {
		$command['table'] = 'articles';
		$command['id'] = '_sel';
		$command['from'] = array('articles' => 'spip_articles');
		$command['type'] = array();
		$command['groupby'] = array();
		$command['select'] = array("articles.id_article",
		"articles.lang",
		"articles.titre");
		$command['join'] = array();
		$command['limit'] = '';
		$command['having'] = 
			array();
	}
	$command['orderby'] = array(((!$zqv=sql_quote($in) OR $zqv==="''") ? 0 : ('FIELD(articles.id_article,' . $zqv . ')')));
	$command['where'] = 
			array(sql_in('articles.id_article', $in), (!is_whereable(($Pile[0]['statut'] ?? null)) ? '' : ((is_array(($Pile[0]['statut'] ?? null))) ? sql_in('articles.statut', $in1) : 
			array('=', 'articles.statut', sql_quote(($Pile[0]['statut'] ?? null), '','varchar(10) NOT NULL')))));
	if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
	$t0 = "";
	// REQUETE
	$iter = Spip\Compilateur\Iterateur\Factory::create(
		"SQL",
		$command,
		array('../prive/formulaires/selecteur/inc-sel-articles.html','html_5aa02308ab703912db6f106f763a0f88','_sel',1,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	lang_select($GLOBALS['spip_lang']);
	$SP++;
	// RESULTATS
	while ($Pile[$SP]=$iter->fetch()) {

		lang_select_public($Pile[$SP]['lang'], '', $Pile[$SP]['titre']);
		$t0 .= (
'<li
	class=\'article\'><input
	type="hidden"
	name="' .
retablir_echappements_modeles(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'name', null), 'id_item'),true))) .
'[]"
	value="article|' .
retablir_echappements_modeles($Pile[$SP]['id_article']) .
'"
	/>' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(((entites_html(sinon(table_valeur($Pile[0]??[], (string)'afficher_langue', null), '0'),true)) ?' ' :'')))))!=='' ?
		($t1 . (	(($t2 = strval(retablir_echappements_modeles(spip_htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang']))))!=='' ?
			('&#91;' . $t2 . '&#93;') :
			'') .
	' ')) :
		'') .
retablir_echappements_modeles(interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0])))) .
'
<a
	href=\'#\'
	onclick=\'jQuery(this).item_unpick();return false;\'>' .
retablir_echappements_modeles(interdire_scripts(filtre_balise_img_dist(entites_html(table_valeur($Pile[0]??[], (string)'img_unpick', null),true)))) .
'</a><span
	class="sep">, </span></li>');
		lang_select();
	}
	lang_select();
	$iter->free();
	}
	if (defined("_BOUCLE_PROFILER")
	AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
		spip_log(intval(1000*$timer)."ms BOUCLE_sel @ ../prive/formulaires/selecteur/inc-sel-articles.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}

//
// Fonction principale du squelette ../prive/formulaires/selecteur/inc-sel-articles.html
// Temps de compilation total: 0.182 ms
//

function html_5aa02308ab703912db6f106f763a0f88($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_selhtml_5aa02308ab703912db6f106f763a0f88($Cache, $Pile, $doublons, $Numrows, $SP) .
'
');

	return analyse_resultat_skel('html_5aa02308ab703912db6f106f763a0f88', $Cache, $page, '../prive/formulaires/selecteur/inc-sel-articles.html');
}