Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2301 connectés 

  FORUM HardWare.fr
  Programmation
  PHP

  Probleme de tableau avec des include

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Probleme de tableau avec des include

n°1011169
tyrael4
Posté le 13-03-2005 à 13:14:54  profilanswer
 

Voila mon probleme, j'ai créé sur mon site une page php avec des include en tant que projet pour alléger mes pages.  :ange:  
 
J'utilise un tableau tout simple avec 3 include pour placé un menu horizontal, un menu verticale et le texte, en gros ca donne ca :
 
 <table width="921" height="500" border="0">
<tr align="center">
<td colspan="2">
 <?php include ("menu_hor.htm" ); ?>
</td>
    </tr>
    <tr>
<td width="1" valign="top">
 <?php include ("menu_vert.htm" ); ?>
</td>
<td width="730" align="left" valign="top">
 <?php include "acceuil.htm" ); ?>
</td>
    </tr>
</table>

Et donc le probleme c'est que sous Mozilla Firefox ca marche niquel mais sous IE la cellule du texte (acceuil.htm) est décallé et je comprend vraiment pas pourquoi :??: ..
 
Voila merci de m'aider à résoudre mon petit probleme  :) , pour voir ce que ca donne sur le site :
 http://alanjs2c.free.fr/CONCEPT/test.php

mood
Publicité
Posté le 13-03-2005 à 13:14:54  profilanswer
 

n°1011218
brains
In riding I trust !
Posté le 13-03-2005 à 15:01:04  profilanswer
 

Si tu donnais le code que tu inclus....


---------------
Débuter la moo chez les moants@HFR | Nikon D800 | On ne fait pas un calin chaste à une pute !, Lapattefolle
n°1011219
Ayuget
R.oger
Posté le 13-03-2005 à 15:02:10  profilanswer
 

c'est un problème d'HTML, pas de PHP

n°1011233
tyrael4
Posté le 13-03-2005 à 15:24:18  profilanswer
 

Ok comme tu veux, amuse toi bien :
acceuil.htm :

<p><font size="2" face="Franklin Gothic Book">  &nbsp;  &nbsp; </font> <font size="2" face="Verdana">Bienvenue sur alanJS2C.free.fr. C'est un site perso encore et toujours en construction  
<img border="0" src="http://alanjs2c.free.fr/phpBB2/images/smiles/icon_mrgreen.gif" width="15" height="15">. Vous y trouverez moult choses et n'oublier pas de signer le livre d'or et de parler sur le forum.</font></p>
<ul>
  <li><font face="Verdana"><a class="menu2" href="Litterature.htm">Litt&eacute;rature</a></font></li>
  <li><font face="Verdana"><a class="menu2" href="access.htm">Forum</a></font></li>
  <li><font face="Verdana"><a class="menu2" href="jv.htm">Jeux Vid&eacute;os</a></font></li>
  <li><font face="Verdana"> <a href="http://alanjs2c.free.fr/alex_guestbook3/index.php" class="menu2">Livre d'or</a></font></li>
</ul>
<p><font face="Comic Sans MS"><i><font size="2">Bonne navigation ;)</font></i></font></p>
<p align="right"><font face="Comic Sans MS" size="2"><b>Le webmaster</b></font>
</p>
 <p><u><font face="Elephant" color="#666666">NEWS :</font></u></p>
 <p class="news"><b><i>&nbsp; 21/02/04 :</i></b> Création du forum et du livre d'or</p>
 <p class="news"> <b><i>&nbsp; 18/02/04 :</i></b> Création des rubrique Diablo  
 2, Half Life ², et Need for Speed Underground 2.</p>
 <p class="news">  <b><i>&nbsp; 13/02/04 :</i></b> Réactualisation grapique de membres et jeux vidéos</p>
 <p class="news">   <b><i>&nbsp; 12/02/04 :</i></b> Réactualisation générale  
 du site et changement du thème graphique.</p>
 

 
menu_hor.htm :

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape" )&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
 
    <div align="center">
      <center>
 
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="921" id="AutoNumber1" height="298">
      <tr>
        <td width="1241" colspan="2" class="fondnav" height="34">
      <p align="left">&nbsp;<span style="background-color: #D0D0D0"> </span>
      <font face="Verdana" size="1"><span style="background-color: #DFDFDF">
      Navigation : <a href="http://alanjs2c.free.fr/acceuil.htm">Acceuil</a></span></font></p></td>
        <td width="1241" colspan="2" class="fondnav2" height="34">
      <p align="right"><font face="Verdana" size="2" class="favdem">&nbsp;<a href="#" onClick="window.external.AddFavorite(location.href, document.title);">Favoris&nbsp;</a></font>
      &nbsp;
      <font face="Verdana" size="2" class="favdem">&nbsp;<a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://alanjs2c.free.fr');">Acceuil&nbsp;</a></font>&nbsp;&nbsp;&nbsp;&nbsp; </p></td>
      </tr>
      <tr>
        <td width="79" height="170">
      <img border="0" src="Pics/2.jpg" width="79" height="170"></td>
        <td width="1610" class="fond" height="170">
        <p align="center">
          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="606" height="155">
            <param name="movie" value="anim_logo.swf">
            <param name="quality" value="high"><param name="LOOP" value="false">
            <embed src="anim_logo.swf" width="606" height="155" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>        
        </td>
        <td width="601" class="fond" height="170">
        <p align="center">
        <img src="http://perso0.free.fr/cgi-bin/meteo.pl?dep=44" vspace="0" style="border:2px solid #808080; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></p>
        <p align="center"><img src="http://perso0.free.fr/cgi-bin/wwwcount.cgi?df=[alanjs2c].dat&dd=verd" width="58" height="19" hspace="10" vspace="10"></td>
        <td width="267" height="170">
      <img border="0" src="Pics/3.jpg" width="79" height="170"></td>
      </tr>
      <tr>
        <td width="79" height="39">
      <img border="0" src="Pics/1.jpg" width="79" height="39"></td>
        <td style="border-bottom: 1px solid #909090" width="2129" bgcolor="#ECECEC" height="39" colspan="2">
        <p align="center">
 
<font face="Arial Black" size="1" color="#666666">
<marquee class="bouton" width="655" style="font-family: Verdana; color: #666666; " scrollamount="4" scrolldelay="0" >&nbsp;&nbsp;&nbsp; Site optimisé IE 3+; 1024*768, création personnelle à prendre au 4ème degré pour certaines choses... :) Bonne navigation à tous&nbsp;&nbsp;</marquee></font></td>
        <td width="267" height="39">
      <img border="0" src="Pics/Copie%20de%201.jpg" width="79" height="39"></td>
      </tr>
      <tr>
        <td width="79" height="55">
      <img border="0" src="Pics/Copie%20de%20bas_favdem.jpg" width="79" height="55"></td>
        <td width="2129" class="fondfavdem" height="55" colspan="2">
        <center>
        <table  color="#000000" width="94%">
          <tr>
            <td onMouseOver="javascript:this.style.background='#F3EFE4';" onMouseOut="javascript:this.style.background='#d0d0d0';" class="bouton" width="25%" align="center"><font face="Verdana" size="2">
            <a class="boutontext" href="http://alanjs2c.free.fr/Litterature.htm">
            Littérature</a></font></td>
            <td onMouseOver="javascript:this.style.background='#E5EEF3';" onMouseOut="javascript:this.style.background='#d0d0d0';" class="bouton" width="25%" align="center"><font face="Verdana" size="2">
            <a class="boutontext" href="http://alanjs2c.free.fr/jv.htm">Jeux  
            vidéos</a></font></td>
            <td onMouseOver="javascript:this.style.background='#ffffff';" onMouseOut="javascript:this.style.background='#d0d0d0';" class="bouton" width="25%" align="center"><font face="Verdana" size="2">
            <a class="boutontext" href="http://alanjs2c.free.fr/phpBB2/index.php">
            Forum</a></font></td>
            <td onMouseOver="javascript:this.style.background='#ffffff';" onMouseOut="javascript:this.style.background='#d0d0d0';" class="bouton" width="25%" align="center"><font face="Verdana" size="2">
            <a class="boutontext" href="http://alanjs2c.free.fr/alex_guestbook3/index.php">
            Livre d'or</a></font></td>
          </tr>
        </table>
          </center>
</td>
        <td width="267" height="55">
      <img border="0" src="Pics/bas_favdemd.jpg" width="79" height="55"></td>
      </tr>
      </table>
      </center>
    </div>

 
menu_vert.htm :

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="1%" id="AutoNumber2">
<tr>
<td width="100%">
<img border="0" src="Pics/menu/menuhaut_int.jpg" width="189" height="10"></td>
</tr>
<tr>
<td width="100%" style="border-left: 1px solid #808080; border-right: 1px solid #808080; border-top-width: 1; border-bottom-width: 1" bgcolor="#ECECEC">
<img border="0" src="Pics/menu/menu_int.jpg" width="187" height="28"><p>
 
<script language="javascript">
var menu = new DynamicMenu();
menu.addParent('Forum');
menu.addChild('Index du forum', 'http://alanjs2c.free.fr/phpBB2/index.php');
menu.addChild('Diablo 2', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=7');
menu.addChild('NFS Underground 2', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=8');
menu.addChild('Half Life ²', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=9');
menu.addChild('Autres Jeux', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=12');
menu.addChild('Blabla', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=10');
menu.addChild('Membres', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=11');
menu.addChild('Le blâme', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=1');
menu.addChild('Le dictionnaire', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=2');
menu.addChild('Ihigénie de J.Racine', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=3');
menu.addChild('Thérèse Raquin de Zola', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=4');
menu.addChild('Les perles', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=5');
menu.addChild('Les goodies', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=6');
 
menu.addParent('Livre d\'or');
menu.addChild('Commenter le site', 'http://alanjs2c.free.fr/alex_guestbook3/index.php');
 
menu.addParent('Me contacter');
menu.addChild('E-mail', 'mailto:alanjs2c@free.fr');
 
menu.addParent('News');
menu.addChild('Archives', '#');
</script>
</p></td>
</tr>
<tr>
<td width="100%">
<img border="0" src="Pics/menu/menubas_int.jpg" width="189" height="17"></td>
</tr>
</table>
 
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="1%" id="AutoNumber2">
<tr>
<td width="100%">
<img border="0" src="Pics/menu/menuhaut_jv.jpg" width="189" height="10"></td>
</tr>
<tr>
<td width="100%" style="border-left: 1px solid #809DAD; border-right: 1px solid #809DAD; border-top-width: 1; border-bottom-width: 1" bgcolor="#E5EEF3">
<img border="0" src="Pics/menu/menu_jv.jpg" width="187" height="28"><p>
<script language="javascript">
var menu = new DynamicMenu();
 
menu.addParent('Diablo 2');
menu.addChild('Mon amazone', 'http://alanjs2c.free.fr/d2.htm');
 
menu.addParent('NFS Underground 2');
menu.addChild('Captures d\'écran','http://alanjs2c.free.fr/nfsu2.htm');
 
menu.addParent('Half-Life ²');
menu.addChild('Captures d\'écran','http://alanjs2c.free.fr/hl2.htm');
 
menu.addParent('Forum Jeux Vidéos');
menu.addChild('Diablo 2', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=7');
menu.addChild('NFS Underground 2', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=8');
menu.addChild('Half Life ²', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=9');
menu.addChild('Autres Jeux', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=12');
</script>
</p></td>
</tr>
<tr>
<td width="100%">
<img border="0" src="Pics/menu/menubas_jv.jpg" width="189" height="17"></td>
</tr>
</table>
 
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="1%" id="AutoNumber2">
<tr>
<td width="100%">
<img border="0" src="Pics/menu/menuhaut_litt.jpg" width="189" height="10"></td>
</tr>
<tr>
<td width="100%" style="border-left: 1px solid #B9AC8A; border-right: 1px solid #B9AC8A; border-top-width: 1; border-bottom-width: 1" bgcolor="#F3EFE4">
<img border="0" src="Pics/menu/menu_litt.jpg" width="187" height="28"><p>
 
<script language="javascript">
var menu = new DynamicMenu();
 
menu.addParent('Le blâme');
menu.addChild('Etude sur le blâme', 'http://alanjs2c.free.fr/blame.htm');
 
menu.addParent('Dictionnaire');
menu.addChild('Index du dico', 'http://alanjs2c.free.fr/dico.htm');
menu.addChild('A', 'http://alanjs2c.free.fr/dico.htm#A');
menu.addChild('B', 'http://alanjs2c.free.fr/dico.htm#B');
menu.addChild('C', 'http://alanjs2c.free.fr/dico.htm#C');
menu.addChild('D', 'http://alanjs2c.free.fr/dico.htm#D');
 
menu.addParent('Goodies');
menu.addChild('Index de goodies', 'http://alanjs2c.free.fr/goodiesl.htm');
menu.addChild('Copies d\'SVT', 'http://alanjs2c.free.fr/goodiesl.htm#svt');
menu.addChild('Raquettes', 'http://alanjs2c.free.fr/goodiesl.htm#raquette');
menu.addChild('Divers', 'http://alanjs2c.free.fr/goodiesl.htm#divers');
 
menu.addParent('Iphigénie de J.Racine');
menu.addChild('Index de l\'étude', 'http://alanjs2c.free.fr/iphigenie.htm');
menu.addChild('Introduction', 'http://alanjs2c.free.fr/iphigenie.htm#intro');
menu.addChild('Scène d\'exposition', 'http://alanjs2c.free.fr/iphigenie.htm#expo');
menu.addChild('Illustration', 'http://alanjs2c.free.fr/iphigenie.htm#il');
menu.addChild('Carte de la Grèce', 'http://alanjs2c.free.fr/iphigenie.htm#carte');
menu.addChild('Acte 2 Scène 4', 'http://alanjs2c.free.fr/iphigenie.htm#a2s4');
menu.addChild('Influence de N.Poussin', 'http://alanjs2c.free.fr/iphigenie.htm#poussin');
menu.addChild('Acte 2 Scène 2', 'http://alanjs2c.free.fr/iphigenie.htm#a2s2');
menu.addChild('Acte 3 Scène 6', 'http://alanjs2c.free.fr/iphigenie.htm#a3s6');
 
menu.addParent('Les méthodes');
menu.addChild('Index des méthodes', 'http://alanjs2c.free.fr/methodes.htm');
menu.addChild('Le commentaire', 'http://alanjs2c.free.fr/methodes.htm#menu');
menu.addChild('L\'introduction', 'http://alanjs2c.free.fr/methodes.htm#intro');
menu.addChild('La conclusion', 'http://alanjs2c.free.fr/methodes.htm#conclu');
menu.addChild('La transition', 'http://alanjs2c.free.fr/methodes.htm#trans');
menu.addChild('Gestion du brouillon', 'http://alanjs2c.free.fr/methodes.htm#brouillon');
 
menu.addParent('Thérèse Raquin de Zola');
menu.addChild('Index de l\'étude', 'http://alanjs2c.free.fr/Traquin.htm');
menu.addChild('Introduction', 'http://alanjs2c.free.fr/Traquin.htm#intro');
menu.addChild('Incipit', 'http://alanjs2c.free.fr/Traquin.htm#incipit');
menu.addChild('Préface', 'http://alanjs2c.free.fr/Traquin.htm#preface');
menu.addChild('Chapitre 7', 'http://alanjs2c.free.fr/Traquin.htm#chap7');
menu.addChild('Zola débutant', 'http://alanjs2c.free.fr/Traquin.htm#deb');
 
menu.addParent('Les perles');
menu.addChild('Index des perles', 'http://alanjs2c.free.fr/les%20perles.htm');
menu.addChild('Vos perles', '#');
 
menu.addParent('Forum littérature');
menu.addChild('Le blâme', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=1');
menu.addChild('Le dictionnaire', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=2');
menu.addChild('Ihigénie de J.Racine', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=3');
menu.addChild('Thérèse Raquin de Zola', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=4');
menu.addChild('Les perles', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=5');
menu.addChild('Les goodies', 'http://alanjs2c.free.fr/phpBB2/viewforum.php?f=6');
</script>
</p></td>
</tr>
<tr>
<td width="100%">
<img border="0" src="Pics/menu/menubas_litt.jpg" width="189" height="17"></td>
</tr>
</table>
 

 
test.php :

<html>
 
<head>
<meta name="description" content="alanjs2c.free.fr Site perso avec forum de Litterature, de Jeux Vidéos A prendre au 4ème degrée :)">
<meta name="keywords" content="Forum Jeux Vidéos Litterature Francais JS2C alan free Thérèse Raquin Emile Zola Iphigénie Jean Racine Blame Methodes Charrier Half Life 2 HL2 HL² Need For Speed Underground 2 Cogito Ergosum Diablo 2 Amazone">
<meta http-equiv="Page-Enter" content="blendTrans(Duration=0.3)">
<link href="style.css" rel="stylesheet" type="text/css">
<script language="javascript" src="script_menu.js"></script>
<title>Test graph</title>
 
</head>
 
<body>
 
 
  <table width="921" height="500" border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" style="border-collapse: collapse">
    <tr align="center">
      <td colspan="2"><?php include ("menu_hor.htm" ); ?>  </td>
    </tr>
    <tr>
      <td width="1" valign="top"><?php include ("menu_vert.htm" ); ?>   </td>
      <td width="730" align="left" valign="top"><?php include ("acceuil.htm" ); ?></td>
    </tr>
</table>
 
 
</body>
 
</html>

Voila, have fun autrement torai directement pu regardé sur le site..  :jap:

n°1011240
brains
In riding I trust !
Posté le 13-03-2005 à 15:38:54  profilanswer
 

pas de <font> bourdel ! :o  


---------------
Débuter la moo chez les moants@HFR | Nikon D800 | On ne fait pas un calin chaste à une pute !, Lapattefolle
n°1011248
KangOl
Profil : pointeur
Posté le 13-03-2005 à 15:48:43  profilanswer
 

et les balises [code] :fou:


---------------
Nos estans firs di nosse pitite patreye...
n°1011440
brains
In riding I trust !
Posté le 13-03-2005 à 19:11:58  profilanswer
 

tyrael4 a écrit :

Voila mon probleme, j'ai créé sur mon site une page php avec des include en tant que projet pour alléger mes pages.  :ange:  
 
J'utilise un tableau tout simple avec 3 include pour placé un menu horizontal, un menu verticale et le texte, en gros ca donne ca :
 
 <table width="921" height="500" border="0">
<tr align="center">
<td colspan="2">
 <?php include ("menu_hor.htm" ); ?>
</td>
    </tr>
    <tr>
<td width="1" valign="top">
 <?php include ("menu_vert.htm" ); ?>
</td>
<td width="730" align="left" valign="top">
 <?php include "acceuil.htm" ); ?>
</td>
    </tr>
</table>

Et donc le probleme c'est que sous Mozilla Firefox ca marche niquel mais sous IE la cellule du texte (acceuil.htm) est décallé et je comprend vraiment pas pourquoi :??: ..
 
Voila merci de m'aider à résoudre mon petit probleme  :) , pour voir ce que ca donne sur le site :
 http://alanjs2c.free.fr/CONCEPT/test.php


 
align="left"
 
ton code c'est quand meme un bo bordel  :o  


---------------
Débuter la moo chez les moants@HFR | Nikon D800 | On ne fait pas un calin chaste à une pute !, Lapattefolle
n°1011514
tyrael4
Posté le 13-03-2005 à 21:05:50  profilanswer
 

Mouai et donc ce serai koi le probleme concretement ?  :pt1cable:

n°1011546
brains
In riding I trust !
Posté le 13-03-2005 à 21:21:16  profilanswer
 

ben pas d'alignement dans tes cellules


---------------
Débuter la moo chez les moants@HFR | Nikon D800 | On ne fait pas un calin chaste à une pute !, Lapattefolle

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  PHP

  Probleme de tableau avec des include

 

Sujets relatifs
Modifier les bordures d'un tableau PHP (débutant inside)[C] Probleme nombres aléatoires tous differents
[resolu] Probleme ASP/FREE sur un album de photosPlusieurs problème en css
Problème de LoadLibrary (erreur 2)probleme de fonction
Une histoire d'include et d'exit[MSSQL]Problème pour requete et connexion à une base MSSQL
probleme ANTTableau de HashSet
Plus de sujets relatifs à : Probleme de tableau avec des include


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR