IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 9, 2011, 4:03:56 PM (15 years ago)
Author:
rhenders
Message:

Added ability to choose a day for the exposure summary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/raw/czartool_exposures.php

    r30382 r30547  
    2323$menu = $ID['menu'];
    2424
    25 $today = date("Y-m-d");
    26 
     25$date = $_POST['date'];
     26
     27// if no date chosen, use today
     28if ($date == "") $date = date("Y-m-d");
     29
     30
     31// set up the form
     32echo "<form action=\"czartool_exposures.php\" method=\"POST\">\n";
     33
     34echo "<input type=\"hidden\" name=\"pass\" value=\"$pass\">\n";
     35echo "<input type=\"hidden\" name=\"proj\" value=\"$proj\">\n";
     36echo "<input type=\"hidden\" name=\"menu\" value=\"$menu\">\n";
     37
     38
     39echo "<form method=post action=czartool_exposures.php?pass=$pass&proj=$proj&date=$date>";
     40echo "<p  align=\"center\"> Current status of all exposures taken on (UTC) ";
     41echo "<input type=text name=date value='$date'>";
     42echo "<input type=submit value=Submit>";
    2743echo "</p>";
    28 echo "<p  align=\"center\"> Current status of all exposures taken $today UTC </p>";
    29 
    30 createTableForThisSurvey($gpc1db, $today, "");
     44
     45echo "</form>\n";
     46
     47createTableForThisSurvey($gpc1db, $date, "");
    3148
    3249menu_end();
Note: See TracChangeset for help on using the changeset viewer.