Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 74 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 74 Rev 82
1
<?php
1
<?php
2
class synthese extends groupeMacroElement {
2
class synthese extends groupeMacroElement {
3
    function __construct($une_connexion)
3
    function __construct($une_connexion)
4
    {
4
    {
5
        parent::__construct($une_connexion);
5
        parent::__construct($une_connexion);
6
    }
6
    }
7
    
7
    
8
    function construire()
8
    function construire()
9
    {
9
    {
10
        $this->dblock = new blockdedonnees('FICHE_SYNTHESE');
10
        $this->dblock = new blockdedonnees('FICHE_SYNTHESE');
11
        
11
        
12
        if (array_key_exists('nn', $_REQUEST)) {
12
        if (array_key_exists('nn', $_REQUEST)) {
13
            $this->dblock->ajouterDonnee('nn', $_REQUEST['nn']);
13
            $this->dblock->ajouterDonnee('nn', $_REQUEST['nn']);
14
        }
14
        }
15
        
15
        
16
        $this->construireContexte();
16
        $this->construireContexte();
17
        $this->ajouterMacroElement();
17
        $this->ajouterMacroElement();
18
    }
18
    }
19
    
19
    
20
    function construireContexte()
20
    function construireContexte()
21
    {
21
    {
22
        
22
        
23
    }
23
    }
24
    
24
    
25
    function ajouterMacroElement()
25
    function ajouterMacroElement()
26
    {
26
    {
27
        /*balise:NOM_LATIN*/
-
 
28
        $un_macro_element = $this->macroElementFactory('NOM_LATIN', $this->dblock);
27
        $un_macro_element = $this->macroElementFactory('NOM_LATIN', $this->dblock);
29
        $un_macro_element->construire();
28
        $un_macro_element->construire();
30
        /*balise:NOM_SELECTION*/
-
 
31
        $un_macro_element = $this->macroElementFactory('NOM_SELECTION', $this->dblock);
29
        $un_macro_element = $this->macroElementFactory('NOM_SELECTION', $this->dblock);
32
        $un_macro_element->construire();
30
        $un_macro_element->construire();
-
 
31
        if (!isset($_REQUEST['nt'])) {
33
        $this->dblock->attribuerContexte('FICHE_SYNTHESE>NOM_SELECTION', 'nt', 'et_id_taxon');
32
            $this->dblock->attribuerContexte('FICHE_SYNTHESE>NOM_SELECTION', 'nt', 'et_id_taxon');
-
 
33
        }
-
 
34
        if (!isset($_REQUEST['nvp'])) {
34
        $this->dblock->attribuerContexte('FICHE_SYNTHESE>NOM_SELECTION', 'nvp', 'eprv_id_version');
35
            $this->dblock->attribuerContexte('FICHE_SYNTHESE>NOM_SELECTION', 'nvp', 'eprv_id_version');
-
 
36
        }
-
 
37
        $un_macro_element = $this->macroElementFactory('PROJET_VERSION', $this->dblock);
35
        /*balise:TAXON_NOMS*/
38
        $un_macro_element->construire();
36
        $un_macro_element = $this->macroElementFactory('TAXON_NOMS', $this->dblock);
39
        $un_macro_element = $this->macroElementFactory('TAXON_NOMS', $this->dblock);
37
        $un_macro_element->construire();
40
        $un_macro_element->construire();
-
 
41
        $un_macro_element = $this->macroElementFactory('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN', $this->dblock);
-
 
42
        $un_macro_element->construire();
38
        $un_macro_element = $this->macroElementFactory('NOM_LATIN', $this->dblock);
43
        $un_macro_element = $this->macroElementFactory('VERNACULAIRE_NOMS', $this->dblock);
39
        $un_macro_element->construire();
44
        $un_macro_element->construire();
-
 
45
        //echo '<pre>'.print_r($this->dblock, true).'</pre>';
40
        //$this->dblock->afficher();
46
        //$this->dblock->afficher();
41
    }
47
    }
42
    
48
    
43
}
49
}
44
?>
50
?>