ACIS Inspection Reports"; echo "USDA Animal Welfare Inspection Reports
"; echo "Animal Welfare Act "; echo "Animal Welfare Regulations
"; //echo "Coming Soon May 26th 2009
"; //using the opendir function $breadcrumb = $_GET["breadcrumb"]; $pheader = $_GET["pheader"]; // put the breadcrumb if it is present if($breadcrumb != null) { list($none,$type,$state) = split('[|]',$breadcrumb); if($state != null) { echo "Inspection Reports -> $type -> $state
"; } else if($type != null) { echo "Inspection Reports -> $type
"; } } // put a space echo "
"; $path = "/htdocs/www/animal_welfare/Inspection_Reports/".'/'.$pheader; $dir_handle = @opendir($path) or die("Unable to open $path $epath"); //running the while loop while ($file = readdir($dir_handle)) { if($file!="." && $file!="..") { if(is_dir($path.'/'.$file)) { //echo "$file
"; $folder_array[] = $file; } else { //echo "$file
"; $file_array[] = $file; } } } //closing the directory closedir($dir_handle); /* if ($handle = opendir($dir)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && $file != "style.css" && $file != "index.php" && $file != "indexer.php") { if (is_dir("$dir/$file")) $folder_array[] = strtolower($file); else $file_array[] = strtolower($file); } } closedir($handle); } */ if ($folder_array) { sort ($folder_array); foreach ($folder_array as $file) { //echo "$file
"; echo "$file
"; } } if ($file_array) { sort ($file_array); foreach ($file_array as $file) { //echo "$file
"; echo "$file
"; } } ?>