if ($finale >= 1) {
     $numero = ++${"numeroL{$finale}"};
     $numero2 = $numero + $finale;
     $export .= '<td align=left>';
     // case match looser 1
     $export .= '<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr>';
     $export .= '<td>';
     $id = id_match_finale('L', $finale, $numero, $s_tournois, $op, $status);
     $export .= show_match_finale_exp($id, $op);
     $export .= '</td>';
     // end case match 1
     $export .= '<td valign="bottom"><img src="images/arbre_ligneH2.gif"></td>';
     // case match looser 2
     $export .= '<td align="left">';
     $id = id_match_finale('L', $finale, $numero2, $s_tournois, $op, $status);
     $export .= show_match_finale_exp($id, $op);
     $export .= '</td>';
     // end match
     $export .= '</td>';
     if ($numero % 2 == 1) {
         $export .= '<td background="images/arbre_ligneH.gif" style="background-repeat: repeat-x;background-position: bottom;" width=100%><img src="images/spacer.gif"></td>';
     } else {
         $export .= '<td background="images/arbre_ligneH.gif" style="background-repeat: repeat-x;background-position: top;" width=100%><img src="images/spacer.gif"></td>';
     }
     $export .= '</tr></table>';
     // end case match 2
     $export .= '</td>';
     // calcul du tree apres un match
     if ($finale > 1) {
         if ($numero % 2 == 1) {
             $export .= '<td background="images/arbre_coinhaut.gif" style="background-repeat: no-repeat;background-position: bottom;"><img src="images/spacer.gif"></td>';
 if ($finale >= 1) {
     $numero = ++${"numeroL{$finale}"};
     $numero2 = $numero + $finale;
     $export .= '<td align=left>';
     // case match looser 1
     $export .= '<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr>';
     $export .= '<td>';
     $id = id_match_finale('L', $finale, $numero, $s_tournois, $op, $status);
     show_match_finale_exp($id, $op);
     $export .= '</td>';
     // end case match 1
     $export .= '<td valign="bottom"><img src="images/arbre_ligneH2.gif"></td>';
     // case match looser 2
     $export .= '<td align="left">';
     $id = id_match_finale('L', $finale, $numero2, $s_tournois, $op, $status);
     show_match_finale_exp($id, $op);
     $export .= '</td>';
     // end match
     $export .= '</td>';
     if ($numero % 2 == 1) {
         $export .= '<td background="images/arbre_ligneH.gif" style="background-repeat: repeat-x;background-position: bottom;" width=100%><img src="images/spacer.gif"></td>';
     } else {
         $export .= '<td background="images/arbre_ligneH.gif" style="background-repeat: repeat-x;background-position: top;" width=100%><img src="images/spacer.gif"></td>';
     }
     $export .= '</tr></table>';
     // end case match 2
     $export .= '</td>';
     // calcul du tree apres un match
     if ($finale > 1) {
         if ($numero % 2 == 1) {
             $export .= '<td background="images/arbre_coinhaut.gif" style="background-repeat: no-repeat;background-position: bottom;"><img src="images/spacer.gif"></td>';