Subversion Repositories eFlore/Archives.eflore-consultation-v2

Compare Revisions

Ignore whitespace Rev 61 → Rev 62

/trunk/serveur/eflore_mv/vues/liste_nom_latin_xhtml.php
3,16 → 3,19
 
function pattern1($donnees)
{
$retour .= '<h2>'.'Test'.'</h2>'."\n";
$retour .= 'radical: '.$donnees['radical'].'<br />'."\n";
$retour .= 'rang: '.$donnees['rang'].'<br />'."\n";
$retour .= '<br />'."\n";
$retour .= '<h2>'.'RĂ©sumer de la recherche :'.'</h2>'."\n";
$retour .= '<p>'."\n";
$retour .= 'Radical : '.$donnees['radical']."\n";
if ($donnees['rang'] != '' || $donnees['rang'] != 0) {
$retour .= ' - Rang : '.$donnees['rang']."\n";
}
$retour .= '</p>'."\n";
return $retour;
}
 
function pattern2($donnees)
{
$retour .= '<li>'.'Nom : '.$donnees['eni_intitule_nom'].'</li>'."\n";
$retour .= '<li><a href="{UrlFicheNom}'.$donnees['en_id_nom'].'">'.$donnees['eni_intitule_nom'].'</a></li>'."\n";
return $retour;
}
 
27,24 → 30,28
function serialiser()
{
$retour = '<?xml version="1.0" encoding="iso-8859-15" ?>'."\n";
$retour = '<?xml version="1.0" encoding="utf-8" ?>'."\n";
$retour .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "../../../commun/generique/dtd/xhtml1-strict.dtd">'."\n";
$retour .= '<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" >'."\n";
$retour .= '<html xmlns="http://w ww.w3.org/1999/xhtml" lang="fr" >'."\n";
$retour .= '<head>'."\n";
$retour .= '<!-- BEGIN entete -->'."\n";
$retour .= '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'."\n";
$retour .= '<meta http-equiv="Content-style-type" content="text/css" />'."\n";
$retour .= '<meta http-equiv="Content-script-type" content="text/javascript />'."\n";
$retour .= '<meta http-equiv="Content-language" content="fr" />'."\n";
$retour .= '<title>Cartographie des adh&eacute;rents</title>'."\n";
$retour .= '<title>Liste de noms latins</title>'."\n";
$retour .= '<!-- END entete -->'."\n";
$retour .= '</head>'."\n";
$retour .= '<body>'."\n";
$retour .= '<!-- BEGIN corps -->'."\n";
$retour .= '<h1>'.'Liste des noms'.'</h1>'."\n";
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS','pattern1');
$retour .= '<ol>'."\n";
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS>NOM_SELECTION','pattern2');
$retour .= '</ol>'."\n";
$retour .= '<!-- END corps -->'."\n";
$retour .= '</body>'."\n";
$retour .= '</html>'."\n";
echo $retour;