File "html_9fbce95ccbfae5b31d5e8a26df7da3db.php"

Full path: /home/argothem/www/SpipFactory-fichiers_de_travail/sauvegarde-depannage-1.9a3.2/1.9/CACHE/skel/html_9fbce95ccbfae5b31d5e8a26df7da3db.php
File size: 4.37 KB
MIME-type: text/x-php
Charset: utf-8

<?php
/*
 * Squelette : dist/inc-petition.html
 * Date :      Sat, 03 Jun 2006 07:30:48 GMT
 * Compile :   Sun, 08 Mar 2020 17:08:47 GMT (0.01s)
 * Boucles :   _signatures
 */ 
//
// <BOUCLE signatures>
//
function BOUCLE_signatureshtml_9fbce95ccbfae5b31d5e8a26df7da3db(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	// REQUETE
	$result = spip_optim_select(
		array("signatures.date_time AS date",
		"signatures.nom_email AS nom",
		"signatures.url_site",
		"signatures.nom_site",
		"signatures.message"), # SELECT
		array('signatures' => 'spip_signatures'), # FROM
		
			array(
			array('=', 'signatures.id_article', spip_abstract_quote($Pile[$SP]['id_article'])), 
			array('=', 'signatures.statut', '"publie"')), # WHERE
		array(), # WHERE pour jointure
		'', # GROUP
		array('signatures.date_time' . ' DESC'), # ORDER
		'', # LIMIT
		'', # sous
		
			array(), # HAVING
		'signatures', # table
		'_signatures', # boucle
		''); # serveur

	// Partition
	$nombre_boucle = @spip_abstract_count($result,"");
	$debut_boucle = intval(_request("debut_signatures"));
	$fin_boucle = min($debut_boucle+(($a = intval('15')) ? $a : 10) - 1, $nombre_boucle - 1);
	$Numrows['_signatures']["grand_total"] = $nombre_boucle;
	$Numrows['_signatures']["total"] = max(0,$fin_boucle - $debut_boucle + 1);
	$Numrows['_signatures']['compteur_boucle'] = 0;
	$t0 = "";
	$SP++;

	// RESULTATS
	while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {

		$Numrows['_signatures']['compteur_boucle']++;
		if ($Numrows['_signatures']['compteur_boucle']-1 >= $debut_boucle) {
		if ($Numrows['_signatures']['compteur_boucle']-1 > $fin_boucle) break;

		$t0 .= ('
		<tr>
		<td class="signature-date">' .
affdate(vider_date($Pile[$SP]['date'])) .
'</td>
		<td class="signature-nom">' .
interdire_scripts(safehtml(typo($Pile[$SP]['nom']))) .
((strval($t1 = interdire_scripts(safehtml(calculer_url($Pile[$SP]['url_site']))))!='') ?
		('<br /><a href="' . $t1 . ('" class="spip_out"><small>' .
	((strval($t2 = interdire_scripts(sinon(safehtml(construire_titre_lien($Pile[$SP]['nom_site'],$Pile[$SP]['url_site'])),interdire_scripts(couper(safehtml(calculer_url($Pile[$SP]['url_site'])),'80')))))!='') ?
			($t2 . '</small>') :
			('')) .
	'</a>')) :
		('')) .
'</td>
		' .
((strval($t1 = interdire_scripts(PtoBR(safehtml(propre($Pile[$SP]['message'])))))!='') ?
		('<td class="signature-message">' . $t1 . '</td>') :
		('')) .
'
		</tr>
');
		}

	}

	@spip_abstract_free($result,'');
	return $t0;
}



//
// Fonction principale du squelette dist/inc-petition.html
//
function html_9fbce95ccbfae5b31d5e8a26df7da3db($Cache, $Pile, $doublons=array(), $Numrows=array(), $SP=0) {
	$page = ('
' .
executer_balise_dynamique('FORMULAIRE_SIGNATURE',
	array($Pile[0]['id_article'],sql_petitions($Pile[0]['id_article'],'','','', $Cache)),
	array(''), $GLOBALS['spip_lang'],2) .
'

' .
'
' .

(($f = (((strval($t1 = BOUCLE_signatureshtml_9fbce95ccbfae5b31d5e8a26df7da3db($Cache, $Pile, $doublons, $Numrows, $SP))!='') ?
		(('
<div id="signatures">

	' .
		calcul_pagination(
	(isset($Numrows['_signatures']['grand_total']) ?
		$Numrows['_signatures']['grand_total'] : $Numrows['_signatures']['total']
	), '_signatures', (($a = intval('15')) ? $a : 10), false ) .
		'

	<table summary="' .
		_T('public/spip/ecrire:signatures_petition') .
		'">
	<caption><h2>' .
		(isset($Numrows['_signatures']['grand_total'])
			? $Numrows['_signatures']['grand_total'] : $Numrows['_signatures']['total']) .
		' ' .
		_T('public/spip/ecrire:signatures_petition') .
		'</h2></caption>
	<thead>
		<tr>
		<th scope="col">' .
		_T('public/spip/ecrire:date') .
		'</th>
		<th scope="col">' .
		_T('public/spip/ecrire:nom') .
		'</th>
		<th scope="col">' .
		_T('public/spip/ecrire:message') .
		'</th>
		</tr>
	</thead>
	<tbody>
') . $t1 . ('
	</tbody>
	</table>

	' .
		((strval($t3 = calcul_pagination(
	(isset($Numrows['_signatures']['grand_total']) ?
		$Numrows['_signatures']['grand_total'] : $Numrows['_signatures']['total']
	), '_signatures', (($a = intval('15')) ? $a : 10), true ))!='') ?
				('<p class="pagination">' . $t3 . '</p>') :
				('')) .
		'

</div>
')) :
		(''))))?
				'<div id="fragment_html_9fbce95ccbfae5b31d5e8a26df7da3db_signatures" class="fragment">'.$f.'<!-- /fragment_html_9fbce95ccbfae5b31d5e8a26df7da3db_signatures --></div><?php stop_inclure("fragment_html_9fbce95ccbfae5b31d5e8a26df7da3db_signatures"); ?>':'')
);

	return analyse_resultat_skel('html_9fbce95ccbfae5b31d5e8a26df7da3db', $Cache, $page);
}

?>