1,18 → 1,21 |
<?php |
global $gBlock; |
|
function pattern1($donnees) |
{ |
echo "<H1>Liste des noms</H1>"; |
echo "radical: $donnees['radical']</br>"; |
echo '</br>'; |
} |
|
function pattern2($donnees) |
{ |
echo "<li>Nom:$donnees['intitule.eni_intitule_nom']</li>"; |
} |
function pattern1($donnees) |
{ |
$retour .= '<h2>'.'Test'.'</h2>'."\n"; |
$retour .= 'radical: '.$donnees['radical'].'<br />'."\n"; |
$retour .= 'rang: '.$donnees['rang'].'<br />'."\n"; |
$retour .= '<br />'."\n"; |
return $retour; |
} |
|
function pattern2($donnees) |
{ |
$retour .= '<li>'.'Nom : '.$donnees['eni_intitule_nom'].'</li>'."\n"; |
return $retour; |
} |
|
class liste_nom_latin_xhtml implements iVue { |
|
protected $leBlock; |
22,17 → 25,32 |
$this->leBlock = $unBlock; |
} |
|
function serialiser2() |
function serialiser() |
{ |
echo '<h2>Test</h3>'; |
$this->leBlock->afficherPattern('FICHE_LISTE_NOMS','pattern1'); |
echo '<OL>'; |
$this->leBlock->afficherPattern('FICHE_LISTE_NOMS>NOM_SELECTION','pattern2'); |
echo '</OL>'; |
|
$retour = '<?xml version="1.0" encoding="iso-8859-15" ?>'."\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 .= '<head>'."\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érents</title>'."\n"; |
$retour .= '</head>'."\n"; |
|
$retour .= '<body>'."\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 .= '</body>'."\n"; |
$retour .= '</html>'."\n"; |
echo $retour; |
} |
|
function serialiser() |
function serialiser2() |
{ |
$gBlock = $this->leBlock; |
$retour = ''; |