Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 123 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 123 Rev 135
1
<?php
1
<?php
2
class recherchetaxon extends groupeMacroElement {
2
class recherchetaxon 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_LISTE_TAXONS');
10
        $this->dblock = new blockdedonnees('FICHE_LISTE_TAXONS');
11
        
11
        
12
        // Numéro de version du projet
12
        // Numéro de version du projet
13
        if (array_key_exists('nvp', $_REQUEST)) {
13
        if (array_key_exists('nvp', $_REQUEST)) {
14
            $this->dblock->ajouterDonnee('nvp', $_REQUEST['nvp']);
14
            $this->dblock->ajouterDonnee('nvp', $_REQUEST['nvp']);
15
        }
15
        }
16
        
16
        
17
        // Rang
17
        // Rang
18
        if (array_key_exists('rg',$_REQUEST)) {
18
        if (array_key_exists('rg',$_REQUEST)) {
19
            $this->dblock->ajouterDonnee('rg', $_REQUEST['rg']);
19
            $this->dblock->ajouterDonnee('rg', $_REQUEST['rg']);
20
        }
20
        }
21
        
21
        
22
        // Ordre
22
        // Ordre
23
        if (array_key_exists('od',$_REQUEST)) {
23
        if (array_key_exists('od',$_REQUEST)) {
24
            $this->dblock->ajouterDonnee('od', $_REQUEST['od']);
24
            $this->dblock->ajouterDonnee('od', $_REQUEST['od']);
25
        }
25
        }
26
        
26
        
27
        // Lettre du début du nom
27
        // Lettre du début du nom
28
        if (array_key_exists('le',$_REQUEST)) {
28
        if (array_key_exists('le',$_REQUEST)) {
29
            $this->dblock->ajouterDonnee('le', $_REQUEST['le']);
29
            $this->dblock->ajouterDonnee('le', $_REQUEST['le']);
30
        }
30
        }
-
 
31
        
-
 
32
        // Numéro du taxon dans un projet
-
 
33
        if (array_key_exists('nt',$_REQUEST)) {
-
 
34
            $this->dblock->ajouterDonnee('nt', $_REQUEST['nt']);
-
 
35
        }
31
        
36
        
32
        $this->construireContexte();
37
        $this->construireContexte();
33
        $this->ajouterMacroElement();
38
        $this->ajouterMacroElement();
34
    }
39
    }
35
    
40
    
36
    function construireContexte()
41
    function construireContexte()
37
    {
42
    {
38
        
43
        
39
    }
44
    }
40
    
45
    
41
    function ajouterMacroElement()
46
    function ajouterMacroElement()
42
    {
47
    {
43
        $un_macro_element = $this->macroElementFactory('TAXON_RECHERCHE_ALPHABET', $this->dblock);
48
        $un_macro_element = $this->macroElementFactory('TAXON_RECHERCHE_ALPHABET', $this->dblock);
44
        $un_macro_element->construire();
49
        $un_macro_element->construire();
-
 
50
        $un_macro_element = $this->macroElementFactory('TAXON_RECHERCHE_CLASSIFICATION', $this->dblock);
-
 
51
        $un_macro_element->construire();
45
    }
52
    }
46
    
53
    
47
}
54
}
48
?>
55
?>