]> Pileus Git - ~andy/ct/blob - gallery/old/nav.php
Add old version of gallery using php
[~andy/ct] / gallery / old / nav.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-top:5px;
9                 margin-bottom:5px;
10                 display:block;
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
37 <?php
38 $thumbs = shell_exec("cd thumbs && ls -1 *.jpg");
39 $thumbs = explode("\n", $thumbs);
40 array_pop($thumbs);
41 foreach ($thumbs as $thumb) {
42         print("<div class=\"gallery_item_con\">\n");
43         print("\t<a class=\"gallery_item\" href=\"images/$thumb\" target=\"content\">\n");
44         print("\t\t<img src=\"thumbs/$thumb\">\n");
45         print("\t</a>\n");
46         print("</div>\n");
47 }
48 ?>
49 </body>
50 </html>