Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

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

Rev 41 Rev 43
Line 1... Line 1...
1
<?php
1
<?php
2
global $gBlock;
2
global $gBlock;
-
 
3
 
-
 
4
	function pattern1($donnees)
-
 
5
	{
-
 
6
		echo "<H1>Liste des noms</H1>";
-
 
7
		echo "radical: $donnees['radical']</br>";
-
 
8
		echo '</br>';
-
 
9
	}
-
 
10
	
-
 
11
	function pattern2($donnees)
-
 
12
	{
-
 
13
		echo "<li>Nom:$donnees['intitule.eni_intitule_nom']</li>";
-
 
14
	}
3
 
15
 
4
class liste_nom_latin_xhtml implements iVue {
16
class liste_nom_latin_xhtml implements iVue {
5
    
17
    
6
    protected $leBlock;
18
    protected $leBlock;
7
    
19
    
8
    function __construct($unBlock)
20
    function __construct($unBlock)
9
    {
21
    {
10
        $this->leBlock = $unBlock;
22
        $this->leBlock = $unBlock;
-
 
23
    }
-
 
24
    
-
 
25
    function serialiser2()
-
 
26
    {
-
 
27
    	echo '<h2>Test</h3>';
-
 
28
    	$this->leBlock->afficherPattern('FICHE_LISTE_NOMS','pattern1');
-
 
29
    	echo '<OL>';
-
 
30
		$this->leBlock->afficherPattern('FICHE_LISTE_NOMS>NOM_SELECTION','pattern2');
-
 
31
    	echo '</OL>';
-
 
32
    		
11
    }
33
    }
12
    
34
    
13
    function serialiser()
35
    function serialiser()
14
    {
36
    {
15
        $gBlock = $this->leBlock;
37
        $gBlock = $this->leBlock;
16
        $retour = '';
38
        $retour = '';
17
        $retour .= '<h3>'.'Test'.'</h3>';
39
        $retour .= '<h3>'.'Test'.'</h3>';
18
        $retour .= '<ol>';
40
        $retour .= '<ol>';
19
        $donnees = $this->leBlock->recupererDonnees();
41
        $donnees = $this->leBlock->recupererDonnees();
Line 35... Line 57...
35
                $retour .= '</ol>';
57
                $retour .= '</ol>';
36
            }
58
            }
37
        }
59
        }
Line 38... Line 60...
38
        
60
        
39
        echo $retour;
61
        echo $retour;
40
    }
62
    }
41
}
63
}
42
?>
64
?>