"); printf(" \n"); printf(" \n"); CheckBox("fRunStart", "Run start time"); CheckBox("fL2RatePresc", "L2 presc Rate"); CheckBox("fDaqStoreRate", "DAQ Storage Rate"); CheckBox("fAzimuth", "Azimuth"); printf(" \n"); CheckBox("fRunStop", "Run stop time"); CheckBox("fL2RateUnpresc", "L2 unpresc Rate"); CheckBox("fDaqTriggerRate", "DAQ Trigger Rate"); CheckBox("fZenithDistance", "Zenith distance"); printf(" \n"); // CheckBox("fFormatVersion", "File format"); CheckBox("fNumEvents", "Num of events"); CheckBox("fMeanTriggerRate", "Mean Trigger rate"); CheckBox("fSequenceFirst", "Sequence Number"); CheckBox("fTest", "incl. TestSources"); printf(" \n"); printf("
\n"); printf("

\n"); } function PrintRunStatMenu() { printf("

\n"); } function PrintRunInfo2Menu($host,$user,$pw,$db) { printf("

\n"); } function PrintSequInfoMenu() { printf("

\n"); } function PrintSequInfo2Menu($host,$user,$pw,$db) { printf("

\n"); } function PrintLimitsMenu($limitsmean, $limitsmin, $limitsmax, $alias, $old) { printf("

\n"); } function PrintSequStatMenu() { printf("

\n"); } function PrintFailMenu() { printf("

\n"); } function PrintCalMenu() { printf("

\n"); } function PrintStarMenu() { printf("

\n"); } function PrintDataSetInfoMenu($host,$user,$pw,$db) { printf("

\n"); } function PrintDataSetInfoMenu2($host,$user,$pw,$db) { printf("

"); } function PrintDataSetStatMenu($host,$user,$pw,$db) { printf("

\n"); } function PrintRunRangeMenu($host,$user,$pw,$db) { if (empty($_GET["fRunMin"])) $min = GetMin("fRunNumber", "RunData", $host, $user, $pw, $db); else $min = $_GET["fRunMin"]; if (empty($_GET["fRunMax"])) $max = GetMax("fRunNumber", "RunData", $host, $user, $pw, $db); else $max = $_GET["fRunMax"]; printf("Runs from \n", $min); printf("to    \n", $max); } function PrintSequRangeMenu($host,$user,$pw,$db) { if (empty($_GET["fRunMin"])) $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db); else $min = $_GET["fRunMin"]; if (empty($_GET["fRunMax"])) $max = GetMax("fSequenceFirst", "Sequences", $host, $user, $pw, $db); else $max = $_GET["fRunMax"]; printf("Sequences from \n", $min); printf("to    \n", $max); } function PrintDataSetRangeMenu($host,$user,$pw,$db) { if (empty($_GET["fRunMin"])) $min = GetMin("fDataSetNumber", "DataSets", $host, $user, $pw, $db); else $min = $_GET["fRunMin"]; if (empty($_GET["fRunMax"])) $max = GetMax("fDataSetNumber", "DataSets", $host, $user, $pw, $db); else $max = $_GET["fRunMax"]; printf("DataSets from \n", $min); printf("to    \n", $max); } function PrintZdRangeMenu($host,$user,$pw,$db) { if (empty($_GET["fZDMin"])) $zdmin = GetMin("fZenithDistanceMin", "Sequences", $host, $user, $pw, $db); else $zdmin = $_GET["fZDMin"]; if (empty($_GET["fZDMax"])) $zdmax = GetMax("fZenithDistanceMax", "Sequences", $host, $user, $pw, $db); else $zdmax = $_GET["fZDMax"]; printf("ZenithDistance from \n", $zdmin); printf("to    \n", $zdmax); } function PrintNightRangeMenu($host,$user,$pw,$db, $table) { if (empty($_GET["fStartDate"])) $timemin = GetMin("fRunStart", $table, $host, $user, $pw, $db); else $timemin = $_GET["fStartDate"]; if (empty($_GET["fStopDate"])) $timemax = GetMaxDate("fRunStart", $table, $host, $user, $pw, $db); else $timemax = $_GET["fStopDate"]; printf("Night (yyyy-mm-dd) from \n", $timemin); printf("to     \n", $timemax); } function PrintStarRangeMenu($host,$user,$pw,$db) { if (empty($_GET["fStarStart"])) $starmin = GetMin("fStar", "SequenceProcessStatus", $host, $user, $pw, $db); else $starmin = $_GET["fStarStart"]; if (empty($_GET["fStarStop"])) $starmax = GetMax("fStar", "SequenceProcessStatus", $host, $user, $pw, $db); else $starmax = $_GET["fStarStop"]; printf("

StarDone (yyyy-mm-dd) from \n", $starmin); printf("to     \n", $starmax); } function PrintSourceMenu($host,$user,$pw,$db) { printf("Source (regexp   \n"); } function PrintSequMenu($host,$user,$pw,$db) { printf("Sequ#    \n"); } function PrintNumResPullDown() { printf(" Results:\n"); printf(" \n"); printf("    \n"); } function PrintButtons($page) { printf("   \n"); printf("   \n", $page); // printf("

"); if (strchr($_SERVER["REQUEST_URI"], '?')!=FALSE) printf("   \n", htmlspecialchars($_SERVER["REQUEST_URI"])); if (strchr($_SERVER["REQUEST_URI"], '?')!=FALSE) { printf("   \n", htmlspecialchars($_SERVER["REQUEST_URI"])); printf("MySqlQuery: +\n"); } } function InitFailInfo($_GET, $first) { if (empty($_GET["fStartTime"])) $_GET["fStartTime"]="Off"; if (empty($_GET["fFailedTime"])) $_GET["fFailedTime"]="Off"; if (empty($_GET["fReturnCode"])) $_GET["fReturnCode"]="Off"; if (empty($_GET["fFailedCode"])) $_GET["fFailedCode"]="Off"; if (empty($_GET["fFailedCodeAdd"])) $_GET["fFailedCodeAdd"]="Off"; } function InitInfo($_GET, $first) { if (empty($_GET["fNumResults"])) $_GET["fNumResults"]="20"; if (empty($_GET["fNumEvents"])) $_GET["fNumEvents"]="Off"; if (empty($_GET["fRunStart"])) $_GET["fRunStart"]="Off"; if (empty($_GET["fRunStop"])) $_GET["fRunStop"]="Off"; if (empty($_GET["fTest"])) $_GET["fTest"]="Off"; if (empty($_GET["fSourceName"])) $_GET["fSourceName"]="Off"; if (empty($_GET["fProjectName"])) $_GET["fProjectName"]="Off"; if (empty($_GET["fL1TriggerTableName"])) $_GET["fL1TriggerTableName"]="Off"; if (empty($_GET["fL2TriggerTableName"])) $_GET["fL2TriggerTableName"]="Off"; if (empty($_GET["fHvSettingsName"])) $_GET["fHvSettingsName"]="Off"; if (empty($_GET["fDiscriminatorThresholdTableName"])) $_GET["fDiscriminatorThresholdTableName"]="Off"; if (empty($_GET["fTriggerDelayTableName"])) $_GET["fTriggerDelayTableName"]="Off"; if (empty($_GET["fLightConditionsName"])) $_GET["fLightConditionsName"]="Off"; if (empty($_GET["fTestFlagName"])) $_GET["fTestFlagName"]="Off"; } function InitRunStatus($_GET, $first) { if (empty($_GET["fDataCheckDone"])) $_GET["fDataCheckDone"]="Off"; if (empty($_GET["fDataCheckDoneStatus"])) $_GET["fDataCheckDoneStatus"]="0"; if (empty($_GET["fCCFileAvail"])) $_GET["fCCFileAvail"]="Off"; if (empty($_GET["fCCFileAvailStatus"])) $_GET["fCCFileAvailStatus"]="0"; if (empty($_GET["fCaCoFileAvail"])) $_GET["fCaCoFileAvail"]=$first?"On":""; if (empty($_GET["fCaCoFileAvailStatus"])) $_GET["fCaCoFileAvailStatus"]="0"; if (empty($_GET["fCaCoFileFound"])) $_GET["fCaCoFileFound"]="Off"; if (empty($_GET["fCaCoFileFoundStatus"])) $_GET["fCaCoFileFoundStatus"]="0"; if (empty($_GET["fRawFileAvail"])) $_GET["fRawFileAvail"]="Off"; if (empty($_GET["fRawFileAvailStatus"])) $_GET["fRawFileAvailStatus"]="0"; if (empty($_GET["fTimingCorrection"])) $_GET["fTimingCorrection"]="Off"; if (empty($_GET["fTimingCorrectionStatus"])) $_GET["fTimingCorrectionStatus"]="0"; } function InitRunInfo($_GET, $first) { InitRunStatus($_GET, $first); InitInfo($_GET, $first); InitFailInfo($_GET, $first); if (empty($_GET["fFormatVersion"])) $_GET["fFormatVersion"]="Off"; if (empty($_GET["fAzimuth"])) $_GET["fAzimuth"]="Off"; if (empty($_GET["fZenithDistance"])) $_GET["fZenithDistance"]="Off"; if (empty($_GET["fRunTypeName"])) $_GET["fRunTypeName"]="Off"; if (empty($_GET["fExcludedFDAName"])) $_GET["fExcludedFDAName"]="Off"; if (empty($_GET["fMagicNumberName"])) $_GET["fMagicNumberName"]="Off"; if (empty($_GET["fObservationModeName"])) $_GET["fObservationModeName"]="Off"; if (empty($_GET["fMeanTriggerRate"])) $_GET["fMeanTriggerRate"]="Off"; if (empty($_GET["fCalibrationScriptName"])) $_GET["fCalibrationScriptName"]="Off"; if (empty($_GET["fTestFlagName"])) $_GET["fTestFlagName"]="Off"; if (empty($_GET["fDaqStoreRate"])) $_GET["fDaqStoreRate"]="Off"; if (empty($_GET["fDaqTriggerRate"])) $_GET["fDaqTriggerRate"]="Off"; if (empty($_GET["fL2RatePresc"])) $_GET["fL2RatePresc"]="Off"; if (empty($_GET["fL2RateUnpresc"])) $_GET["fL2RateUnpresc"]="Off"; if (empty($_GET["fSequenceFirst"])) $_GET["fSequenceFirst"]="Off"; if (empty($_GET["fSequenceNo"])) $_GET["fSequenceNo"]=""; } function InitSequStatus($_GET, $first) { if (empty($_GET["fSequenceFileWritten"])) $_GET["fSequenceFileWritten"]="Off"; if (empty($_GET["fSequenceFileWrittenStatus"])) $_GET["fSequenceFileWrittenStatus"]="0"; if (empty($_GET["fAllFilesAvail"])) $_GET["fAllFilesAvail"]="Off"; if (empty($_GET["fAllFilesAvailStatus"])) $_GET["fAllFilesAvailStatus"]="0"; if (empty($_GET["fCallisto"])) $_GET["fCallisto"]="Off"; if (empty($_GET["fCallistoStatus"])) $_GET["fCallistoStatus"]="0"; if (empty($_GET["fFillCallisto"])) $_GET["fFillCallisto"]="Off"; if (empty($_GET["fFillCallistoStatus"])) $_GET["fFillCallistoStatus"]="0"; if (empty($_GET["fStar"])) $_GET["fStar"]="Off"; if (empty($_GET["fStarStatus"])) $_GET["fStarStatus"]="0"; if (empty($_GET["fFillStar"])) $_GET["fFillStar"]="Off"; if (empty($_GET["fFillStarStatus"])) $_GET["fFillStarStatus"]="0"; } function InitStarInfo($_GET, $first) { if (empty($_GET["fMeanNumberIslands"])) $_GET["fMeanNumberIslands"]="Off"; if (empty($_GET["fPSF"])) $_GET["fPSF"]="Off"; if (empty($_GET["fRatio"])) $_GET["fRatio"]="Off"; if (empty($_GET["fMuonNumber"])) $_GET["fMuonNumber"]="Off"; if (empty($_GET["fEffOnTime"])) $_GET["fEffOnTime"]="Off"; if (empty($_GET["fEffOnTime/fRunTime"])) $_GET["fEffOnTime/fRunTime"]="Off"; if (empty($_GET["fMuonRate"])) $_GET["fMuonRate"]="Off"; if (empty($_GET["fInhomogeneity"])) $_GET["fInhomogeneity"]="Off"; if (empty($_GET["fDataRate"])) $_GET["fDataRate"]="Off"; if (empty($_GET["fSparkRate"])) $_GET["fSparkRate"]="Off"; if (empty($_GET["fMaxHumidity"])) $_GET["fMaxHumidity"]="Off"; if (empty($_GET["fBrightnessMed"])) $_GET["fBrightnessMed"]="Off"; if (empty($_GET["fBrightnessRMS"])) $_GET["fBrightnessRMS"]="Off"; if (empty($_GET["fNumStarsMed"])) $_GET["fNumStarsMed"]="Off"; if (empty($_GET["fNumStarsRMS"])) $_GET["fNumStarsRMS"]="Off"; if (empty($_GET["fNumStarsCorMed"])) $_GET["fNumStarsCorMed"]="Off"; if (empty($_GET["fNumStarsCorRMS"])) $_GET["fNumStarsCorRMS"]="Off"; } function InitCalInfo($_GET, $first) { if (empty($_GET["fUnreliableInner"])) $_GET["fUnreliableInner"]="Off"; if (empty($_GET["fUnsuitableOuter"])) $_GET["fUnsuitableOuter"]="Off"; if (empty($_GET["fUnreliableOuter"])) $_GET["fUnreliableOuter"]="Off"; if (empty($_GET["fUnsuitableInner"])) $_GET["fUnsuitableInner"]="Off"; if (empty($_GET["fUnsuitable50"])) $_GET["fUnsuitable50"]="Off"; if (empty($_GET["fUnsuitable01"])) $_GET["fUnsuitable01"]="Off"; if (empty($_GET["fIsolatedInner"])) $_GET["fIsolatedInner"]="Off"; if (empty($_GET["fIsolatedOuter"])) $_GET["fIsolatedOuter"]="Off"; if (empty($_GET["fMeanPedRmsInner"])) $_GET["fMeanPedRmsInner"]="Off"; if (empty($_GET["fMeanPedRmsOuter"])) $_GET["fMeanPedRmsOuter"]="Off"; if (empty($_GET["fIsolatedMaxCluster"])) $_GET["fIsolatedMaxCluster"]="Off"; if (empty($_GET["fArrTimeMeanInner"])) $_GET["fArrTimeMeanInner"]="Off"; if (empty($_GET["fArrTimeMeanOuter"])) $_GET["fArrTimeMeanOuter"]="Off"; if (empty($_GET["fArrTimeRmsInner"])) $_GET["fArrTimeRmsInner"]="Off"; if (empty($_GET["fArrTimeRmsOuter"])) $_GET["fArrTimeRmsOuter"]="Off"; if (empty($_GET["fMeanSignalInner"])) $_GET["fMeanSignalInner"]=$first?"Off":""; if (empty($_GET["fMeanSignalOuter"])) $_GET["fMeanSignalOuter"]=$first?"Off":""; if (empty($_GET["fPulsePosMean"])) $_GET["fPulsePosMean"]=$first?"Off":""; if (empty($_GET["fConvFactorInner"])) $_GET["fConvFactorInner"]="Off"; if (empty($_GET["fConvFactorOuter"])) $_GET["fConvFactorOuter"]="Off"; } function InitSequInfo($_GET, $first) { InitInfo($_GET, $first); InitSequStatus($_GET, $first); InitFailInfo($_GET, $first); InitCalInfo($_GET, $first); InitStarInfo($_GET, $first); if (empty($_GET["fRunTime/60"])) $_GET["fRunTime/60"]="Off"; if (empty($_GET["fSequenceLast"])) $_GET["fSequenceLast"]="Off"; if (empty($_GET["fAzimuthMin"])) $_GET["fAzimuthMin"]="Off"; if (empty($_GET["fAzimuthMax"])) $_GET["fAzimuthMax"]="Off"; if (empty($_GET["fZenithDistanceMin"])) $_GET["fZenithDistanceMin"]="Off"; if (empty($_GET["fZenithDistanceMax"])) $_GET["fZenithDistanceMax"]="Off"; if (empty($_GET["fObservationModeName"])) $_GET["fObservationModeName"]="Off"; // if (empty($_GET["fManuallyChangedName"])) // $_GET["fManuallyChangedName"]="Off"; } function InitDataSetStatus($_GET, $first) { if (empty($_GET["fDataSetInserted"])) $_GET["fDataSetInserted"]="Off"; if (empty($_GET["fDataSetInsertedStatus"])) $_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"; if (empty($_GET["fStarFilesAvailStatus"])) $_GET["fStarFilesAvailStatus"]="0"; if (empty($_GET["fGanymed"])) $_GET["fGanymed"]=$first?"On":""; if (empty($_GET["fGanymedStatus"])) $_GET["fGanymedStatus"]="0"; if (empty($_GET["fFillGanymed"])) $_GET["fFillGanymed"]="Off"; if (empty($_GET["fFillGanymedStatus"])) $_GET["fFillGanymedStatus"]="0"; } function InitDataSetInfo($_GET, $first) { InitDataSetStatus($_GET, $first); InitFailInfo($_GET, $first); if (empty($_GET["fNumResults"])) $_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"]=$first?"On":""; if (empty($_GET["fObservationModeName"])) $_GET["fObservationModeName"]=$first?"On":""; if (empty($_GET["fComment"])) $_GET["fComment"]="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["fSignalEvents*60/fEffOnTime"])) $_GET["fSignalEvents*60/fEffOnTime"]="Off"; if (empty($_GET["Round(fSignificance/Sqrt(fEffOnTime/3600),2)"])) $_GET["Round(fSignificance/Sqrt(fEffOnTime/3600),2)"]="Off"; } function InitFindOffData($_GET, $first) { InitSequInfo($_GET, $first); if (empty($_GET["fArrTimeLimitMean"])) $_GET["fArrTimeLimitMean"]=""; if (empty($_GET["fArrTimeLimitRms"])) $_GET["fArrTimeLimitRms"]=""; if (empty($_GET["fPedRmsInLimitMean"])) $_GET["fPedRmsInLimitMean"]=""; if (empty($_GET["fPedRmsInLimitRms"])) $_GET["fPedRmsInLimitRms"]=""; if (empty($_GET["fMuonRateLimitMean"])) $_GET["fMuonRateLimitMean"]=""; if (empty($_GET["fMuonRateLimitRms"])) $_GET["fMuonRateLimitRms"]=""; if (empty($_GET["fImgRateLimitMean"])) $_GET["fImgRateLimitMean"]=""; if (empty($_GET["fImgRateLimitRms"])) $_GET["fImgRateLimitRms"]=""; if (empty($_GET["fPSFLimitMean"])) $_GET["fPSFLimitMean"]=""; if (empty($_GET["fPSFLimitRms"])) $_GET["fPSFLimitRms"]=""; if (empty($_GET["fUnsInLimit1"])) $_GET["fUnsInLimit1"]=""; if (empty($_GET["fUnsInLimit2"])) $_GET["fUnsInLimit2"]=""; if (empty($_GET["fIsoInLimit1"])) $_GET["fIsoInLimit1"]=""; if (empty($_GET["fIsoInLimit2"])) $_GET["fIsoInLimit2"]=""; if (empty($_GET["fIMCLimit1"])) $_GET["fIMCLimit1"]=""; if (empty($_GET["fIMCLimit2"])) $_GET["fIMCLimit2"]=""; if (empty($_GET["fZdMinLimit1"])) $_GET["fZdMinLimit1"]=""; if (empty($_GET["fZdMinLimit2"])) $_GET["fZdMinLimit2"]=""; if (empty($_GET["fZdMaxLimit1"])) $_GET["fZdMaxLimit1"]=""; if (empty($_GET["fZdMaxLimit2"])) $_GET["fZdMaxLimit2"]=""; if (empty($_GET["fMuonCalLimitMean"])) $_GET["fMuonCalLimitMean"]=""; if (empty($_GET["fMuonCalLimitRms"])) $_GET["fMuonCalLimitRms"]=""; if (empty($_GET["fInhomLimitMean"])) $_GET["fInhomLimitMean"]=""; if (empty($_GET["fInhomLimitRms"])) $_GET["fInhomLimitRms"]=""; if (empty($_GET["fNumIslLimitMean"])) $_GET["fNumIslLimitMean"]=""; if (empty($_GET["fNumIslLimitRms"])) $_GET["fNumIslLimitRms"]=""; if (empty($_GET["fSkyBrightLimitMean"])) $_GET["fSkyBrightLimitMean"]=""; if (empty($_GET["fSkyBrightLimitRms"])) $_GET["fSkyBrightLimitRms"]=""; if (empty($_GET["fNumStarsLimit1"])) $_GET["fNumStarsLimit1"]=""; if (empty($_GET["fNumStarsLimit2"])) $_GET["fNumStarsLimit2"]=""; if (empty($_GET["fNumStarsCorLimit1"])) $_GET["fNumStarsCorLimit1"]=""; if (empty($_GET["fNumStarsCorLimit2"])) $_GET["fNumStarsCorLimit2"]=""; if (empty($_GET["fMuonNumLimit1"])) $_GET["fMuonNumLimit1"]=""; if (empty($_GET["fMuonNumLimit2"])) $_GET["fMuonNumLimit2"]=""; if (empty($_GET["fRelTimeMinLimit1"])) $_GET["fRelTimeMinLimit1"]=""; if (empty($_GET["fRelTimeMinLimit2"])) $_GET["fRelTimeMinLimit2"]=""; if (empty($_GET["fRelTimeMaxLimit1"])) $_GET["fRelTimeMaxLimit1"]=""; if (empty($_GET["fRelTimeMaxLimit2"])) $_GET["fRelTimeMaxLimit2"]=""; if (empty($_GET["fRunTimeLimit1"])) $_GET["fRunTimeLimit1"]=""; if (empty($_GET["fRunTimeLimit2"])) $_GET["fRunTimeLimit2"]=""; if (empty($_GET["fPulsePosLimit1"])) $_GET["fPulsePosLimit1"]=""; if (empty($_GET["fPulsePosLimit2"])) $_GET["fPulsePosLimit2"]=""; if (empty($_GET["fMaxHumLimit1"])) $_GET["fMaxHumLimit1"]=""; if (empty($_GET["fMaxHumLimit2"])) $_GET["fMaxHumLimit2"]=""; } ?>