| Current Path : /home/histoio/www/tmp/cache/skel/ |
| Current File : /home/histoio/www/tmp/cache/skel/html_1fb067d698ad580c0aa04029d221fa9f.php |
<?php
/*
* Squelette : ../plugins/auto/agenda/v4.3.4/prive/objets/contenu/evenement.html
* Date : Mon, 12 Jul 2021 11:40:46 GMT
* Compile : Thu, 05 Oct 2023 08:52:36 GMT
* Boucles : _repetitions, _repetition_de, _decompte_oui, _decompte_non, _decompte_nsp, _afficher_contenu
*/
function BOUCLE_repetitionshtml_1fb067d698ad580c0aa04029d221fa9f(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'evenements';
$command['id'] = '_repetitions';
$command['from'] = array('evenements' => 'spip_evenements');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("evenements.date_debut",
"evenements.timezone_affiche",
"evenements.id_evenement",
"evenements.modif_synchro_source",
"evenements.titre");
$command['orderby'] = array('evenements.date_debut');
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
array('=', 'evenements.id_evenement_source', sql_quote($Pile[$SP]['id_evenement'], '', 'bigint(21) NOT NULL')),
array('REGEXP', 'evenements.statut', "'.*'"));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('../plugins/auto/agenda/v4.3.4/prive/objets/contenu/evenement.html','html_1fb067d698ad580c0aa04029d221fa9f','_repetitions',10,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$Numrows['_repetitions']['total'] = @intval($iter->count());
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t1 = (($t1 = strval(interdire_scripts(affdate(date_to_timezone($Pile[$SP]['date_debut'], $Pile[$SP]['timezone_affiche'])))))!=='' ?
(( '<a href="' .
generer_url_entite($Pile[$SP]['id_evenement'],'evenement') .
'">') . $t1 . ( (($t2 = strval(interdire_scripts((($Pile[$SP]['modif_synchro_source']) ?'' :' '))))!=='' ?
($t2 . ( ' ' .
interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0])) .
interdire_scripts(filtre_balise_img_dist(chemin_image('broken-link-event-16.png'))))) :
'') .
'</a>')) :
'');
$t0 .= ((strlen($t1) && strlen($t0)) ? ', ' : '') . $t1;
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_repetitions @ ../plugins/auto/agenda/v4.3.4/prive/objets/contenu/evenement.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_repetition_dehtml_1fb067d698ad580c0aa04029d221fa9f(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'evenements';
$command['id'] = '_repetition_de';
$command['from'] = array('evenements' => 'spip_evenements');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("evenements.date_debut",
"evenements.timezone_affiche",
"evenements.id_evenement",
"evenements.modif_synchro_source",
"evenements.titre");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
array('=', 'evenements.id_evenement', sql_quote($Pile[$SP]['id_evenement_source'], '', 'bigint(21) NOT NULL AUTO_INCREMENT')),
array('REGEXP', 'evenements.statut', "'.*'"));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('../plugins/auto/agenda/v4.3.4/prive/objets/contenu/evenement.html','html_1fb067d698ad580c0aa04029d221fa9f','_repetition_de',16,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= (
'
' .
(($t1 = strval(interdire_scripts(affdate(date_to_timezone($Pile[$SP]['date_debut'], $Pile[$SP]['timezone_affiche'])))))!=='' ?
(( '<a href="' .
generer_url_entite($Pile[$SP]['id_evenement'],'evenement') .
'">' .
(($t2 = strval(interdire_scripts((($Pile[$SP]['modif_synchro_source']) ?'' :' '))))!=='' ?
($t2 . interdire_scripts(filtre_balise_img_dist(chemin_image('broken-link-event-16.png')))) :
'') .
interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0])) .
' - ') . $t1 . '</a>') :
'') .
'
');
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_repetition_de @ ../plugins/auto/agenda/v4.3.4/prive/objets/contenu/evenement.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_decompte_ouihtml_1fb067d698ad580c0aa04029d221fa9f(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'evenements_participants';
$command['id'] = '_decompte_oui';
$command['from'] = array('evenements_participants' => 'spip_evenements_participants');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("count(*)");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
array('=', 'evenements_participants.id_evenement', sql_quote($Pile[$SP]['id_evenement'], '','bigint(21) NOT NULL DEFAULT \'0\'')),
array('=', 'evenements_participants.reponse', "'oui'"));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('../plugins/auto/agenda/v4.3.4/prive/objets/contenu/evenement.html','html_1fb067d698ad580c0aa04029d221fa9f','_decompte_oui',44,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$Numrows['_decompte_oui']['total'] = @intval($iter->count());
$SP++;
// RESULTATS
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_decompte_oui @ ../plugins/auto/agenda/v4.3.4/prive/objets/contenu/evenement.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_decompte_nonhtml_1fb067d698ad580c0aa04029d221fa9f(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'evenements_participants';
$command['id'] = '_decompte_non';
$command['from'] = array('evenements_participants' => 'spip_evenements_participants');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("count(*)");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
array('=', 'evenements_participants.id_evenement', sql_quote($Pile[$SP]['id_evenement'], '','bigint(21) NOT NULL DEFAULT \'0\'')),
array('=', 'evenements_participants.reponse', "'non'"));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('../plugins/auto/agenda/v4.3.4/prive/objets/contenu/evenement.html','html_1fb067d698ad580c0aa04029d221fa9f','_decompte_non',45,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$Numrows['_decompte_non']['total'] = @intval($iter->count());
$SP++;
// RESULTATS
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_decompte_non @ ../plugins/auto/agenda/v4.3.4/prive/objets/contenu/evenement.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_decompte_nsphtml_1fb067d698ad580c0aa04029d221fa9f(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'evenements_participants';
$command['id'] = '_decompte_nsp';
$command['from'] = array('evenements_participants' => 'spip_evenements_participants');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("count(*)");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
array('=', 'evenements_participants.id_evenement', sql_quote($Pile[$SP]['id_evenement'], '','bigint(21) NOT NULL DEFAULT \'0\'')),
array('=', 'evenements_participants.reponse', "'?'"));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('../plugins/auto/agenda/v4.3.4/prive/objets/contenu/evenement.html','html_1fb067d698ad580c0aa04029d221fa9f','_decompte_nsp',46,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$Numrows['_decompte_nsp']['total'] = @intval($iter->count());
$SP++;
// RESULTATS
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_decompte_nsp @ ../plugins/auto/agenda/v4.3.4/prive/objets/contenu/evenement.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_afficher_contenuhtml_1fb067d698ad580c0aa04029d221fa9f(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'evenements';
$command['id'] = '_afficher_contenu';
$command['from'] = array('evenements' => 'spip_evenements');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("evenements.id_evenement",
"evenements.id_evenement_source",
"evenements.titre",
"evenements.date_debut",
"evenements.timezone_affiche",
"evenements.date_fin",
"evenements.horaire",
"evenements.descriptif",
"evenements.lieu",
"evenements.adresse",
"evenements.inscription",
"evenements.places");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
array('=', 'evenements.id_evenement', sql_quote(interdire_scripts(entites_html(table_valeur(@$Pile[0], (string)'id', null),true)), '', 'bigint(21) NOT NULL AUTO_INCREMENT')),
array('REGEXP', 'evenements.statut', "'.*'"));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('../plugins/auto/agenda/v4.3.4/prive/objets/contenu/evenement.html','html_1fb067d698ad580c0aa04029d221fa9f','_afficher_contenu',1,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$l1 = _T('public|spip|ecrire:info_titre');
$l2 = _T('agenda:evenement_date');
$l3 = _T('agenda:repetition_de');
$l4 = _T('agenda:info_timezone_affiche');
$l5 = _T('public|spip|ecrire:info_descriptif');
$l6 = _T('agenda:info_lieu');
$l7 = _T('agenda:evenement_adresse');
$l8 = _T('agenda:info_inscription');
$l9 = _T('agenda:info_reponses_inscriptions');
$l10 = _T('agenda:info_reponse_inscription_oui');
$l11 = _T('agenda:info_reponse_inscription_non');
$l12 = _T('agenda:info_reponse_inscription_nsp');
$l13 = _T('agenda:liste_inscrits');
$l14 = _T('public|spip|ecrire:info_notes');$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= (
'
<div class="champ contenu_titre' .
(($t1 = strval(interdire_scripts((strlen($Pile[$SP]['titre']) ? '':'vide'))))!=='' ?
(' ' . $t1) :
'') .
'">
<div class=\'label\'>' .
$l1 .
'</div>
<div dir=\'' .
lang_dir(@$Pile[0]['lang'], 'ltr','rtl') .
'\' class=\'' .
classe_boucle_crayon('evenements','titre',$Pile[$SP]['id_evenement']).' ' .
'titre\'>' .
interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0])) .
'</div>
</div>
<div class="champ contenu_dates">
<div class=\'label\'>' .
$l2 .
'</div>
<div dir=\'' .
lang_dir(@$Pile[0]['lang'], 'ltr','rtl') .
'\' class=\'dates\'>' .
(($t1 = strval(interdire_scripts(affdate_debut_fin(date_to_timezone($Pile[$SP]['date_debut'], $Pile[$SP]['timezone_affiche']),interdire_scripts(date_to_timezone($Pile[$SP]['date_fin'], $Pile[$SP]['timezone_affiche'])),interdire_scripts($Pile[$SP]['horaire']),'annee'))))!=='' ?
($t1 . (($t2 = strval(interdire_scripts(afftimezone($Pile[$SP]['date_debut'], $Pile[$SP]['timezone_affiche'], interdire_scripts($Pile[$SP]['horaire']) . ' ' . 'abbr'))))!=='' ?
(' ' . $t2) :
'')) :
'') .
'</div>
</div>
' .
(($t1 = BOUCLE_repetitionshtml_1fb067d698ad580c0aa04029d221fa9f($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
(( '
<div class="champ contenu_repetitions info ' .
(!(((defined('_SPIP_VERSION_ID')?constant('_SPIP_VERSION_ID'):'') < '30300')) ?
(' ' . 'msg-alert') :
'') .
' information">
<div class=\'label\'>' .
singulier_ou_pluriel((isset($Numrows['_repetitions']['grand_total'])
? $Numrows['_repetitions']['grand_total'] : $Numrows['_repetitions']['total']),'agenda:une_repetition','agenda:nb_repetitions') .
'</div>
<div dir=\'' .
lang_dir(@$Pile[0]['lang'], 'ltr','rtl') .
'\' class=\'repetitions\'>(') . $t1 . ')</div>
</div>
') :
'') .
'
' .
(($t1 = BOUCLE_repetition_dehtml_1fb067d698ad580c0aa04029d221fa9f($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
(( '
<div class="champ contenu_repetition_de info ' .
(!(((defined('_SPIP_VERSION_ID')?constant('_SPIP_VERSION_ID'):'') < '30300')) ?
(' ' . 'msg-alert') :
'') .
' information">
<div class="label">' .
$l3 .
'</div>
') . $t1 . '
</div>
') :
'') .
'
' .
(($t1 = strval(interdire_scripts((((include_spip('inc/config')?lire_config('agenda/fuseaux_horaires','0',false):'')) ?' ' :''))))!=='' ?
($t1 . ( '
<div class="champ contenu_timezone_affiche' .
(($t2 = strval(interdire_scripts((strlen($Pile[$SP]['timezone_affiche']) ? '':'vide'))))!=='' ?
(' ' . $t2) :
'') .
'">
<div class=\'label\'>' .
$l4 .
'</div>
<div dir=\'' .
lang_dir(@$Pile[0]['lang'], 'ltr','rtl') .
'\' class=\'timezone_affiche\'>' .
interdire_scripts($Pile[$SP]['timezone_affiche']) .
'</div>
</div>')) :
'') .
'
<div class="champ contenu_descriptif' .
(($t1 = strval(interdire_scripts((strlen($Pile[$SP]['descriptif']) ? '':'vide'))))!=='' ?
(' ' . $t1) :
'') .
'">
<div class=\'label\'>' .
$l5 .
'</div>
<div dir=\'' .
lang_dir(@$Pile[0]['lang'], 'ltr','rtl') .
'\' class=\'' .
classe_boucle_crayon('evenements','descriptif',$Pile[$SP]['id_evenement']).' ' .
'descriptif\'>' .
interdire_scripts(filtrer('image_graver',filtrer('image_reduire',propre($Pile[$SP]['descriptif'], $connect, $Pile[0]),'500','0'))) .
'</div>
</div>
<div class="champ contenu_lieu' .
(($t1 = strval(interdire_scripts((strlen($Pile[$SP]['lieu']) ? '':'vide'))))!=='' ?
(' ' . $t1) :
'') .
'">
<div class=\'label\'>' .
$l6 .
'</div>
<div dir=\'' .
lang_dir(@$Pile[0]['lang'], 'ltr','rtl') .
'\' class=\'' .
classe_boucle_crayon('evenements','lieu',$Pile[$SP]['id_evenement']).' ' .
'lieu\'>' .
interdire_scripts(filtrer('image_graver',filtrer('image_reduire',expanser_liens(typo($Pile[$SP]['lieu'], "TYPO", $connect, $Pile[0])),'500','0'))) .
'</div>
</div>
<div class="champ contenu_adresse' .
(($t1 = strval(interdire_scripts((strlen($Pile[$SP]['adresse']) ? '':'vide'))))!=='' ?
(' ' . $t1) :
'') .
'">
<div class=\'label\'>' .
$l7 .
'</div>
<div dir=\'' .
lang_dir(@$Pile[0]['lang'], 'ltr','rtl') .
'\' class=\'' .
classe_boucle_crayon('evenements','adresse',$Pile[$SP]['id_evenement']).' ' .
'adresse\'>' .
interdire_scripts(filtrer('image_graver',filtrer('image_reduire',propre($Pile[$SP]['adresse'], $connect, $Pile[0]),'500','0'))) .
'</div>
</div>
<div class="champ contenu_places' .
(($t1 = strval(interdire_scripts(($Pile[$SP]['inscription'] ? '':'vide'))))!=='' ?
(' ' . $t1) :
'') .
'">
<div class=\'label\'>' .
$l8 .
'</div>
' .
BOUCLE_decompte_ouihtml_1fb067d698ad580c0aa04029d221fa9f($Cache, $Pile, $doublons, $Numrows, $SP)
. vide($Pile['vars'][$_zzz=(string)'rep_oui'] = $Numrows['_decompte_oui']['total']) .
'
' .
BOUCLE_decompte_nonhtml_1fb067d698ad580c0aa04029d221fa9f($Cache, $Pile, $doublons, $Numrows, $SP)
. vide($Pile['vars'][$_zzz=(string)'rep_non'] = $Numrows['_decompte_non']['total']) .
'
' .
BOUCLE_decompte_nsphtml_1fb067d698ad580c0aa04029d221fa9f($Cache, $Pile, $doublons, $Numrows, $SP)
. vide($Pile['vars'][$_zzz=(string)'rep_nsp'] = $Numrows['_decompte_nsp']['total']) .
'
' .
(($t1 = strval(interdire_scripts(singulier_ou_pluriel($Pile[$SP]['places'],'agenda:info_1_place','agenda:info_nb_places'))))!=='' ?
(( '<div dir=\'' .
lang_dir(@$Pile[0]['lang'], 'ltr','rtl') .
'\' class=\'' .
classe_boucle_crayon('evenements','places',$Pile[$SP]['id_evenement']).' ' .
'places\'>') . $t1 . ( '
<span class="reponses">(' .
$l9 .
'
' .
(($t2 = strval(table_valeur($Pile["vars"], (string)'rep_oui', null)))!=='' ?
($t2 . ' ') :
'') .
$l10 .
' |
' .
(($t2 = strval(table_valeur($Pile["vars"], (string)'rep_non', null)))!=='' ?
($t2 . ' ') :
'') .
$l11 .
' |
' .
(($t2 = strval(table_valeur($Pile["vars"], (string)'rep_nsp', null)))!=='' ?
($t2 . ' ') :
'') .
$l12 .
')
</span>
</div>')) :
'') .
'
<div><a href="' .
parametre_url(generer_url_ecrire('agenda_inscriptions'),'id_evenement',$Pile[$SP]['id_evenement']) .
'">' .
$l13 .
'</a></div>
</div>
' .
(($t1 = strval(interdire_scripts(calculer_notes())))!=='' ?
(( '<div class="champ contenu_notes">
<div class=\'label\'>' .
$l14 .
'</div>
<div dir=\'' .
lang_dir(@$Pile[0]['lang'], 'ltr','rtl') .
'\' class=\'' .
classe_boucle_crayon('evenements','notes',$Pile[$SP]['id_evenement']).' ' .
'notes\'>') . $t1 . '</div>
</div>
') :
''));
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_afficher_contenu @ ../plugins/auto/agenda/v4.3.4/prive/objets/contenu/evenement.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
//
// Fonction principale du squelette ../plugins/auto/agenda/v4.3.4/prive/objets/contenu/evenement.html
// Temps de compilation total: 9.104 ms
//
function html_1fb067d698ad580c0aa04029d221fa9f($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_afficher_contenuhtml_1fb067d698ad580c0aa04029d221fa9f($Cache, $Pile, $doublons, $Numrows, $SP) .
'
');
return analyse_resultat_skel('html_1fb067d698ad580c0aa04029d221fa9f', $Cache, $page, '../plugins/auto/agenda/v4.3.4/prive/objets/contenu/evenement.html');
}
?>