File "html_710f38cfa4acb32bfb3b60d06f28e941.php"
Full path: /home/argothem/www/cache/skel/html_710f38cfa4acb32bfb3b60d06f28e941.php
File size: 9.47 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Squelette : ../prive/formulaires/inc-instituer_auteur.html
* Date : Fri, 07 Jul 2023 11:03:22 GMT
* Compile : Sat, 24 Feb 2024 13:17:50 GMT
* Boucles : _statuts, _restreint
*/
function BOUCLE_statutshtml_710f38cfa4acb32bfb3b60d06f28e941(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
$command['sourcemode'] = 'table';
$command['source'] = array(auteurs_lister_statuts('tous','0'));
if (!isset($command['table'])) {
$command['table'] = '';
$command['id'] = '_statuts';
$command['from'] = array();
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array(".valeur",
"statut");
$command['orderby'] = array();
$command['where'] =
array(
array('NOT',
array('=', 'valeur', "'nouveau'")));
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = Spip\Compilateur\Iterateur\Factory::create(
"DATA",
$command,
array('../prive/formulaires/inc-instituer_auteur.html','html_710f38cfa4acb32bfb3b60d06f28e941','_statuts',7,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= (
'
<option value="' .
interdire_scripts(safehtml($Pile[$SP]['valeur'])) .
'"' .
(($t1 = strval(interdire_scripts((((safehtml((isset($Pile[$SP]['statut'])?$Pile[$SP]['statut']:(($Pile[0]['statut'] ?? null)))) == interdire_scripts(safehtml($Pile[$SP]['valeur'])))) ?' ' :''))))!=='' ?
($t1 . 'selected="selected"') :
'') .
'>' .
(($t1 = strval(interdire_scripts((((safehtml($Pile[$SP]['valeur']) == '5poubelle')) ?' ' :''))))!=='' ?
('>' . $t1) :
'') .
interdire_scripts(traduire_statut_auteur(safehtml($Pile[$SP]['valeur']))) .
'</option>
');
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_statuts @ ../prive/formulaires/inc-instituer_auteur.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_restreinthtml_710f38cfa4acb32bfb3b60d06f28e941(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($si_init)) { $command['si'] = array(); $si_init = true; }
$command['si'][] = interdire_scripts(in_array(entites_html(table_valeur($Pile[0]??[], (string)'statut', null),true),table_valeur($Pile["vars"]??[], (string)'statuts_auteurs', null)));
if (!isset($command['table'])) {
$command['table'] = 'rubriques';
$command['id'] = '_restreint';
$command['from'] = array('rubriques' => 'spip_rubriques','L1' => 'spip_auteurs_liens');
$command['type'] = array();
$command['groupby'] = array("rubriques.id_rubrique");
$command['select'] = array("rubriques.id_rubrique",
"rubriques.lang",
"rubriques.titre");
$command['orderby'] = array();
$command['join'] = array('L1' => array('rubriques','id_objet','id_rubrique','L1.objet='.sql_quote('rubrique')));
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array('JOIN-L1' =>
array('=', 'L1.objet', sql_quote('rubrique')),
array('=', 'L1.id_auteur', sql_quote(($Pile[0]['id_auteur'] ?? null), '','bigint(21) NOT NULL DEFAULT \'0\'')),
array('REGEXP', 'rubriques.statut', "'.*'"));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = Spip\Compilateur\Iterateur\Factory::create(
"SQL",
$command,
array('../prive/formulaires/inc-instituer_auteur.html','html_710f38cfa4acb32bfb3b60d06f28e941','_restreint',25,$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 .= (
'
' .
vide($Pile['vars'][$_zzz=(string)'selected'] = filtre_push(table_valeur($Pile["vars"]??[], (string)'selected', null),( '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_restreint @ ../prive/formulaires/inc-instituer_auteur.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
//
// Fonction principale du squelette ../prive/formulaires/inc-instituer_auteur.html
// Temps de compilation total: 1.739 ms
//
function html_710f38cfa4acb32bfb3b60d06f28e941($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)'statuts_auteurs'] = filtre_explode_dist((defined('_STATUT_AUTEUR_RUBRIQUE')?constant('_STATUT_AUTEUR_RUBRIQUE'):''),',')) .
'<label for="statut">' .
_T('public|spip|ecrire:info_statut_auteur') .
'</label>
<select name="statut"
id="statut"
onchange="update_saisie_statut_auteur(this,this.options[this.selectedIndex].value);"
>
' .
BOUCLE_statutshtml_710f38cfa4acb32bfb3b60d06f28e941($Cache, $Pile, $doublons, $Numrows, $SP) .
'
' .
(($t1 = strval(interdire_scripts((($Pile[0]['statut'] ?? null) == 'nouveau'))))!=='' ?
($t1 . ( '
<option value="' .
interdire_scripts(($Pile[0]['statut'] ?? null)) .
'" selected="selected">' .
interdire_scripts(traduire_statut_auteur(($Pile[0]['statut'] ?? null))) .
'</option>
')) :
'') .
'
</select>
' .
(($t1 = strval(invalideur_session($Cache, ((((function_exists("autoriser")||include_spip("inc/autoriser"))&&autoriser('modifier', 'auteur', invalideur_session($Cache, ($Pile[0]['id_auteur'] ?? null)), '', invalideur_session($Cache, array('webmestre' => '?')))?" ":"")) ?' ' :''))))!=='' ?
($t1 . ( '
<div class="choix choix-webmestre' .
(($t2 = strval(interdire_scripts((((($Pile[0]['statut'] ?? null) == '0minirezo')) ?'' :' '))))!=='' ?
($t2 . 'none-js') :
'') .
'">
<input type="checkbox" name="webmestre" id="webmestre" value="oui"' .
(($t2 = strval(interdire_scripts((((entites_html(table_valeur($Pile[0]??[], (string)'webmestre', null),true) == 'oui')) ?' ' :''))))!=='' ?
($t2 . 'checked="checked"') :
'') .
'/>
<label for="webmestre">' .
_T('public|spip|ecrire:info_admin_statuer_webmestre') .
'</label>
<input type=\'hidden\' name=\'saisie_webmestre\' value=\'1\' />
</div>
')) :
'') .
'
<div class="rubriques_restreintes' .
(($t1 = strval(interdire_scripts(((in_array(($Pile[0]['statut'] ?? null),table_valeur($Pile["vars"]??[], (string)'statuts_auteurs', null))) ?'' :' '))))!=='' ?
($t1 . 'none-js') :
'') .
'">
' .
vide($Pile['vars'][$_zzz=(string)'label'] = _T('public|spip|ecrire:info_restreindre_rubrique')) .
'
' .
vide($Pile['vars'][$_zzz=(string)'selected'] = array()) .
(($t1 = BOUCLE_restreinthtml_710f38cfa4acb32bfb3b60d06f28e941($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
('
' . $t1 . ( '
<input type=\'hidden\' name=\'restreintes[]\' value=\'rubrique|0\' />
' .
vide($Pile['vars'][$_zzz=(string)'label'] = _T('public|spip|ecrire:info_ajouter_rubrique')) .
'
')) :
'') .
'
' .
(($t1 = strval(((((((count(table_valeur($Pile["vars"]??[], (string)'selected', null))) ?'' :' ')) AND (interdire_scripts((($Pile[0]['statut'] ?? null) == '0minirezo')))) ?' ' :'') ? _T('public|spip|ecrire:info_auteur_gere_toutes_rubriques'):'')))!=='' ?
('<p>' . $t1 . '</p>') :
'') .
'
<div class="instituer_auteur choix clearfix">
' .
(($t1 = strval(((($a = (count(table_valeur($Pile["vars"]??[], (string)'selected', null)) ? _T('public|spip|ecrire:info_auteur_gere_rubriques'):'')) OR (is_string($a) AND strlen($a))) ? $a : table_valeur($Pile["vars"]??[], (string)'label', null))))!=='' ?
('<p>' . $t1 . '</p>
<div class="nettoyeur"></div> ') :
'') .
'
' .
(($t1 = strval(invalideur_session($Cache, ((((function_exists("autoriser")||include_spip("inc/autoriser"))&&autoriser('modifier', 'auteur', invalideur_session($Cache, ($Pile[0]['id_auteur'] ?? null)), '', invalideur_session($Cache, array('restreintes' => '1')))?" ":"")) ?' ' :''))))!=='' ?
($t1 . ( '
' .
'<'.'?php echo recuperer_fond( ' . argumenter_squelette('formulaires/selecteur/rubriques') . ', array(\'selected\' => ' . argumenter_squelette(table_valeur($Pile["vars"]??[], (string)'selected', null)) . ',
\'select\' => ' . argumenter_squelette('') . ',
\'name\' => ' . argumenter_squelette('restreintes') . ',
\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . '), array("compil"=>array(\'../prive/formulaires/inc-instituer_auteur.html\',\'html_710f38cfa4acb32bfb3b60d06f28e941\',\'\',24,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\');
?'.'>
')) :
'') .
'
</div>
</div>
<script type="text/javascript">/*<![CDATA[*/
function update_saisie_statut_auteur(node,value){
var statut_auteur_rubrique="' .
filtre_implode_dist(table_valeur($Pile["vars"]??[], (string)'statuts_auteurs', null),'|') .
'";
var reg = new RegExp("^("+statut_auteur_rubrique+")$");
if (value.match(reg))
jQuery(node).siblings(\'.rubriques_restreintes:hidden\').slideDown();
else
jQuery(node).siblings(\'.rubriques_restreintes:visible\').slideUp();
if (value==\'0minirezo\')
jQuery(node).next(\'.choix-webmestre:hidden\').slideDown();
else
jQuery(node).next(\'.choix-webmestre:visible\').slideUp();
}
/*]]>*/</script>');
return analyse_resultat_skel('html_710f38cfa4acb32bfb3b60d06f28e941', $Cache, $page, '../prive/formulaires/inc-instituer_auteur.html');
}