| Current Path : /home/etiennec/www/oldsite/tmp/cache/skel/ |
| Current File : /home/etiennec/www/oldsite/tmp/cache/skel/html_830a0b0b67fd6ac6c413ed0158f30f37.php |
<?php
/*
* Squelette : ../plugins/auto/agenda_2_0/formulaires/inc-mots_evenements.html
* Date : Tue, 27 Jul 2010 09:37:20 GMT
* Compile : Sat, 20 Dec 2014 21:11:21 GMT
* Boucles : _mots
*/
/* BOUCLE mots */
function BOUCLE_motshtml_830a0b0b67fd6ac6c413ed0158f30f37(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $connect = '';
$in = array();
if (!(is_array($a = (interdire_scripts(entites_html(sinon(@$Pile[0]['selected'],'0'),true))))))
$in[]= $a;
else $in = array_merge($in, $a);
static $table = 'mots';
static $id = '_mots';
static $from = array('mots' => 'spip_mots');
static $type = array();
static $groupby = array();
static $select = array("mots.id_mot",
"mots.titre");
$orderby = array(((!sql_quote($in) OR sql_quote($in)==="''") ? 0 : ('FIELD(mots.id_mot,' . sql_quote($in) . ')')));
$where =
array(sql_in('mots.id_mot',sql_quote($in)));
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/agenda_2_0/formulaires/inc-mots_evenements.html','html_830a0b0b67fd6ac6c413ed0158f30f37','_mots',2,$GLOBALS['spip_lang']));
if ($result) {
$SP++;
// RESULTATS
while ($Pile[$SP] = @sql_fetch($result)) {
$t0 .= (
'
<li><input type="hidden" name=\'' .
interdire_scripts(entites_html((@$Pile[0]['name']),true)) .
'[]\' value="' .
$Pile[$SP]['id_mot'] .
'"
/>' .
interdire_scripts(typo(supprimer_numero($Pile[$SP]['titre']),"TYPO",$connect)) .
' <a href=\'#\'
onclick=\'mot_sel_remove(this);return false;\'><img src=\'' .
interdire_scripts(find_in_path('images/croix-rouge.gif')) .
'\' /></a><em>, </em></li>
');
}
@sql_free($result);
}
return $t0;
}
//
// Fonction principale du squelette ../plugins/auto/agenda_2_0/formulaires/inc-mots_evenements.html
// Temps de compilation total: 3.165 ms
//
function html_830a0b0b67fd6ac6c413ed0158f30f37($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_motshtml_830a0b0b67fd6ac6c413ed0158f30f37($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
('<ul id=\'mots_sel\'>' . $t1 . '</ul>
') :
(vide($Pile['vars']['pasdemots'] = '1'))) .
(($t1 = strval(recuperer_fond( 'formulaires/inc-navigateur-mots_evenements' , array('name' => @$Pile[0]['name'] ), array('ajax'=>true,'compil'=>array('../plugins/auto/agenda_2_0/formulaires/inc-mots_evenements.html','html_830a0b0b67fd6ac6c413ed0158f30f37','',0,$GLOBALS['spip_lang'])), '')))!=='' ?
(( '
' .
(((is_array($a = ($Pile["vars"])) ? $a['pasdemots'] : "")) ?
(' ' . ( '<a href=\'#\' onclick="$(this).hide().next().show();return false;">' .
_T('agenda:ajouter_mots_cles') .
'</a><div style=\'display:none;\'>')) :
'') .
'
') . $t1 . ( '
<script type=\'text/javascript\'>var img_fermer = \'' .
interdire_scripts(find_in_path('images/croix-rouge.gif')) .
'\';</script>
<script type=\'text/javascript\' src=\'' .
interdire_scripts(find_in_path('javascript/mots_evenements.js')) .
'\'></script>
' .
(((is_array($a = ($Pile["vars"])) ? $a['pasdemots'] : "")) ?
(' ' . '</div>') :
''))) :
'') .
'
');
return analyse_resultat_skel('html_830a0b0b67fd6ac6c413ed0158f30f37', $Cache, $page, '../plugins/auto/agenda_2_0/formulaires/inc-mots_evenements.html');
}
?>