Ligne d'un tableau qui ne se cachent pas via une div

Répondre


Cette question est un moyen d’empêcher des soumissions automatisées de formulaires par des robots.
Smileys
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: =D> #-o =P~ :^o :non: :priere: 8-|
Voir plus de smileys
  Revue du sujet
 

  Étendre la vue Revue du sujet : Ligne d'un tableau qui ne se cachent pas via une div

par Invité » 09 avr. 2009, 16:51

merci l'ami ca marche!

par Ryle » 09 avr. 2009, 16:37

Hmm... tes div n'ont rien à faire entre les lignes d'un tableau...

Sous une balise <table>, tu ne peux trouver que des <tr> (au mieux un thead et un tbody). Le reste n'a rien à faire là...

Si c'est la ligne que tu veux masquer, mets ton attribut style directement sur le tr :)

Ligne d'un tableau qui ne se cachent pas via une div

par iut » 09 avr. 2009, 12:36

Bonjour,

J'ai le code suivant:

Code : Tout sélectionner

<body bgcolor="grey"> <?php include('importControleurs.php'); include('includes/header.php');?> <table width="1000px" bgcolor="silver" cellpadding="10" cellspacing="10" border=1 align="center"> <tr width="1000px" height="210px" border=1 align="center"> <td> <? $cli=new GestionClient(); ?> <div align="left"> <table> <tr><td>Etat Civil:</td></tr> </table><br> <? echo "<table><tr><td>Civilité: ".$cli->getListeInfosClient($_SESSION['login'])->categorie."</td></tr>"; echo "<tr><td>Nom: ".$cli->getListeInfosClient($_SESSION['login'])->nom."</td></tr>"; echo "<tr><td>Prénom: ".$cli->getListeInfosClient($_SESSION['login'])->prenom."</td></tr>"; echo "<tr><td>Age: ".$cli->getListeInfosClient($_SESSION['login'])->age."</td></tr>"; echo "<tr><td>Sexe: ".$cli->getListeInfosClient($_SESSION['login'])->sexe."</td></tr>"; echo "<tr><td>Adresse Postale: ".$cli->getListeInfosClient($_SESSION['login'])->adressePostale."</td></tr></table>"; ?> </div> <div align="right"> <table> <tr><td>Informations Personnelles:</td></tr> </table><br> <? echo "<table><tr><td>Adresse mail: ".$cli->getListeInfosClient($_SESSION['login'])->email."</td></tr>"; echo "<tr><td>Numéro de Portable: ".$cli->getListeInfosClient($_SESSION['login'])->telPortable."</td></tr>"; echo "<tr><td>Numéro de l'entreprise: ".$cli->getListeInfosClient($_SESSION['login'])->telEntreprise."</td></tr>"; echo "<tr><td>Nom de l'entreprise: ".$cli->getListeInfosClient($_SESSION['login'])->nomEntreprise."</td></tr>"; echo "<tr><td>Statut social: ".$cli->getListeInfosClient($_SESSION['login'])->statutSocial."</td></tr></table>"; ?> </div> <form> <table><tr><td>nombre de fichier à uploader: <select id="nbup" name="nbup" onchange="afficheUp()"> <option value="1" selected>1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> </select></td></tr> <tr><td>Uploader votre fichier audio n°1: <input type="file" name="up1" id="up1"></td></tr> <div id="div2" style="display:none;"> <tr><td>Uploader votre fichier audio n°2: <input type="file" name="up2" id="up2"></td></tr> </div> <div id="div3" style="visibility:hidden;"> <tr><td>Uploader votre fichier audio n°3: <input type="file" name="up3" id="up3"></td></tr> </div> <div id="div4" style="display:none;visibility:hidden;"> <tr><td>Uploader votre fichier audio n°4: <input type="file" name="up4" id="up4"></td></tr> </div> <div id="div5" style="display:none;visibility:hidden;"> <tr><td>Uploader votre fichier audio n°5: <input type="file" name="up5" id="up5"></td></tr> </div> </table> </form> </td> </tr> </table> <?php include('includes/footer.php');?> </body>
qd je lance sur le serveur, toutes mes lignes s'affichent , alors que je demande simplement de m'afficher la premiere du tableau à la base.