-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnews.php
More file actions
56 lines (41 loc) · 1.27 KB
/
news.php
File metadata and controls
56 lines (41 loc) · 1.27 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?
/* Nom: news.php
Auteur: Yami (Yami_ne1(à)hotmail.com)
Role: Affichage des news
Creer le: Vendredi-3-Aout-2007
*/
include('connexion.php');
$sql=mysql_query("SELECT * from news order by date desc limit 0,$nombre_news ");//requte de selection
//affichage des news
while($news_res=mysql_fetch_array($sql)){
?>
<table width="429" border="0" cellpadding="0" cellspacing="3" bordercolor="#6699CC">
<!--DWLayoutTable-->
<tr>
<td height="22" colspan="3" valign="top"><h2><? print $news_res['title']; ?></h2></td>
</tr>
<tr>
<td width="17" height="37" valign="top"><? if($news_res['align']=='Left'){
print'<img src="news/img/'.$news_res['img'].'" >';
}?></td>
<td width="395" valign="top"><? print $news_res['news']; ?></td>
<td width="17" valign="top"><? if($news_res['align']=='Right'){
print'<img src="news/img/'.$news_res['img'].'" >';} ?> </td>
</tr>
<tr>
<td height="25" colspan="3" valign="top"><b>Par :</b> <? print $news_res['author']; ?> <b> Le:</b> <? print $news_res['date']; ?></td>
</tr>
<tr>
<td height="2"></td>
<td></td>
<td></td>
</tr>
</table>
<hr size="1" color="#0099CC">
<p>
<?
}
mysql_close();
?>
</p>
<p align="center"><a href="news/archives.php" target="_blank">[Consulter Les Archives]</a></p>