| Current Path : /home/etiennec/www/oldsite/tmp/cache/skel/ |
| Current File : /home/etiennec/www/oldsite/tmp/cache/skel/html_58891e25672f5bc2d5976396ef3b5b31.php |
<?php
/*
* Squelette : plugins/auto/menus/menus/objet.html
* Date : Wed, 09 Feb 2011 14:00:08 GMT
* Compile : Sun, 22 Feb 2015 14:51:58 GMT
* Boucles : _art_lang, _art_orig, _si_art
*/
/* BOUCLE articles */
function BOUCLE_art_langhtml_58891e25672f5bc2d5976396ef3b5b31(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $connect = '';
static $table = 'articles';
static $id = '_art_lang';
static $from = array('articles' => 'spip_articles');
static $type = array();
static $groupby = array();
static $select = array("articles.id_article",
"articles.lang",
"articles.titre");
static $orderby = array();
$where =
array(
array('=', 'articles.statut', '\'publie\''),
array('<', 'articles.date', sql_quote(quete_date_postdates())),
array('OR',
array('AND',
array('=', 'articles.id_trad', 0),
array('=', 'articles.id_article', sql_quote($Pile[$SP]['id_article']))),
array('AND',
array('>', 'articles.id_trad', 0),
array('=', 'articles.id_trad', sql_quote($Pile[$SP]['id_trad'])))),
array('=', 'articles.lang', sql_quote(interdire_scripts(entites_html((@$Pile[0]['lang']),true)))));
static $join = array();
static $limit = '';
static $having =
array();
$t0 = "";
// REQUETE
$result = calculer_select($select, $from, $type, $where, $join, $groupby, $orderby, $limit, $having, $table, $id, $connect,
array('plugins/auto/menus/menus/objet.html','html_58891e25672f5bc2d5976396ef3b5b31','_art_lang',4,$GLOBALS['spip_lang']));
if ($result) {
lang_select($GLOBALS['spip_lang']);
$SP++;
// RESULTATS
while ($Pile[$SP] = @sql_fetch($result)) {
lang_select_public($Pile[$SP]['lang'], '', $Pile[$SP]['titre']);
$t0 .= (
'
' .
vide($Pile['vars']['id_objet'] = $Pile[$SP]['id_article']));
}
lang_select();
@sql_free($result);
}
return $t0;
}
/* BOUCLE articles */
function BOUCLE_art_orightml_58891e25672f5bc2d5976396ef3b5b31(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $connect = '';
static $table = 'articles';
static $id = '_art_orig';
static $from = array('articles' => 'spip_articles');
static $type = array();
static $groupby = array();
static $select = array("articles.id_trad",
"articles.id_article",
"articles.lang",
"articles.titre");
static $orderby = array();
$where =
array(
array('=', 'articles.statut', '\'publie\''),
array('<', 'articles.date', sql_quote(quete_date_postdates())),
array('=', 'articles.id_article', sql_quote(interdire_scripts(entites_html((@$Pile[0]['id_objet']),true)),'','int')),
array('OR',
array('=', 'articles.id_trad', 'articles.id_article'),
array('=', 'articles.id_trad', '0')));
static $join = array();
static $limit = '';
static $having =
array();
$t0 = "";
// REQUETE
$result = calculer_select($select, $from, $type, $where, $join, $groupby, $orderby, $limit, $having, $table, $id, $connect,
array('plugins/auto/menus/menus/objet.html','html_58891e25672f5bc2d5976396ef3b5b31','_art_orig',3,$GLOBALS['spip_lang']));
if ($result) {
lang_select($GLOBALS['spip_lang']);
$SP++;
// RESULTATS
while ($Pile[$SP] = @sql_fetch($result)) {
lang_select_public($Pile[$SP]['lang'], '', $Pile[$SP]['titre']);
$t0 .= (
'
' .
(($t1 = BOUCLE_art_langhtml_58891e25672f5bc2d5976396ef3b5b31($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
$t1 :
(( '
' .
vide($Pile['vars']['id_objet'] = $Pile[$SP]['id_article'])))) .
'
');
}
lang_select();
@sql_free($result);
}
return $t0;
}
/* BOUCLE CONDITION */
function BOUCLE_si_arthtml_58891e25672f5bc2d5976396ef3b5b31(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $connect = 'condition';
static $table = 'CONDITION';
static $id = '_si_art';
static $from = array('CONDITION' => 'CONDITION');
static $type = array();
static $groupby = array();
static $select = array("1");
static $orderby = array();
static $where =
array();
static $join = array();
static $limit = '';
$having =
array(($test=interdire_scripts(((((entites_html((@$Pile[0]['type_objet']),true) == 'article')) AND (interdire_scripts((entites_html((@$Pile[0]['trad']),true) == 'trad')))) ?' ' :'')))?array('tableau','1:1'):'');
$t0 = "";
// REQUETE
$result = calculer_select($select, $from, $type, $where, $join, $groupby, $orderby, $limit, $having, $table, $id, $connect,
array('plugins/auto/menus/menus/objet.html','html_58891e25672f5bc2d5976396ef3b5b31','_si_art',2,$GLOBALS['spip_lang']));
if ($result) {
$SP++;
// RESULTATS
while ($Pile[$SP] = @sql_fetch($result, 'condition')) {
$t0 .= (
'
' .
BOUCLE_art_orightml_58891e25672f5bc2d5976396ef3b5b31($Cache, $Pile, $doublons, $Numrows, $SP) .
'
');
}
@sql_free($result, 'condition');
}
return $t0;
}
//
// Fonction principale du squelette plugins/auto/menus/menus/objet.html
// Temps de compilation total: 47.059 ms
//
function html_58891e25672f5bc2d5976396ef3b5b31($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']['id_objet'] = interdire_scripts(entites_html((@$Pile[0]['id_objet']),true))) .
BOUCLE_si_arthtml_58891e25672f5bc2d5976396ef3b5b31($Cache, $Pile, $doublons, $Numrows, $SP) .
'
' .
vide($Pile['vars']['titre'] = interdire_scripts(((($a = ((($a = typo((@$Pile[0]['titre']))) OR (!is_array($a) AND strlen($a))) ? $a : generer_info_entite((is_array($a = ($Pile["vars"])) ? $a['id_objet'] : ""), interdire_scripts(entites_html((@$Pile[0]['type_objet']),true)), 'titre'))) OR (!is_array($a) AND strlen($a))) ? $a : _T('public/spip/ecrire:info_sans_titre')))) .
'
' .
(($t1 = strval(interdire_scripts(((((((entites_html((@$Pile[0]['trad']),true) == 'trad')) AND (interdire_scripts((entites_html((@$Pile[0]['type_objet']),true) == 'article')))) ?' ' :'')) ?' ' :''))))!=='' ?
($t1 . vide($Pile['vars']['info_trad'] = _T('menus:info_traduction_recuperee'))) :
'') .
'
' .
vide($Pile['vars']['visible'] = 'oui') .
(($t1 = strval(interdire_scripts((((entites_html((@$Pile[0]['connexion']),true) == 'session')) ?' ' :''))))!=='' ?
($t1 . ( '
' .
(($t2 = strval(interdire_scripts(invalideur_session($Cache, (((is_array($a = ($GLOBALS["visiteur_session"])) ? $a['statut'] : "")) ?'' :' ')))))!=='' ?
($t2 . ( '
' .
vide($Pile['vars']['visible'] = 'non'))) :
'') .
'
' .
vide($Pile['vars']['info_session'] = _T('menus:info_connexion_obligatoire')))) :
'') .
'
' .
(($t1 = strval(interdire_scripts((((entites_html((@$Pile[0]['connexion']),true) == 'nosession')) ?' ' :''))))!=='' ?
($t1 . ( '
' .
(($t2 = strval(interdire_scripts(invalideur_session($Cache, (((is_array($a = ($GLOBALS["visiteur_session"])) ? $a['statut'] : "")) ?' ' :'')))))!=='' ?
($t2 . ( '
' .
vide($Pile['vars']['visible'] = 'non'))) :
'') .
'
' .
vide($Pile['vars']['info_session'] = _T('menus:info_deconnexion_obligatoire')))) :
'') .
'
' .
(($t1 = strval(interdire_scripts(((entites_html((@$Pile[0]['appel_formulaire']),true)) ?' ' :''))))!=='' ?
($t1 . ( '
<div class="titre">' .
(is_array($a = ($Pile["vars"])) ? $a['titre'] : "") .
'</div>
<div class="infos">' .
interdire_scripts(entites_html((@$Pile[0]['type_objet']),true)) .
'-' .
(is_array($a = ($Pile["vars"])) ? $a['id_objet'] : "") .
(($t2 = strval((is_array($a = ($Pile["vars"])) ? $a['info_session'] : "")))!=='' ?
('-' . $t2) :
'') .
(($t2 = strval((is_array($a = ($Pile["vars"])) ? $a['info_trad'] : "")))!=='' ?
('-' . $t2) :
'') .
'</div>
')) :
'') .
'
' .
(($t1 = strval(interdire_scripts((((((entites_html((@$Pile[0]['appel_menu']),true)) AND (((is_array($a = ($Pile["vars"])) ? $a['visible'] : "") == 'oui'))) ?' ' :'')) ?' ' :''))))!=='' ?
($t1 . ( '
<li class="menu-entree' .
(($t2 = strval(interdire_scripts(entites_html((@$Pile[0]['css']),true))))!=='' ?
(' ' . $t2) :
'') .
(($t2 = strval(interdire_scripts(menus_exposer(entites_html((@$Pile[0]['id_objet']),true),interdire_scripts(entites_html((@$Pile[0]['type_objet']),true)),interdire_scripts((@$Pile[0]['env']))))))!=='' ?
(' ' . $t2) :
'') .
'">
<a href="' .
generer_info_entite((is_array($a = ($Pile["vars"])) ? $a['id_objet'] : ""), interdire_scripts(entites_html((@$Pile[0]['type_objet']),true)), 'url') .
'" title="' .
attribut_html((is_array($a = ($Pile["vars"])) ? $a['titre'] : "")) .
'">' .
(is_array($a = ($Pile["vars"])) ? $a['titre'] : "") .
'</a>
')) :
'') .
'
');
return analyse_resultat_skel('html_58891e25672f5bc2d5976396ef3b5b31', $Cache, $page, 'plugins/auto/menus/menus/objet.html');
}
?>