Partage
  • Partager sur Facebook
  • Partager sur Twitter

scroll bar

mettre un scroll bar

    20 décembre 2005 à 5:02:00

    Salut tous le monde
    j'aimerai mettre un scroll bar dans mon tableau dans la 2eme colonne et je sais pas comment m'y prendre

    voici mon 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 lang="fr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml">

       <head>
          <title>Le tribunat: La grande Alliance</title>
          <meta http-equiv="generator" content="tribunal, conseil des 4" />
          <meta http-equiv="keywords" content="tribunal, conseil des 4, tribunat" />
          <meta http-equiv="generator" content="PHP Designer 2005" />
    <style>
    body

    {
    background-image:url("http://membres.netrock.ca/lga/images/110_088.jpg");
    background-repeat:no-repeat;
    }
    </style>
       </head>

       <body background="" bgcolor="#000000" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">

    Bienvenue Au tribunat <?php echo $_SESSION['login']; ?><br />
    Les règles du tribunal sont en vigueur 24h/24 merci de les respecter<br />
    Le conseil des 4<br />
    <?php
    include('connect.php');
    $retour = mysql_query("SELECT COUNT(*) AS nbre_entrees FROM connection");
    $donnees = mysql_fetch_array($retour);
    ?>

    il y a <?php echo $donnees['nbre_entrees']; ?> membre(S) connecté(s)



     <table border="1" bordercolor="#FF0000" bgcolor="#FFFFFF" align="center">

    <thead>
    <tr>

             <th>audience:</th>
             <th>tribunat</th>
             <th>membres concernés</th>
    </tr>
    </thead>

    <tbody >
    <?php

    if (!isset($_SESSION['id']))
    {
    include('connect.php');
    mysql_query("INSERT INTO `connection` VALUES('', '".$_SESSION['login']."', '')") or die (mysql_error());
    $_SESSION['id'] = 1;
    }

    if (isset($_POST['message']))
    {
        if ( $_POST['message'] != NULL)
        {
    include('connect.php');
    $message = htmlentities ($_POST['message']);
    mysql_query("INSERT INTO `tribunat` VALUES('', '".$_SESSION['login']."', '".$message."')") or die (mysql_error());
    }
    }
    include('connect.php');
    $statut = mysql_query("SELECT * FROM connection ");
    $autorisation = mysql_fetch_array($statut) ;
    if ($autorisation['statut'] == 'ok')
    {
    $connection =''.$_SESSION['login'].'';
    }
    else
    {
      $connection_off=''.$_SESSION['login'].'';
    }
    ?>

    <?php
    include('connect.php');
    $reponse = mysql_query("SELECT * FROM tribunat ORDER BY ID LIMIT 0,70");


    $i = 0;
    While ($donnees = mysql_fetch_array($reponse) )
    {
    echo '<tr><td>';
       if ($i == 0)
       {
       echo''.$connection_off.'';
       }
    echo '</td><td><strong>';
    echo'' .$donnees['login'].'</strong> :';
    echo'' .$donnees['message'].'</td>';

    echo'<td><b><font color="#0000FF">';
       if ($i == 0)
       {
       echo ''.$connection.'';
       }
    echo '</font></b></td>';
    echo '</tr>';
    $i++;
    }

    include('connect.php');
    $statut = mysql_query("SELECT * FROM connection ");
    $autorisation = mysql_fetch_array($statut) ;
    if ($autorisation['statut'] == 'ok')
    {
     


        echo '  <tr>
        <td></td>
        <td>
          <form action="tribunat.php" method="post">Message :<textarea cols="50" rows="5" wrap="OFF" name="message"></textarea></td><td><input type="submit" value="Envoyer" />
        </td>
      </tr>
    </tbody>'
    ;

          }
    else
    {
        echo '<tr>
        <td></td>
        <td>
        <form action="tribunat.php" method="post">Message :<textarea cols="50" rows="5" wrap="OFF" readonly="readonly" disabled="disabled">vous êtes ici en tant qu\'observateur</textarea></td><td><input type="submit" value="Envoyer" />
        </td>
      </tr>
      </tbody>'
    ;

          }



    ?>
    </form>

    </table>
       </body>
    </html>


    merci à ceux qui vont m'aider

    @ ++

    dark alexor
     
    • Partager sur Facebook
    • Partager sur Twitter
      20 décembre 2005 à 7:18:59

      pour mettre des scroll il suffit de faire une regle CSS. Donner des dimensions fixes a ton container et ajouter la proprieté "overflow:scroll;"
      • Partager sur Facebook
      • Partager sur Twitter

      scroll bar

      × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
      × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
      • Editeur
      • Markdown