include_once('dwr.header.php');
include_once('dwr.nav.php');
/*-- Listing of the files in the directory by date as a bullet list --*/
echo 'Water Allocation Committee Meeting Summaries
';
/* Change . to directory name if not using current directory */
$file_dir=str_replace('\\','/',dirname(__FILE__));
$fileurl=(str_replace($_SERVER["DOCUMENT_ROOT"],'',$file_dir)).'/';
/* $filename - array to hold the list of file names */
$filename = array();
/* Loop to read list of files in $file_dir */
$dir=opendir($file_dir);
while (false !== ($file = readdir($dir)))
{
/* Do not include these files */
if ($file != "." && $file != ".." && $file != "index.php" && $file != "i.php")
{
/* 01 is appended to the file name to make a proper character date */
$filename[] = "01".$file;
}
}
$sortable = array();
foreach ($filename as $val)
{
$sortable[]= array('sfield'=>strtotime(strtok($val, "_")),'fname'=>$val);
}
rsort($sortable);
reset($sortable);
echo '