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