Your IP : 216.73.216.249


Current Path : /home/etiennec/www/oldsite/tmp/cache/skel/
Upload File :
Current File : /home/etiennec/www/oldsite/tmp/cache/skel/html_a3cf1016419cf3ce33bb0603ecde2b85.php

<?php

/*
 * Squelette : ../plugins/auto/menus/formulaires/inc-menus_entrees.html
 * Date :      Tue, 27 Jul 2010 09:37:36 GMT
 * Compile :   Sun, 01 Sep 2013 10:46:21 GMT
 * Boucles :   _sous_menu_test, _test_modifier, _sous_menu, _entrees, _pas_demande_entree
 */ 

/* BOUCLE menus  */

 function BOUCLE_sous_menu_testhtml_a3cf1016419cf3ce33bb0603ecde2b85(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	static $connect = '';
	static $table = 'menus';
	static $id = '_sous_menu_test';
	static $from = array('menus' => 'spip_menus');
	static $type = array();
	static $groupby = array();
	static $select = array("1");
	static $orderby = array();
	$where = 
			array(
			array('=', 'menus.id_menus_entree', sql_quote($Pile[$SP-1]['id_menus_entree'],'','int')));
	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/formulaires/inc-menus_entrees.html','html_a3cf1016419cf3ce33bb0603ecde2b85','_sous_menu_test',12,$GLOBALS['spip_lang']));
	if ($result) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP] = @sql_fetch($result)) {

		$t0 .= (
'
				
				');
	}
	@sql_free($result);
	}
	return $t0;
}



/* BOUCLE CONDITION  */

 function BOUCLE_test_modifierhtml_a3cf1016419cf3ce33bb0603ecde2b85(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	static $connect = 'condition';
	static $table = 'CONDITION';
	static $id = '_test_modifier';
	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((((table_valeur(entites_html((@$Pile[0]['erreurs']),true),'id_menus_entree') == $Pile[$SP]['id_menus_entree'])) ?'' :' ')))?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/formulaires/inc-menus_entrees.html','html_a3cf1016419cf3ce33bb0603ecde2b85','_test_modifier',5,$GLOBALS['spip_lang']));
	if ($result) {
	
	$l1 = _T('menus:formulaire_ajouter_sous_menu');
	$l2 = _T('menus:formulaire_modifier_entree');
	$l3 = _T('menus:formulaire_supprimer_entree');
	$l4 = _T('menus:formulaire_deplacer_bas');
	$l5 = _T('menus:formulaire_deplacer_haut');$SP++;
	// RESULTATS
	while ($Pile[$SP] = @sql_fetch($result, 'condition')) {

		$t0 .= (
'
		<div class="ligne">
			<div class="description arial2">
				' .
interdire_scripts((!$Pile[$SP-1]['id_menus_entree']) ? _T('zbug_champ_hors_motif', array('champ'=>'AFFICHER_ENTREE', 'motif'=>'MENUS_ENTREES')) : recuperer_fond(
		'menus/'.$Pile[$SP-1]['type_entree'],
		array_merge(unserialize($Pile[$SP-1]['parametres']), array('appel_formulaire'=>true, env=>$Pile[0]))
	)) .
'</div>
			<div class="actions">
				
				' .
(($t1 = BOUCLE_sous_menu_testhtml_a3cf1016419cf3ce33bb0603ecde2b85($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
		$t1 :
		((	'
				' .
	(($t2 = strval(interdire_scripts(((table_valeur(table_valeur(entites_html((@$Pile[0]['types_entrees']),true),interdire_scripts($Pile[$SP-1]['type_entree'])),'refuser_sous_menu')) ?'' :' '))))!=='' ?
			($t2 . (	'
				<button name="demander_sous_menu" value="' .
		$Pile[$SP-1]['id_menus_entree'] .
		'" title="' .
		$l1 .
		'">
					' .
		(($t3 = strval(interdire_scripts(find_in_path('images/menus-24.png'))))!=='' ?
				('<img height="24" width="24" src="' . $t3 . '" alt="" />') :
				'') .
		'
				</button>
				')) :
			'') .
	'
				'))) .
'
				<button name="modifier_entree" value="' .
$Pile[$SP-1]['id_menus_entree'] .
'" title="' .
$l2 .
'">
					' .
(($t1 = strval(interdire_scripts(find_in_path('images/menus_action_modifier.png'))))!=='' ?
		('<img height="24" width="24" src="' . $t1 . '" alt="" />') :
		'') .
'
				</button>
				<button name="supprimer_entree" value="' .
$Pile[$SP-1]['id_menus_entree'] .
'" title="' .
$l3 .
'">
					' .
(($t1 = strval(interdire_scripts(find_in_path('images/menus_action_supprimer.png'))))!=='' ?
		('<img height="24" width="24" src="' . $t1 . '" alt="" />') :
		'') .
'
				</button>
				<button name="deplacer_entree" value="' .
$Pile[$SP-1]['id_menus_entree'] .
'-bas" title="' .
$l4 .
'">
					' .
(($t1 = strval(interdire_scripts(find_in_path('images/menus_action_bas.png'))))!=='' ?
		('<img height="24" width="24" src="' . $t1 . '" alt="" />') :
		'') .
'
				</button>
				<button name="deplacer_entree" value="' .
$Pile[$SP-1]['id_menus_entree'] .
'-haut" title="' .
$l5 .
'">
					' .
(($t1 = strval(interdire_scripts(find_in_path('images/menus_action_haut.png'))))!=='' ?
		('<img height="24" width="24" src="' . $t1 . '" alt="" />') :
		'') .
'
				</button>
			</div>
			<div class="nettoyeur"></div>
		</div>
		');
	}
	@sql_free($result, 'condition');
	}
	return $t0;
}



/* BOUCLE menus  */

 function BOUCLE_sous_menuhtml_a3cf1016419cf3ce33bb0603ecde2b85(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	static $connect = '';
	static $table = 'menus';
	static $id = '_sous_menu';
	static $from = array('menus' => 'spip_menus');
	static $type = array();
	static $groupby = array();
	static $select = array("menus.id_menu");
	static $orderby = array();
	$where = 
			array(
			array('=', 'menus.id_menus_entree', sql_quote($Pile[$SP]['id_menus_entree'],'','int')));
	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/formulaires/inc-menus_entrees.html','html_a3cf1016419cf3ce33bb0603ecde2b85','_sous_menu',41,$GLOBALS['spip_lang']));
	if ($result) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP] = @sql_fetch($result)) {

		$t0 .= (
'
			' .
recuperer_fond( 'formulaires/inc-menus_entrees' , array_merge($Pile[0],array('id_menu' => $Pile[$SP]['id_menu'] ,
	'sous_menu' => 'oui' )), array('compil'=>array('../plugins/auto/menus/formulaires/inc-menus_entrees.html','html_a3cf1016419cf3ce33bb0603ecde2b85','_sous_menu',42,$GLOBALS['spip_lang'])), ''));
	}
	@sql_free($result);
	}
	return $t0;
}



/* BOUCLE menus_entrees  */

 function BOUCLE_entreeshtml_a3cf1016419cf3ce33bb0603ecde2b85(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	static $connect = '';
	static $table = 'menus_entrees';
	static $id = '_entrees';
	static $from = array('menus_entrees' => 'spip_menus_entrees');
	static $type = array();
	static $groupby = array();
	static $select = array("menus_entrees.id_menus_entree",
		"menus_entrees.type_entree",
		"menus_entrees.parametres",
		"menus_entrees.rang");
	static $orderby = array('menus_entrees.rang');
	$where = 
			array(
			array('=', 'menus_entrees.id_menu', sql_quote($Pile[0]['id_menu'],'','int')));
	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/formulaires/inc-menus_entrees.html','html_a3cf1016419cf3ce33bb0603ecde2b85','_entrees',3,$GLOBALS['spip_lang']));
	if ($result) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP] = @sql_fetch($result)) {

		$t0 .= (
'
	<li class="entree"' .
(($t1 = strval(interdire_scripts(extraire_attribut(filtrer('image_graver', filtrer('image_reduire',table_valeur(table_valeur(entites_html((@$Pile[0]['types_entrees']),true),interdire_scripts($Pile[$SP]['type_entree'])),'icone'),'24')),'src'))))!=='' ?
		(' style="background-repeat:no-repeat;background-position:5px 10px;background-image:url(' . $t1 . ')"') :
		'') .
'>
		' .
(($t1 = BOUCLE_test_modifierhtml_a3cf1016419cf3ce33bb0603ecde2b85($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
		$t1 :
		((	'
		' .
	recuperer_fond( 'formulaires/inc-nouvelle_entree-2' , array_merge($Pile[0],array('id_menus_entree' => $Pile[$SP]['id_menus_entree'] )), array('compil'=>array('../plugins/auto/menus/formulaires/inc-menus_entrees.html','html_a3cf1016419cf3ce33bb0603ecde2b85','_entrees',37,$GLOBALS['spip_lang'])), '')))) .
'

		
		' .
BOUCLE_sous_menuhtml_a3cf1016419cf3ce33bb0603ecde2b85($Cache, $Pile, $doublons, $Numrows, $SP) .
'
	</li>
	' .
vide($Pile['vars']['rang_suivant'] = plus((($Pile[$SP]['rang'])?($Pile[$SP]['rang']):recuperer_numero(@$Pile[0]['titre'])),'1')));
	}
	@sql_free($result);
	}
	return $t0;
}



/* BOUCLE CONDITION  */

 function BOUCLE_pas_demande_entreehtml_a3cf1016419cf3ce33bb0603ecde2b85(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	static $connect = 'condition';
	static $table = 'CONDITION';
	static $id = '_pas_demande_entree';
	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=((((is_array($a = ($Pile["vars"])) ? $a['id_menu_nouvelle_entree'] : "") == interdire_scripts(entites_html((@$Pile[0]['id_menu']),true)))) ?'' :' '))?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/formulaires/inc-menus_entrees.html','html_a3cf1016419cf3ce33bb0603ecde2b85','_pas_demande_entree',51,$GLOBALS['spip_lang']));
	if ($result) {
	
	$l1 = _T('menus:formulaire_supprimer_sous_menu');
	$l2 = _T('menus:formulaire_ajouter_entree');$SP++;
	// RESULTATS
	while ($Pile[$SP] = @sql_fetch($result, 'condition')) {

		$t0 .= (
'
			<div class="boutons">
			' .
(($t1 = strval(interdire_scripts(((entites_html((@$Pile[0]['sous_menu']),true)) ?'' :' '))))!=='' ?
		($t1 . '<span class="image_loading"></span>') :
		'') .
'
			' .
(($t1 = strval(interdire_scripts((entites_html((@$Pile[0]['sous_menu']),true) ? $l1:''))))!=='' ?
		((	'<button type="submit" class="submit link" name="supprimer_menu" value="' .
	interdire_scripts(entites_html((@$Pile[0]['id_menu']),true)) .
	'">
				' .
	(($t2 = strval(interdire_scripts(find_in_path('images/menus_action_supprimer.png'))))!=='' ?
			('<img src="' . $t2 . '" alt="" />') :
			'') .
	'
				') . $t1 . '
			</button>') :
		'') .
'
			<button type="submit" class="submit" name="demander_nouvelle_entree" value="' .
interdire_scripts(entites_html((@$Pile[0]['id_menu']),true)) .
'">
				' .
(($t1 = strval(interdire_scripts(find_in_path('images/menus_action_ajouter.png'))))!=='' ?
		('<img src="' . $t1 . '" alt="" />') :
		'') .
'
				' .
$l2 .
'
			</button>
			</div>
		');
	}
	@sql_free($result, 'condition');
	}
	return $t0;
}


//
// Fonction principale du squelette ../plugins/auto/menus/formulaires/inc-menus_entrees.html
// Temps de compilation total: 59.401 ms
//

function html_a3cf1016419cf3ce33bb0603ecde2b85($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']['rang_suivant'] = '1') .
'<ul id="menu-' .
interdire_scripts(entites_html((@$Pile[0]['id_menu']),true)) .
'" class="menus_entrees">
	' .
BOUCLE_entreeshtml_a3cf1016419cf3ce33bb0603ecde2b85($Cache, $Pile, $doublons, $Numrows, $SP) .
'
	<li class="editer_entree fieldset">
		' .
vide($Pile['vars']['id_menu_nouvelle_entree'] = interdire_scripts(table_valeur(entites_html((@$Pile[0]['erreurs']),true),'id_menu_nouvelle_entree'))) .
vide($Pile['vars']['type_entree'] = interdire_scripts(table_valeur(entites_html((@$Pile[0]['erreurs']),true),'type_entree'))) .
(($t1 = BOUCLE_pas_demande_entreehtml_a3cf1016419cf3ce33bb0603ecde2b85($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
		$t1 :
		((	'
			' .
	(!((is_array($a = ($Pile["vars"])) ? $a['type_entree'] : ""))  ?
			(' ' . (	'
				' .
		recuperer_fond( 'formulaires/inc-nouvelle_entree-1' , array_merge($Pile[0],array('id_menu_nouvelle_entree' => (is_array($a = ($Pile["vars"])) ? $a['id_menu_nouvelle_entree'] : "") )), array('compil'=>array('../plugins/auto/menus/formulaires/inc-menus_entrees.html','html_a3cf1016419cf3ce33bb0603ecde2b85','',65,$GLOBALS['spip_lang'])), ''))) :
			'') .
	'
			' .
	(((is_array($a = ($Pile["vars"])) ? $a['type_entree'] : ""))  ?
			(' ' . (	'
				' .
		recuperer_fond( 'formulaires/inc-nouvelle_entree-2' , array_merge($Pile[0],array('id_menu_nouvelle_entree' => (is_array($a = ($Pile["vars"])) ? $a['id_menu_nouvelle_entree'] : "") ,
	'rang_suivant' => (is_array($a = ($Pile["vars"])) ? $a['rang_suivant'] : "") )), array('compil'=>array('../plugins/auto/menus/formulaires/inc-menus_entrees.html','html_a3cf1016419cf3ce33bb0603ecde2b85','',66,$GLOBALS['spip_lang'])), ''))) :
			'') .
	'
		'))) .
'
	</li>
</ul>
');

	return analyse_resultat_skel('html_a3cf1016419cf3ce33bb0603ecde2b85', $Cache, $page, '../plugins/auto/menus/formulaires/inc-menus_entrees.html');
}
?>