File "html_a76bb6126b9d4d61a6f3f7559df25867.php"
Full path: /home/argothem/www/cache/skel/html_a76bb6126b9d4d61a6f3f7559df25867.php
File size: 3.4 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Squelette : ../plugins-dist/medias/prive/squelettes/inclure/colonne-documents.html
* Date : Fri, 07 Jul 2023 11:03:28 GMT
* Compile : Sat, 24 Feb 2024 12:49:15 GMT
* Boucles : _docslies
*/
function BOUCLE_docslieshtml_a76bb6126b9d4d61a6f3f7559df25867(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'documents_liens';
$command['id'] = '_docslies';
$command['from'] = array('documents_liens' => 'spip_documents_liens');
$command['type'] = array();
$command['groupby'] = array("id_document");
$command['select'] = array("id_document",
"documents_liens.id_document",
"documents_liens.id_objet",
"documents_liens.objet");
$command['orderby'] = array('documents_liens.id_document DESC');
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
array('=', 'documents_liens.id_objet', sql_quote(($Pile[0]['id_objet'] ?? null), '','bigint(21) NOT NULL DEFAULT \'0\'')),
array('=', 'documents_liens.objet', sql_quote(($Pile[0]['objet'] ?? null), '','varchar(25) NOT NULL DEFAULT \'\'')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = Spip\Compilateur\Iterateur\Factory::create(
"SQL",
$command,
array('../plugins-dist/medias/prive/squelettes/inclure/colonne-documents.html','html_a76bb6126b9d4d61a6f3f7559df25867','_docslies',10,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= (
'
' .
((($recurs=(isset($Pile[0]['recurs'])?$Pile[0]['recurs']:0))>=5)? '' :
recuperer_fond('modeles/document_case', array('id_document' => $Pile[$SP]['id_document'] ,
'id_objet' => $Pile[$SP]['id_objet'] ,
'objet' => $Pile[$SP]['objet'] ,
'lang' => $GLOBALS["spip_lang"] ,
'recurs'=>(++$recurs)), array('compil'=>array('../plugins-dist/medias/prive/squelettes/inclure/colonne-documents.html','html_a76bb6126b9d4d61a6f3f7559df25867','_docslies',11,$GLOBALS['spip_lang']), 'trim'=>true, 'ajax' => ($v=( ($Pile[0]['ajax'] ?? null) ))?$v:true), ''))
);
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_docslies @ ../plugins-dist/medias/prive/squelettes/inclure/colonne-documents.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
//
// Fonction principale du squelette ../plugins-dist/medias/prive/squelettes/inclure/colonne-documents.html
// Temps de compilation total: 1.531 ms
//
function html_a76bb6126b9d4d61a6f3f7559df25867($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 = BOUCLE_docslieshtml_a76bb6126b9d4d61a6f3f7559df25867($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
('
<div class="liste_items documents" id="documents_joints">
' . $t1 . '
</div>
') :
'') .
'
<script type="text/javascript">/*<![CDATA[*/
' .
filtre_compacte_dist(charge_scripts('javascript/medias_edit.js',false),'js') .
'
/*]]>*/</script>
');
return analyse_resultat_skel('html_a76bb6126b9d4d61a6f3f7559df25867', $Cache, $page, '../plugins-dist/medias/prive/squelettes/inclure/colonne-documents.html');
}