File "html_8d9e7e6671b5a1de801a4ac4a23998cf.php"

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

<?php

/*
 * Squelette : ../plugins-dist/mots/prive/objets/liste/mots_associer.html
 * Date :      Tue, 10 Jun 2025 11:31:50 GMT
 * Compile :   Sun, 24 Aug 2025 22:23:59 GMT
 * Boucles :   _exclus, _compte, _groupes
 */ 

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

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	$in = array();
	if (!(is_array($a = (retablir_echappements_modeles(table_valeur($Pile["vars"]??[], (string)'exclus', null))))))
		$in[]= $a;
	else $in = array_merge($in, $a);
	if (!isset($command['table'])) {
		$command['table'] = 'mots';
		$command['id'] = '_exclus';
		$command['from'] = array('mots' => 'spip_mots');
		$command['type'] = array();
		$command['groupby'] = array();
		$command['select'] = array("mots.id_groupe");
		$command['join'] = array();
		$command['limit'] = '';
		$command['having'] = 
			array();
	}
	$command['orderby'] = array(((!$zqv=sql_quote($in) OR $zqv==="''") ? 0 : ('FIELD(mots.id_mot,' . $zqv . ')')));
	$command['where'] = 
			array(sql_in('mots.id_mot', $in));
	if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
	$t0 = "";
	// REQUETE
	$iter = Spip\Compilateur\Iterateur\Factory::create(
		"SQL",
		$command,
		array('../plugins-dist/mots/prive/objets/liste/mots_associer.html','html_8d9e7e6671b5a1de801a4ac4a23998cf','_exclus',4,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP]=$iter->fetch()) {

		$t0 .= (($t1 = strval(retablir_echappements_modeles(((unique($Pile[$SP]['id_groupe'])) ?' ' :''))))!=='' ?
		($t1 . retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'groupes_vus'] = (concat(table_valeur($Pile["vars"]??[], (string)'groupes_vus', null),',',($Pile[$SP]['id_groupe'])))))) :
		'');
	}
	$iter->free();
	}
	if (defined("_BOUCLE_PROFILER")
	AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
		spip_log(intval(1000*$timer)."ms BOUCLE_exclus @ ../plugins-dist/mots/prive/objets/liste/mots_associer.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}


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

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	$in = array();
	if (!(is_array($a = (retablir_echappements_modeles(table_valeur($Pile["vars"]??[], (string)'exclus', null))))))
		$in[]= $a;
	else $in = array_merge($in, $a);
	if (!isset($command['table'])) {
		$command['table'] = 'mots';
		$command['id'] = '_compte';
		$command['from'] = array('mots' => 'spip_mots');
		$command['type'] = array();
		$command['groupby'] = array();
		$command['select'] = array("count(*)");
		$command['orderby'] = array();
		$command['join'] = array();
		$command['limit'] = '';
		$command['having'] = 
			array();
	}
	$command['where'] = 
			array(
			array('=', 'mots.id_groupe', sql_quote($Pile[$SP]['id_groupe'], '','bigint NOT NULL DEFAULT \'0\'')), sql_in('mots.id_mot', $in,'NOT'));
	if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
	$t0 = "";
	// REQUETE
	$iter = Spip\Compilateur\Iterateur\Factory::create(
		"SQL",
		$command,
		array('../plugins-dist/mots/prive/objets/liste/mots_associer.html','html_8d9e7e6671b5a1de801a4ac4a23998cf','_compte',8,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	$Numrows['_compte']['command'] = $command;
	$Numrows['_compte']['total'] = @intval($iter->count());
	$SP++;
	// RESULTATS
	
	$iter->free();
	}
	if (defined("_BOUCLE_PROFILER")
	AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
		spip_log(intval(1000*$timer)."ms BOUCLE_compte @ ../plugins-dist/mots/prive/objets/liste/mots_associer.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}


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

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	$in = array();
	if (!(is_array($a = (($Pile[0]['id_groupe'] ?? null)))))
		$in[]= $a;
	else $in = array_merge($in, $a);
	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.id_groupe",
		"groupes_mots.titre",
		"groupes_mots.comite",
		"groupes_mots.minirezo",
		"groupes_mots.unseul",
		"groupes_mots.obligatoire");
		$command['orderby'] = array('groupes_mots.titre');
		$command['join'] = array();
		$command['limit'] = '';
		$command['having'] = 
			array();
	}
	$command['where'] = 
			array((!is_whereable(($Pile[0]['id_groupe'] ?? null)) ? '' : ((is_array(($Pile[0]['id_groupe'] ?? null))) ? sql_in('groupes_mots.id_groupe', $in) : 
			array('=', 'groupes_mots.id_groupe', sql_quote(($Pile[0]['id_groupe'] ?? null), '','bigint NOT NULL AUTO_INCREMENT')))), 
			array('REGEXP', 'groupes_mots.tables_liees', sql_quote(retablir_echappements_modeles(interdire_scripts(table_objet(entites_html(table_valeur($Pile[0]??[], (string)'objet', 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/prive/objets/liste/mots_associer.html','html_8d9e7e6671b5a1de801a4ac4a23998cf','_groupes',8,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP]=$iter->fetch()) {

		$t0 .= (
BOUCLE_comptehtml_8d9e7e6671b5a1de801a4ac4a23998cf($Cache, $Pile, $doublons, $Numrows, $SP)
. retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'total'] = (($Numrows['_compte']['total'] ?? 0)))) .
(($t1 = strval(retablir_echappements_modeles(((((table_valeur($Pile["vars"]??[], (string)'total', null) != '0')) AND ((invalideur_session($Cache, ((function_exists("autoriser")||include_spip("inc/autoriser"))&&autoriser('afficherselecteurmots', 'groupemots', (invalideur_session($Cache, $Pile[$SP]['id_groupe'])), '', (invalideur_session($Cache, array('objet' => (interdire_scripts(invalideur_session($Cache, entites_html(table_valeur($Pile[0]??[], (string)'objet', null),true)))), 'id_objet' => (interdire_scripts(invalideur_session($Cache, entites_html(table_valeur($Pile[0]??[], (string)'id_objet', null),true)))), 'comite' => (interdire_scripts(invalideur_session($Cache, $Pile[$SP]['comite']))), 'minirezo' => (interdire_scripts(invalideur_session($Cache, $Pile[$SP]['minirezo'])))))))?" ":""))))) ?' ' :''))))!=='' ?
		('
	' . $t1 . (	'
	<div class="editer associer_mot groupe_mots' .
	(($t2 = strval(retablir_echappements_modeles(interdire_scripts(((($Pile[$SP]['unseul'] == 'oui')) ?' ' :'')))))!=='' ?
			($t2 . 'unseul') :
			'') .
	(($t2 = strval(retablir_echappements_modeles(interdire_scripts(((($Pile[$SP]['obligatoire'] == 'oui')) ?' ' :'')))))!=='' ?
			($t2 . 'obligatoire') :
			'') .
	(($t2 = strval(retablir_echappements_modeles((in_any($Pile[$SP]['id_groupe'],(filtre_explode_dist(table_valeur($Pile["vars"]??[], (string)'groupes_vus', null),','))) ? 'vu':'nonvu'))))!=='' ?
			(' ' . $t2) :
			'') .
	'">
		<label for="ajouter_lien-groupe' .
	retablir_echappements_modeles($Pile[$SP]['id_groupe']) .
	'"' .
	(($t2 = strval(retablir_echappements_modeles(interdire_scripts(attribut_html(supprimer_tags(supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0]))))))))!=='' ?
			(' title="' . $t2 . '"') :
			'') .
	'>' .
	retablir_echappements_modeles(interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0])))) .
	'</label>

		' .
	(($t2 = strval(retablir_echappements_modeles((((table_valeur($Pile["vars"]??[], (string)'total', null) < (table_valeur($Pile["vars"]??[], (string)'_MAX_MOTS_LISTE', null)))) ?' ' :''))))!=='' ?
			($t2 . (	'
			' .
		(($t3 = strval(retablir_echappements_modeles(interdire_scripts(((($Pile[$SP]['unseul'] == 'oui')) ?' ' :'')))))!=='' ?
				($t3 . (	'
				' .
			retablir_echappements_modeles(recuperer_fond( 'prive/objets/liste/mots_associer-select-unseul' , array_merge($Pile[0],array('exclus' => (table_valeur($Pile["vars"]??[], (string)'exclus', null)) ,
	'id_groupe' => ($Pile[$SP]['id_groupe']) )), array('compil'=>array('../plugins-dist/mots/prive/objets/liste/mots_associer.html','html_8d9e7e6671b5a1de801a4ac4a23998cf','_groupes',14,$GLOBALS['spip_lang'])), _request('connect') ?? '')) .
			'
			')) :
				'') .
		'
			' .
		(($t3 = strval(retablir_echappements_modeles(interdire_scripts(((($Pile[$SP]['unseul'] == 'oui')) ?'' :' ')))))!=='' ?
				($t3 . (	'
				' .
			retablir_echappements_modeles(recuperer_fond( 'prive/objets/liste/mots_associer-select' , array_merge($Pile[0],array('exclus' => (table_valeur($Pile["vars"]??[], (string)'exclus', null)) ,
	'id_groupe' => ($Pile[$SP]['id_groupe']) )), array('compil'=>array('../plugins-dist/mots/prive/objets/liste/mots_associer.html','html_8d9e7e6671b5a1de801a4ac4a23998cf','_groupes',13,$GLOBALS['spip_lang'])), _request('connect') ?? '')) .
			'
			')) :
				'') .
		'
		')) :
			'') .
	'
		' .
	(($t2 = strval(retablir_echappements_modeles((((table_valeur($Pile["vars"]??[], (string)'total', null) < (table_valeur($Pile["vars"]??[], (string)'_MAX_MOTS_LISTE', null)))) ?'' :' '))))!=='' ?
			($t2 . (	'
			' .
		retablir_echappements_modeles(recuperer_fond( 'prive/objets/liste/mots_associer-recherche' , array_merge($Pile[0],array('exclus' => (table_valeur($Pile["vars"]??[], (string)'exclus', null)) ,
	'id_groupe' => ($Pile[$SP]['id_groupe']) ,
	'unseul' => (interdire_scripts($Pile[$SP]['unseul'])) ,
	'par' => 'points' )), array('compil'=>array('../plugins-dist/mots/prive/objets/liste/mots_associer.html','html_8d9e7e6671b5a1de801a4ac4a23998cf','_groupes',14,$GLOBALS['spip_lang'])), _request('connect') ?? '')) .
		'
		')) :
			'') .
	'
	</div>
	')) :
		''));
	}
	$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/prive/objets/liste/mots_associer.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}

//
// Fonction principale du squelette ../plugins-dist/mots/prive/objets/liste/mots_associer.html
// Temps de compilation total: 14.230 ms
//

function html_8d9e7e6671b5a1de801a4ac4a23998cf($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 = (
retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'groupes_vus'] = '0')) .
retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'_MAX_MOTS_LISTE'] = ((defined('_MAX_MOTS_LISTE') ? ((defined('_MAX_MOTS_LISTE')?constant('_MAX_MOTS_LISTE'):'')):'50')))) .
'
' .
retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'exclus'] = (interdire_scripts(lister_objets_lies(entites_html(table_valeur($Pile[0]??[], (string)'objet_source', null),true),(interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'objet', null),true))),(interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'id_objet', null),true))),(interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'_objet_lien', null),true)))))))) .
BOUCLE_exclushtml_8d9e7e6671b5a1de801a4ac4a23998cf($Cache, $Pile, $doublons, $Numrows, $SP) .
'

' .
(($t1 = BOUCLE_groupeshtml_8d9e7e6671b5a1de801a4ac4a23998cf($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
		('
	<div class="editer-groupe">
	' . $t1 . '
	</div>
') :
		'') .
'
');

	return analyse_resultat_skel('html_8d9e7e6671b5a1de801a4ac4a23998cf', $Cache, $page, '../plugins-dist/mots/prive/objets/liste/mots_associer.html');
}