Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 43 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 43 Rev 49
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
		echo "<H1>Liste des noms</H1>";
6
    $retour .= '<h2>'.'Test'.'</h2>'."\n";
-
 
7
    $retour .= 'radical: '.$donnees['radical'].'<br />'."\n";
-
 
8
    $retour .= 'rang: '.$donnees['rang'].'<br />'."\n";
7
		echo "radical: $donnees['radical']</br>";
9
    $retour .= '<br />'."\n";
8
		echo '</br>';
10
    return $retour;
9
	}
11
}
10
	
12
 
11
	function pattern2($donnees)
13
function pattern2($donnees)
12
	{
14
{
-
 
15
    $retour .= '<li>'.'Nom : '.$donnees['eni_intitule_nom'].'</li>'."\n";
13
		echo "<li>Nom:$donnees['intitule.eni_intitule_nom']</li>";
16
    return $retour;
Line 14... Line 17...
14
	}
17
}
Line 15... Line 18...
15
 
18
 
Line 16... Line 19...
16
class liste_nom_latin_xhtml implements iVue {
19
class liste_nom_latin_xhtml implements iVue {
17
    
20
    
18
    protected $leBlock;
21
    protected $leBlock;
19
    
22
    
Line 20... Line 23...
20
    function __construct($unBlock)
23
    function __construct($unBlock)
21
    {
24
    {
-
 
25
        $this->leBlock = $unBlock;
-
 
26
    }
-
 
27
    
-
 
28
    function serialiser()
-
 
29
    {
-
 
30
        $retour = '<?xml version="1.0" encoding="iso-8859-15" ?>'."\n";
-
 
31
        $retour .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "../../../commun/generique/dtd/xhtml1-strict.dtd">'."\n";
-
 
32
        $retour .= '<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" >'."\n";
-
 
33
        
-
 
34
        $retour .= '<head>'."\n";
22
        $this->leBlock = $unBlock;
35
        $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";
-
 
37
        $retour .= '<meta http-equiv="Content-script-type" content="text/javascript />'."\n";
-
 
38
        $retour .= '<meta http-equiv="Content-language" content="fr" />'."\n";
23
    }
39
        $retour .= '<title>Cartographie des adh&eacute;rents</title>'."\n";
24
    
40
        $retour .= '</head>'."\n";
25
    function serialiser2()
41
        
-
 
42
        $retour .= '<body>'."\n";
-
 
43
        $retour .= '<h1>'.'Liste des noms'.'</h1>'."\n";
-
 
44
        $retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS','pattern1');
26
    {
45
        $retour .= '<ol>'."\n";
27
    	echo '<h2>Test</h3>';
-
 
28
    	$this->leBlock->afficherPattern('FICHE_LISTE_NOMS','pattern1');
46
        $retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS>NOM_SELECTION','pattern2');
Line 29... Line 47...
29
    	echo '<OL>';
47
        $retour .= '</ol>'."\n";
30
		$this->leBlock->afficherPattern('FICHE_LISTE_NOMS>NOM_SELECTION','pattern2');
48
        $retour .= '</body>'."\n";
31
    	echo '</OL>';
49
        $retour .= '</html>'."\n";
32
    		
50
        echo $retour;
33
    }
51
    }
34
    
52