File indexing completed on 2024-04-06 11:56:46
0001 <!doctype html>
0002 <html xmlns="http://www.w3.org/1999/xhtml"
0003 xmlns:svg="http://www.w3.org/2000/svg"
0004 xmlns:xlink="http://www.w3.org/1999/xlink">
0005 <head>
0006 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
0007 <title>Plots</title>
0008 <meta name="language" content="en" />
0009 <meta name="description" content="" />
0010 <meta name="keywords" content="" />
0011 <style type="text/css">
0012 ul li {list-style: none; margin-bottom: 15px;}
0013 ul li img {display: block;}
0014 ul li span {display: block;}
0015 </style>
0016 </head>
0017 <body>
0018 <?php
0019
0020 $myDirectory = opendir(".");
0021
0022
0023 while($entryName = readdir($myDirectory)) { $dirArray[] = $entryName; }
0024
0025 closedir($myDirectory);
0026
0027 $indexCount = count($dirArray);
0028 sort($dirArray);
0029 ?>
0030
0031 <ul>
0032 <?php
0033
0034 for($index=0; $index < $indexCount; $index++)
0035 {
0036 $extension = substr($dirArray[$index], -4);
0037 if ($extension == '.jpg' || $extension == '.png'){
0038 echo '<li><span><h2>' . $dirArray[$index] . '</h2></span><img src="' . $dirArray[$index] . '" alt="Image"
0039 /><hr>';
0040 }
0041 }
0042
0043 for($index=0; $index < $indexCount; $index++)
0044 {
0045 $extension = substr($dirArray[$index], -4);
0046 if ($extension == '.svg'){
0047 echo '<li><span><h2>' . $dirArray[$index] . '</h2></span><object data="' . $dirArray[$index] . '" type="image/svg+xml"></object><hr>
0048 ';
0049 }
0050 }
0051 ?>
0052 </ul>
0053 </body>
0054 </html>