Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

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

Rev 142 Rev 147
1
<?php
1
<?php
2
class synthese extends groupeMacroElement {
2
class fichesynthese 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
        if (array_key_exists('nvp', $_REQUEST)) {
16
        if (array_key_exists('nvp', $_REQUEST)) {
17
            $this->dblock->ajouterDonnee('nvp', $_REQUEST['nvp']);
17
            $this->dblock->ajouterDonnee('nvp', $_REQUEST['nvp']);
18
        }
18
        }
19
        
19
        
20
        $this->construireContexte();
20
        $this->construireContexte();
21
        $this->ajouterMacroElement();
21
        $this->ajouterMacroElement();
22
    }
22
    }
23
    
23
    
24
    function construireContexte()
24
    function construireContexte()
25
    {
25
    {
26
        
26
        
27
    }
27
    }
28
    
28
    
29
    function ajouterMacroElement()
29
    function ajouterMacroElement()
30
    {
30
    {
31
        $un_macro_element = $this->macroElementFactory('NOM_LATIN', $this->dblock);
31
        $un_macro_element = $this->macroElementFactory('NOM_LATIN', $this->dblock);
32
        $un_macro_element->construire();
32
        $un_macro_element->construire();
33
        $un_macro_element = $this->macroElementFactory('NOM_SELECTION_PROJETS', $this->dblock);
33
        $un_macro_element = $this->macroElementFactory('NOM_SELECTION_PROJETS', $this->dblock);
34
        $un_macro_element->construire();
34
        $un_macro_element->construire();
35
        if (!isset($_REQUEST['nvp'])) {
35
        if (!isset($_REQUEST['nvp'])) {
36
            // La valeur par défaut 3 qui correspond à la BDNFF.
36
            // La valeur par défaut 3 qui correspond à la BDNFF.
37
            $this->dblock->attribuerContexteValeur('FICHE_SYNTHESE', 'nvp', 3);
37
            $this->dblock->attribuerContexteValeur('FICHE_SYNTHESE', 'nvp', 3);
38
        }
38
        }
39
        $un_macro_element = $this->macroElementFactory('NOM_SELECTION', $this->dblock);
39
        $un_macro_element = $this->macroElementFactory('NOM_SELECTION', $this->dblock);
40
        $un_macro_element->construire();
40
        $un_macro_element->construire();
41
        if (!isset($_REQUEST['nt'])) {
41
        if (!isset($_REQUEST['nt'])) {
42
            $this->dblock->attribuerContexteSql('FICHE_SYNTHESE>NOM_SELECTION', 'nt', 'et_id_taxon');
42
            $this->dblock->attribuerContexteSql('FICHE_SYNTHESE>NOM_SELECTION', 'nt', 'et_id_taxon');
43
        }
43
        }
44
        $un_macro_element = $this->macroElementFactory('PROJET_VERSION', $this->dblock);
44
        $un_macro_element = $this->macroElementFactory('PROJET_VERSION', $this->dblock);
45
        $un_macro_element->construire();
45
        $un_macro_element->construire();
46
        $un_macro_element = $this->macroElementFactory('TAXON_NOMS', $this->dblock);
46
        $un_macro_element = $this->macroElementFactory('TAXON_NOMS', $this->dblock);
47
        $un_macro_element->construire();
47
        $un_macro_element->construire();
48
        $un_macro_element = $this->macroElementFactory('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN', $this->dblock);
48
        $un_macro_element = $this->macroElementFactory('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN', $this->dblock);
49
        $un_macro_element->construire();
49
        $un_macro_element->construire();
50
        $un_macro_element = $this->macroElementFactory('VERNACULAIRE_NOMS', $this->dblock);
50
        $un_macro_element = $this->macroElementFactory('VERNACULAIRE_NOMS', $this->dblock);
51
        $un_macro_element->construire();
51
        $un_macro_element->construire();
52
        //echo '<pre>'.print_r($this->dblock, true).'</pre>';
52
        //echo '<pre>'.print_r($this->dblock, true).'</pre>';
53
        //$this->dblock->afficher();
53
        //$this->dblock->afficher();
54
    }
54
    }
55
    
55
    
56
}
56
}
57
?>
57
?>