Add missing 'body' html markup.
[powerfractal_website.git] / index.php
1 <?php include 'common_header.php'; ?>
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
5 <link rel="stylesheet" href="style.css" />
6 <meta name ="keywords" content="fractal fractals powerfractal freeware ADA 95">
7 <title>Power Fractal - News</title>
8 </head>
9 <body>
10 <p>&nbsp;</p>
11 <div align="center">
12 <center>
13 <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="728" id="AutoNumber1" height="497" bordercolorlight="#000000" bordercolordark="#000000">
14 <tr>
15 <td width="800" colspan="4" height="80" nowrap>
16 <p align="center">
17 <img border="0" src="images/titre.jpg" align="left" width="800" height="80" /></p>
18 </td>
19 </tr>
20 <tr>
21 <!-- MENU -->
22 <?php
23 require ("menu.php");
24 ?></td>
25 <td width="20" valign="top" rowspan="4" height="417" nowrap>
26 <p>&nbsp;</p>
27 </td>
28 <td width="660" height="5" valign="top" nowrap></td>
29 <td width="20" valign="top" rowspan="4" height="417" nowrap>&nbsp;</td>
30 </tr>
31 <tr>
32 <td width="660" height="20" nowrap bordercolor="#000000" bgcolor="#000000">
33 <p align="center"><font color="#FFFFFF">News</font></p>
34 </td>
35 </tr>
36 <tr>
37 <td width="660" valign="top" height="5" nowrap></td>
38 </tr>
39 <tr>
40 <td width="660" valign="top" height="424" nowrap bordercolor="#000000" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
41 <div align="left" id="news">
42 <br>
43
44
45 <?php
46
47 $nb_news = 10;
48 $no_news = 1;
49
50 $fichier_news = fopen ("Files/news.txt", "r");
51
52 while (!feof($fichier_news) && $no_news <= $nb_news)
53 {
54 $no_news++;
55
56 $ligne = fgets($fichier_news);
57 if (!$ligne || $ligne == "")
58 break;
59
60 echo('<table border="1" cellpadding="1"
61 cellspacing="0" style="border-collapse: collapse"
62 bordercolor="#111111" width="100%"
63 id="AutoNumber3" height="30">
64 <tr>
65 <td width="70%" bgcolor="#0E1067" height="15"><font color="#FFFFFF"> <b>');
66
67 //Affichage du titre
68 echo $ligne;
69
70 echo('</b></font></td>
71 <td width="30%" bgcolor="#BCE4F9" height="15">
72 <p align="right">');
73
74 //Affichage de la date
75 $ligne = fgets($fichier_news);
76 echo $ligne;
77
78 echo('</td>
79 </tr>
80 <tr>
81 <td width="100%" height="30" colspan="2">');
82
83
84 $ligne = fgets($fichier_news);
85 while ($ligne && chop($ligne) != "chamoix")
86 {
87 echo $ligne;
88 echo ('<br>');
89
90 $ligne = fgets($fichier_news);
91 }
92
93 echo ('</td> </tr> </table>');
94
95 //espace entre le news
96 echo ('<br>');
97 }
98 fclose ($fichier_news);
99
100 ?>
101
102
103
104
105 </div>
106 </td>
107 </tr>
108 </table>
109 </center>
110 </div>
111
112 </body>
113
114 </html>