File "html_2e2efc4de991f4108aae6cc119dcd86c.php"
Full path: /home/argothem/www/organecyberpresse/tmp/cache/skel/html_2e2efc4de991f4108aae6cc119dcd86c.php
File size: 8.81 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Squelette : ../plugins/auto/licence/v1.1.0/prive/licence_document_saisies.html
* Date : Fri, 05 Jul 2024 16:57:42 GMT
* Compile : Sun, 24 Aug 2025 16:04:40 GMT
* Boucles : _id_licence, _name_licence, _selection, _doc
*/
function BOUCLE_id_licencehtml_2e2efc4de991f4108aae6cc119dcd86c(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
$command['source'] = array(retablir_echappements_modeles(interdire_scripts($Pile[$SP]['valeur'])));
$command['sourcemode'] = 'table';
if (!isset($command['table'])) {
$command['table'] = '';
$command['id'] = '_id_licence';
$command['from'] = array();
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array(".valeur");
$command['orderby'] = array();
$command['where'] =
array(
array('=', 'cle', "'id'"));
$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('../plugins/auto/licence/v1.1.0/prive/licence_document_saisies.html','html_2e2efc4de991f4108aae6cc119dcd86c','_id_licence',8,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'id_licence'] = (interdire_scripts($Pile[$SP]['valeur']))));
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_id_licence @ ../plugins/auto/licence/v1.1.0/prive/licence_document_saisies.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_name_licencehtml_2e2efc4de991f4108aae6cc119dcd86c(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
$command['source'] = array(retablir_echappements_modeles(interdire_scripts($Pile[$SP]['valeur'])));
$command['sourcemode'] = 'table';
if (!isset($command['table'])) {
$command['table'] = '';
$command['id'] = '_name_licence';
$command['from'] = array();
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array(".valeur");
$command['orderby'] = array();
$command['where'] =
array(
array('=', 'cle', "'name'"));
$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('../plugins/auto/licence/v1.1.0/prive/licence_document_saisies.html','html_2e2efc4de991f4108aae6cc119dcd86c','_name_licence',9,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'name_licence'] = (interdire_scripts($Pile[$SP]['valeur']))));
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_name_licence @ ../plugins/auto/licence/v1.1.0/prive/licence_document_saisies.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_selectionhtml_2e2efc4de991f4108aae6cc119dcd86c(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
$command['source'] = array(retablir_echappements_modeles(interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'licences', null),true))));
$command['sourcemode'] = 'table';
if (!isset($command['table'])) {
$command['table'] = '';
$command['id'] = '_selection';
$command['from'] = array();
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array(".valeur");
$command['orderby'] = array();
$command['where'] =
array();
$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('../plugins/auto/licence/v1.1.0/prive/licence_document_saisies.html','html_2e2efc4de991f4108aae6cc119dcd86c','_selection',7,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= (
'
' .
BOUCLE_id_licencehtml_2e2efc4de991f4108aae6cc119dcd86c($Cache, $Pile, $doublons, $Numrows, $SP) .
'
' .
BOUCLE_name_licencehtml_2e2efc4de991f4108aae6cc119dcd86c($Cache, $Pile, $doublons, $Numrows, $SP) .
'
<option value="' .
retablir_echappements_modeles(table_valeur($Pile["vars"]??[], (string)'id_licence', null)) .
'"' .
(($t1 = strval(retablir_echappements_modeles((((table_valeur($Pile["vars"]??[], (string)'id_licence', null) == (((($a = $Pile[$SP-1]['id_licence']) OR (is_string($a) AND strlen($a))) ? $a : (interdire_scripts((include_spip('inc/config')?lire_config('licence/licence_defaut',null,false):''))))))) ?' ' :''))))!=='' ?
($t1 . ' selected="selected"') :
'') .
'>' .
retablir_echappements_modeles(table_valeur($Pile["vars"]??[], (string)'name_licence', null)) .
'</option>
');
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_selection @ ../plugins/auto/licence/v1.1.0/prive/licence_document_saisies.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_dochtml_2e2efc4de991f4108aae6cc119dcd86c(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'documents';
$command['id'] = '_doc';
$command['from'] = array('documents' => 'spip_documents');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("documents.id_licence");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
array('(documents.taille > 0 OR documents.distant=\'oui\')'),
array('=', 'documents.id_document', sql_quote(($Pile[0]['id_document'] ?? null), '','bigint NOT NULL AUTO_INCREMENT')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = Spip\Compilateur\Iterateur\Factory::create(
"SQL",
$command,
array('../plugins/auto/licence/v1.1.0/prive/licence_document_saisies.html','html_2e2efc4de991f4108aae6cc119dcd86c','_doc',1,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$l1 = _T('licence:label_select_licence');
$l2 = _T('licence:sans_licence');$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= (
'
<div class="editer editer_licence' .
(($t1 = strval(retablir_echappements_modeles(((table_valeur(table_valeur($Pile[0]??[], (string)'erreurs', null),'id_licence')) ?' ' :''))))!=='' ?
(' ' . $t1 . 'erreur') :
'') .
'">
<label for="id_licence">' .
$l1 .
'</label>
' .
(($t1 = strval(retablir_echappements_modeles(table_valeur(table_valeur($Pile[0]??[], (string)'erreurs', null),'id_licence'))))!=='' ?
('<span class=\'erreur_message\'>' . $t1 . '</span>') :
'') .
'
<select name="id_licence" id="id_licence">
<option value="0"' .
(($t1 = strval(retablir_echappements_modeles((((((($a = $Pile[$SP]['id_licence']) OR (is_string($a) AND strlen($a))) ? $a : (interdire_scripts((include_spip('inc/config')?lire_config('licence/licence_defaut',null,false):'')))) == '0')) ?' ' :''))))!=='' ?
($t1 . ' selected="selected"') :
'') .
'>' .
$l2 .
'</option>
' .
BOUCLE_selectionhtml_2e2efc4de991f4108aae6cc119dcd86c($Cache, $Pile, $doublons, $Numrows, $SP) .
'
</select>
</div>
');
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_doc @ ../plugins/auto/licence/v1.1.0/prive/licence_document_saisies.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
//
// Fonction principale du squelette ../plugins/auto/licence/v1.1.0/prive/licence_document_saisies.html
// Temps de compilation total: 2.072 ms
//
function html_2e2efc4de991f4108aae6cc119dcd86c($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 = BOUCLE_dochtml_2e2efc4de991f4108aae6cc119dcd86c($Cache, $Pile, $doublons, $Numrows, $SP);
return analyse_resultat_skel('html_2e2efc4de991f4108aae6cc119dcd86c', $Cache, $page, '../plugins/auto/licence/v1.1.0/prive/licence_document_saisies.html');
}