Your IP : 216.73.216.251


Current Path : /home/atelierpru/provence/tmp/cache/skel/
Upload File :
Current File : /home/atelierpru/provence/tmp/cache/skel/html_5c6fe88bde9c46a5a8de3bcec6751fd8.php

<?php

/*
 * Squelette : ../plugins/auto/formidable/v3.38.10/prive/squelettes/contenu/formulaires_analyse.html
 * Date :      Fri, 03 Nov 2017 14:17:52 GMT
 * Compile :   Fri, 18 Oct 2019 09:54:06 GMT
 * Boucles :   _reponses, _autoriser, _formulaire
 */ 

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

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	if (!isset($command['table'])) {
		$command['table'] = 'formulaires_reponses';
		$command['id'] = '_reponses';
		$command['from'] = array('formulaires_reponses' => 'spip_formulaires_reponses');
		$command['type'] = array();
		$command['groupby'] = array();
		$command['select'] = array("count(*)");
		$command['orderby'] = array();
		$command['join'] = array();
		$command['limit'] = '';
		$command['having'] = 
			array();
	}
	$command['where'] = 
			array(
quete_condition_statut('formulaires_reponses.statut','publie,prop','publie',''), 
			array('=', 'formulaires_reponses.id_formulaire', sql_quote($Pile[$SP-1]['id_formulaire'], '','bigint(21) NOT NULL DEFAULT \'0\'')));
	if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
	$t0 = "";
	// REQUETE
	$iter = IterFactory::create(
		"SQL",
		$command,
		array('../plugins/auto/formidable/v3.38.10/prive/squelettes/contenu/formulaires_analyse.html','html_5c6fe88bde9c46a5a8de3bcec6751fd8','_reponses',10,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	$Numrows['_reponses']['total'] = @intval($iter->count());
	$SP++;
	// RESULTATS
	
	$t0 = str_repeat('
	', $Numrows['_reponses']['total']);
	$iter->free();
	}
	if (defined("_BOUCLE_PROFILER")
	AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
		spip_log(intval(1000*$timer)."ms BOUCLE_reponses @ ../plugins/auto/formidable/v3.38.10/prive/squelettes/contenu/formulaires_analyse.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}


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

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	if (!isset($si_init)) { $command['si'] = array(); $si_init = true; }
	$command['si'][] = invalideur_session($Cache, ((function_exists("autoriser")||include_spip("inc/autoriser"))&&autoriser('voir', 'formulairesreponse', invalideur_session($Cache, $Pile[$SP]['id_formulaire']))?" ":""));

	if (!isset($command['table'])) {
		$command['table'] = '';
		$command['id'] = '_autoriser';
		$command['from'] = array();
		$command['type'] = array();
		$command['groupby'] = array();
		$command['select'] = array("1");
		$command['orderby'] = array();
		$command['where'] = 
			array();
		$command['join'] = array();
		$command['limit'] = '';
		$command['having'] = 
			array();
	}
	if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
	$t0 = "";
	// REQUETE
	$iter = IterFactory::create(
		"CONDITION",
		$command,
		array('../plugins/auto/formidable/v3.38.10/prive/squelettes/contenu/formulaires_analyse.html','html_5c6fe88bde9c46a5a8de3bcec6751fd8','_autoriser',2,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	
	$l1 = _T('public|spip|ecrire:retour');
	$l2 = _T('public|spip|ecrire:info_sans_titre');
	$l3 = _T('formidable:reponses_analyse');
	$l4 = _T('formidable:analyse_zero_reponse_total');$SP++;
	// RESULTATS
	while ($Pile[$SP]=$iter->fetch()) {

		$t0 .= (
'
' .
boite_ouvrir('', 'simple') .
'
        ' .
filtre_icone_verticale_dist(parametre_url(generer_url_ecrire('formulaire'),'id_formulaire',$Pile[$SP-1]['id_formulaire']),$l1,'formulaire','formulaire-24','left') .
'

	' .
(($t1 = strval(interdire_scripts(((($a = supprimer_numero(typo($Pile[$SP-1]['titre']), "TYPO", $connect, $Pile[0])) OR (is_string($a) AND strlen($a))) ? $a : $l2))))!=='' ?
		((	'<h4>' .
	$l3 .
	'</h4>
	<h1>') . $t1 . '</h1>') :
		'') .
'

	' .
boite_ouvrir('', 'simple') .
'	
	' .
(($t1 = BOUCLE_reponseshtml_5c6fe88bde9c46a5a8de3bcec6751fd8($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
		($t1 . (	'
	<strong>' .
		singulier_ou_pluriel($Numrows['_reponses']['total'],'formidable:analyse_une_reponse_total','formidable:analyse_nb_reponses_total') .
		'</strong>
	')) :
		((	'
	<strong>' .
	$l4 .
	'</strong>
	'))) .
'
	' .
boite_fermer() .
'
' .
boite_fermer() .
'

' .
boite_ouvrir('', 'simple') .
'
' .
recuperer_fond( 'modeles/formulaire_analyse' , array('id_formulaire' => $Pile[$SP-1]['id_formulaire'] ), array('compil'=>array('../plugins/auto/formidable/v3.38.10/prive/squelettes/contenu/formulaires_analyse.html','html_5c6fe88bde9c46a5a8de3bcec6751fd8','_autoriser',21,$GLOBALS['spip_lang'])), _request('connect')) .
boite_fermer() .
'
');
	}
	$iter->free();
	}
	if (defined("_BOUCLE_PROFILER")
	AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
		spip_log(intval(1000*$timer)."ms BOUCLE_autoriser @ ../plugins/auto/formidable/v3.38.10/prive/squelettes/contenu/formulaires_analyse.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}


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

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	if (!isset($command['table'])) {
		$command['table'] = 'formulaires';
		$command['id'] = '_formulaire';
		$command['from'] = array('formulaires' => 'spip_formulaires');
		$command['type'] = array();
		$command['groupby'] = array();
		$command['select'] = array("formulaires.id_formulaire",
		"formulaires.titre");
		$command['orderby'] = array();
		$command['join'] = array();
		$command['limit'] = '';
		$command['having'] = 
			array();
	}
	$command['where'] = 
			array(
			array('=', 'formulaires.id_formulaire', sql_quote(@$Pile[0]['id_formulaire'], '','bigint(21) NOT NULL AUTO_INCREMENT')));
	if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
	$t0 = "";
	// REQUETE
	$iter = IterFactory::create(
		"SQL",
		$command,
		array('../plugins/auto/formidable/v3.38.10/prive/squelettes/contenu/formulaires_analyse.html','html_5c6fe88bde9c46a5a8de3bcec6751fd8','_formulaire',1,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP]=$iter->fetch()) {

		$t0 .= (
'
' .
BOUCLE_autoriserhtml_5c6fe88bde9c46a5a8de3bcec6751fd8($Cache, $Pile, $doublons, $Numrows, $SP) .
'
');
	}
	$iter->free();
	}
	if (defined("_BOUCLE_PROFILER")
	AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
		spip_log(intval(1000*$timer)."ms BOUCLE_formulaire @ ../plugins/auto/formidable/v3.38.10/prive/squelettes/contenu/formulaires_analyse.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}

//
// Fonction principale du squelette ../plugins/auto/formidable/v3.38.10/prive/squelettes/contenu/formulaires_analyse.html
// Temps de compilation total: 1.479 ms
//

function html_5c6fe88bde9c46a5a8de3bcec6751fd8($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_formulairehtml_5c6fe88bde9c46a5a8de3bcec6751fd8($Cache, $Pile, $doublons, $Numrows, $SP) .
'
');

	return analyse_resultat_skel('html_5c6fe88bde9c46a5a8de3bcec6751fd8', $Cache, $page, '../plugins/auto/formidable/v3.38.10/prive/squelettes/contenu/formulaires_analyse.html');
}
?>