Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 128 → Rev 129

/trunk/scripts/bibliotheque/GenerateurNomSciHtml.php
25,7 → 25,7
'proles' => 'Race prole'
);
 
private $nomSciTpl = '<span class=sci>%s</span>';
private $nomSciTpl = '<span class="sci">%s</span>';
private $nomSupraGenTpl = '<span class="supra_gen">%s</span>';
private $genTpl = '<span class="gen">%s</span>';
private $infraGenTpl = '<span class="infra-gen">%s</span>';
210,9 → 210,9
$html = '';
if ($epithete != '') {
if (substr($epithete, 0, 2) == 'x ') {
$html = ' <span class=hyb>x <span class="'.$type.'">'.str_replace('x ', '', $epithete).'</span></span>';
$html = ' <span class="hyb">x <span class="'.$type.'">'.str_replace('x ', '', $epithete).'</span></span>';
} elseif (substr($epithete, 0, 2) == '+ ') {
$html = ' <span class=chimere>+ <span class="'.$type.'">'.str_replace('+ ', '', $epithete).'</span></span>';
$html = ' <span class="chimere">+ <span class="'.$type.'">'.str_replace('+ ', '', $epithete).'</span></span>';
} else if (substr_count($epithete, ' x ') > 1) {
// Cas d'une formule d'hybridité comprenant des parents hybrides
$html = ' '.$this->insererBaliseFormuleHyb($epithete);