Bonjour,
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 <form name="actus"> <table height="380" width="100%"> <tr> <td> <table width="100%"> <tr> <td align='left'>TITRE</td> <td align='center'>LIEN</td> <td align='center'>POSITION</td> <td align="center">EDITER</td> <td align="center">SUPPRIMER</td> </tr> <?php include("bdConnect.inc.php"); $req="select num_actus, titre_actus, url_actus, pos_actus from actus order by pos_actus;"; $res=mysql_query($req); $i=0; while($row=mysql_fetch_array($res)) { $nbform=0; echo("<tr bgcolor=".($i % 2 == 0 ? '#99CCFF' : '#EFEFEF' ).">"); $i++; $nbform ++; echo" <td align='left'>{$row['1']}</td> <td align='center'>{$row['2']}</td> <td align='center'>{$row['3']}</td> <td align='center'><a href='admin.php?page=modification_actus&id=".$row['1']."'><img src='images/editer.gif' width='37px' height='37px' alt='editer' border='0'></td> <td align='center'><a href='admin.php?page=suppression_actus&id=".$row['1']."' onClick='return confirm(\"Votre actualité a bien été supprimée\");'><img src='images/supprimer.gif' width='37px' height='37px' alt='supprimer' border='0'></td> </tr>"; } ?></table> </td> </tr></table></form>
Voilà le bout de code où j'ai créer un tableau où s'affiche les enregistrements d'une bdd. Je voudrais que ce tableau soit aligné en haut de page, car pour l'instant il est aligné en milieu de page.
Quelqu'un a une idée ?
Partager