File "html_032d6529af4d0293e3d5db2e07827938.php"

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

<?php

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

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

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	$in = array();
	if (!(is_array($a = (($Pile[0]['statut'] ?? null)))))
		$in[]= $a;
	else $in = array_merge($in, $a);
	if (!isset($command['table'])) {
		$command['table'] = 'articles';
		$command['id'] = '_art';
		$command['from'] = array('articles' => 'spip_articles');
		$command['type'] = array();
		$command['groupby'] = array();
		$command['select'] = array("articles.id_rubrique",
		"articles.lang",
		"articles.titre");
		$command['orderby'] = array();
		$command['join'] = array();
		$command['limit'] = '';
		$command['having'] = 
			array();
	}
	$command['where'] = 
			array((!is_whereable(($Pile[0]['statut'] ?? null)) ? '' : ((is_array(($Pile[0]['statut'] ?? null))) ? sql_in('articles.statut', $in) : 
			array('=', 'articles.statut', sql_quote(($Pile[0]['statut'] ?? null), '','varchar(10) NOT NULL')))), 
			array('=', 'articles.id_article', sql_quote(($Pile[0]['id_article'] ?? null), '','bigint NOT NULL AUTO_INCREMENT')));
	if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
	$t0 = "";
	// REQUETE
	$iter = Spip\Compilateur\Iterateur\Factory::create(
		"SQL",
		$command,
		array('../prive/formulaires/selecteur/articles.html','html_032d6529af4d0293e3d5db2e07827938','_art',29,$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 .= retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'id_rubrique'] = ($Pile[$SP]['id_rubrique'])));
		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_art @ ../prive/formulaires/selecteur/articles.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}

//
// Fonction principale du squelette ../prive/formulaires/selecteur/articles.html
// Temps de compilation total: 0.522 ms
//

function html_032d6529af4d0293e3d5db2e07827938($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 = (
'<script>var img_unpick=\'' .
retablir_echappements_modeles(chemin_image((string)'supprimer-12.png')) .
'\';
jQuery.getScript(\'' .
retablir_echappements_modeles(timestamp(find_in_path((string)'formulaires/selecteur/jquery.picker.js'))) .
'\');
</script>
' .
(($t1 = strval(retablir_echappements_modeles('')))!=='' ?
		($t1 . '

afficher la selection dans un ul class item_picked

@param int select
	1 => le selecteur se comporte comme un select, avec un seul choix possible
@param int rubriques
	1 = permettre aussi la selection des rubriques
@param string name
	nom de l\'input envoye
@param string|array selected
	liste de valeurs sour la forme array("rubrique|9","article|8",...) ou "rubrique|9,article|8,..."
@param int id_rubrique
@param int id_article
@param int afficher_langue

') :
		'') .
'<ul
	class=\'item_picked' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts((entites_html(sinon(table_valeur($Pile[0]??[], (string)'select', null), ''),true) ? 'select':'')))))!=='' ?
		(' ' . $t1) :
		'') .
'\'>
' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(((entites_html(sinon(table_valeur($Pile[0]??[], (string)'rubriques', null), '0'),true)) ?' ' :'')))))!=='' ?
		($t1 . (	'
' .
	
'<'.'?php echo recuperer_fond( ' . argumenter_squelette('formulaires/selecteur/inc-sel-rubriques') . ', array(\'name\' => ' . argumenter_squelette(($Pile[0]['name'] ?? null)) . ',
	\'selected\' => ' . argumenter_squelette(($Pile[0]['selected'] ?? null)) . ',
	\'select\' => ' . argumenter_squelette(($Pile[0]['select'] ?? null)) . ',
	\'img_unpick\' => ' . argumenter_squelette(retablir_echappements_modeles(chemin_image((string)'supprimer-12.png'))) . ',
	\'afficher_langue\' => ' . argumenter_squelette(($Pile[0]['afficher_langue'] ?? null)) . ',
	\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . '), array("compil"=>array(\'../prive/formulaires/selecteur/articles.html\',\'html_032d6529af4d0293e3d5db2e07827938\',\'\',5,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\');
?'.'>
')) :
		'') .
'
' .

'<'.'?php echo recuperer_fond( ' . argumenter_squelette('formulaires/selecteur/inc-sel-articles') . ', array(\'name\' => ' . argumenter_squelette(($Pile[0]['name'] ?? null)) . ',
	\'selected\' => ' . argumenter_squelette(($Pile[0]['selected'] ?? null)) . ',
	\'select\' => ' . argumenter_squelette(($Pile[0]['select'] ?? null)) . ',
	\'img_unpick\' => ' . argumenter_squelette(retablir_echappements_modeles(chemin_image((string)'supprimer-12.png'))) . ',
	\'afficher_langue\' => ' . argumenter_squelette(($Pile[0]['afficher_langue'] ?? null)) . ',
	\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . '), array("compil"=>array(\'../prive/formulaires/selecteur/articles.html\',\'html_032d6529af4d0293e3d5db2e07827938\',\'\',7,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\');
?'.'>
</ul>

' .
retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'id_rubrique'] = (interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'id_rubrique', null),true))))) .
BOUCLE_arthtml_032d6529af4d0293e3d5db2e07827938($Cache, $Pile, $doublons, $Numrows, $SP) .
'
' .
(($t1 = strval(retablir_echappements_modeles('')))!=='' ?
		($t1 . '

	le container item_picker est ici pour etre voisin de item_picked
	appel du selecteur en ajax
') :
		'') .
'
<div class=\'item_picker\'>
' .

'<'.'?php echo recuperer_fond( ' . argumenter_squelette('formulaires/selecteur/picker-ajax') . ', array_merge('.var_export($Pile[0],1).',array(\'id_rubrique\' => ' . argumenter_squelette(retablir_echappements_modeles(table_valeur($Pile["vars"]??[], (string)'id_rubrique', null))) . ',
	\'id_article\' => ' . argumenter_squelette(($Pile[0]['id_article'] ?? null)) . ',
	\'articles\' => ' . argumenter_squelette('1') . ',
	\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ')), array("compil"=>array(\'../prive/formulaires/selecteur/articles.html\',\'html_032d6529af4d0293e3d5db2e07827938\',\'\',14,$GLOBALS[\'spip_lang\']),\'ajax\' => ($v=( ' . argumenter_squelette(($Pile[0]['ajax'] ?? null)) . '))?$v:true), _request(\'connect\') ?? \'\');
?'.'>
</div>
');

	return analyse_resultat_skel('html_032d6529af4d0293e3d5db2e07827938', $Cache, $page, '../prive/formulaires/selecteur/articles.html');
}