21,7 → 21,7 |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: echoro_affichage_xhtml.fonct.php,v 1.2 2005-02-22 19:36:28 jpm Exp $ |
// CVS : $Id: echoro_affichage_xhtml.fonct.php,v 1.3 2005-02-23 17:29:57 jpm Exp $ |
/** |
* Fichier permettant d'inclure les données dans du XHTML. |
* |
34,7 → 34,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.2 $ $Date: 2005-02-22 19:36:28 $ |
*@version $Revision: 1.3 $ $Date: 2005-02-23 17:29:57 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
78,7 → 78,6 |
* @param array le tableau des paramêtre à inclure dans le XHTML à retourner. |
* @return string contient du XHTML à insérer dans le code PHP. |
*/ |
|
function inclusion_html($type_inclusion, $variable = array()) |
{ |
$html_renvoyer=''; |
91,8 → 90,8 |
case 'titre_carte' : |
$html_renvoyer = '<h1>'.$variable[0].' départements possédant une liste de plantes en cours d\'élaboration</h1>'."\n"; |
break; |
case 'titre_corres' : |
$html_renvoyer = '<h1>Les correspondants départementaux</h1>'."\n"; |
case 'titre_contrib' : |
$html_renvoyer = '<h1>Les contributeurs départementaux</h1>'."\n"; |
break; |
case 'titre_sources' : |
$html_renvoyer = '<h1>Les sources bibliographiques</h1>'."\n"; |
110,25 → 109,20 |
} else { |
$html_renvoyer ='<h2>Affichage des taxons commençant par la lettre : '.$variable[0].'</h2>'; |
} |
$html_renvoyer .='<table> |
$html_renvoyer .='<table id="echoro_resultat"> |
<colgroup> |
<col width="450px" class="texte_tb2"> |
<col width="150px" class="texte_tb2 texte_c"> |
<col class="echoro_colonne_01"> |
<col class="echoro_colonne_02"> |
</colgroup> |
<thead> |
<tr class="insTitle1 texte_c"> |
<th align="center" valign="middle"> |
Nom du taxon |
</th> |
<th align="center" valign="middle"> |
Indice |
</th> |
<tr class="texte_tb2 texte_c"> |
<th align="center" valign="middle"> |
<img name="info1" '. |
'src="Local/icons/idea.gif" '. |
'width="16" '. |
'height="16" '. |
<tr class="echoro_ligne_entete_01"> |
<th>Nom du taxon</th> |
<th>Indice</th> |
</tr> |
<tr class="echoro_ligne_entete_02"> |
<th> |
<img id="echoro_info_01" '. |
'src="'.ECHORO_CHEMIN_IMAGE.'info.png'.'" '. |
'title=" En cliquant sur le nom d\'un taxon, vous accédez à sa fiche nomenclaturale.'. |
'Nombre vert : numéro nomenclatural. Nombre unique attribué à chaque nom. '. |
'Nombre rouge : numéro taxonomique. Tous les noms appartenant à un même taxon possédent le même numéro taxonomique." '. |
135,22 → 129,18 |
'alt=" En cliquant sur le nom d\'un taxon, vous accédez à sa fiche nomenclaturale. '. |
'Nombre vert : numéro nomenclatural. Nombre unique attribué à chaque nom. '. |
'Nombre rouge : numéro taxonomique. Tous les noms appartenant à un même taxon possédent le même numéro taxonomique." '. |
'align="center" '. |
'onMouseOver="AffBulle(\'En cliquant sur le nom d\\\'un taxon, vous accédez à sa fiche nomenclaturale. '. |
'onmouseover="AffBulle(\'En cliquant sur le nom d\\\'un taxon, vous accédez à sa fiche nomenclaturale. '. |
'<br />Nombre vert : numéro nomenclatural. Nombre unique attribué à chaque nom. <br />'. |
'Nombre rouge : numéro taxonomique. Tous les noms appartenant à un même taxon possédent le même numéro taxonomique.\')" '. |
'onMouseOut="HideBulle()" /> |
'onmouseout="HideBulle()" /> |
</th> |
<th align="center" valign="middle"> |
<img name="info2" '. |
'src="Local/icons/idea.gif" '. |
'width="16" '. |
'height="16" '. |
<th> |
<img id="echoro_info_02" '. |
'src="'.ECHORO_CHEMIN_IMAGE.'info.png'.'" '. |
'title="Indice de rareté : information sur la présence de l\'espèce dans le département." '. |
'alt="Indice de rareté : information sur la présence de l\'espèce dans le département." '. |
'align="center" '. |
'onMouseOver="AffBulle(\'Indice de rareté : information sur la présence de l\\\'espèce dans le département.\')" '. |
'onMouseOut="HideBulle()" /> |
'onmouseover="AffBulle(\'Indice de rareté : information sur la présence de l\\\'espèce dans le département.\')" '. |
'onmouseout="HideBulle()" /> |
</th> |
</tr> |
</thead> |
165,7 → 155,7 |
break; |
//----------------------------- LES OUVERTURES DE LIGNES DE TABLEAUX ----------------------------- |
case 'debut_ligne_alerte' : |
$html_renvoyer ='<p class="pap_erreur">'."\n"; |
$html_renvoyer ='<p class="echoro_avertissement">'."\n"; |
break; |
//----------------------------- LES FIN DE LIGNES DE TABLEAUX ----------------------------- |
case 'fin_ligne_alerte' : |
186,47 → 176,46 |
break; |
|
case 'info_dep' : |
$html_renvoyer = '<h1>Informations sur le département : </h1>'."\n".'<h2>Correspondant : </h2>'."\n"; |
for ($i = 0; $i < count($variable[1]); $i++){ |
if ($i >= 1) { |
$html_renvoyer .= ' |
</tr> |
<tr> |
<td width="25%"> </td>'; |
} |
$html_renvoyer = '<h1>Informations sur le département : </h1>'."\n"; |
|
// Gestion des contributeurs d'un département |
$nbre_contrib = count($variable[1]); |
if ($nbre_contrib >= 1) { |
$html_renvoyer .= '<h2>Contributeurs : </h2>'."\n"; |
} else { |
$html_renvoyer .= '<h2>Contributeur : </h2>'."\n"; |
} |
$html_renvoyer .= '<ul>'."\n"; |
for ($i = 0; $i < $nbre_contrib; $i++){ |
if(ereg("[@]", $variable[1][$i]['COURRIEL'])){ |
$html_renvoyer .= ' |
<td width="75%"> |
<a class="eflore_lien" href="mailto:'.$variable[1][$i]['COURRIEL'].'">'.$variable[1][$i]['PRENOM'].' '.$variable[1][$i]['NOM'].'</a>'.' |
</td>'; |
$html_renvoyer .= |
'<li>'. |
'<a class="echoro_lien" href="mailto:'.$variable[1][$i]['COURRIEL'].'">'.$variable[1][$i]['PRENOM'].' '.$variable[1][$i]['NOM'].'</a>'. |
'</li>'; |
} else { |
$html_renvoyer .= '<li>'.$variable[1][$i]['PRENOM'].' '.$variable[1][$i]['NOM'].'</li>'; |
} |
else{ |
$html_renvoyer .= ' |
<td width="75%">'.$variable[1][$i]['PRENOM'].' '.$variable[1][$i]['NOM'].'</td>'; |
} |
} |
$html_renvoyer .=' |
<tr class="texte_tb2"> |
<td width="17%" class="texte_tb2 texte_g" style="vertical-align: text-top;">Source : </td>'; |
for($i=0;$i<count($variable[0]);$i++){ |
if ($i>=1){ |
$html_renvoyer .= ' |
</tr> |
<tr> |
<td width="17%"> </td>'; |
} |
$html_renvoyer .= ' |
<td width="83%">'.$variable[0][$i].'</td>'; |
$html_renvoyer .= '</ul>'."\n"; |
|
// Gestion des sources d'un département |
$nbre_source = count($variable[0]); |
if ($nbre_source >= 1) { |
$html_renvoyer .= '<h2>Sources : </h2>'."\n"; |
} else { |
$html_renvoyer .= '<h2>Source : </h2>'."\n"; |
} |
$html_renvoyer .= ' |
</tr>'; |
$html_renvoyer .= inclusion_html('tab_ferme'); |
$html_renvoyer .= '<ul>'."\n"; |
for($i = 0; $i < $nbre_source; $i++){ |
$html_renvoyer .= '<li>'.$variable[0][$i].'</li>'; |
} |
$html_renvoyer .= '</ul>'; |
break; |
|
case 'intro_corres' : |
$html_renvoyer = '<h1>Dans quel but joindre les correspondant ?</h1>'. |
case 'intro_contrib' : |
$html_renvoyer = '<h1>Dans quel but joindre les contributeurs ?</h1>'. |
'<p>'."\n". |
'Il est utile d\'informer les correspondants départementaux lorsque vous constatez des erreurs dans les listes.<br />'."\n". |
'Il est utile d\'informer les contributeurs départementaux lorsque vous constatez des erreurs dans les listes.<br />'."\n". |
'Ce ne sont que des listes de travail qui sont donc incomplètes ou qui peuvent indiquer des taxons disparus.<br />'."\n". |
'C\'est pour améliorer la qualité de ces listes et en faire profiter tous les membres du réseau que nous comptons sur votre participation.<br /><br />.'."\n". |
'La coordination du projet et l\'intégration des données sont assurées par <a href="mailto:philippe.julve@wanadoo.fr" class="eflore_lien">Philippe JULVE</a>'."\n". |
234,10 → 223,10 |
break; |
//----------------------------- LES PIEDS DE PAGES ----------------------------- |
case 'pied_page' : |
$html_renvoyer = '<p class="eflore_pied_page">'."\n"; |
$html_renvoyer .= 'Si vous constatez des problèmes ou des insuffisances en utilisant cette application, veuillez contacter :'."\n"; |
$html_renvoyer .= '<a href="mailto:jpm@tela-botanica.org">Jean-Pascal MILCENT</a>'."\n"; |
$html_renvoyer .= '</p>'."\n"; |
$html_renvoyer = '<p class="echoro_pied_page">'."\n". |
'Si vous constatez des problèmes ou des insuffisances en utilisant cette application, veuillez contacter :'."\n". |
'<a href="mailto:jpm@tela-botanica.org">Jean-Pascal MILCENT</a>'."\n". |
'</p>'."\n"; |
break; |
|
}//fin du switch |
250,6 → 239,10 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.2 2005/02/22 19:36:28 jpm |
* Suppression de code html superflu. |
* Mise en conformité avec la convention de codage. |
* |
* Revision 1.1 2005/02/22 12:03:14 jpm |
* Ajout des fichiers de la bibliothèque de l'application. |
* |