Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

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

Rev 82 Rev 98
Line 11... Line 11...
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']);
Line -... Line 14...
-
 
14
        }
-
 
15
        
-
 
16
        if (array_key_exists('nvp', $_REQUEST)) {
-
 
17
            $this->dblock->ajouterDonnee('nvp', $_REQUEST['nvp']);
14
        }
18
        }
15
        
19
        
16
        $this->construireContexte();
20
        $this->construireContexte();
Line 17... Line 21...
17
        $this->ajouterMacroElement();
21
        $this->ajouterMacroElement();
Line 24... Line 28...
24
    
28
    
25
    function ajouterMacroElement()
29
    function ajouterMacroElement()
26
    {
30
    {
27
        $un_macro_element = $this->macroElementFactory('NOM_LATIN', $this->dblock);
31
        $un_macro_element = $this->macroElementFactory('NOM_LATIN', $this->dblock);
-
 
32
        $un_macro_element->construire();
-
 
33
        $un_macro_element = $this->macroElementFactory('NOM_SELECTION_PROJETS', $this->dblock);
-
 
34
        $un_macro_element->construire();
-
 
35
        if (!isset($_REQUEST['nvp'])) {
-
 
36
            // La valeur par défaut 3 qui correspond à la BDNFF.
-
 
37
            $this->dblock->attribuerContexteValeur('FICHE_SYNTHESE', 'nvp', 3);
28
        $un_macro_element->construire();
38
        }
29
        $un_macro_element = $this->macroElementFactory('NOM_SELECTION', $this->dblock);
39
        $un_macro_element = $this->macroElementFactory('NOM_SELECTION', $this->dblock);
30
        $un_macro_element->construire();
40
        $un_macro_element->construire();
31
        if (!isset($_REQUEST['nt'])) {
41
        if (!isset($_REQUEST['nt'])) {
32
            $this->dblock->attribuerContexte('FICHE_SYNTHESE>NOM_SELECTION', 'nt', 'et_id_taxon');
-
 
33
        }
-
 
34
        if (!isset($_REQUEST['nvp'])) {
-
 
35
            $this->dblock->attribuerContexte('FICHE_SYNTHESE>NOM_SELECTION', 'nvp', 'eprv_id_version');
42
            $this->dblock->attribuerContexteSql('FICHE_SYNTHESE>NOM_SELECTION', 'nt', 'et_id_taxon');
36
        }
43
        }
37
        $un_macro_element = $this->macroElementFactory('PROJET_VERSION', $this->dblock);
44
        $un_macro_element = $this->macroElementFactory('PROJET_VERSION', $this->dblock);
38
        $un_macro_element->construire();
45
        $un_macro_element->construire();
39
        $un_macro_element = $this->macroElementFactory('TAXON_NOMS', $this->dblock);
46
        $un_macro_element = $this->macroElementFactory('TAXON_NOMS', $this->dblock);