| Current Path : /home/quelfutuu/www/lchg/tmp/cache/skel/ |
| Current File : /home/quelfutuu/www/lchg/tmp/cache/skel/html_ee4585c87d6292e89a9b52d74b7c8269.php |
<?php
/*
* Squelette : ../plugins/auto/accesrestreint/v6.1.0/prive/squelettes/inclure/acces_rubrique.html
* Date : Fri, 05 Jul 2024 16:57:50 GMT
* Compile : Sun, 30 Aug 2026 09:35:43 GMT
* Boucles : _restreint
*/
function BOUCLE_restreinthtml_ee4585c87d6292e89a9b52d74b7c8269(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
$in = array();
if (!(is_array($a = (retablir_echappements_modeles(interdire_scripts(accesrestreint_zones_rubrique_et_hierarchie(entites_html(table_valeur($Pile[0]??[], (string)'id_rubrique', null),true))))))))
$in[]= $a;
else $in = array_merge($in, $a);
if (!isset($command['table'])) {
$command['table'] = 'zones';
$command['id'] = '_restreint';
$command['from'] = array('zones' => 'spip_zones');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("zones.id_zone",
"zones.titre");
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['orderby'] = array(((!$zqv=sql_quote($in) OR $zqv==="''") ? 0 : ('FIELD(zones.id_zone,' . $zqv . ')')));
$command['where'] =
array(sql_in('zones.id_zone', $in));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = Spip\Compilateur\Iterateur\Factory::create(
"SQL",
$command,
array('../plugins/auto/accesrestreint/v6.1.0/prive/squelettes/inclure/acces_rubrique.html','html_ee4585c87d6292e89a9b52d74b7c8269','_restreint',11,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$Numrows['_restreint']['command'] = $command;
$Numrows['_restreint']['total'] = @intval($iter->count());
$l1 = _T('accesrestreint:info_retirer_zone');
$l2 = _T('accesrestreint:confirmer_retirer_rubrique_zone');$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= (
'
<li class="item">
' .
(($t1 = strval(retablir_echappements_modeles(invalideur_session($Cache, ((((function_exists("autoriser")||include_spip("inc/autoriser"))&&autoriser('modifier', 'zone', (invalideur_session($Cache, $Pile[$SP]['id_zone'])))?" ":"")) ?' ' :'')))))!=='' ?
($t1 . ( '
<a href="' .
retablir_echappements_modeles(parametre_url(generer_url_ecrire('zone_edit',( 'id_zone=' .
($Pile[$SP]['id_zone']))),'redirect',(self()))) .
'">
n° ' .
retablir_echappements_modeles($Pile[$SP]['id_zone']) .
' : ' .
retablir_echappements_modeles(interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0])))) .
'
</a>')) :
'') .
(($t1 = strval(retablir_echappements_modeles(invalideur_session($Cache, ((((function_exists("autoriser")||include_spip("inc/autoriser"))&&autoriser('affecterzones', 'rubrique', (invalideur_session($Cache, ($Pile[0]['id_rubrique'] ?? null))), (invalideur_session($Cache, null)), (invalideur_session($Cache, array('id_zone' => (invalideur_session($Cache, $Pile[$SP]['id_zone']))))))?" ":"")) ?' ' :'')))))!=='' ?
($t1 . ( '
' .
retablir_echappements_modeles(bouton_action((filtre_balise_img_dist(chemin_image((string)'supprimer-12.png'),$l1)),(invalideur_session($Cache, generer_action_auteur('retirer_zone',(($t4 = strval((invalideur_session($Cache, $Pile[$SP]['id_zone']))))!=='' ?
($t4 . ( '-rubrique-' .
(invalideur_session($Cache, ($Pile[0]['id_rubrique'] ?? null))))) :
''),(invalideur_session($Cache, self()))))),'ajax',$l2)) .
'
')) :
'') .
'
</li>
');
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_restreint @ ../plugins/auto/accesrestreint/v6.1.0/prive/squelettes/inclure/acces_rubrique.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
//
// Fonction principale du squelette ../plugins/auto/accesrestreint/v6.1.0/prive/squelettes/inclure/acces_rubrique.html
// Temps de compilation total: 10.579 ms
//
function html_ee4585c87d6292e89a9b52d74b7c8269($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 = strval(retablir_echappements_modeles('')))!=='' ?
($t1 . '
Boîte d\'informations.
Sur une zone protégée : affiche le N° de la zone avec un lien pour y accéder.
Sur une rubrique non protégée : affiche un bouton pour la protéger.
') :
'') .
'
' .
(($t1 = BOUCLE_restreinthtml_ee4585c87d6292e89a9b52d74b7c8269($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
(( '
' .
retablir_echappements_modeles(boite_ouvrir((($t4 = strval((filtre_balise_img_dist(chemin_image((string)'zone-24.png'),'','cadre-icone'))))!=='' ?
(_T('accesrestreint:titre_boite_protegee_oui') . $t4) :
''), 'simple')) .
'
' .
(($t3 = strval(retablir_echappements_modeles(singulier_ou_pluriel(($Numrows['_restreint']['grand_total'] ?? $Numrows['_restreint']['total'] ?? 0),'accesrestreint:info_rubrique_dans_zone','accesrestreint:info_rubrique_dans_zones'))))!=='' ?
('<p>' . $t3 . '</p>') :
'') .
'
<ul class="liste-items">
') . $t1 . ( '
</ul>
' .
retablir_echappements_modeles(boite_fermer()) .
'
')) :
(( '
' .
retablir_echappements_modeles(boite_ouvrir((($t3 = strval((filtre_balise_img_dist(chemin_image((string)'cadenasouvert-24.png'),'','cadre-icone'))))!=='' ?
(_T('accesrestreint:titre_boite_protegee_non') . $t3) :
''), 'simple')) .
'
' .
(($t2 = strval(retablir_echappements_modeles(invalideur_session($Cache, ((((function_exists("autoriser")||include_spip("inc/autoriser"))&&autoriser('creer', 'zone')?" ":"")) ?' ' :'')))))!=='' ?
($t2 . ( '
<p>
<a href="' .
retablir_echappements_modeles(parametre_url(parametre_url(generer_url_ecrire('zone_edit','new=oui'),'rubriques',(interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'id_rubrique', null),true)))),'redirect',(self()))) .
'">
' .
_T('accesrestreint:info_lien_action_proteger') .
'
</a>
</p>')) :
'') .
'
' .
retablir_echappements_modeles(boite_fermer()) .
'
'))) .
'
');
return analyse_resultat_skel('html_ee4585c87d6292e89a9b52d74b7c8269', $Cache, $page, '../plugins/auto/accesrestreint/v6.1.0/prive/squelettes/inclure/acces_rubrique.html');
}