File "html_1d327f1e02e6d0bbf3324d508c841e97.php"
Full path: /home/argothem/www/SpipFactory-fichiers_de_travail/sauvegarde-depannage-1.9a3.2/1.9/CACHE/skel/html_1d327f1e02e6d0bbf3324d508c841e97.php
File size: 3.61 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Squelette : dist/modeles/doc.html
* Date : Wed, 13 Sep 2006 15:34:36 GMT
* Compile : Sun, 08 Mar 2020 17:09:20 GMT (0.01s)
* Boucles : _doc
*/
//
// <BOUCLE documents>
//
function BOUCLE_dochtml_1d327f1e02e6d0bbf3324d508c841e97(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
// REQUETE
$result = spip_optim_select(
array("documents.id_document",
"J0.mime_type",
"J0.titre AS type_document",
"documents.taille",
"documents.titre",
"documents.descriptif"), # SELECT
array('J0' => 'spip_types_documents','documents' => 'spip_documents'), # FROM
array(
array('=', 'documents.id_document', spip_abstract_quote($Pile[$SP]['id_document'])),
array('=', 'documents.id_type', 'J0.id_type'),
array('(documents.taille > 0 OR documents.distant="oui")')), # WHERE
array(), # WHERE pour jointure
'', # GROUP
array(), # ORDER
'', # LIMIT
'', # sous
array(), # HAVING
'documents', # table
'_doc', # boucle
''); # serveur
$t0 = "";
$SP++;
// RESULTATS
while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {
$t0 .= ('
' .
'
<div class=\'spip_document_' .
$Pile[$SP]['id_document'] .
' spip_documents' .
((strval($t1 = interdire_scripts(entites_html($Pile[0]['align'])))!='') ?
(' spip_documents_' . $t1) :
('')) .
((strval($t1 = interdire_scripts(entites_html($Pile[0]['class'])))!='') ?
(' ' . $t1) :
('')) .
' spip_lien_ok\'' .
((strval($t1 = interdire_scripts(match(entites_html($Pile[0]['align']),'left|right')))!='') ?
(' style=\'float:' . $t1 . ';\'') :
('')) .
'>
<a href="' .
interdire_scripts(sinon(entites_html($Pile[0]['lien']),htmlspecialchars(vider_url(generer_url_document($Pile[$SP]['id_document']))))) .
'" type="' .
interdire_scripts($Pile[$SP]['mime_type']) .
'"' .
((strval($t1 = interdire_scripts(entites_html($Pile[0]['lien_class'])))!='') ?
(' class="' . $t1 . '"') :
('')) .
' title=\'' .
interdire_scripts($Pile[$SP]['type_document']) .
' - ' .
interdire_scripts(texte_backend(taille_en_octets($Pile[$SP]['taille']))) .
'\'><img src=\'' .
extraire_attribut(calcule_logo_document($Pile[$SP]['id_document'], '', $doublons, 0, '', '', ''),'src') .
'\' width=\'' .
largeur(calcule_logo_document($Pile[$SP]['id_document'], '', $doublons, 0, '', '', '')) .
'\' height=\'' .
hauteur(calcule_logo_document($Pile[$SP]['id_document'], '', $doublons, 0, '', '', '')) .
'\' alt=\'' .
interdire_scripts($Pile[$SP]['type_document']) .
' - ' .
interdire_scripts(texte_backend(taille_en_octets($Pile[$SP]['taille']))) .
'\' /></a>' .
((strval($t1 = interdire_scripts(typo($Pile[$SP]['titre'])))!='') ?
(('
<div class=\'spip_doc_titre\'' .
((strval($t2 = max(min(largeur(calcule_logo_document($Pile[$SP]['id_document'], '', $doublons, 0, '', '', '')),'350'),'120'))!='') ?
(' style=\'width:' . $t2 . 'px;\'') :
('')) .
'><strong>') . $t1 . '</strong></div>') :
('')) .
((strval($t1 = interdire_scripts(propre($Pile[$SP]['descriptif'])))!='') ?
(('
<div class=\'spip_doc_descriptif\'' .
((strval($t2 = max(min(largeur(calcule_logo_document($Pile[$SP]['id_document'], '', $doublons, 0, '', '', '')),'350'),'120'))!='') ?
(' style=\'width:' . $t2 . 'px;\'') :
('')) .
'>') . $t1 . (interdire_scripts(calculer_notes()) .
'</div>')) :
('')) .
'</div>
');
}
@spip_abstract_free($result,'');
return $t0;
}
//
// Fonction principale du squelette dist/modeles/doc.html
//
function html_1d327f1e02e6d0bbf3324d508c841e97($Cache, $Pile, $doublons=array(), $Numrows=array(), $SP=0) {
$page = (BOUCLE_dochtml_1d327f1e02e6d0bbf3324d508c841e97($Cache, $Pile, $doublons, $Numrows, $SP) .
'
');
return analyse_resultat_skel('html_1d327f1e02e6d0bbf3324d508c841e97', $Cache, $page);
}
?>