Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
global $gBlock;
|
2 |
global $gBlock;
|
Line 3... |
Line 3... |
3 |
|
3 |
|
4 |
function pattern1($donnees)
|
4 |
function pattern1($donnees)
|
5 |
{
|
5 |
{
|
- |
|
6 |
$retour .= '<h2>'.'RĂ©sumer de la recherche :'.'</h2>'."\n";
|
6 |
$retour .= '<h2>'.'Test'.'</h2>'."\n";
|
7 |
$retour .= '<p>'."\n";
|
- |
|
8 |
$retour .= 'Radical : '.$donnees['radical']."\n";
|
7 |
$retour .= 'radical: '.$donnees['radical'].'<br />'."\n";
|
9 |
if ($donnees['rang'] != '' || $donnees['rang'] != 0) {
|
- |
|
10 |
$retour .= ' - Rang : '.$donnees['rang']."\n";
|
8 |
$retour .= 'rang: '.$donnees['rang'].'<br />'."\n";
|
11 |
}
|
9 |
$retour .= '<br />'."\n";
|
12 |
$retour .= '</p>'."\n";
|
10 |
return $retour;
|
13 |
return $retour;
|
Line 11... |
Line 14... |
11 |
}
|
14 |
}
|
12 |
|
15 |
|
13 |
function pattern2($donnees)
|
16 |
function pattern2($donnees)
|
14 |
{
|
17 |
{
|
15 |
$retour .= '<li>'.'Nom : '.$donnees['eni_intitule_nom'].'</li>'."\n";
|
18 |
$retour .= '<li><a href="{UrlFicheNom}'.$donnees['en_id_nom'].'">'.$donnees['eni_intitule_nom'].'</a></li>'."\n";
|
Line 16... |
Line 19... |
16 |
return $retour;
|
19 |
return $retour;
|
Line 25... |
Line 28... |
25 |
$this->leBlock = $unBlock;
|
28 |
$this->leBlock = $unBlock;
|
26 |
}
|
29 |
}
|
Line 27... |
Line 30... |
27 |
|
30 |
|
28 |
function serialiser()
|
31 |
function serialiser()
|
29 |
{
|
32 |
{
|
30 |
$retour = '<?xml version="1.0" encoding="iso-8859-15" ?>'."\n";
|
33 |
$retour = '<?xml version="1.0" encoding="utf-8" ?>'."\n";
|
31 |
$retour .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "../../../commun/generique/dtd/xhtml1-strict.dtd">'."\n";
|
34 |
$retour .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "../../../commun/generique/dtd/xhtml1-strict.dtd">'."\n";
|
Line 32... |
Line 35... |
32 |
$retour .= '<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" >'."\n";
|
35 |
$retour .= '<html xmlns="http://w ww.w3.org/1999/xhtml" lang="fr" >'."\n";
|
- |
|
36 |
|
33 |
|
37 |
$retour .= '<head>'."\n";
|
34 |
$retour .= '<head>'."\n";
|
38 |
$retour .= '<!-- BEGIN entete -->'."\n";
|
35 |
$retour .= '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'."\n";
|
39 |
$retour .= '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'."\n";
|
36 |
$retour .= '<meta http-equiv="Content-style-type" content="text/css" />'."\n";
|
40 |
$retour .= '<meta http-equiv="Content-style-type" content="text/css" />'."\n";
|
37 |
$retour .= '<meta http-equiv="Content-script-type" content="text/javascript />'."\n";
|
41 |
$retour .= '<meta http-equiv="Content-script-type" content="text/javascript />'."\n";
|
- |
|
42 |
$retour .= '<meta http-equiv="Content-language" content="fr" />'."\n";
|
38 |
$retour .= '<meta http-equiv="Content-language" content="fr" />'."\n";
|
43 |
$retour .= '<title>Liste de noms latins</title>'."\n";
|
Line 39... |
Line 44... |
39 |
$retour .= '<title>Cartographie des adhérents</title>'."\n";
|
44 |
$retour .= '<!-- END entete -->'."\n";
|
- |
|
45 |
$retour .= '</head>'."\n";
|
40 |
$retour .= '</head>'."\n";
|
46 |
|
41 |
|
47 |
$retour .= '<body>'."\n";
|
42 |
$retour .= '<body>'."\n";
|
48 |
$retour .= '<!-- BEGIN corps -->'."\n";
|
43 |
$retour .= '<h1>'.'Liste des noms'.'</h1>'."\n";
|
49 |
$retour .= '<h1>'.'Liste des noms'.'</h1>'."\n";
|
44 |
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS','pattern1');
|
50 |
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS','pattern1');
|
- |
|
51 |
$retour .= '<ol>'."\n";
|
45 |
$retour .= '<ol>'."\n";
|
52 |
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS>NOM_SELECTION','pattern2');
|
46 |
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS>NOM_SELECTION','pattern2');
|
53 |
$retour .= '</ol>'."\n";
|
47 |
$retour .= '</ol>'."\n";
|
54 |
$retour .= '<!-- END corps -->'."\n";
|
48 |
$retour .= '</body>'."\n";
|
55 |
$retour .= '</body>'."\n";
|