Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 43 | Go to most recent revision | Show entire file | Regard 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;
Line 9... Line 11...
9
	}
11
}
10
	
12
 
11
	function pattern2($donnees)
13
function pattern2($donnees)
-
 
14
{
12
	{
15
    $retour .= '<li>'.'Nom : '.$donnees['eni_intitule_nom'].'</li>'."\n";
Line 13... Line 16...
13
		echo "<li>Nom:$donnees['intitule.eni_intitule_nom']</li>";
16
    return $retour;
Line 14... Line 17...
14
	}
17
}
Line 20... Line 23...
20
    function __construct($unBlock)
23
    function __construct($unBlock)
21
    {
24
    {
22
        $this->leBlock = $unBlock;
25
        $this->leBlock = $unBlock;
23
    }
26
    }
Line 24... Line 27...
24
    
27
    
25
    function serialiser2()
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";
-
 
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";
26
    {
39
        $retour .= '<title>Cartographie des adh&eacute;rents</title>'."\n";
-
 
40
        $retour .= '</head>'."\n";
-
 
41
        
-
 
42
        $retour .= '<body>'."\n";
27
    	echo '<h2>Test</h3>';
43
        $retour .= '<h1>'.'Liste des noms'.'</h1>'."\n";
28
    	$this->leBlock->afficherPattern('FICHE_LISTE_NOMS','pattern1');
44
        $retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS','pattern1');
29
    	echo '<OL>';
45
        $retour .= '<ol>'."\n";
-
 
46
        $retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS>NOM_SELECTION','pattern2');
-
 
47
        $retour .= '</ol>'."\n";
-
 
48
        $retour .= '</body>'."\n";
30
		$this->leBlock->afficherPattern('FICHE_LISTE_NOMS>NOM_SELECTION','pattern2');
49
        $retour .= '</html>'."\n";
31
    	echo '</OL>';
-
 
32
    		
50
        echo $retour;
Line 33... Line 51...
33
    }
51
    }
34
    
52
    
35
    function serialiser()
53
    function serialiser2()
36
    {
54
    {
37
        $gBlock = $this->leBlock;
55
        $gBlock = $this->leBlock;
38
        $retour = '';
56
        $retour = '';