Line 19... |
Line 19... |
19 |
// | |
|
19 |
// | |
|
20 |
// | You should have received a copy of the GNU General Public License |
|
20 |
// | You should have received a copy of the GNU General Public License |
|
21 |
// | along with Foobar; if not, write to the Free Software |
|
21 |
// | along with Foobar; if not, write to the Free Software |
|
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
24 |
// CVS : $Id: fiche_synthese_xhtml.php,v 1.8 2005-02-14 18:11:43 jpm Exp $
|
24 |
// CVS : $Id: fiche_synthese_xhtml.php,v 1.9 2005-06-30 15:25:07 jpm Exp $
|
25 |
/**
|
25 |
/**
|
26 |
* Vue affichant la fiche de synthèse d'un nom dans le projet donné
|
26 |
* Vue affichant la fiche de synthèse d'un nom dans le projet donné
|
27 |
*
|
27 |
*
|
28 |
* Permet de retourner le html correspondant à la fiche de synthèse d'un nom
|
28 |
* Permet de retourner le html correspondant à la fiche de synthèse d'un nom
|
29 |
* dans un projet donné.
|
29 |
* dans un projet donné.
|
Line 33... |
Line 33... |
33 |
//Auteur original :
|
33 |
//Auteur original :
|
34 |
*@author Frédéric LEGENS <flegens@free.fr>
|
34 |
*@author Frédéric LEGENS <flegens@free.fr>
|
35 |
//Autres auteurs :
|
35 |
//Autres auteurs :
|
36 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
36 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
37 |
*@copyright Tela-Botanica 2000-2004
|
37 |
*@copyright Tela-Botanica 2000-2004
|
38 |
*@version $Revision: 1.8 $ $Date: 2005-02-14 18:11:43 $
|
38 |
*@version $Revision: 1.9 $ $Date: 2005-06-30 15:25:07 $
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
40 |
*/
|
40 |
*/
|
Line 41... |
Line 41... |
41 |
|
41 |
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
Line 109... |
Line 109... |
109 |
$retour .= '</p>'."\n";
|
109 |
$retour .= '</p>'."\n";
|
110 |
$retour .= '</form>'."\n";
|
110 |
$retour .= '</form>'."\n";
|
111 |
}
|
111 |
}
|
Line 112... |
Line 112... |
112 |
|
112 |
|
113 |
// Gestion du nom correct
|
113 |
// Gestion du nom correct
|
114 |
$retour .= '<h2>'.'Nom correct dans le projet courant: ';
|
- |
|
115 |
$retour .= '</h2>'."\n";
|
114 |
$retour .= '<h2>'.'Nom correct dans le projet courant: '.'</h2>'."\n";
|
116 |
$aso_param['statut_id'] = 3;
|
115 |
$aso_param['statut_id'] = 3;
|
Line 117... |
Line 116... |
117 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherNomCorrect', $aso_param, TRUE);
|
116 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherNomCorrect', $aso_param, TRUE);
|
118 |
|
117 |
|
119 |
// Gestion de la recherche Google
|
118 |
// Gestion de la recherche Google
|
120 |
$retour .= '<h2>'.'Rechercher des illustrations avec Google : '.'</h2>'."\n";
|
119 |
$retour .= '<h2>'.'Rechercher des illustrations avec Google : '.'</h2>'."\n";
|
Line -... |
Line 120... |
- |
|
120 |
$aso_param['statut_id'] = 3;
|
- |
|
121 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherRechercheGoogle', $aso_param, TRUE);
|
- |
|
122 |
|
- |
|
123 |
// Gestion des taxons supérieurs
|
121 |
$aso_param['statut_id'] = 3;
|
124 |
$retour .= '<h2>'.'Niveaux taxinomiques supérieurs : '.'</h2>'."\n";
|
122 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherRechercheGoogle', $aso_param, TRUE);
|
125 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE','afficherNiveauTaxoSuperieur');
|
123 |
|
126 |
|
124 |
// Gestion de la synonymie
|
127 |
// Gestion de la synonymie
|
125 |
// Gestion des noms dont le statut n'est pas renseigné
|
128 |
// Gestion des noms dont le statut n'est pas renseigné
|
Line 382... |
Line 385... |
382 |
function afficherRechercheGoogle($donnees, $aso_param)
|
385 |
function afficherRechercheGoogle($donnees, $aso_param)
|
383 |
{
|
386 |
{
|
384 |
$retour = '';
|
387 |
$retour = '';
|
385 |
//$retour .= '<pre>'.print_r($donnees, true).'</pre>';
|
388 |
//$retour .= '<pre>'.print_r($donnees, true).'</pre>';
|
386 |
if ($donnees['TAXON_NOMS']['esns_id_statut'] == $aso_param['statut_id']) {
|
389 |
if ($donnees['TAXON_NOMS']['esns_id_statut'] == $aso_param['statut_id']) {
|
387 |
$retour .= '<form method="get" action="http://images.google.fr/images">'."\n";
|
390 |
$retour .= '<form method="get" action="http://images.google.fr/images" target="_blank">'."\n";
|
388 |
$retour .= '<p>'."\n";
|
391 |
$retour .= '<p>'."\n";
|
389 |
$retour .= '<a href="http://www.google.com/" title="Aller sur Google France">'."\n";
|
392 |
$retour .= '<a href="http://www.google.com/" title="Aller sur Google France">'."\n";
|
390 |
$retour .= ' <img src="http://www.google.com/logos/Logo_25wht.gif" alt="Google" />'."\n";
|
393 |
$retour .= ' <img src="http://www.google.com/logos/Logo_25wht.gif" alt="Google" />'."\n";
|
391 |
$retour .= '</a>'."\n";
|
394 |
$retour .= '</a>'."\n";
|
392 |
$retour .= '<input type="text" name="q" size="25" maxlength="255" value="'.construireNomLatin($donnees['NOM_LATIN'], TRUE).'" />'."\n";
|
395 |
$retour .= '<input type="text" name="q" size="25" maxlength="255" value="'.construireNomLatin($donnees['NOM_LATIN'], TRUE).'" />'."\n";
|
Line 397... |
Line 400... |
397 |
$retour .= '</p>'."\n";
|
400 |
$retour .= '</p>'."\n";
|
398 |
$retour .= '</form>'."\n";
|
401 |
$retour .= '</form>'."\n";
|
399 |
}
|
402 |
}
|
400 |
return $retour;
|
403 |
return $retour;
|
401 |
}
|
404 |
}
|
- |
|
405 |
function afficherNiveauTaxoSuperieur($donnees)
|
402 |
|
406 |
{
|
- |
|
407 |
$retour = '';
|
- |
|
408 |
//$retour .= '<pre>'.print_r($donnees, true).'</pre>';
|
- |
|
409 |
$retour .= 'func_NiveauTaxo('.$donnees['nt'].', '.$donnees['nvp'].')';
|
- |
|
410 |
return $retour;
|
- |
|
411 |
}
|
403 |
function afficherSynonyme($donnees, $aso_param)
|
412 |
function afficherSynonyme($donnees, $aso_param)
|
404 |
{
|
413 |
{
|
405 |
$retour = '';
|
414 |
$retour = '';
|
406 |
//$retour .= '<pre>'.print_r($donnees, true).'</pre>';
|
415 |
//$retour .= '<pre>'.print_r($donnees, true).'</pre>';
|
407 |
if ($donnees['TAXON_NOMS']['esns_id_statut'] == $aso_param['statut_id']) {
|
416 |
if ($donnees['TAXON_NOMS']['esns_id_statut'] == $aso_param['statut_id']) {
|
Line 445... |
Line 454... |
445 |
|
454 |
|
446 |
|
455 |
|
447 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
456 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
457 |
*
|
- |
|
458 |
* $Log: not supported by cvs2svn $
|
- |
|
459 |
* Revision 1.8 2005/02/14 18:11:43 jpm
|
448 |
*
|
460 |
* Amélioration.
|
449 |
* $Log: not supported by cvs2svn $
|
461 |
*
|
450 |
* Revision 1.7 2005/01/28 19:46:18 jpm
|
462 |
* Revision 1.7 2005/01/28 19:46:18 jpm
|
451 |
* Amélioration de l'affichage des projets utilisant le noms sélectionné.
|
463 |
* Amélioration de l'affichage des projets utilisant le noms sélectionné.
|
452 |
*
|
464 |
*
|