Ignore:
Timestamp:
01/16/07 11:22:03 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/db/menu.php

    r8249 r8251  
    351351    printf("  <tr>\n");
    352352
    353     CheckBox("fComment",          "Comment");
    354     CheckBox("fScaleFactor",      "Scale");
    355     CheckBox("fEffOnTime/3600",   "EffOnTime");
     353    CheckBox("fComment",           "Comment");
     354    CheckBox("fDataSetName",       "Name");
     355    CheckBox("fZenithDistanceMin", "ZdMin");
     356    CheckBox("fZenithDistanceMax", "ZdMax");
     357
     358    printf("  </tr><tr>\n");
     359
     360    CheckBox("fRunTime",           "Uptime");
     361    CheckBox("fRunStart",          "Start");
     362    CheckBox("fRunStop",           "Stop");
    356363    CheckBox("fLinks",             "Links");
    357364
    358365    printf("  </tr><tr>\n");
    359366
    360     CheckBox("fExcessEvents",     "ExcEvts");
    361     CheckBox("fBackgroundEvents", "BgEvts");
    362     CheckBox("fSignalEvents",     "SignEvts");
    363     CheckBox("fSignificance",     "Sign");
     367    CheckBox("fEffOnTime/3600",    "EffOnTime");
     368    CheckBox("fScaleFactor",       "Scale");
     369
     370    printf("  </tr><tr>\n");
     371
     372    CheckBox("fExcessEvents",      "ExcEvts");
     373    CheckBox("fBackgroundEvents",  "BgEvts");
     374    CheckBox("fSignalEvents",      "SignEvts");
     375    CheckBox("fSignificance",      "Sign");
    364376
    365377    printf("  </tr><tr>\n");
     
    375387}
    376388
     389function PrintDataSetInfoMenu2($host,$user,$pw,$db)
     390{
     391    printf(" <div id='info2' style='display:none'>");
     392    printf("  <table><tr><td>\n");
     393    PrintPullDown($host, $user, $pw, $db, "Source",          "fSourceName",          "fSourceKEY",          "Source Name");
     394    printf("  </td><td>\n");
     395    PrintPullDown($host, $user, $pw, $db, "ObservationMode", "fObservationModeName", "fObservationModeKEY", "Observation Mode");
     396    printf("  </td><td>\n");
     397    PrintPullDown($host, $user, $pw, $db, "User",            "fUserName",            "fUserKEY",            "User");
     398    printf("  </td></tr>\n");
     399    printf(" </table>\n");
     400    printf("</div>");
     401}
     402
    377403function PrintDataSetStatMenu($host,$user,$pw,$db)
    378404{
     
    383409    printf("  <td>\n");
    384410    PrintStatusMenu("fDataSetInserted", "DataSet Inserted");
     411    printf("  </td><td>\n");
     412    PrintStatusMenu("fDataSetFileWritten", "DataSetFile");
    385413    printf("  </td><td>\n");
    386414    PrintStatusMenu("fStarFilesAvail",  "FilesAvail");
     
    881909        $_GET["fDataSetInsertedStatus"]="0";
    882910
     911    if (empty($_GET["fDataSetFileWritten"]))
     912        $_GET["fDataSetFileWritten"]=$first?"On":"";
     913
     914    if (empty($_GET["fDataSetFileWrittenStatus"]))
     915        $_GET["fDataSetFileWrittenStatus"]="0";
     916
    883917    if (empty($_GET["fStarFilesAvail"]))
    884918        $_GET["fStarFilesAvail"]="Off";
     
    908942        $_GET["fNumResults"]="50";
    909943
     944    if (empty($_GET["fLinks"]))
     945        $_GET["fLinks"]=$first?"On":"";
     946
     947    if (empty($_GET["fExcessEvents"]))
     948        $_GET["fExcessEvents"]=$first?"On":"";
     949
     950    if (empty($_GET["fBackgroundEvents*60/fEffOnTime"]))
     951        $_GET["fBackgroundEvents*60/fEffOnTime"]=$first?"On":"";
     952
     953    if (empty($_GET["fBackgroundEvents"]))
     954        $_GET["fBackgroundEvents"]=$first?"On":"";
     955
     956    if (empty($_GET["fSignalEvents"]))
     957        $_GET["fSignalEvents"]=$first?"On":"";
     958
     959    if (empty($_GET["fSignificance"]))
     960        $_GET["fSignificance"]=$first?"On":"";
     961
     962    if (empty($_GET["fScaleFactor"]))
     963        $_GET["fScaleFactor"]=$first?"On":"";
     964
     965    if (empty($_GET["fEffOnTime/3600"]))
     966        $_GET["fEffOnTime/3600"]=$first?"On":"";
     967
    910968    if (empty($_GET["fSourceName"]))
    911         $_GET["fSourceName"]="Off";
     969        $_GET["fSourceName"]=$first?"On":"";
     970
     971    if (empty($_GET["fObservationModeName"]))
     972        $_GET["fObservationModeName"]=$first?"On":"";
    912973
    913974    if (empty($_GET["fComment"]))
    914975        $_GET["fComment"]="Off";
    915976
    916     if (empty($_GET["fExcessEvents"]))
    917         $_GET["fExcessEvents"]="Off";
     977    if (empty($_GET["fUserName"]))
     978        $_GET["fUserName"]="Off";
     979
     980    if (empty($_GET["fRunStart"]))
     981        $_GET["fRunStart"]="Off";
     982
     983    if (empty($_GET["fRunStop"]))
     984        $_GET["fRunStop"]="Off";
     985
     986    if (empty($_GET["fZenithDistanceMin"]))
     987        $_GET["fZenithDistanceMin"]=$first?"On":"";
     988
     989    if (empty($_GET["fZenithDistanceMax"]))
     990        $_GET["fZenithDistanceMax"]=$first?"On":"";
     991
     992    if (empty($_GET["fRunTime"]))
     993        $_GET["fRunTime"]="Off";
     994
     995    if (empty($_GET["fDataSetName"]))
     996        $_GET["fDataSetName"]=$first?"On":"";
    918997
    919998    if (empty($_GET["fExcessEvents*60/fEffOnTime"]))
    920999        $_GET["fExcessEvents*60/fEffOnTime"]="Off";
    9211000
    922     if (empty($_GET["fBackgroundEvents*60/fEffOnTime"]))
    923         $_GET["fBackgroundEvents*60/fEffOnTime"]="Off";
    924 
    925     if (empty($_GET["fBackgroundEvents"]))
    926         $_GET["fBackgroundEvents"]="Off";
    927 
    928     if (empty($_GET["fSignalEvents"]))
    929         $_GET["fSignalEvents"]="Off";
    930 
    9311001    if (empty($_GET["fSignalEvents*60/fEffOnTime"]))
    9321002        $_GET["fSignalEvents*60/fEffOnTime"]="Off";
    9331003
    934     if (empty($_GET["fSignificance"]))
    935         $_GET["fSignificance"]="Off";
    936 
    9371004    if (empty($_GET["Round(fSignificance/Sqrt(fEffOnTime/3600),2)"]))
    9381005        $_GET["Round(fSignificance/Sqrt(fEffOnTime/3600),2)"]="Off";
    9391006
    940     if (empty($_GET["fScaleFactor"]))
    941         $_GET["fScaleFactor"]="Off";
    942 
    943     if (empty($_GET["fEffOnTime/3600"]))
    944         $_GET["fEffOnTime/3600"]="Off";
    9451007}
    9461008
Note: See TracChangeset for help on using the changeset viewer.