]> Pileus Git - ~andy/ct/blob - gallery/old/noframes.php
Add old version of gallery using php
[~andy/ct] / gallery / old / noframes.php
1 <html>
2 <head>
3 <style>
4         .gallery_item_con {
5                 text-decoration:none;
6                 /*padding-top:5px;
7                 padding-top:5px;*/
8                 margin:10px;
9                 display:block;
10                 height:210px;
11                 width:210px;
12                 text-align:center;
13                 float:left;
14         }
15                 
16         .gallery_item {
17                 text-decoration:none;
18                 background-color:#f8fbFF;
19                 border:solid 1px #B4C7F8;
20                 /*padding-top:5px;
21                 padding-top:5px;*/
22                 padding:5px;
23                 display:block;
24                 /*height:210px;*/
25                 text-align:center;
26         }
27         .gallery_item img {
28                 border:none;
29         }
30         .gallery_item:hover {
31                 color:#0D378D;
32         }
33 </style>
34 </head>
35 <body>
36 <center>
37         <a href="frames.php">Frames</a>
38 </center>
39 <?php
40 $thumbs = shell_exec("cd thumbs && ls -1 *.jpg");
41 $thumbs = explode("\n", $thumbs);
42 array_pop($thumbs);
43 foreach ($thumbs as $thumb) {
44         print("<div class=\"gallery_item_con\">\n");
45         print("\t<a class=\"gallery_item\" href=\"images/$thumb\">\n");
46         print("\t\t<img src=\"thumbs/$thumb\">\n");
47         print("\t</a>\n");
48         print("</div>\n");
49 }
50 ?>
51 </body>
52 </html>