Index: trunk/www/dch/ratescans.php
===================================================================
--- trunk/www/dch/ratescans.php	(revision 18206)
+++ trunk/www/dch/ratescans.php	(revision 18206)
@@ -0,0 +1,47 @@
+<html>
+<head>
+  <meta name="Author" content="Daniela Dorner" />
+  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+  <title>FACT Project</title>
+  <link rel="StyleSheet" type="text/css" href="../style.css" />
+</head>
+<?php
+
+include ("dates.php");
+
+echo "<body>\n";
+echo "<form name='formular' action='ratescans.php' METHOD='GET'>\n";
+echo "quality plots for ";
+
+$date=GetDates($_GET["date"], "ratescans");
+$date2=date("Ymd", strtotime($date));
+$path="../ratescans/".date("Y/m/d", strtotime($date));
+
+echo "</form>\n";
+echo "Ratescans including patch rates for all ratescans of the night ".date("Y/m/d", strtotime($date)).": <br>\n";
+
+if (is_dir($path))
+{
+    echo "<table>\n";
+    if (!$handle=opendir($path))
+    {
+        printf("sorry, path %s cannot be opened", $path);
+        return;
+    }
+    while (false !== ($dir = readdir($handle)))
+    {
+        if(ereg(".png$", $dir))
+        printf("<tr>\n<td><img src='%s/%s' alt='ratescan'></td>\n</tr>\n", $path, $dir);
+    }
+    echo "</table>\n";
+}
+else
+    echo "No files available for ".$date.".\n";
+
+echo "<br>\n";
+echo "Blue: Rate vs threshold<br>\n";
+echo "Black: Patch rates vs threshold<br>\n";
+echo "Gray: Ratescan with good conditions (1.1.2014, id=1388617563)<br>\n";
+echo "</body>\n";
+echo "</html>\n";
+?>
