/trunk/serveur/eflore_mv/modeles/macro_elements/NOM_RECHERCHE.php |
---|
48,6 → 48,31 |
AND nom.en_ce_rang = '.$contexte['rang']; |
} |
} |
if (array_key_exists('radical', $this->contexteRef) and array_key_exists('nvp', $this->contexteRef) ) { |
$contexte['radical'] = $this->contexteRef['radical']; |
$contexte['nvp'] = $this->contexteRef['nvp']; |
if(!empty($contexte['nvp']) ) { |
return |
'SELECT |
nom.*, |
intitule.eni_intitule_nom, |
selection.esn_ce_statut, |
selection.esn_id_version_projet_taxon |
FROM |
eflore_nom_intitule AS intitule, |
eflore_nom AS nom, |
eflore_selection_nom AS selection |
WHERE |
intitule.eni_intitule_nom LIKE "'.$contexte['radical'].'" |
AND intitule.eni_id_categorie_format = 3 |
AND intitule.eni_id_valeur_format = 4 |
AND nom.en_id_nom = intitule.eni_id_nom |
AND nom.en_id_nom = selection.esn_id_nom |
AND selection.esn_id_version_projet_taxon = '.$contexte['nvp']; |
} |
} |
if (array_key_exists('radical', $this->contexteRef) ) { |
$contexte['radical'] = $this->contexteRef['radical']; |
if(!empty($contexte['radical']) ) { |
62,7 → 87,7 |
WHERE |
intitule.eni_intitule_nom LIKE "'.$contexte['radical'].'" |
AND intitule.eni_id_categorie_format = 3 |
AND intitule.eni_id_valeur_format = 3 |
AND intitule.eni_id_valeur_format = 4 |
AND nom.en_id_nom = intitule.eni_id_nom'; |
} |
} |
/trunk/serveur/eflore_mv/modeles/macro_elements/NOM_SELECTION_PROJETS.php |
---|
11,6 → 11,7 |
nom.en_id_nom, |
version.eprv_id_version, |
version.eprv_nom, |
version.eprv_code_version, |
projet.epr_intitule_projet, |
projet.epr_abreviation_projet |
/trunk/serveur/eflore_mv/modeles/macro_elements/PROJET_VERSION.php |
---|
9,7 → 9,8 |
return |
'SELECT DISTINCT |
version.eprv_id_version, |
version.eprv_nom, |
version.eprv_nom, |
version.eprv_code_version, |
projet.epr_id_projet, |
projet.epr_intitule_projet, |
projet.epr_abreviation_projet |
/trunk/serveur/eflore_mv/modeles/macro_elements/VERNACULAIRE_RECHERCHE.php |
---|
15,6 → 15,7 |
vernaculaire.ev_id_nom_vernaculaire, |
vernaculaire.ev_intitule_nom_vernaculaire, |
taxon.et_id_version_projet_taxon, |
selection.esn_ce_statut, |
intitule.eni_intitule_nom, |
nom.en_id_nom |
/trunk/serveur/eflore_mv/modeles/groupes_macro_elements/formulairenomenclatural.php |
---|
New file |
0,0 → 1,37 |
<?php |
class formulairenomenclatural extends groupeMacroElement { |
function __construct($une_connexion) |
{ |
parent::__construct($une_connexion); |
} |
function construire() |
{ |
$this->dblock = new blockdedonnees('FORMULAIRE_NOMENCLATURAL'); |
// Numéro de version du projet |
if (array_key_exists('nvp', $_REQUEST)) { |
$this->dblock->ajouterDonnee('nvp', $_REQUEST['nvp']); |
} |
$this->construireContexte(); |
$this->ajouterMacroElement(); |
} |
function construireContexte() |
{ |
} |
function ajouterMacroElement() |
{ |
if (!isset($_REQUEST['nvp'])) { |
// La valeur par défaut 3 qui correspond à la BDNFF. |
$this->dblock->attribuerContexteValeur('FORMULAIRE_NOMENCLATURAL', 'nvp', 3); |
} |
$un_macro_element = $this->macroElementFactory('PROJET_VERSION_TOUS', $this->dblock); |
$un_macro_element->construire(); |
} |
} |
?> |
/trunk/serveur/eflore_mv/modeles/groupes_macro_elements/recherchenomlatin.php |
---|
9,14 → 9,21 |
{ |
$this->dblock = new blockdedonnees('FICHE_LISTE_NOMS'); |
// Radical du nom recherché |
if (array_key_exists('radical', $_REQUEST)) { |
$this->dblock->ajouterDonnee('radical', $_REQUEST['radical']); |
} |
// Rang des noms |
if (array_key_exists('rang',$_REQUEST)) { |
$this->dblock->ajouterDonnee('rang', $_REQUEST['rang']); |
} |
// Numéro de version du projet |
if (array_key_exists('nvp', $_REQUEST)) { |
$this->dblock->ajouterDonnee('nvp', $_REQUEST['nvp']); |
} |
$this->construireContexte(); |
$this->ajouterMacroElement(); |
} |
28,6 → 35,8 |
function ajouterMacroElement() |
{ |
$un_macro_element = $this->macroElementFactory('PROJET_VERSION', $this->dblock); |
$un_macro_element->construire(); |
$un_macro_element = $this->macroElementFactory('NOM_RECHERCHE', $this->dblock); |
$un_macro_element->construire(); |
} |
/trunk/serveur/eflore_mv/modeles/groupes_macro_elements/recherchenomverna.php |
---|
9,10 → 9,16 |
{ |
$this->dblock = new blockdedonnees('FICHE_LISTE_NOMS_VERNA'); |
// Radical à rechercher |
if (array_key_exists('radical', $_REQUEST)) { |
$this->dblock->ajouterDonnee('radical', $_REQUEST['radical']); |
} |
// Numéro de version du projet |
if (array_key_exists('nvp', $_REQUEST)) { |
$this->dblock->ajouterDonnee('nvp', $_REQUEST['nvp']); |
} |
$this->construireContexte(); |
$this->ajouterMacroElement(); |
} |