Citation :
if ($connecte && ($rub == 'signer' || $rub == '')) $requete = "SELECT `code`,`date1`,`nom`,`email`,`titre`,`commentaire`,`texte`,`date`,`nomclub`,`lien`,`ville`,`adresse`,`mois` FROM `soireeclub` WHERE 1 AND `code` = 8 LIMIT 0, 30 " ; $result =mysql_query($requete) ; while ($data = mysql_fetch_array($result))
{
echo "<CENTER>\n";
DebutTableau("#FFFFFF", "1", "0", "" );
DebutTableau("#354785", "15", "0", "100%" );
echo "<style>\n";
echo ".livre { text-decoration: none; font: bold; color: rgb(255,255,255) }\n";
echo " </style>\n";
echo "<FORM METHOD='POST' ACTION='indexsoireeclub.php3?rub=ajouter'> \n"; echo "<TABLE BORDER=0>\n";
echo " <TR><TD CLASS='livre'> <B>Nom / Pseudo</B> </TD>";
echo "<TD> <INPUT TYPE='text' NAME='ztNom' VALUE=\"".$data['Nom']."\"> </TD>";
echo "<TD ROWSPAN='2'> <INPUT TYPE='submit' VALUE=' Ok '> </TD></TR>";
echo "<TR><TD CLASS='livre'> E-mail (opt.) </TD>";
echo "<TD> <INPUT TYPE='text' NAME='ztEmail' VALUE=\"".$data[Email]."\"> </TD></TR>";
echo "<TR><TD CLASS='livre'> <B>Lien du site</B> </TD>";
echo "<TD> <INPUT TYPE='text' NAME='ztDate1' VALUE=\"".$data[Date1]."\"> </TD>";
echo " <TR><TD CLASS='livre'> <B>Titre</B> </TD>";
echo "<TD> <INPUT TYPE='text' NAME='ztTitre' VALUE=\"".$data[Titre]."\"> </TD>";
echo "<TR><TD CLASS='livre'> <B>Commentaire</B> ";
echo "</TD><TD COLSPAN='3'> <TEXTAREA NAME='ztComment' ROWS='5' COLS='25' SIZE='10' WRAP='virtual'>".$data[Comment]."</TEXTAREA> </TD></TR>";
echo "<TR><TD CLASS='livre'> <B>Commentaire1</B> ";
echo "</TD><TD COLSPAN='3'> <TEXTAREA NAME='ztTexte' ROWS='5' COLS='25' SIZE='10' WRAP='virtual'>".$data[Texte]."</TEXTAREA> </TD></TR>";
echo "<TR><TD CLASS='livre'> <B>Ville</B> </TD>";
echo "<TD> <INPUT TYPE='text' NAME='ztNomclub' VALUE=\"".$data[Nomclub]."\"> </TD>";
echo "<TR><TD CLASS='livre'> <B>Date de la soirée</B> </TD>";
echo "<TD> <INPUT TYPE='text' NAME='ztLien' VALUE=\"".$data[Lien]."\"> </TD>";
echo "<TR><TD CLASS='livre'> <B>Mois de la soirée en chiffre</B> </TD>";
echo "<TD> <INPUT TYPE='text' NAME='ztMois' VALUE=\"".$data[Mois]."\"> </TD>";
echo "<TR><TD CLASS='livre'> <B>Nom du club</B> </TD>";
echo "<TD> <INPUT TYPE='text' NAME='ztVille' VALUE=\"".$data[Ville]."\"> </TD>";
echo "<TR><TD CLASS='livre'> <B>Adresse du club</B> ";
echo "</TD><TD COLSPAN='3'> <TEXTAREA NAME='ztAdresse' ROWS='5' COLS='25' SIZE='10' WRAP='virtual'>".$data[Adresse]."</TEXTAREA> </TD></TR>";
echo "</FORM>\n";
echo "</TABLE>";
FinTableau();
FinTableau();
echo "</CENTER>\n";
}
|