IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

[Tableaux] probleme de double affichage


Sujet :

Langage PHP

  1. #1
    Membre à l'essai
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    95
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2006
    Messages : 95
    Points : 24
    Points
    24
    Par défaut [Tableaux] probleme de double affichage
    Bonjour,

    Dites j'ai un probleme de double affichage de formulaire, avez vous une idee?
    Voici mon script:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    <?php
    include_once("db_common.php");
    include_once("config.inc.php");
     
    $query="SELECT id,brandname FROM cms_shop_brand where rc_brand=1 ORDER BY brandname";
    $brandlist=get_options($query,false,true,$_POST['brandid']);
    ?>
    <html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <!--link href="/default.css" rel="stylesheet" type="text/css"-->
    <link href="../../default.css" rel="stylesheet" type="text/css">
    </head><body>
    <form action="" method="post" enctype="multipart/form-data" name="form1">
      <table width="430" border="4" align="center" cellpadding="4" cellspacing="0"  class="frmdlg">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="dlgcontent">
              <tr> 
                <td  class="formcaption"><div align="center">Liste des mod&egrave;les</div></td>
              </tr>
              <tr> 
                <td align="center"> 
                  <? if (($error)||($warning)||($success))  { echo error($error);echo warning($warning);echo success($success); }else {?>
                  <img src="<? echo TH_FOLDER.THEME?>/spacer.gif" width="10" height="10"> 
                  <? } ?>
                </td>
              </tr>
              <tr>
                <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="dlgcontent">
                    <tr> 
                      <td width="163">Marques<br>
                        <select name="brandid" id="brandid" onChange="submit()">
                          <? echo $brandlist?></select></td>
                      <td width="253">&nbsp;</td>
                    </tr>
                    <tr> 
                      <td colspan="2">Mod&egrave;les</td>
                    </tr>
                  </table></td>
              </tr>
              <tr> 
                <td> <iframe border=1 width="100%" height=400 src="modules/01-articles/listemodels.php?rand=<? echo rand(0, 65535); ?>&brandid=<? echo $_POST['brandid']; ?>"></iframe> 
                </td>
              </tr>
              <tr> 
                <td><div align="center"><img src="images/spi.gif" height="10"></div></td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td><div align="center"><img src="images/spi.gif" height="10"></div></td>
              </tr>
              <tr> 
                <td><div align="center"> 
                    <table border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr> 
                        <td>&nbsp;</td>
                        <td><table  class="btnholder">
                            <tr> 
                              <td><input name="add_item" type="submit" class="flatbtn" id="add_item" value="Ajouter" ></td>
                            </tr>
                          </table></td>
                        <td>&nbsp;</td>
                        <td><table class="btnholder"  >
                            <tr> 
                              <td><input name="cd_item" type="submit" class="flatbtn" id="cd_item" value="Modifier" ></td>
                            </tr>
                          </table></td>
                        <td>&nbsp;</td>
                        <td><table class="btnholder" >
                            <tr> 
                              <td><input name="del_item" type="submit" class="flatbtn" id="del_item" value="Effacer" ></td>
                            </tr>
                          </table></td>
                        <td>&nbsp;</td>
                      </tr>
                    </table>
                  </div></td>
              </tr>
              <tr> 
                <td><div align="center"><img src="<? echo PICS?>/spi.gif" height="10"> 
                  </div></td>
              </tr>
            </table></td>
      </tr>
    </table> 
      <input type="hidden" name="selectedrow" value="">
    </form>
    </body></html>
    Merci d'avance

  2. #2
    Membre expérimenté Avatar de Lorenzo77
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    1 472
    Détails du profil
    Informations personnelles :
    Âge : 52
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Mai 2006
    Messages : 1 472
    Points : 1 537
    Points
    1 537
    Par défaut
    tu pourrais donner + d'infos ?

  3. #3
    Membre à l'essai
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    95
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2006
    Messages : 95
    Points : 24
    Points
    24
    Par défaut suite
    Ben en fait j'ai un tableau formulaire qui s'affiche normalement et des que j'enleve un article en fesant delete, il reaffiche le meme tableau l'un en dessous de l'autre, en fait j'ai le tableau qui s'affiche deux fois

  4. #4
    Membre éclairé
    Avatar de kankrelune
    Profil pro
    Inscrit en
    Décembre 2005
    Messages
    763
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2005
    Messages : 763
    Points : 858
    Points
    858
    Par défaut
    Salut...

    Ton problème ne viendrait il pas de ton iframe... .. .

    @ tchaOo°

  5. #5
    Membre à l'essai
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    95
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2006
    Messages : 95
    Points : 24
    Points
    24
    Par défaut
    Que veux tu dire, mon iframe aurait quel prob?

  6. #6
    Membre à l'essai
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    95
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2006
    Messages : 95
    Points : 24
    Points
    24
    Par défaut
    résolu merci

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 0
    Dernier message: 09/11/2010, 11h13
  2. Réponses: 1
    Dernier message: 13/11/2006, 18h37
  3. Réponses: 10
    Dernier message: 12/07/2006, 11h42
  4. Réponses: 8
    Dernier message: 03/04/2006, 19h28
  5. Probleme bizarre d affichage sur une radeon 9200 SE
    Par venomelektro dans le forum OpenGL
    Réponses: 6
    Dernier message: 03/12/2004, 10h11

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo