Meilleurs affichage des recherches pas au niveaux max #7
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -71,6 +71,7 @@ function traiterBranche($onglet, $branche, $start = false)
|
|||||||
$return .= traiterBranche($onglet, $b);
|
$return .= traiterBranche($onglet, $b);
|
||||||
$return .= "</dd>";
|
$return .= "</dd>";
|
||||||
} else {
|
} else {
|
||||||
|
$origin_b = $b;
|
||||||
//On recherche s'il s'agit d'une technologie à niveau multiple
|
//On recherche s'il s'agit d'une technologie à niveau multiple
|
||||||
if ((dTechnologies::idToBit($b) & $planete->technologies[$onglet]) && isset($LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b+1]) && $LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b] == $LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b+1]) {
|
if ((dTechnologies::idToBit($b) & $planete->technologies[$onglet]) && isset($LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b+1]) && $LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b] == $LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b+1]) {
|
||||||
if ((dTechnologies::idToBit($b+1) & $planete->technologies[$onglet]) && isset($LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b+2]) && $LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b] == $LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b+2]) {
|
if ((dTechnologies::idToBit($b+1) & $planete->technologies[$onglet]) && isset($LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b+2]) && $LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b] == $LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b+2]) {
|
||||||
@ -86,6 +87,8 @@ function traiterBranche($onglet, $branche, $start = false)
|
|||||||
|
|
||||||
if (dTechnologies::idToBit($b) & $planete->technologies[$onglet]) {
|
if (dTechnologies::idToBit($b) & $planete->technologies[$onglet]) {
|
||||||
$return .= '<dt><a href="#">';
|
$return .= '<dt><a href="#">';
|
||||||
|
} elseif (dTechnologies::idToBit($origin_b) & $planete->technologies[$onglet]) {
|
||||||
|
$return .= '<dt class="partial"><a href="?p=laboratoire&n='.$onglet.'&t='.$b.'">';
|
||||||
} else {
|
} else {
|
||||||
$return .= '<dt class="lack"><a href="?p=laboratoire&n='.$onglet.'&t='.$b.'">';
|
$return .= '<dt class="lack"><a href="?p=laboratoire&n='.$onglet.'&t='.$b.'">';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user