hello,
je voudrai faire defiler mon texte verticalement grace à un script, si vous avez un script à me proposer!!!
nb: mes textes sont issue d'un code en php, et d'une base en access.
voila ce que j'affiche pour l'instant:
| Dossier de Presse |
| vendredi 05 août 2005 |
kiosque
|
je voudrai que le texte defile verticalement, pour qu'on voit chacun son tour 'Breves et Articles,Dossier de presse, discours...
je vous passe mon code pour info:
<html>
<head>
<title>Actualite</title>
</head>
<body width=759>
<center><h1>Actualités</h1></center>
<?php
include ("connexion.php");
setlocale(LC_TIME, "fr"); // passe en français facilement
$date_tete=strftime("%A %d %B %Y");
$date_tete = date("Y/m/d");
?>
<?php
//--------------------- Message 1 -------------------------//
$datemel= odbc_do( $cnx, "select distinct datemel from breve order by datemel desc ");
$date_bis= odbc_result($datemel,1);
echo("<table border=0>");
echo("<tr>");
echo("<td align=center valign=top>");
echo "<b>Breves et Articles</b>";
echo("</td>");
echo("</tr>");
echo("<tr>");
echo("<td align=center valign=top>");
setlocale(LC_TIME, 'French');
echo strftime ('%A %d %B %Y',strtotime ($date_bis));
// et aaaa/mm/jj
// $date_bis = substr($date_bis,6,4).'/'.substr($date_bis,3,2).'/'.substr($date_bis,0,2);
echo("</tr>");
echo("<tr>");
echo("</td>");
echo("<td align = center>");
$temp=odbc_exec($cnx, "select titre from breve where datemel='".$date_bis."'"."order by titre ");
while( odbc_fetch_row( $temp ) ) //tant que c pas la fin de la table
{
$titretemp=odbc_result( $temp,1 );
$code=odbc_exec($cnx, "select code from breve where datemel='".$date_bis."'"."AND titre='".$titretemp."'" );
while(odbc_fetch_row ($code))
{
$codeaff=odbc_result( $code,1 );
}
$titretemp=ereg_replace ("\quote","'",$titretemp); // on remplace les ' entrées par \quote
$titre= nl2br (stripslashes ($titretemp));
echo ("<a href=breve/"."breve_details.php?Codebreve=".$codeaff.">".$titre."</a>\n");
echo("<br>");
echo("<br>");
} echo("</td>");
echo("</tr>");
$titretemp=ereg_replace ("'","\quote",$titretemp);
?>
<?php
//--------------------- Message 2 -------------------------//
$datemel= odbc_do( $cnx, "select distinct datemel from presse order by datemel desc ");
$date_bis= odbc_result($datemel,1);
echo("<table border=0>");
echo("<tr>");
echo("<td align=center valign=top>");
echo "<b>Dossier de Presse</b>";
echo("</td>");
echo("</tr>");
echo("<tr>");
echo("<td align=center valign=top>");
setlocale(LC_TIME, 'French');
echo strftime ('%A %d %B %Y',strtotime ($date_bis));
echo("</tr>");
echo("<tr>");
echo("</td>");
echo("<td align = center>");
$temp=odbc_exec($cnx, "select titre from presse where datemel='".$date_bis."'"."order by titre ");
while( odbc_fetch_row( $temp ) ) //tant que c pas la fin de la table
{
$titretemp=odbc_result( $temp,1 );
$code=odbc_exec($cnx, "select code from presse where datemel='".$date_bis."'"."AND titre='".$titretemp."'" );
while(odbc_fetch_row ($code))
{
$codeaff=odbc_result( $code,1 );
}
$titretemp=ereg_replace ("\quote","'",$titretemp); // on remplace les ' entrées par \quote
$titre= nl2br (stripslashes ($titretemp));
echo ("<a href=presse/"."presse_details.php?Codepresse=".$codeaff.">".$titre."</a>\n");
echo("<br>");
echo("<br>");
}
echo("</td>");
echo("</tr>");
$titretemp=ereg_replace ("'","\quote",$titretemp);
echo("</table>");
?>
<?php
//--------------------- Message 3 -------------------------//
$datemel= odbc_do( $cnx, "select distinct datemel from discours order by datemel desc ");
$date_bis= odbc_result($datemel,1);
echo("<table border=0>");
echo("<tr>");
echo("<td align=center valign=top>");
echo "<b>Discours</b>";
echo("</td>");
echo("</tr>");
echo("<tr>");
echo("<td align=center valign=top>");
setlocale(LC_TIME, 'French');
echo strftime ('%A %d %B %Y',strtotime ($date_bis));
echo("</tr>");
echo("<tr>");
echo("</td>");
echo("<td align = center>");
$temp=odbc_exec($cnx, "select titre from discours where datemel='".$date_bis."'"."order by titre ");
while( odbc_fetch_row( $temp ) ) //tant que c pas la fin de la table
{
$titretemp=odbc_result( $temp,1 );
$code=odbc_exec($cnx, "select code from discours where datemel='".$date_bis."'"."AND titre='".$titretemp."'" );
while(odbc_fetch_row ($code))
{
$codeaff=odbc_result( $code,1 );
}
$titretemp=ereg_replace ("\quote","'",$titretemp); // on remplace les ' entrées par \quote
$titre= nl2br (stripslashes ($titretemp));
echo ("<a href=discours/"."discours_details.php?Codediscours=".$codeaff.">".$titre."</a>\n");
echo("<br>");
echo("<br>");
} echo("</td>");
echo("</tr>");
$titretemp=ereg_replace ("'","\quote",$titretemp);
echo("</table>");
</body>
</html>