Add missing 'body' html markup.
[powerfractal_website.git] / galerie.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 <title>Power Fractal - Gallerie</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">
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">Gallerie</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>
39 <p>Voici quelques rendus de fractals dans différents formats :<br>
40 Dimensions réelles : 1280 x 1024</p>
41
42
43
44
45
46
47
48 <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
49
50
51 <?php
52 define("nb_colonne",3);
53
54
55 $nb_fichier = 1; //le nombre de fichier courant
56 $zero = '0'; //le zero à ajouter devant le chiffre de la fractal : 6 => 06
57
58 //tant qu'il y a des fichiers fractalxx_petit.jpg
59 while ( file_exists("images/gallerie/fractal{$zero}{$nb_fichier}_petit.jpg") == 1)
60 {
61 $nb_fichier++; //le nombre de fichier chargé augmente
62 if ($nb_fichier >= 10) $zero= ''; //Si le nombre de fichier excède 9 alors il ne faut pas ajouter de '0'
63 }
64 $nb_fichier--;
65
66
67
68 //pour afficher le nombre de fichier :
69 //echo "\nNombre de fichier : {$nb_fichier}";
70
71 $zero = '0';
72 //pour tout les fichiers trouvé (nb_fichier)
73 for ($i = 1; $i <= $nb_fichier; $i++)
74 {
75 if ($i % nb_colonne == 1) echo ('<tr>');
76
77 if ($i >= 10) $zero= ''; //Si le nombre de fichier excède 9 alors il ne faut pas ajouter de '0'
78
79
80 echo('<td width="33%"> <a target="_blank" href="images/gallerie/fractal');
81 echo("{$zero}{$i}.jpg");
82 echo('"><img border="0" src="images/gallerie/fractal');
83 echo("{$zero}{$i}_petit.jpg");
84 echo('" width="200" height="160"></a><br><a target="_blank" href="images/gallerie/fractal');
85 echo("{$zero}{$i}.jpg");
86 echo('">Version jpg [');
87
88 //taille de la jpg
89 echo( number_format(filesize("images/gallerie/fractal{$zero}{$i}.jpg")/1024, 1) );
90
91 echo('ko]</a><br><a href="images/gallerie/fractal');
92 echo("{$zero}{$i}.png");
93 echo('">Version png [');
94
95 //taille du png
96 echo( number_format(filesize("images/gallerie/fractal{$zero}{$i}.png")/1024, 1) );
97
98 echo('ko]</a><br><a href="images/gallerie/fractal');
99 echo("{$zero}{$i}.jof");
100 echo('">Version jof [&lt;1ko]</a><br>&nbsp;</td>');
101
102 if ($i % nb_colonne == 0) echo ('</tr>');
103
104 }
105
106
107 ?>
108
109 </table>
110
111 <p><a href="images/gallerie/Fractals_jpg.zip">Téléchargez le pack des jpg [
112 <?php
113 //taille du pack jpg
114 echo( number_format(filesize("images/gallerie/Fractals_jpg.zip")/1024, 1) );
115 ?>
116
117 ko]</a><br> <a href="images/gallerie/Fractals_png.zip">Téléchargez le pack des png [
118
119 <?php
120 //taille du pack bmp
121 echo( number_format(filesize("images/gallerie/Fractals_bmp.zip")/1024, 1) );
122 ?>
123
124 ko]</a><br> <a href="images/gallerie/Fractals_jof.zip">Téléchargez le pack des jof [
125
126 <?php
127 //taille du pack jof
128 echo( number_format(filesize("images/gallerie/Fractals_jof.zip")/1024, 1) );
129 ?>
130
131 ko]</a></p>
132
133 <p><b>Le format jof est spécifique à Power Fractal</b></p>
134 </td>
135 </tr>
136 </table>
137 </center>
138 </div>
139
140 </body>
141
142 </html>