##!/usr/bin/env python
<%page args="shot, page"/>
<%
import os
from pygolem_lite.web import cat, emph, get_page_paths
page_path, base_path, page = get_page_paths(shot, page)
%>
<?php
for ($i=1; $i<=2; $i++)
{
if (file_exists("$i/")) {
echo "<h3><a href='$i/'> Camera $i</a></h3><ul>";
$thelist="";
if ($handle = opendir("$i/")) {
while (false !== ($file = readdir($handle)))
{
if ($file != "." && $file != "..")
{
$thelist .= '<a href="'.$i.'/'.$file.'">'.$file.'</a><br>';
}
}
closedir($handle);
}
echo "<p>$thelist</p></ul>";
}
}
if (file_exists("tomography/")) {
echo "<h3><a href='tomography/'> Tomography</a></h3><ul>";
$thelist="";
if ($handle = opendir("tomography/")) {
while (false !== ($file = readdir($handle)))
{
if ($file != "." && $file != "..")
{
$thelist .= '<a href="tomography/'.$file.'">'.$file.'</a><br>';
}
}
closedir($handle);
}
echo "<p>$thelist</p></ul>";
}
?>
<h3> Makefile: </h3>
<ul>
<li><a href='makefile'>Makefile</a></li>
</ul>