Changeset 8251 for trunk/MagicSoft/Mars/datacenter/db
- Timestamp:
- 01/16/07 11:22:03 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/db
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/datasetinfo-aio.php
r8249 r8251 155 155 $_GET["fNumResults"]="50"; 156 156 157 if (empty($_GET["fLinks"]))158 $_GET["fLinks"]=$first?"On":"";159 160 if (empty($_GET["fWobble"]))161 $_GET["fWobble"]=$first?"On":"";162 163 if (empty($_GET["fExcessEvents"]))164 $_GET["fExcessEvents"]=$first?"On":"";165 166 if (empty($_GET["fBackgroundEvents*60/fEffOnTime"]))167 $_GET["fBackgroundEvents*60/fEffOnTime"]=$first?"On":"";168 169 if (empty($_GET["fBackgroundEvents"]))170 $_GET["fBackgroundEvents"]=$first?"On":"";171 172 if (empty($_GET["fSignalEvents"]))173 $_GET["fSignalEvents"]=$first?"On":"";174 175 if (empty($_GET["fSignificance"]))176 $_GET["fSignificance"]=$first?"On":"";177 178 if (empty($_GET["fScaleFactor"]))179 $_GET["fScaleFactor"]=$first?"On":"";180 181 if (empty($_GET["fEffOnTime/3600"]))182 $_GET["fEffOnTime/3600"]=$first?"On":"";183 if (empty($_GET["fGanymed"]))184 $_GET["fGanymed"]=$first?"On":"";185 186 if (empty($_GET["fSourceName"]))187 $_GET["fSourceName"]=$first?"On":"";188 189 157 InitDataSetInfo($_GET, $first); 190 158 } … … 208 176 printf(" <div id='all' style='display:block'>"); 209 177 PrintDataSetInfoMenu($host, $user, $pw, $db); 210 printf(" <div id='info2' style='display:none'>"); 211 printf(" <table><tr><td>\n"); 212 PrintPullDown($host, $user, $pw, $db, "Source", "fSourceName", "fSourceKEY", "Source Name"); 213 printf(" </td></tr>\n"); 214 printf(" </table>\n"); 215 printf("</div>"); 178 PrintDataSetInfoMenu2($host, $user, $pw, $db); 216 179 printf(" <p>\n"); 217 180 PrintFailMenu($host, $user, $pw, $db); -
trunk/MagicSoft/Mars/datacenter/db/magicdefs.php
r8236 r8251 19 19 "fFillStar" => "fStar", 20 20 "fDataSetInserted" => "DataSetProcessStatus.fDataSetNumber", 21 "fStarFilesAvail" => "fDataSetInserted", 21 "fDataSetFileWritten" => "fDataSetInserted", 22 "fStarFilesAvail" => "fDataSetFileWritten", 22 23 "fGanymed" => "fStarFilesAvail", 23 24 "fFillGanymed" => "fGanymed", … … 83 84 "fTelescopeName" => CheckWhere("fTelescopeKEY", $_GET), 84 85 "fBandName" => CheckWhere("fBandKEY", $_GET), 86 "fUserName" => CheckWhere("fUserKEY", $_GET), 85 87 ); 86 88 … … 107 109 "fStatusName" => CheckGroup("fStatusKEY", $_GET), 108 110 "fBandName" => CheckGroup("fBandKEY", $_GET), 111 "fUserName" => CheckGroup("fUserKEY", $_GET), 109 112 "fTelescopeName" => CheckGroup("fTelescopeKEY", $_GET), 110 113 ); … … 130 133 "fFillStar" => CheckStatusGroup("fFillStarStatus", $_GET), 131 134 "fDataSetInserted" => CheckStatusGroup("fDataSetInsertedStatus", $_GET), 135 "fDataSetFileWritten" => CheckStatusGroup("fDataSetFileWrittenStatus", $_GET), 132 136 "fStarFilesAvail" => CheckStatusGroup("fStarFilesAvailStatus", $_GET), 133 137 "fGanymed" => CheckStatusGroup("fGanymedStatus", $_GET), … … 206 210 "fFillStar" => "FillStar", 207 211 "fDataSetInserted" => "DataSet", 212 "fDataSetFileWritten" => "DataSetFile", 208 213 "fStarFilesAvail" => "FilesAvail", 209 214 "fGanymed" => "Ganymed", … … 271 276 "fDataSetNumber" => "Data<br>Set#", 272 277 "fComment" => "Comment", 278 "fUserName" => "User", 279 "fRunTime" => "Up<br>Time<br>[min]", 280 "fDataSetName" => "Name", 273 281 "fExcessEvents*60/fEffOnTime" => "Exc<br>Rate", 274 282 "fBackgroundEvents*60/fEffOnTime" => "Bg<br>Rate", … … 442 450 "fObjectName" => $fromtable . ".fObjectKEY", 443 451 "fStatusName" => $fromtable . ".fStatusKEY", 444 "fBandName" => $fromtable . ".fBandKEY", 452 "fBandName" => $fromtable . ".fBandKEY", 453 "fUserName" => $fromtable . ".fUserKEY", 445 454 "fTelescopeName" => $fromtable . ".fTelescopeKEY", 446 455 ); … … 544 553 "fDataSetNumber" => $fromtable . ".fDataSetNumber", 545 554 "fDataSetInserted" => "DataSetProcessStatus.fDataSetInserted", 555 "fDataSetFileWritten" => "DataSetProcessStatus.fDataSetFileWritten", 546 556 "fStarFilesAvail" => "DataSetProcessStatus.fStarFilesAvail", 547 557 "fGanymed" => "DataSetProcessStatus.fGanymed", 548 558 "fFillGanymed" => "DataSetProcessStatus.fFillGanymed", 549 559 "fComment" => "DataSets.fComment", 560 "fDataSetName" => "DataSets.fDataSetName", 550 561 "fEvents" => "DataCheck.fEvents", 551 562 "fPositionSignal" => "DataCheck.fPositionSignal", … … 593 604 "fBandName" => "Band.fBandName", 594 605 "fTelescopeName" => "Telescope.fTelescopeName", 606 "fUserName" => "User.fUserName", 595 607 ); 596 608 … … 636 648 "fStatusName" => " LEFT JOIN Status ON " . $fromtable . ".fStatusKEY=Status.fStatusKEY ", 637 649 "fBandName" => " LEFT JOIN Band ON " . $fromtable . ".fBandKEY=Band.fBandKEY ", 650 "fUserName" => " LEFT JOIN User ON " . $fromtable . ".fUserKEY=User.fUserKEY ", 638 651 "fTelescopeName" => " LEFT JOIN Telescope ON " . $fromtable . ".fTelescopeKEY=Telescope.fTelescopeKEY ", 639 652 ); -
trunk/MagicSoft/Mars/datacenter/db/menu.php
r8249 r8251 351 351 printf(" <tr>\n"); 352 352 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"); 356 363 CheckBox("fLinks", "Links"); 357 364 358 365 printf(" </tr><tr>\n"); 359 366 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"); 364 376 365 377 printf(" </tr><tr>\n"); … … 375 387 } 376 388 389 function 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 377 403 function PrintDataSetStatMenu($host,$user,$pw,$db) 378 404 { … … 383 409 printf(" <td>\n"); 384 410 PrintStatusMenu("fDataSetInserted", "DataSet Inserted"); 411 printf(" </td><td>\n"); 412 PrintStatusMenu("fDataSetFileWritten", "DataSetFile"); 385 413 printf(" </td><td>\n"); 386 414 PrintStatusMenu("fStarFilesAvail", "FilesAvail"); … … 881 909 $_GET["fDataSetInsertedStatus"]="0"; 882 910 911 if (empty($_GET["fDataSetFileWritten"])) 912 $_GET["fDataSetFileWritten"]=$first?"On":""; 913 914 if (empty($_GET["fDataSetFileWrittenStatus"])) 915 $_GET["fDataSetFileWrittenStatus"]="0"; 916 883 917 if (empty($_GET["fStarFilesAvail"])) 884 918 $_GET["fStarFilesAvail"]="Off"; … … 908 942 $_GET["fNumResults"]="50"; 909 943 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 910 968 if (empty($_GET["fSourceName"])) 911 $_GET["fSourceName"]="Off"; 969 $_GET["fSourceName"]=$first?"On":""; 970 971 if (empty($_GET["fObservationModeName"])) 972 $_GET["fObservationModeName"]=$first?"On":""; 912 973 913 974 if (empty($_GET["fComment"])) 914 975 $_GET["fComment"]="Off"; 915 976 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":""; 918 997 919 998 if (empty($_GET["fExcessEvents*60/fEffOnTime"])) 920 999 $_GET["fExcessEvents*60/fEffOnTime"]="Off"; 921 1000 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 931 1001 if (empty($_GET["fSignalEvents*60/fEffOnTime"])) 932 1002 $_GET["fSignalEvents*60/fEffOnTime"]="Off"; 933 1003 934 if (empty($_GET["fSignificance"]))935 $_GET["fSignificance"]="Off";936 937 1004 if (empty($_GET["Round(fSignificance/Sqrt(fEffOnTime/3600),2)"])) 938 1005 $_GET["Round(fSignificance/Sqrt(fEffOnTime/3600),2)"]="Off"; 939 1006 940 if (empty($_GET["fScaleFactor"]))941 $_GET["fScaleFactor"]="Off";942 943 if (empty($_GET["fEffOnTime/3600"]))944 $_GET["fEffOnTime/3600"]="Off";945 1007 } 946 1008
Note:
See TracChangeset
for help on using the changeset viewer.