un td qui fout le bazar
Posté : 21 août 2011, 23:45
salut a tous!
voila, je suis toujours sur mon petit script, bientot fini, mais je me retrouve avec une mocheté graphique.
il y a du php, 3 conditions:
1 - aucune variable post, on affiche les champs a remplir pour l' installation, pas de souci
2 et 3, qui dit que l' installation s'est bien faite, et l' autre que l' installation a deja été faite (si on relance l'install.php)
pour la 2 et 3, mon tableau est coupé sur la droite, comme un probleme de td ou de tr et effectivement si j'affiche mon tableau (epaisseur, la partie droite il manque un td ou tr et la partie basse du coup a disparu par logique.
Alors si je retire le php des trois conditions en plein milieu, plus de souci, et pourtant les condtions 2 et 3 qui poseraient soucis, j' ai beau regarder, il y a deux <table></table, deux <tr></tr> et pourtant aussi deux <td></td>
J'aimerai le finir assez vite pour mieux l'améliorer aprés mais c'est mal parti, en plus c'est pour le distribuer gratuitement :/
en plus le w3c me ceci mais je ne vois pas ni d' ouverte manquante, ni de fermée :
Error Line 87, Column 7: end tag for "td" omitted, but OMITTAG NO was specified
</tr>
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
voila, je suis toujours sur mon petit script, bientot fini, mais je me retrouve avec une mocheté graphique.
il y a du php, 3 conditions:
1 - aucune variable post, on affiche les champs a remplir pour l' installation, pas de souci
2 et 3, qui dit que l' installation s'est bien faite, et l' autre que l' installation a deja été faite (si on relance l'install.php)
pour la 2 et 3, mon tableau est coupé sur la droite, comme un probleme de td ou de tr et effectivement si j'affiche mon tableau (epaisseur, la partie droite il manque un td ou tr et la partie basse du coup a disparu par logique.
Alors si je retire le php des trois conditions en plein milieu, plus de souci, et pourtant les condtions 2 et 3 qui poseraient soucis, j' ai beau regarder, il y a deux <table></table, deux <tr></tr> et pourtant aussi deux <td></td>
J'aimerai le finir assez vite pour mieux l'améliorer aprés mais c'est mal parti, en plus c'est pour le distribuer gratuitement :/
en plus le w3c me ceci mais je ne vois pas ni d' ouverte manquante, ni de fermée :
Error Line 87, Column 7: end tag for "td" omitted, but OMITTAG NO was specified
</tr>
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
<?php
session_start();
include('admin/config.php');
$pseudo = $_POST['pseudo'];
$mdp = $_POST['mdp'];
$requete = mysql_query('SELECT COUNT(*) FROM faq_user');
$donnees = mysql_result($requete, 0);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Administration de votre FAQ</title>
<style type="text/css">
<!--
a:link {
color: #00F;
}
a:visited {
color: #00F;
}
a:hover {
color: #06F;
}
a:active {
color: #00F;
}
-->
</style>
</head>
<body>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="20" background="<?php echo $chemin; ?>images/hg.png"> </td>
<td width="740" height="20" align="center" background="<?php echo $chemin; ?>images/top.png"> </td>
<td width="20" background="<?php echo $chemin; ?>images/hd.png"> </td>
</tr>
<tr>
<td width="20" background="<?php echo $chemin; ?>images/mg.png"> </td>
<td width="740" align="center" background="<?php echo $chemin; ?>images/main.png"><div align="center"><img src="<?php echo $chemin; ?>images/install.png" /><br />
<script type="text/javascript"><!--
google_ad_client = "pub-2988340172457918";
/* 468x60, date de création 21/05/09 petite horizontale */
google_ad_slot = "9902612400";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<br />
<br />
<table width="580" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="35" background="<?php echo $chemin; ?>images/bg_t.png"><img src="<?php echo $chemin; ?>images/blank.png" />Installation de votre FAQ</td>
</tr>
</table>
<br />
<?php
if($donnees > 0)
{
?>
<br />
<br />
<br />
<br />
<table width="483" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="483">L'installation a déjà été faîte, supprimez le fichier install.php, chargez le fichier sql.txt dans la base de données aprés avoir rempli le fichier admin/config.php.</td>
</tr>
</table>
<?php
}
elseif(isset($pseudo)&&isset($mdp))
{
mysql_query("INSERT INTO faq_user VALUES ('','$pseudo','$mdp')");
?>
<br />
<br />
<br />
<br />
<table width="483" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="483">Création du compte administrateur déroulé avec succés, effacez le fichier install.php, chargez le fichier sql.txt dans la base de données aprés avoir rempli le fichier admin/config.php.</td>
</tr>
</table>
<?php
}
elseif(!isset($pseudo)&&!isset($mdp)&&($donnees < 1))
{
?>
<table width="483" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="483"><form method="post" action="install.php">
Choisissez un identifiant :<br />
<br />
<div style="font-size:12px;">Note : ces identifiants vous serviront à vous connecter en tant qu'administrateur.</div>
<br />
<br />
<div align="center">
<input name="pseudo" type="text" id="textfield" size="40" />
</div>
<br />
<br />
Choisissez un mot de passe :<br />
<br />
<div align="center">
<input name="mdp" type="text" id="textfield2" size="40" />
</div>
<br />
<br />
<div align="center">
<input type="submit" name="submit" id="submit" value="Finir l'installation" />
</div>
</form>
<?php
}
?>
<br />
<br /></td>
</tr>
</table></td>
<br />
<br />
<td width="20" background="<?php echo $chemin; ?>images/md.png"> </td>
</tr>
<tr>
<td width="20" background="<?php echo $chemin; ?>images/bg.png"> </td>
<td width="740" height="20" background="<?php echo $chemin; ?>images/bottom.png"> </td>
<td width="20" background="<?php echo $chemin; ?>images/bd.png"> </td>
</tr>
<tr>
<td height="20" colspan="3" align="center" style=" font-size:12px;"><a href="http://www.webcoyote.fr?c=faq">FAQoyote</a> ©2011 <a href="http://www.webcoyote.fr">webcoyote.fr</a></td>
</tr>
</table>
</body>
</html>