| Current Path : /home/atelierpru/provence/tmp/cache/skel/ |
| Current File : /home/atelierpru/provence/tmp/cache/skel/html_ca865bb3b60e67cef523310d0575c855.php |
<?php
/*
* Squelette : squelettes/modeles/plan.html
* Date : Mon, 24 Jun 2019 15:03:23 GMT
* Compile : Wed, 26 Jun 2019 16:06:26 GMT
* Boucles : _articles_racine, _articles, _sous_rubriques, _rubriques, _secteurs
*/
function BOUCLE_articles_racinehtml_ca865bb3b60e67cef523310d0575c855(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'articles';
$command['id'] = '_articles_racine';
$command['from'] = array('articles' => 'spip_articles');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("0+articles.titre AS num",
"articles.date",
"articles.id_article",
"articles.titre",
"articles.lang");
$command['orderby'] = array('num', 'articles.date DESC');
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
quete_condition_statut('articles.statut','publie,prop,prepa/auteur','publie',''),
quete_condition_postdates('articles.date',''),
array('=', 'articles.id_rubrique', sql_quote($Pile[$SP]['id_rubrique'], '','bigint(21) NOT NULL DEFAULT \'0\'')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('squelettes/modeles/plan.html','html_ca865bb3b60e67cef523310d0575c855','_articles_racine',10,$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 .= (
'
<li><a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_article'], 'article', '', '', true))) .
'">' .
interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0])) .
'</a></li>
');
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_articles_racine @ squelettes/modeles/plan.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_articleshtml_ca865bb3b60e67cef523310d0575c855(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'articles';
$command['id'] = '_articles';
$command['from'] = array('articles' => 'spip_articles');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("0+articles.titre AS num",
"articles.date",
"articles.id_article",
"articles.titre",
"articles.lang");
$command['orderby'] = array('num', 'articles.date DESC');
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
quete_condition_statut('articles.statut','publie,prop,prepa/auteur','publie',''),
quete_condition_postdates('articles.date',''),
array('=', 'articles.id_rubrique', sql_quote($Pile[$SP]['id_rubrique'], '','bigint(21) NOT NULL DEFAULT \'0\'')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('squelettes/modeles/plan.html','html_ca865bb3b60e67cef523310d0575c855','_articles',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 .= (
'
<li><a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_article'], 'article', '', '', true))) .
'">' .
interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0])) .
'</a></li>
');
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_articles @ squelettes/modeles/plan.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_sous_rubriqueshtml_ca865bb3b60e67cef523310d0575c855(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
$save_numrows = (isset($Numrows['_rubriques']) ? $Numrows['_rubriques'] : array());
$t0 = (($t1 = BOUCLE_rubriqueshtml_ca865bb3b60e67cef523310d0575c855($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
('
<ul class="spip">
' . $t1 . '
</ul>
') :
'');
$Numrows['_rubriques'] = ($save_numrows);
return $t0;
}
function BOUCLE_rubriqueshtml_ca865bb3b60e67cef523310d0575c855(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'rubriques';
$command['id'] = '_rubriques';
$command['from'] = array('rubriques' => 'spip_rubriques');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("rubriques.id_rubrique",
"0+rubriques.titre AS num",
"rubriques.date",
"rubriques.titre",
"rubriques.lang");
$command['orderby'] = array('num', 'rubriques.date DESC');
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
quete_condition_statut('rubriques.statut','!','publie',''),
array('=', 'rubriques.id_parent', sql_quote($Pile[$SP]['id_rubrique'], '','bigint(21) NOT NULL DEFAULT \'0\'')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('squelettes/modeles/plan.html','html_ca865bb3b60e67cef523310d0575c855','_rubriques',19,$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 .= (
'
<li>
<strong><a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_rubrique'], 'rubrique', '', '', true))) .
'">' .
interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0])) .
'</a></strong>
' .
(($t1 = BOUCLE_articleshtml_ca865bb3b60e67cef523310d0575c855($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
('
<ul class="spip">
' . $t1 . '
</ul>
') :
'') .
'
' .
BOUCLE_sous_rubriqueshtml_ca865bb3b60e67cef523310d0575c855($Cache, $Pile, $doublons, $Numrows, $SP) .
'
</li>
');
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_rubriques @ squelettes/modeles/plan.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_secteurshtml_ca865bb3b60e67cef523310d0575c855(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'rubriques';
$command['id'] = '_secteurs';
$command['from'] = array('rubriques' => 'spip_rubriques');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("rubriques.id_rubrique",
"0+rubriques.titre AS num",
"rubriques.date",
"rubriques.titre",
"rubriques.lang");
$command['orderby'] = array('num', 'rubriques.date DESC');
$command['where'] =
array(
quete_condition_statut('rubriques.statut','!','publie',''),
array('=', 'rubriques.id_parent', 0),
array('NOT',
array('=', 'rubriques.id_rubrique', "5")));
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('squelettes/modeles/plan.html','html_ca865bb3b60e67cef523310d0575c855','_secteurs',5,$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 .= (
'
<h2>' .
interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0])) .
'</h2>
' .
(($t1 = BOUCLE_articles_racinehtml_ca865bb3b60e67cef523310d0575c855($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
('
<ul class="spip">
' . $t1 . '
</ul>
') :
'') .
'
' .
(($t1 = BOUCLE_rubriqueshtml_ca865bb3b60e67cef523310d0575c855($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
('
<ul class="spip">
' . $t1 . '
</ul>
') :
'') .
'
');
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_secteurs @ squelettes/modeles/plan.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
//
// Fonction principale du squelette squelettes/modeles/plan.html
// Temps de compilation total: 19.548 ms
//
function html_ca865bb3b60e67cef523310d0575c855($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_secteurshtml_ca865bb3b60e67cef523310d0575c855($Cache, $Pile, $doublons, $Numrows, $SP));
return analyse_resultat_skel('html_ca865bb3b60e67cef523310d0575c855', $Cache, $page, 'squelettes/modeles/plan.html');
}
?>