File "html_fe2e1eadc4c79c9666bb85231659ebc0.php"
Full path: /home/argothem/www/cache/skel/html_fe2e1eadc4c79c9666bb85231659ebc0.php
File size: 10.68 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Squelette : ../plugins-dist/mots/prive/objets/liste/mots_associer.html
* Date : Fri, 07 Jul 2023 11:03:28 GMT
* Compile : Sun, 25 Feb 2024 13:45:14 GMT
* Boucles : _exclus, _compte, _groupes
*/
function BOUCLE_exclushtml_fe2e1eadc4c79c9666bb85231659ebc0(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
$in = array();
if (!(is_array($a = (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_fe2e1eadc4c79c9666bb85231659ebc0','_exclus',4,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= ((unique($Pile[$SP]['id_groupe'])) ?
(' ' . 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_fe2e1eadc4c79c9666bb85231659ebc0(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
$in = array();
if (!(is_array($a = (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(21) 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_fe2e1eadc4c79c9666bb85231659ebc0','_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_fe2e1eadc4c79c9666bb85231659ebc0(&$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(21) NOT NULL AUTO_INCREMENT')))),
array('REGEXP', 'groupes_mots.tables_liees', sql_quote(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_fe2e1eadc4c79c9666bb85231659ebc0','_groupes',8,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= (
BOUCLE_comptehtml_fe2e1eadc4c79c9666bb85231659ebc0($Cache, $Pile, $doublons, $Numrows, $SP)
. vide($Pile['vars'][$_zzz=(string)'total'] = ($Numrows['_compte']['total'] ?? 0)) .
((((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'])))))?" ":"")))) ?
('
' . ' ' . ( '
<div class="editer associer_mot groupe_mots' .
(($t2 = strval(interdire_scripts(((($Pile[$SP]['unseul'] == 'oui')) ?' ' :''))))!=='' ?
($t2 . 'unseul') :
'') .
(($t2 = strval(interdire_scripts(((($Pile[$SP]['obligatoire'] == 'oui')) ?' ' :''))))!=='' ?
($t2 . 'obligatoire') :
'') .
(($t2 = strval((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' .
$Pile[$SP]['id_groupe'] .
'"' .
(($t2 = strval(interdire_scripts(attribut_html(supprimer_tags(supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0])))))))!=='' ?
(' title="' . $t2 . '"') :
'') .
'>' .
interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0]))) .
'</label>
' .
(((table_valeur($Pile["vars"]??[], (string)'total', null) < table_valeur($Pile["vars"]??[], (string)'_MAX_MOTS_LISTE', null))) ?
(' ' . ( '
' .
(($t3 = strval(interdire_scripts(((($Pile[$SP]['unseul'] == 'oui')) ?' ' :''))))!=='' ?
($t3 . ( '
' .
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_fe2e1eadc4c79c9666bb85231659ebc0','_groupes',14,$GLOBALS['spip_lang'])), _request('connect') ?? '') .
'
')) :
'') .
'
' .
(($t3 = strval(interdire_scripts(((($Pile[$SP]['unseul'] == 'oui')) ?'' :' '))))!=='' ?
($t3 . ( '
' .
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_fe2e1eadc4c79c9666bb85231659ebc0','_groupes',13,$GLOBALS['spip_lang'])), _request('connect') ?? '') .
'
')) :
'') .
'
')) :
'') .
'
' .
(!((table_valeur($Pile["vars"]??[], (string)'total', null) < table_valeur($Pile["vars"]??[], (string)'_MAX_MOTS_LISTE', null))) ?
(' ' . ( '
' .
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_fe2e1eadc4c79c9666bb85231659ebc0','_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.606 ms
//
function html_fe2e1eadc4c79c9666bb85231659ebc0($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 = (
vide($Pile['vars'][$_zzz=(string)'groupes_vus'] = '0') .
vide($Pile['vars'][$_zzz=(string)'_MAX_MOTS_LISTE'] = (defined('_MAX_MOTS_LISTE') ? (defined('_MAX_MOTS_LISTE')?constant('_MAX_MOTS_LISTE'):''):'50')) .
'
' .
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_fe2e1eadc4c79c9666bb85231659ebc0($Cache, $Pile, $doublons, $Numrows, $SP) .
'
' .
(($t1 = BOUCLE_groupeshtml_fe2e1eadc4c79c9666bb85231659ebc0($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
('
<div class="editer-groupe">
' . $t1 . '
</div>
') :
'') .
'
');
return analyse_resultat_skel('html_fe2e1eadc4c79c9666bb85231659ebc0', $Cache, $page, '../plugins-dist/mots/prive/objets/liste/mots_associer.html');
}