File "html_db30c57c0fedc29b0be46a28a9137c88.php"

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

<?php

/*
 * Squelette : ../plugins-dist/mots/formulaires/selecteur_groupe_mot.html
 * Date :      Tue, 10 Jun 2025 11:31:50 GMT
 * Compile :   Sun, 24 Aug 2025 22:25:20 GMT
 * Boucles :   _groupes
 */ 

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

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	if (!isset($command['table'])) {
		$command['table'] = 'groupes_mots';
		$command['id'] = '_groupes';
		$command['from'] = array('groupes_mots' => 'spip_groupes_mots');
		$command['type'] = array();
		$command['groupby'] = array();
		$command['select'] = array("groupes_mots.titre",
		"groupes_mots.id_groupe");
		$command['orderby'] = array('groupes_mots.titre');
		$command['join'] = array();
		$command['limit'] = '';
		$command['having'] = 
			array();
	}
	$command['where'] = 
			array(
			array('REGEXP', 'groupes_mots.tables_liees', sql_quote(retablir_echappements_modeles(concat('(^|,)',(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'table', null), '.*'),true))),'($|,)')), '', 'char')));
	if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
	$t0 = "";
	// REQUETE
	$iter = Spip\Compilateur\Iterateur\Factory::create(
		"SQL",
		$command,
		array('../plugins-dist/mots/formulaires/selecteur_groupe_mot.html','html_db30c57c0fedc29b0be46a28a9137c88','_groupes',3,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP]=$iter->fetch()) {

		$t0 .= (
'
<option value=\'' .
retablir_echappements_modeles($Pile[$SP]['id_groupe']) .
'\'' .
(($t1 = strval(retablir_echappements_modeles((calcul_exposer($Pile[$SP]['id_groupe'], 'id_groupe', $Pile[0], $Pile[$SP]['id_groupe'], 'id_groupe', '') ? ' ' : ''))))!=='' ?
		($t1 . 'selected=\'selected\'') :
		'') .
'>' .
retablir_echappements_modeles(interdire_scripts(texte_backend(supprimer_tags(supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0])))))) .
'</option>
');
	}
	$iter->free();
	}
	if (defined("_BOUCLE_PROFILER")
	AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
		spip_log(intval(1000*$timer)."ms BOUCLE_groupes @ ../plugins-dist/mots/formulaires/selecteur_groupe_mot.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}

//
// Fonction principale du squelette ../plugins-dist/mots/formulaires/selecteur_groupe_mot.html
// Temps de compilation total: 0.491 ms
//

function html_db30c57c0fedc29b0be46a28a9137c88($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 = (($t1 = BOUCLE_groupeshtml_db30c57c0fedc29b0be46a28a9137c88($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
		((	'
<select' .
		(($t3 = strval(retablir_echappements_modeles(interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'name', null),true)))))!=='' ?
				(' name=\'' . $t3 . '\'') :
				'') .
		(($t3 = strval(retablir_echappements_modeles(interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'id', null),true)))))!=='' ?
				(' id=\'' . $t3 . '\'') :
				'') .
		'>
') . $t1 . '
</select>
') :
		'');

	return analyse_resultat_skel('html_db30c57c0fedc29b0be46a28a9137c88', $Cache, $page, '../plugins-dist/mots/formulaires/selecteur_groupe_mot.html');
}