Probleme TABLE sous Firefox 4.0

Juju68125 Messages postés 13 Statut Membre -  
Juju68125 Messages postés 13 Statut Membre -
Bonjour,

J'ai un énorme problème au niveau de l'affichage de mes table HTML sous Firefox.

Je vous l'explique, je développe actuellement un tableau me permettant de lister des informations contenu dans une base de données. Tout à l'air de bien s'afficher dans IE et Google Chrome, mais sous firefox le tableau est présent mais refuse de s'afficher...

Je pense que cela est du au base ul que j'ai mis juste avant ce table afin de permettre à l'utilisateur de se déplacer dans le site en utilisant une barre horizontale, étant donné que quand je les enlèves, le tableau s'affiche normalement, encore plus drôle, quand je rajoute un . entre les balises ul et table cela fonctionne aussi...

Voilà le code si vous pouvez m'aider,

[code]<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title>Bienvenue sur mon tableau !</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="Design" href="backoffice.css" />
</head>

<body>

<?php

include 'config/config.inc.php';
include 'config/endecrypt.inc.php';

if(!isset($_SESSION['code'])){

print ("<script language = \"JavaScript\">");
print ("location.href = 'http://localhost/back_office_serveur_licence/connexion.php';");
print ("</script>");

}
else {

$passwd = decrypt( $passwd );

// on se connecte à MySQL
$db = mysql_connect($host, $user, $passwd);

// on sélectionne la base
mysql_select_db($bdd2);

$sql = " SELECT code FROM code WHERE id_code = 1 ";

// on envoie la requÃfªte
$req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());

$row = mysql_fetch_array($req) ;

$test = $row['code'];

if ( $test == $_SESSION['code'] ){
?>

<ul id="nav">

<li><a href="http://localhost/back_office_serveur_licence/acceuil.php">Accueil</a></li>
<li><a href="http://localhost/back_office_serveur_licence/commandes.php">Commandes</a></li>
<li><a href="http://localhost/back_office_serveur_licence/backofficepageacceuil.php">Clients</a></li>

</ul>

<table CLASS = "tableaffichage">

<tr BGCOLOR= #f2f2f2>
<th CLASS = "thaffichage">ID Order</th>
<th CLASS = "thaffichage">Nom du produit</th>
<th CLASS = "thaffichage">ID customer</th>
<th CLASS = "thaffichage">Nom</th>
<th CLASS = "thaffichage">Prenom</th>
<th CLASS = "thaffichage">e-mail</th>
<th CLASS = "thaffichage">NBlicence</th>
</tr>

<?php

$c =0;

// on se connecte à MySQL
$db = mysql_connect($host, $user, $passwd);

// on sélectionne la base
mysql_select_db($bdd);

// on veux rechercher l'ensemble des id_order_detail qui n'ont pas encore été enregistrer
// Pour cela on commence par rechercher l'ensemble des logiciels
$sql6 = " SELECT *
FROM ps_product_logiciel ";

// on envoie la requête
$req6 = mysql_query($sql6) or die('Erreur SQL !<br>'.$sql6.'<br>'.mysql_error());

// Puis on effectue une boucle afin de sélectionner seulement
// les commandes delogiciels qui nous interresse
while($row6 = mysql_fetch_array($req6)){

$id_product = $row6['id_product'];

$sql7 = " SELECT id_order_detail
FROM ps_order_detail
WHERE product_id = '$id_product'
ORDER BY id_order ASC" ;

// on envoie la requête
$req7 = mysql_query($sql7) or die('Erreur SQL !<br>'.$sql7.'<br>'.mysql_error());

// Puis on effectue une boucle afin de sélectionner seulement
// les commandes delogiciels qui nous interresse
while($row7 = mysql_fetch_array($req7)){

$id_order = $row7['id_order_detail'];

// On sélectionne les commandes déjà effectuer
// Creation et envoi de la requete
$sql2 = " SELECT id_order
FROM ps_order_licence " ;

// on envoie la requÃfªte
$req2 = mysql_query($sql2) or die('Erreur SQL !<br>'.$sql2.'<br>'.mysql_error());

$verif =1;
// On trie les commandes afin de n'afficher que les commandes n'ont enregistrer
while($row2 = mysql_fetch_array($req2)){

$id_order_licence = $row2['id_order'];

if ( $id_order == $id_order_licence ){

$verif = 0 ;

break;

}

else {

$verif = 1 ;

}

}

// On as les commandes non enregistrer on les utilises afin d'afficher l'ensemble
// des informations nécessaires à l'enregistrement des commandes

if ($verif == 1 ){

$sql9 = " SELECT id_order
FROM ps_order_detail
WHERE id_order_detail ='$id_order' " ;

// on envoie la requÃfªte
$req9 = mysql_query($sql9) or die('Erreur SQL !<br>'.$sql9.'<br>'.mysql_error());

$row9 = mysql_fetch_array($req9) ;

// id de l'utilisateur que l'on doit enregistrer

$id_orders = $row9['id_order'];

$sql3 = " SELECT ps_orders.id_customer
FROM ps_orders
JOIN ps_order_detail ON ps_order_detail.id_order = ps_orders.id_order
WHERE ps_order_detail.product_id ='$id_product'
AND ps_orders.id_order = '$id_orders' " ;

// on envoie la requÃfªte
$req3 = mysql_query($sql3) or die('Erreur SQL !<br>'.$sql3.'<br>'.mysql_error());

$row3 = mysql_fetch_array($req3) ;

// id de l'utilisateur que l'on doit enregistrer

$id_customer = $row3['id_customer'];

// On récupére les informations sur le clients

$sql4 = " SELECT *
FROM ps_customer
WHERE id_customer = '$id_customer' " ;

// on envoie la requete
$req4 = mysql_query($sql4) or die('Erreur SQL !<br>'.$sql4.'<br>'.mysql_error());

$row4 = mysql_fetch_array($req4) ;

$lastname = $row4['lastname'];
$email = $row4['email'];
$name = $row4['firstname'];

$sql5 = " SELECT product_quantity
FROM ps_order_detail
WHERE id_order = '$id_orders'
AND product_id = '$id_product' " ;

// on envoie la requete
$req5 = mysql_query($sql5) or die('Erreur SQL !<br>'.$sql5.'<br>'.mysql_error());

$row5 = mysql_fetch_array($req5) ;

$NBLicence = $row5['product_quantity'];

// on cherche à obtenir le type du produit

$sql10 = " SELECT name
FROM ps_product_lang
WHERE id_product = '$id_product'
AND id_lang = 2 ";

// on envoie la requête
$req10 = mysql_query($sql10) or die('Erreur SQL !<br>'.$sql10.'<br>'.mysql_error());

$row10 = mysql_fetch_array($req10) ;

$product_name = $row10['name'];

// on affiche le tableau

if($c % 2 == 0) {

?>
<tr BGCOLOR= #fefefe align="center">
<td CLASS = "tdaffichage"><?php echo "$id_order"; ?></td>
<td CLASS = "tdaffichage"><?php echo "$product_name"; ?></td>
<td CLASS = "tdaffichage"><?php echo "$id_customer"; ?></td>
<td CLASS = "tdaffichage"><?php echo "$lastname"; ?></td>
<td CLASS = "tdaffichage"><?php echo "$name"; ?></td>
<td CLASS = "tdaffichage"><?php echo "$email"; ?></td>
<td CLASS = "tdaffichage"><?php echo "$NBLicence"; ?></td>
<td CLASS = "tdaffichage"><?php echo '<a href="http://localhost/back_office_serveur_licence/commandes2.php?id_order='.$id_order.'&id_customer='.$id_customer.'&id_product='.$id_product.'"><img BORDER="0" src="img/ajouter.png"></a>'; ?></td>

</tr>

<?php
}
else {

?>
<tr BGCOLOR= #bbb7b8 align="center">
<td CLASS = "tdaffichage"><?php echo "$id_order"; ?></td>
<td CLASS = "tdaffichage"><?php echo "$product_name"; ?></td>
<td CLASS = "tdaffichage"><?php echo "$id_customer"; ?></td>
<td CLASS = "tdaffichage"><?php echo "$lastname"; ?></td>
<td CLASS = "tdaffichage"><?php echo "$name"; ?></td>
<td CLASS = "tdaffichage"><?php echo "$email"; ?></td>
<td CLASS = "tdaffichage"><?php echo "$NBLicence"; ?></td>
<td CLASS = "tdaffichage"><?php echo '<a href="http://localhost/back_office_serveur_licence/commandes2.php?id_order='.$id_order.'&id_customer='.$id_customer.'&id_product='.$id_product.'"><img BORDER="0" src="img/ajouter.png"></a>'; ?></td>

</tr>
<?php
}

$c = $c+1;
}
}
// Puis on affiche la commande
}

?>
</table>

<br>
<br>
<?php
echo '<a href="http://localhost/back_office_serveur_licence/regnewlogiciel.php"><img BORDER="0" src="img/addlogiciel.png"></a>';
}
else {

print ("<script language = \"JavaScript\">");
print ("location.href = 'http://localhost/back_office_serveur_licence/connexion.php';");
print ("</script>");

}

}

?>

</body>
</html>

[code]

Merci d'avance,
Cordialement,

HARTWEG Julien

A voir également:

1 réponse

Juju68125 Messages postés 13 Statut Membre
 
Désoler d'avance, mais je n'arrive pas à mettre mon morceaux de code dans un espace spécial code, pouvez vous me dire comment cela fonctionne ?

Merci d'avance,
Cordialement,

HARTWEG Julien
0