C'est pas de la chance, c'est du talent. Ca marcheeeeeeeeeeeSalut, j'ai pas testé mais en remplaçant les 3 dernières fonctions comme ceci, peut etre que ca marchera ( avec un peu de chance [-o< )
J'ai un peu modifié le code mais ça donne pas tout à fait ce que je veux .
Là ça donne ça sur l'écran (voir image). Il y a trop d'espace :

Comment faire pour que cela affiche ça : (Mi temps : 2-0)
Code : Tout sélectionner
function printTeamSummary($team, $data, $id, $display=1,$passage)
{
if($passage == 1)
{
echo "<tr>";
echo "<td align="right" nowrap><b>(Mi-temps : </b></td>";
}
for ($i=1;$i <= $this->size(); $i++) {
$value = $this->fetchRowValueTeam($data, $i);
echo "<td align="center">";
if ($display == 1)
{
echo "$value";
if($passage == 1)
echo '';
}
else
echo "<input type="text" name="team" . $id . "_period[$i]" value="$value" size="1">";
echo "</td>";
}
if($passage == 2)
{
echo "<td align="right" nowrap>)</td>";
echo "</tr>";
}
}
function printTeam1Summary($display) {
$this->printTeamSummary(getTeamName($this->tid1), $this->data_team1, "1", $display,1);
}
function printTeam2Summary($display) {
$this->printTeamSummary(getTeamName($this->tid2), $this->data_team2, "2", $display,2);
}

