File "html_deeba53d4c5ddb27bc702f724dcb9507.php"

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

<?php
/*
 * Squelette : dist/auteur.html
 * Date :      Sat, 26 Aug 2006 21:58:06 GMT
 * Compile :   Sun, 08 Mar 2020 17:00:49 GMT (0.01s)
 * Boucles :   _articles, _auteurs, _auteur_principal
 */ 
//
// <BOUCLE articles>
//
function BOUCLE_articleshtml_deeba53d4c5ddb27bc702f724dcb9507(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	// REQUETE
	$result = spip_optim_select(
		array("articles.id_article",
		"articles.titre",
		"articles.date",
		"articles.lang"), # SELECT
		array('L1' => 'spip_auteurs_articles','articles' => 'spip_articles'), # FROM
		
			array(
			array('=', 'L1.id_auteur', spip_abstract_quote($Pile[$SP]['id_auteur'])), 
			array('=', 'articles.statut', '"publie"')), # WHERE
		array(1 => array('articles', 'id_article')), # WHERE pour jointure
		"articles.id_article", # GROUP
		array('articles.date' . ' DESC'), # ORDER
		'', # LIMIT
		'', # sous
		
			array(), # HAVING
		'articles', # table
		'_articles', # boucle
		''); # serveur

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

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

		$Numrows['_articles']['compteur_boucle']++;
		if ($Numrows['_articles']['compteur_boucle']-1 >= $debut_boucle) {
		if ($Numrows['_articles']['compteur_boucle']-1 > $fin_boucle) break;
		if (!$GLOBALS['forcer_lang'])
	 		$GLOBALS['spip_lang'] = ($x = $Pile[$SP]['lang']) ? $x : $old_lang;
		$t0 .= ('
						<li>
							<h3 class="titre"><a href="' .
htmlspecialchars(vider_url(generer_url_article($Pile[$SP]['id_article']))) .
'">' .
interdire_scripts(typo($Pile[$SP]['titre'])) .
'</a></h3>
							<small>' .
affdate(vider_date($Pile[$SP]['date'])) .
'</small>
						</li>
						');
		}

	}

	$GLOBALS['spip_lang'] = $old_lang;
	@spip_abstract_free($result,'');
	return $t0;
}


//
// <BOUCLE auteurs>
//
function BOUCLE_auteurshtml_deeba53d4c5ddb27bc702f724dcb9507(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	// REQUETE
	$result = spip_optim_select(
		array("auteurs.id_auteur",
		"auteurs.nom"), # SELECT
		array('auteurs' => 'spip_auteurs','lien' => 'spip_auteurs_articles','articles' => 'spip_articles'), # FROM
		
			array(
			array('=', 'lien.id_auteur', 'auteurs.id_auteur'), 
			array('=', 'lien.id_article', 'articles.id_article'), 
			array('=', 'articles.statut', '"publie"'), 
			array('!=', 'auteurs.statut', '"5poubelle"')), # WHERE
		array(), # WHERE pour jointure
		"auteurs.id_auteur", # GROUP
		array('auteurs.nom'), # ORDER
		'', # LIMIT
		'', # sous
		
			array(), # HAVING
		'auteurs', # table
		'_auteurs', # boucle
		''); # serveur

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

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

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

		$t0 .= ('
					<li><a href="' .
generer_url_auteur($Pile[$SP]['id_auteur']) .
'"' .
((strval($t1 = (calcul_exposer($Pile[$SP]['id_auteur'], 'id_auteur', $Pile[0]) ? 'on' : ''))!='') ?
		(' class="' . $t1 . '"') :
		('')) .
'>' .
interdire_scripts(couper(typo($Pile[$SP]['nom']),'80')) .
'</a></li>
					');
		}

	}

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


//
// <BOUCLE auteurs>
//
function BOUCLE_auteur_principalhtml_deeba53d4c5ddb27bc702f724dcb9507(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	// REQUETE
	$result = spip_optim_select(
		array("auteurs.id_auteur",
		"auteurs.lang",
		"auteurs.nom",
		"auteurs.bio",
		"auteurs.url_site",
		"auteurs.nom_site",
		"auteurs.email"), # SELECT
		array('auteurs' => 'spip_auteurs','lien' => 'spip_auteurs_articles','articles' => 'spip_articles'), # FROM
		
			array(
			array('=', 'auteurs.id_auteur', spip_abstract_quote($Pile[$SP]['id_auteur'])), 
			array('=', 'lien.id_auteur', 'auteurs.id_auteur'), 
			array('=', 'lien.id_article', 'articles.id_article'), 
			array('=', 'articles.statut', '"publie"'), 
			array('!=', 'auteurs.statut', '"5poubelle"')), # WHERE
		array(), # WHERE pour jointure
		"auteurs.id_auteur", # GROUP
		array(), # ORDER
		'', # LIMIT
		'', # sous
		
			array(), # HAVING
		'auteurs', # table
		'_auteur_principal', # boucle
		''); # serveur
	$t0 = "";
	$SP++;

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

		$t0 .= ('
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="' .
lang_dir(($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang']),'ltr','rtl') .
'" lang="' .
htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang']) .
'">
<head>
	<title>' .
((strval($t1 = interdire_scripts(textebrut(typo($Pile[$SP]['nom']))))!='') ?
		($t1 . ' - ') :
		('')) .
interdire_scripts(textebrut(typo($GLOBALS['meta']['nom_site']))) .
'</title>
	' .
((strval($t1 = interdire_scripts(textebrut(couper(propre($Pile[$SP]['bio']),'150'))))!='') ?
		('<meta name="description" content="' . $t1 . '" />') :
		('')) .
'
	' .

'<?php
	$contexte_inclus = array(\'fond\' => ' . argumenter_squelette('inc-head') . ',
	\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ');
	include(\'ecrire/public.php\');
?'.'>' .
'

</head>

<body class="page_auteur">
<div id="page">

	' .
'
	' .

'<?php
	$contexte_inclus = array(\'fond\' => ' . argumenter_squelette('inc-entete') . ',
	\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ');
	include(\'ecrire/public.php\');
?'.'>' .
'

	' .
'
	<div id="hierarchie"><a href="' .
htmlspecialchars(sinon($GLOBALS['meta']['adresse_site'],'.')) .
'/">' .
_T('public/spip/ecrire:accueil_site') .
'</a> &gt; ' .
_T('public/spip/ecrire:info_auteurs') .
((strval($t1 = interdire_scripts(couper(typo($Pile[$SP]['nom']),'80')))!='') ?
		(' &gt; ' . $t1) :
		('')) .
'</div>

	<div id="conteneur">

		' .
'
		<div id="contenu">

			<div class="cartouche">
				' .
filtrer('image_reduire',affiche_logos(calcule_logo('id_auteur', 'ON', $Pile[$SP]['id_auteur'],'',  ''), '', ''),'200','200') .
'
				<h1 class="titre">' .
interdire_scripts(typo($Pile[$SP]['nom'])) .
'</h1>
				' .
((strval($t1 = interdire_scripts(calculer_url($Pile[$SP]['url_site'])))!='') ?
		(('<p class="soustitre">' .
	_T('public/spip/ecrire:voir_en_ligne') .
	' : <a href="') . $t1 . ('" class="spip_out">' .
	interdire_scripts(sinon(construire_titre_lien($Pile[$SP]['nom_site'],$Pile[$SP]['url_site']),interdire_scripts(couper(calculer_url($Pile[$SP]['url_site']),'80')))) .
	'</a></p>')) :
		('')) .
'
			</div>

			' .
((strval($t1 = interdire_scripts(propre($Pile[$SP]['bio'])))!='') ?
		('<div class="texte">' . $t1 . '</div><br />') :
		('')) .
'

			<br class="nettoyeur" />

			' .
((strval($t1 = executer_balise_dynamique('FORMULAIRE_ECRIRE_AUTEUR',
	array($Pile[$SP]['id_auteur'],$Pile[0]['id_article'],$Pile[$SP]['email']),
	array(''), $GLOBALS['spip_lang'],29))!='') ?
		('<div class="encart">
			' . $t1 . '
			</div><!-- fin encart -->') :
		('')) .
'

			' .
'
			' .

(($f = (((strval($t1 = BOUCLE_articleshtml_deeba53d4c5ddb27bc702f724dcb9507($Cache, $Pile, $doublons, $Numrows, $SP))!='') ?
		(('
			<div class="contre-encart">

				<div class="liste-articles">
					' .
		calcul_pagination(
	(isset($Numrows['_articles']['grand_total']) ?
		$Numrows['_articles']['grand_total'] : $Numrows['_articles']['total']
	), '_articles', (($a = intval('10')) ? $a : 10), false ) .
		'
					<h2 class="invisible">' .
		_T('public/spip/ecrire:articles_auteur') .
		'</h2>
					<ul>
						') . $t1 . ('
					</ul>
					' .
		((strval($t3 = calcul_pagination(
	(isset($Numrows['_articles']['grand_total']) ?
		$Numrows['_articles']['grand_total'] : $Numrows['_articles']['total']
	), '_articles', (($a = intval('10')) ? $a : 10), true ))!='') ?
				('<p class="pagination">' . $t3 . '</p>') :
				('')) .
		'
				</div>

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

			' .
((strval($t1 = interdire_scripts(calculer_notes()))!='') ?
		(('<div class="notes"><h2>' .
	_T('public/spip/ecrire:info_notes') .
	'</h2>') . $t1 . '</div>') :
		('')) .
'

		</div><!-- fin contenu -->

		' .
'
		<div id="navigation">

			' .
'
			' .

'<?php
	$contexte_inclus = array(\'fond\' => ' . argumenter_squelette('inc-rubriques') . ',
	\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ');
	include(\'ecrire/public.php\');
?'.'>' .
'
	
			' .
'
			' .

(($f = (((strval($t1 = BOUCLE_auteurshtml_deeba53d4c5ddb27bc702f724dcb9507($Cache, $Pile, $doublons, $Numrows, $SP))!='') ?
		(('
			<div class="forums">
				' .
		calcul_pagination(
	(isset($Numrows['_auteurs']['grand_total']) ?
		$Numrows['_auteurs']['grand_total'] : $Numrows['_auteurs']['total']
	), '_auteurs', (($a = intval('20')) ? $a : 10), false ) .
		'
				<h2 class="menu-titre">' .
		_T('public/spip/ecrire:info_auteurs') .
		'</h2>
				' .
		((strval($t3 = calcul_pagination(
	(isset($Numrows['_auteurs']['grand_total']) ?
		$Numrows['_auteurs']['grand_total'] : $Numrows['_auteurs']['total']
	), '_auteurs', (($a = intval('20')) ? $a : 10), true ))!='') ?
				('<p class="pagination">' . $t3 . '</p>') :
				('')) .
		'
				<ul>
					') . $t1 . '
				</ul>
			</div>
			') :
		(''))))?
				'<div id="fragment_html_deeba53d4c5ddb27bc702f724dcb9507_auteurs" class="fragment">'.$f.'<!-- /fragment_html_deeba53d4c5ddb27bc702f724dcb9507_auteurs --></div><?php stop_inclure("fragment_html_deeba53d4c5ddb27bc702f724dcb9507_auteurs"); ?>':'')
 .
'

		</div><!-- fin navigation -->

	</div><!-- fin conteneur -->

	' .
'
	' .

'<?php
	$contexte_inclus = array(\'fond\' => ' . argumenter_squelette('inc-pied') . ',
	\'skel\' => ' . argumenter_squelette('dist/auteur.html') . ',
	\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ');
	include(\'ecrire/public.php\');
?'.'>' .
'

</div><!-- fin page -->
</body>
</html>
');
	}

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



//
// Fonction principale du squelette dist/auteur.html
//
function html_deeba53d4c5ddb27bc702f724dcb9507($Cache, $Pile, $doublons=array(), $Numrows=array(), $SP=0) {
	$page = ('<?php header("X-Spip-Cache: 86400"); ?>'.'<?php header("Cache-Control: max-age=86400"); ?>' .
BOUCLE_auteur_principalhtml_deeba53d4c5ddb27bc702f724dcb9507($Cache, $Pile, $doublons, $Numrows, $SP));

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

?>