Index: trunk/MagicSoft/Mars/datacenter/db/menu.php
===================================================================
--- trunk/MagicSoft/Mars/datacenter/db/menu.php	(revision 8249)
+++ trunk/MagicSoft/Mars/datacenter/db/menu.php	(revision 8251)
@@ -351,15 +351,27 @@
     printf("  <tr>\n");
 
-    CheckBox("fComment",          "Comment");
-    CheckBox("fScaleFactor",      "Scale");
-    CheckBox("fEffOnTime/3600",   "EffOnTime");
+    CheckBox("fComment",           "Comment");
+    CheckBox("fDataSetName",       "Name");
+    CheckBox("fZenithDistanceMin", "ZdMin");
+    CheckBox("fZenithDistanceMax", "ZdMax");
+
+    printf("  </tr><tr>\n");
+
+    CheckBox("fRunTime",           "Uptime");
+    CheckBox("fRunStart",          "Start");
+    CheckBox("fRunStop",           "Stop");
     CheckBox("fLinks",             "Links");
 
     printf("  </tr><tr>\n");
 
-    CheckBox("fExcessEvents",     "ExcEvts");
-    CheckBox("fBackgroundEvents", "BgEvts");
-    CheckBox("fSignalEvents",     "SignEvts");
-    CheckBox("fSignificance",     "Sign");
+    CheckBox("fEffOnTime/3600",    "EffOnTime");
+    CheckBox("fScaleFactor",       "Scale");
+
+    printf("  </tr><tr>\n");
+
+    CheckBox("fExcessEvents",      "ExcEvts");
+    CheckBox("fBackgroundEvents",  "BgEvts");
+    CheckBox("fSignalEvents",      "SignEvts");
+    CheckBox("fSignificance",      "Sign");
 
     printf("  </tr><tr>\n");
@@ -375,4 +387,18 @@
 }
 
+function PrintDataSetInfoMenu2($host,$user,$pw,$db)
+{
+    printf(" <div id='info2' style='display:none'>");
+    printf("  <table><tr><td>\n");
+    PrintPullDown($host, $user, $pw, $db, "Source",          "fSourceName",          "fSourceKEY",          "Source Name");
+    printf("  </td><td>\n");
+    PrintPullDown($host, $user, $pw, $db, "ObservationMode", "fObservationModeName", "fObservationModeKEY", "Observation Mode");
+    printf("  </td><td>\n");
+    PrintPullDown($host, $user, $pw, $db, "User",            "fUserName",            "fUserKEY",            "User");
+    printf("  </td></tr>\n");
+    printf(" </table>\n");
+    printf("</div>");
+}
+
 function PrintDataSetStatMenu($host,$user,$pw,$db)
 {
@@ -383,4 +409,6 @@
     printf("  <td>\n");
     PrintStatusMenu("fDataSetInserted", "DataSet Inserted");
+    printf("  </td><td>\n");
+    PrintStatusMenu("fDataSetFileWritten", "DataSetFile");
     printf("  </td><td>\n");
     PrintStatusMenu("fStarFilesAvail",  "FilesAvail");
@@ -881,4 +909,10 @@
         $_GET["fDataSetInsertedStatus"]="0";
 
+    if (empty($_GET["fDataSetFileWritten"]))
+        $_GET["fDataSetFileWritten"]=$first?"On":"";
+
+    if (empty($_GET["fDataSetFileWrittenStatus"]))
+        $_GET["fDataSetFileWrittenStatus"]="0";
+
     if (empty($_GET["fStarFilesAvail"]))
         $_GET["fStarFilesAvail"]="Off";
@@ -908,39 +942,67 @@
         $_GET["fNumResults"]="50";
 
+    if (empty($_GET["fLinks"]))
+        $_GET["fLinks"]=$first?"On":"";
+
+    if (empty($_GET["fExcessEvents"]))
+        $_GET["fExcessEvents"]=$first?"On":"";
+
+    if (empty($_GET["fBackgroundEvents*60/fEffOnTime"]))
+        $_GET["fBackgroundEvents*60/fEffOnTime"]=$first?"On":"";
+
+    if (empty($_GET["fBackgroundEvents"]))
+        $_GET["fBackgroundEvents"]=$first?"On":"";
+
+    if (empty($_GET["fSignalEvents"]))
+        $_GET["fSignalEvents"]=$first?"On":"";
+
+    if (empty($_GET["fSignificance"]))
+        $_GET["fSignificance"]=$first?"On":"";
+
+    if (empty($_GET["fScaleFactor"]))
+        $_GET["fScaleFactor"]=$first?"On":"";
+
+    if (empty($_GET["fEffOnTime/3600"]))
+        $_GET["fEffOnTime/3600"]=$first?"On":"";
+
     if (empty($_GET["fSourceName"]))
-        $_GET["fSourceName"]="Off";
+        $_GET["fSourceName"]=$first?"On":"";
+
+    if (empty($_GET["fObservationModeName"]))
+        $_GET["fObservationModeName"]=$first?"On":"";
 
     if (empty($_GET["fComment"]))
         $_GET["fComment"]="Off";
 
-    if (empty($_GET["fExcessEvents"]))
-        $_GET["fExcessEvents"]="Off";
+    if (empty($_GET["fUserName"]))
+        $_GET["fUserName"]="Off";
+
+    if (empty($_GET["fRunStart"]))
+        $_GET["fRunStart"]="Off";
+
+    if (empty($_GET["fRunStop"]))
+        $_GET["fRunStop"]="Off";
+
+    if (empty($_GET["fZenithDistanceMin"]))
+        $_GET["fZenithDistanceMin"]=$first?"On":"";
+
+    if (empty($_GET["fZenithDistanceMax"]))
+        $_GET["fZenithDistanceMax"]=$first?"On":"";
+
+    if (empty($_GET["fRunTime"]))
+        $_GET["fRunTime"]="Off";
+
+    if (empty($_GET["fDataSetName"]))
+        $_GET["fDataSetName"]=$first?"On":"";
 
     if (empty($_GET["fExcessEvents*60/fEffOnTime"]))
         $_GET["fExcessEvents*60/fEffOnTime"]="Off";
 
-    if (empty($_GET["fBackgroundEvents*60/fEffOnTime"]))
-        $_GET["fBackgroundEvents*60/fEffOnTime"]="Off";
-
-    if (empty($_GET["fBackgroundEvents"]))
-        $_GET["fBackgroundEvents"]="Off";
-
-    if (empty($_GET["fSignalEvents"]))
-        $_GET["fSignalEvents"]="Off";
-
     if (empty($_GET["fSignalEvents*60/fEffOnTime"]))
         $_GET["fSignalEvents*60/fEffOnTime"]="Off";
 
-    if (empty($_GET["fSignificance"]))
-        $_GET["fSignificance"]="Off";
-
     if (empty($_GET["Round(fSignificance/Sqrt(fEffOnTime/3600),2)"]))
         $_GET["Round(fSignificance/Sqrt(fEffOnTime/3600),2)"]="Off";
 
-    if (empty($_GET["fScaleFactor"]))
-        $_GET["fScaleFactor"]="Off";
-
-    if (empty($_GET["fEffOnTime/3600"]))
-        $_GET["fEffOnTime/3600"]="Off";
 }
 
