source: trunk/MagicSoft/Mars/datacenter/db/menu.php@ 9610

Last change on this file since 9610 was 9599, checked in by Daniela Dorner, 14 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 54.1 KB
Line 
1<?php
2
3//MC stuff
4function PrintMCRunInfoMenu($host,$user,$pw,$db)
5{
6 printf(" <div id='info' style='display:none'>");
7 printf(" <table>\n");
8 printf(" <tr valign='top'>\n");
9
10 CheckBox("fNumEvents", "Num of events");
11 CheckBox("fEnergyMin", "Emin");
12 CheckBox("fEnergyMax", "Emax");
13 CheckBox("fEnergySlope", "Slope");
14
15 printf(" </tr><tr>\n");
16
17 CheckBox("fImpactMax", "Impact");
18 CheckBox("fViewConeMax", "Viewcone");
19 CheckBox("fStartingAltitude", "Starting alt.");
20 CheckBox("fMirrorDiameter", "Mirror diam.");
21
22 printf(" </tr><tr>\n");
23
24 CheckBox("fZenithDistanceMin", "Zenith distance min");
25 CheckBox("fZenithDistanceMax", "Zenith distance max");
26 CheckBox("fAzimuthMin", "Azimuth min");
27 CheckBox("fAzimuthMax", "Azimuth max");
28
29 printf(" </tr><tr>\n");
30 printf(" <td>\n");
31 PrintPullDown($host, $user, $pw, $db, "ParticleType", "fParticleTypeName", "fParticleTypeKEY", "Particle type");
32 printf(" </td><td>\n");
33 PrintPullDown($host, $user, $pw, $db, "RunType", "fRunTypeName", "fRunTypeKEY", "Run type");
34 printf(" </td><td>\n");
35 PrintPullDown($host, $user, $pw, $db, "AtmosphericModel", "fAtmosphericModelName", "fAtmosphericModelKEY", "Atm. model");
36 printf(" </td>\n");
37
38 printf(" </tr>\n");
39 printf(" </table>\n");
40 printf(" </div><p>\n");
41}
42
43function PrintMCRunStatMenu()
44{
45 printf(" <div id=\"stat\" style='display:none'>\n");
46 printf(" <table>\n");
47 printf(" <tr><td>\n");
48
49 PrintStatusMenu("Corsika", "Corsika");
50 printf(" </td><td>\n");
51 PrintStatusMenu("Ceres", "Ceres");
52 printf(" </td><td>\n");
53 PrintStatusMenu("SequenceFile", "SequenceFile");
54
55 printf(" </td></tr><tr><td>\n");
56
57 PrintStatusMenu("Callisto", "Callisto");
58 printf(" </td><td>\n");
59 PrintStatusMenu("Star", "Star");
60
61 printf(" </td></tr></table>\n");
62 printf(" <p>\n");
63 printf(" </div><p>\n");
64}
65
66//cta mc stuff
67function PrintCTAMCRunInfoMenu($host,$user,$pw,$db)
68{
69 printf(" <div id='info' style='display:none'>");
70 printf(" <table>\n");
71 printf(" <tr valign='top'>\n");
72
73 CheckBox("fNumEvents", "Num of events");
74 CheckBox("fObsLevel", "Observation level");
75 CheckBox("fLinks", "Links");
76
77 printf(" </tr><tr><td>\n");
78 PrintPullDown($host, $user, $pw, $db, "ParticleType", "fParticleTypeName", "fParticleTypeKEY", "Particle type");
79 printf(" </td><td>\n");
80
81 printf(" </tr>\n");
82 printf(" </table>\n");
83 printf(" </div><p>\n");
84}
85
86function PrintCTAMCRunStatMenu()
87{
88 printf(" <div id=\"stat\" style='display:none'>\n");
89 printf(" <table>\n");
90 printf(" <tr><td>\n");
91
92 PrintStatusMenu("fCorsikaSimTelarray", "Corsika and Simtel");
93 printf(" </td><td>\n");
94 PrintStatusMenu("fChimp", "Chimp");
95 printf(" </td><td>\n");
96 PrintStatusMenu("fCTAStar", "Star");
97
98 printf(" </td></tr><tr><td>\n");
99
100 PrintStatusMenu("fStereoB", "StereoB");
101 printf(" </td><td>\n");
102 PrintStatusMenu("fStereoC", "StereoC");
103 printf(" </td><td>\n");
104 PrintStatusMenu("fStereoG", "StereoG");
105
106 printf(" </td></tr></table>\n");
107 printf(" <p>\n");
108 printf(" </div><p>\n");
109}
110
111//magic data stuff
112function PrintRunInfoMenu()
113{
114 printf(" <div id='info' style='display:none'>");
115 printf(" <table>\n");
116 printf(" <tr>\n");
117
118 CheckBox("fRunStart", "Run start time");
119 CheckBox("fL2RatePresc", "L2 presc Rate");
120 CheckBox("fDaqStoreRate", "DAQ Storage Rate");
121 CheckBox("fAzimuth", "Azimuth");
122
123 printf(" </tr><tr>\n");
124
125 CheckBox("fRunStop", "Run stop time");
126 CheckBox("fL2RateUnpresc", "L2 unpresc Rate");
127 CheckBox("fDaqTriggerRate", "DAQ Trigger Rate");
128 CheckBox("fZenithDistance", "Zenith distance");
129
130 printf(" </tr><tr>\n");
131
132 // CheckBox("fFormatVersion", "File format");
133 CheckBox("fNumEvents", "Num of events");
134 CheckBox("fMeanTriggerRate", "Mean Trigger Rate");
135 CheckBox("fL3TriggerRate", "L3 Trigger Rate");
136 CheckBox("fSequenceFirst", "Sequence Number");
137
138 printf(" </tr><tr>\n");
139
140 CheckBox("fTest", "incl. TestSources");
141 CheckBox("fLinks", "Links");
142 CheckBox("fWheelPos1", "Wheel Position 1");
143 CheckBox("fWheelPos2", "Wheel Position 2");
144
145 printf(" </tr>\n");
146 printf(" </table>\n");
147 printf(" </div><p>\n");
148}
149
150function PrintRunStatMenu()
151{
152 printf(" <div id=\"stat\" style='display:none'>\n");
153 printf(" <table>\n");
154 printf(" <tr><td>\n");
155
156 PrintStatusMenu("fCCFileAvail", "CC File available");
157 printf(" </td><td>\n");
158 PrintStatusMenu("fCaCoFileAvail", "Caco File available");
159 printf(" </td><td>\n");
160 PrintStatusMenu("fRawFileAvail", "Rawfile available");
161
162 printf(" </td></tr><tr><td>\n");
163
164 PrintStatusMenu("fTimingCorrection", "Timing Correction");
165 printf(" </td><td>\n");
166 PrintStatusMenu("fCaCoFileFound", "Caco File");
167 printf(" </td><td>\n");
168 PrintStatusMenu("fDataCheckDone", "DataCheck");
169
170 printf(" </td></tr></table>\n");
171 printf(" <p>\n");
172 printf(" </div><p>\n");
173}
174
175function PrintRunInfo2Menu($host,$user,$pw,$db)
176{
177 printf(" <div id='info2' style='display:none'>");
178 printf(" <table>\n");
179 printf(" <tr><td>\n");
180 PrintPullDown($host, $user, $pw, $db, "RunType", "fRunTypeName", "fRunTypeKEY", "Run type");
181 printf(" </td><td>\n");
182 PrintPullDown($host, $user, $pw, $db, "Source", "fSourceName", "fSourceKEY", "Source Name");
183 printf(" </td><td>\n");
184 PrintPullDown($host, $user, $pw, $db, "HvSettings", "fHvSettingsName", "fHvSettingsKEY", "HV Settings");
185 printf(" </td><td>\n");
186 PrintPullDown($host, $user, $pw, $db, "L1TriggerTable", "fL1TriggerTableName", "fL1TriggerTableKEY", "L1 Trigger Table");
187 printf(" </td></tr><tr><td>\n");
188 PrintPullDown($host, $user, $pw, $db, "TestFlag", "fTestFlagName", "fTestFlagKEY", "Test Flag");
189 printf(" </td><td>\n");
190 PrintPullDown($host, $user, $pw, $db, "Project", "fProjectName", "fProjectKEY", "Project Name");
191 printf(" </td><td>\n");
192 PrintPullDown($host, $user, $pw, $db, "DiscriminatorThresholdTable", "fDiscriminatorThresholdTableName", "fDiscriminatorThresholdTableKEY", "DT Table");
193 printf(" </td><td>\n");
194 PrintPullDown($host, $user, $pw, $db, "L2TriggerTable", "fL2TriggerTableName", "fL2TriggerTableKEY", "L2 Trigger Table");
195 printf(" </td></tr><tr><td>\n");
196 PrintPullDown($host, $user, $pw, $db, "ExcludedFDA", "fExcludedFDAName", "fExcludedFDAKEY", "Exclusions");
197 printf(" </td><td>\n");
198 PrintPullDown($host, $user, $pw, $db, "LightConditions", "fLightConditionsName", "fLightConditionsKEY", "Light Conditions");
199 printf(" </td><td>\n");
200 PrintPullDown($host, $user, $pw, $db, "CalibrationScript", "fCalibrationScriptName", "fCalibrationScriptKEY", "Cal Script");
201 printf(" </td><td>\n");
202 PrintPullDown($host, $user, $pw, $db, "L3TriggerTable", "fL3TriggerTableName", "fL3TriggerTableKEY", "L3 Trigger Table");
203 printf(" </td></tr><tr><td>\n");
204 PrintPullDown($host, $user, $pw, $db, "MagicNumber", "fMagicNumberName", "fMagicNumberKEY", "Magic Number");
205 printf(" </td><td>\n");
206 PrintPullDown($host, $user, $pw, $db, "ObservationMode", "fObservationModeName", "fObservationModeKEY", "Obs. Mode");
207 printf(" </td><td>\n");
208 PrintPullDown($host, $user, $pw, $db, "SumTriggerFlag", "fSumTriggerFlagName", "fSumTriggerFlagKEY", "SumTrigger Flag");
209 printf(" </td><td>\n");
210 PrintPullDown($host, $user, $pw, $db, "TriggerDelayTable", "fTriggerDelayTableName", "fTriggerDelayTableKEY", "Trigger Delay Table");
211 printf(" </td></tr><tr><td>\n");
212 PrintPullDown($host, $user, $pw, $db, "Cycle", "fCycleName", "fCycleKEY", "Cycle");
213 printf(" </td><td>\n");
214 PrintPullDown($host, $user, $pw, $db, "PI", "fPIName", "fPIKEY", "PI");
215 printf(" </td><td>\n");
216 PrintPullDown($host, $user, $pw, $db, "WorkingGroup", "fWorkingGroupName", "fWorkingGroupKEY", "Working Group");
217 printf(" </td><td>\n");
218 PrintPullDown($host, $user, $pw, $db, "Proposal", "fProposalName", "fProposalKEY", "Proposal");
219 printf(" </td></tr></table>\n");
220 printf(" </div><p>\n");
221}
222
223function PrintSequInfoMenu()
224{
225 printf(" <div id='info' style='display:none'>");
226 printf(" <table>\n");
227
228 printf("<tr><td align='center'>\n");
229 printf(" <tr>\n");
230
231 CheckBox("fRunStart", "Start time");
232 CheckBox("fRunStop", "Stop time");
233 CheckBox("fNumEvents", "Num of events");
234 CheckBox("fRunTime/60", "Duration");
235
236 printf(" </tr><tr>\n");
237
238 CheckBox("fZenithDistanceMin", "Zenith distance min");
239 CheckBox("fZenithDistanceMax", "Zenith distance max");
240 CheckBox("fAzimuthMin", "Azimuth min");
241 CheckBox("fAzimuthMax", "Azimuth max");
242
243 printf(" </tr><tr>\n");
244
245 CheckBox("fSequenceLast", "Last run");
246 CheckBox("fLinks", "Links");
247
248 printf(" </tr><tr>\n");
249
250 CheckBox("fOnlySum", "only sumtrigger");
251 CheckBox("fTest", "incl. TestSources");
252 CheckBox("fOff", "incl. offsources");
253 CheckBox("fOnlyOff", "only offsources");
254
255 printf(" </tr></table>\n");
256 printf(" </div><p>\n");
257}
258
259function PrintSequInfo2Menu($host,$user,$pw,$db)
260{
261 printf(" <div id='info2' style='display:none'>\n");
262 printf(" <table>\n");
263 printf(" <tr><td>\n");
264 PrintPullDown($host, $user, $pw, $db, "Source", "fSourceName", "fSourceKEY", "Source Name");
265 printf(" </td><td>\n");
266 PrintPullDown($host, $user, $pw, $db, "Project", "fProjectName", "fProjectKEY", "Project Name");
267 printf(" </td><td>\n");
268 PrintPullDown($host, $user, $pw, $db, "L1TriggerTable", "fL1TriggerTableName", "fL1TriggerTableKEY", "L1Trigger Table");
269 printf(" </td><td>\n");
270 PrintPullDown($host, $user, $pw, $db, "Cycle", "fCycleName", "fCycleKEY", "Cycle");
271 printf(" </td></tr><tr><td>\n");
272 PrintPullDown($host, $user, $pw, $db, "LightConditions", "fLightConditionsName", "fLightConditionsKEY", "Light Conditions");
273 printf(" </td><td>\n");
274 PrintPullDown($host, $user, $pw, $db, "HvSettings", "fHvSettingsName", "fHvSettingsKEY", "HV Settings");
275 printf(" </td><td>\n");
276 PrintPullDown($host, $user, $pw, $db, "L2TriggerTable", "fL2TriggerTableName", "fL2TriggerTableKEY", "L2Trigger Table");
277 printf(" </td><td>\n");
278 PrintPullDown($host, $user, $pw, $db, "PI", "fPIName", "fPIKEY", "PI");
279 printf(" </td></tr><tr><td>\n");
280 PrintPullDown($host, $user, $pw, $db, "ObservationMode", "fObservationModeName", "fObservationModeKEY", "Obs. Mode");
281 printf(" </td><td>\n");
282 PrintPullDown($host, $user, $pw, $db, "DiscriminatorThresholdTable", "fDiscriminatorThresholdTableName", "fDiscriminatorThresholdTableKEY", "DT Table");
283 printf(" </td><td>\n");
284 PrintPullDown($host, $user, $pw, $db, "L3TriggerTable", "fL3TriggerTableName", "fL3TriggerTableKEY", "L3Trigger Table");
285 printf(" </td><td>\n");
286 PrintPullDown($host, $user, $pw, $db, "WorkingGroup", "fWorkingGroupName", "fWorkingGroupKEY", "Working Group");
287 printf(" </td></tr><tr><td>\n");
288 PrintPullDown($host, $user, $pw, $db, "SumTriggerFlag", "fSumTriggerFlagName", "fSumTriggerFlagKEY", "SumTrigger Flag");
289 printf(" </td><td>\n");
290 PrintPullDown($host, $user, $pw, $db, "TriggerDelayTable", "fTriggerDelayTableName", "fTriggerDelayTableKEY", "Trigger Delay Table");
291 printf(" </td><td>\n");
292 printf(" </td><td>\n");
293 PrintPullDown($host, $user, $pw, $db, "Proposal", "fProposalName", "fProposalKEY", "Proposal");
294// printf(" </td><td>\n");
295// PrintPullDown($host, $user, $pw, $db, "ManuallyChanged", "fManuallyChangedName", "fManuallyChangedKEY", "Manually changed");
296// printf(" </td><td>\n");
297// PrintPullDown($host, $user, $pw, $db, "TestFlag", "fTestFlagName", "fTestFlagKEY", "Test Flag");
298 printf(" </td></tr>\n");
299 printf(" </table>\n");
300 printf(" </div><p>\n");
301}
302
303function PrintLimitsMenu($limitsmean, $limitsmin, $limitsmax, $alias, $old)
304{
305 printf("<div id='limits' style='display:none'>\n");
306 printf(" <table>\n");
307 printf(" <tr><th colspan='3'>Limits</th></tr>\n");
308 printf(" <tr><td valign='top'>\n");
309
310 printf(" <table>\n");
311 printf(" <tr><th>Name </th><th> Mean </th><th> Rms </th></tr>\n");
312
313 foreach($limitsmean as $key => $element)
314 {
315 printf("<tr><td>%s</td>\n", $alias[$key]);
316 $mean=$key . "Mean";
317 $limitmean=$_GET[$mean];
318 printf("<td><input name=\"%sMean\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limitmean);
319 $rms2=$key . "Rms";
320 $limitrms=$_GET[$rms2];
321 printf("<td><input name=\"%sRms\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limitrms);
322 printf("</tr>\n");
323 }
324
325 if (empty($old))
326 {
327 printf(" </table>\n");
328 printf(" </td>\n");
329 printf(" <td valign='top'>\n");
330 printf(" <table>\n");
331 }
332
333 printf(" <tr><th>Name </th><th> Min </th><th> Min2 </th></tr>\n");
334 foreach($limitsmin as $key => $element)
335 {
336 printf("<tr><td>%s</td>\n", $alias[$key]);
337 $level1=$key . "1";
338 $limit1=$_GET[$level1];
339 printf("<td><input name=\"%s1\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limit1);
340 $level2=$key . "2";
341 $limit2=$_GET[$level2];
342 printf("<td><input name=\"%s2\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limit2);
343 printf("</tr>\n");
344 }
345
346 if (empty($old))
347 {
348 printf(" </table>\n");
349 printf(" </td>\n");
350 printf(" <td valign='top'>\n");
351 printf(" <table>\n");
352 }
353
354 printf(" <tr><th>Name </th><th> Max </th><th> Max2 </th></tr>\n");
355 foreach($limitsmax as $key => $element)
356 {
357 printf("<tr><td>%s</td>\n", $alias[$key]);
358 $level1=$key . "1";
359 $limit1=$_GET[$level1];
360 printf("<td><input name=\"%s1\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limit1);
361 $level2=$key . "2";
362 $limit2=$_GET[$level2];
363 printf("<td><input name=\"%s2\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\"></td>\n", $key, $limit2);
364 printf("</tr>\n");
365 }
366 printf(" </table>\n");
367
368 printf(" </td></tr></table>\n");
369 printf("<p>\n");
370 printf("</div>\n");
371}
372
373function PrintSequStatMenu()
374{
375 printf(" <div id='stat' style='display:none'>\n");
376 printf(" <table><tr><td>\n");
377
378 PrintStatusMenu("fAllFilesAvail", "Files avail");
379 printf(" </td><td>\n");
380 PrintStatusMenu("fCallisto", "Callisto");
381 printf(" </td><td>\n");
382 PrintStatusMenu("fStar", "Star");
383 printf(" </td></tr><tr><td>\n");
384 PrintStatusMenu("fSequenceFileWritten", "Sequfile");
385 printf(" </td><td>\n");
386 PrintStatusMenu("fFillCallisto", "Fillcallisto");
387 printf(" </td><td>\n");
388 PrintStatusMenu("fFillStar", "Fillstar");
389
390 printf("</td></tr> </table>\n");
391 printf(" </div><p>\n");
392}
393
394function PrintFailMenu()
395{
396 printf(" <div id='fail' style='display:none'>\n");
397 printf(" <table>\n");
398 printf(" <tr>\n");
399
400 CheckBox("fStartTime", "ProcessTime");
401 CheckBox("fFailedTime", "FailTime");
402 CheckBox("fReturnCode", "RetCode");
403 CheckBox("fProgramId", "ProgramId");
404
405 printf(" </tr>\n");
406 printf(" </table>\n");
407 printf(" </div><p>\n");
408}
409
410function PrintCalMenu()
411{
412 printf(" <div id='cal' style='display:none'>\n");
413 printf(" <table>\n");
414 printf(" <tr>\n");
415
416 CheckBox("fUnsuitableInner", "Unsuitable inner");
417 CheckBox("fUnsuitableOuter", "Unsuitable outer");
418 CheckBox("fUnreliableInner", "Unreliable inner");
419 CheckBox("fUnreliableOuter", "Unreliable outer");
420
421 printf(" </tr><tr>\n");
422
423 CheckBox("fUnsuitable50", "Unsuitable (50%)");
424 CheckBox("fUnsuitable01", "Unsuitable (1%)");
425 CheckBox("fUnsuitableMax", "UnsuitableMax");
426 CheckBox("fDeadMax", "DeadMax");
427
428 printf(" </tr><tr>\n");
429
430 CheckBox("fIsolatedInner", "Isolated inner");
431 CheckBox("fIsolatedOuter", "Isolated outer");
432 CheckBox("fIsolatedMaxCluster", "IsolatedMaxCluster");
433
434 printf(" </tr><tr>\n");
435
436 CheckBox("fArrTimeMeanInner", "ArrTimeMean inner ");
437 CheckBox("fArrTimeMeanOuter", "ArrTimeMean outer ");
438 CheckBox("fArrTimeRmsInner", "ArrTimeRms inner ");
439 CheckBox("fArrTimeRmsOuter", "ArrTimeRms outer ");
440
441 printf(" </tr><tr>\n");
442
443 CheckBox("fMeanPedRmsInner", "MeanPedRms inner");
444 CheckBox("fMeanPedRmsOuter", "MeanPedRms outer");
445 CheckBox("fMeanSignalInner", "MeanSignal inner");
446 CheckBox("fMeanSignalOuter", "MeanSignal outer");
447
448 printf(" </tr><tr>\n");
449
450 CheckBox("fConvFactorInner", "Conv inner ");
451 CheckBox("fConvFactorOuter", "Conv outer ");
452 CheckBox("fPulsePosMean", "Mean PulsePos");
453 CheckBox("fPulsePosCalib", "Cal PulsePos");
454
455 printf(" </tr><tr>\n");
456
457 CheckBox("fRateTrigEvts", "Rate Trig evts");
458 CheckBox("fRateSumEvts", "Rate Sum Trig evts");
459 CheckBox("fRatePedEvts", "Rate Ped evts");
460 CheckBox("fRatePedTrigEvts", "Rate Ped Trig evts");
461
462 printf(" </tr><tr>\n");
463
464 CheckBox("fRateCalEvts", "Rate Cal evts");
465 CheckBox("fRateNullEvts", "Rate Null evts");
466 CheckBox("fRateUnknownEvts", "Rate Unknown evts");
467 CheckBox("fRatioCalEvents", "Ratio Cal evts");
468
469 printf(" </tr></table>\n");
470 printf(" </div><p>\n");
471}
472
473function PrintStarMenu()
474{
475 printf(" <div id='star' style='display:none'>\n");
476 printf(" <table>\n");
477 printf(" <tr>\n");
478
479 CheckBox("fDataRate", "CleanedEvtRate");
480 CheckBox("fMeanNumberIslands", "MeanNumIslands");
481 CheckBox("fMaxHumidity", "MaxHumidity");
482 CheckBox("fInhomogeneity", "Inhomogeneity");
483
484 printf(" </tr><tr>\n");
485
486 CheckBox("fMuonRate", "MuonRate");
487 CheckBox("fMuonNumber", "MuonNumber");
488 CheckBox("fRatio", "Ratio");
489 CheckBox("fPSF", "PSF");
490
491 printf(" </tr><tr>\n");
492
493 CheckBox("fSparkRate", "SparkRate");
494
495 printf(" </tr><tr>\n");
496
497 CheckBox("fEffOnTime", "EffOnTime");
498 CheckBox("fEffOnTime/fRunTime", "RelOnTime");
499 CheckBox("fBrightnessMed", "SkyBrightnessMed");
500 CheckBox("fBrightnessRMS", "SkyBrightnessRMS");
501
502 printf(" </tr><tr>\n");
503
504 CheckBox("fNumStarsMed", "# id. Stars");
505 CheckBox("fNumStarsRMS", "RMS id. Stars");
506 CheckBox("fNumStarsCorMed", "# cor. Stars");
507 CheckBox("fNumStarsCorRMS", "RMS cor. Stars");
508
509 printf(" </tr><tr>\n");
510
511 CheckBox("fAvgWindSpeed", "Avg wind speed");
512 CheckBox("fAvgTemperature", "Avg temperature");
513 CheckBox("fAvgHumidity", "Avg humidity");
514 CheckBox("fAvgTempSky", "Avg sky temperature");
515
516 printf(" </tr><tr>\n");
517
518 CheckBox("fAvgCloudiness", "Avg cloudiness");
519 CheckBox("fRmsCloudiness", "RMS cloudiness");
520
521 printf(" </tr>\n");
522 printf(" </table>\n");
523 printf(" </div><p>\n");
524}
525
526function PrintDataSetInfoMenu($host,$user,$pw,$db)
527{
528 printf(" <div id=\"info\" style='display:none'>");
529 printf(" <table>\n");
530 printf(" <tr>\n");
531
532 CheckBox("fDataSetName", "Name");
533 CheckBox("fComment", "Comment");
534 CheckBox("fRunTime", "Uptime");
535 CheckBox("fRunStart", "Start");
536 CheckBox("fRunStop", "Stop");
537
538 printf(" </tr><tr>\n");
539
540 CheckBox("fZenithDistanceMin", "ZdMin");
541 CheckBox("fZenithDistanceMax", "ZdMax");
542 CheckBox("fLinks", "Links");
543
544 printf(" </tr><tr>\n");
545
546 CheckBox("fEffOnTime/3600", "EffOnTime");
547 CheckBox("fExcessEvents", "ExcEvts");
548 CheckBox("fBackgroundEvents", "BgEvts");
549 CheckBox("fSignalEvents", "SignEvts");
550 CheckBox("fSignificance", "Sign");
551
552 printf(" </tr><tr>\n");
553
554 CheckBox("fScaleFactor", "Scale");
555 CheckBox("fExcessEvents*60/fEffOnTime", "ExcRate");
556 CheckBox("fBackgroundEvents*60/fEffOnTime", "BgRate");
557 CheckBox("fSignalEvents*60/fEffOnTime", "SignRate");
558 CheckBox("Round(fSignificance/Sqrt(fEffOnTime/3600),2)", "SignfRate");
559
560 printf(" </tr>\n");
561 printf(" </table>\n");
562 printf(" </div><p>\n");
563}
564
565function PrintDataSetInfoMenu2($host,$user,$pw,$db)
566{
567 printf(" <div id='info2' style='display:none'>");
568 printf(" <table><tr><td>\n");
569 PrintPullDown($host, $user, $pw, $db, "Source", "fSourceName", "fSourceKEY", "Source Name");
570 printf(" </td><td>\n");
571 PrintPullDown($host, $user, $pw, $db, "ObservationMode", "fObservationModeName", "fObservationModeKEY", "Observation Mode");
572 printf(" </td><td>\n");
573 PrintPullDown($host, $user, $pw, $db, "User", "fUserName", "fUserKEY", "User");
574 printf(" </td></tr>\n");
575 printf(" </table>\n");
576 printf("</div>");
577}
578
579function PrintDataSetStatMenu($host,$user,$pw,$db)
580{
581 printf(" <div id=\"stat\" style='display:none'>\n");
582 printf(" <table>\n");
583 printf(" <tr>\n");
584
585 printf(" <td>\n");
586 PrintStatusMenu("fDataSetInserted", "DataSet Inserted");
587 printf(" </td><td>\n");
588 PrintStatusMenu("fDataSetFileWritten", "DataSetFile");
589 printf(" </td><td>\n");
590 PrintStatusMenu("fStarFilesAvail", "FilesAvail");
591 printf(" </td><td>\n");
592 PrintStatusMenu("fGanymed", "Ganymed");
593 printf(" </td><td>\n");
594 PrintStatusMenu("fFillGanymed", "FillGanymed");
595 printf(" </tr>\n");
596 printf(" </table>\n");
597 printf(" </div><p>\n");
598}
599
600function PrintRunRangeMenu($host,$user,$pw,$db)
601{
602 if (empty($_GET["fRunMin"]))
603 $min = GetMin("fRunNumber", "RunData", $host, $user, $pw, $db);
604 else
605 $min = $_GET["fRunMin"];
606
607 if (empty($_GET["fRunMax"]))
608 $max = GetMax("fRunNumber", "RunData", $host, $user, $pw, $db);
609 else
610 $max = $_GET["fRunMax"];
611
612 printf("Runs&nbsp;from&nbsp;<input name=\"fRunMin\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"%s\">\n", $min);
613 printf("to&nbsp;<input name=\"fRunMax\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"%s\">&nbsp;&nbsp;&nbsp;\n", $max);
614}
615
616function PrintCTAMCRunRangeMenu($host,$user,$pw,$db)
617{
618 if (empty($_GET["fRunMin"]))
619 $min = GetMin("fMCRunNumber", "MCRunData", $host, $user, $pw, $db);
620 else
621 $min = $_GET["fRunMin"];
622
623 if (empty($_GET["fRunMax"]))
624 $max = GetMax("fMCRunNumber", "MCRunData", $host, $user, $pw, $db);
625 else
626 $max = $_GET["fRunMax"];
627
628 printf("Runs&nbsp;from&nbsp;<input name=\"fRunMin\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"%s\">\n", $min);
629 printf("to&nbsp;<input name=\"fRunMax\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"%s\">&nbsp;&nbsp;&nbsp;\n", $max);
630}
631
632function PrintMCRunRangeMenu($host,$user,$pw,$db)
633{
634 if (empty($_GET["fRunMin"]))
635 $min = GetMin("fRunNumber", "CorsikaInfo", $host, $user, $pw, $db);
636 else
637 $min = $_GET["fRunMin"];
638
639 if (empty($_GET["fRunMax"]))
640 $max = GetMax("fRunNumber", "CorsikaInfo", $host, $user, $pw, $db);
641 else
642 $max = $_GET["fRunMax"];
643
644 printf("Runs&nbsp;from&nbsp;<input name=\"fRunMin\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"%s\">\n", $min);
645 printf("to&nbsp;<input name=\"fRunMax\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"%s\">&nbsp;&nbsp;&nbsp;\n", $max);
646}
647
648function PrintSequRangeMenu($host,$user,$pw,$db)
649{
650 if (empty($_GET["fRunMin"]))
651 $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
652 else
653 $min = $_GET["fRunMin"];
654
655 if (empty($_GET["fRunMax"]))
656 $max = GetMax("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
657 else
658 $max = $_GET["fRunMax"];
659
660 printf("Sequences&nbsp;from&nbsp;<input name=\"fRunMin\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"%s\">\n", $min);
661 printf("to&nbsp;<input name=\"fRunMax\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"%s\">&nbsp;&nbsp;&nbsp;\n", $max);
662}
663
664function PrintDataSetRangeMenu($host,$user,$pw,$db)
665{
666 if (empty($_GET["fRunMin"]))
667 $min = GetMin("fDataSetNumber", "DataSets", $host, $user, $pw, $db);
668 else
669 $min = $_GET["fRunMin"];
670
671 if (empty($_GET["fRunMax"]))
672 $max = GetMax("fDataSetNumber", "DataSets", $host, $user, $pw, $db);
673 else
674 $max = $_GET["fRunMax"];
675
676 printf("DataSets&nbsp;from&nbsp;<input name=\"fRunMin\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\">\n", $min);
677 printf("to&nbsp;<input name=\"fRunMax\" type=\"text\" size=\"6\" maxlength=\"6\" value=\"%s\">&nbsp;&nbsp;&nbsp;\n", $max);
678}
679
680function PrintZdRangeMenu($host,$user,$pw,$db)
681{
682 if (empty($_GET["fZDMin"]))
683 $zdmin = GetMin("fZenithDistanceMin", "Sequences", $host, $user, $pw, $db);
684 else
685 $zdmin = $_GET["fZDMin"];
686
687 if (empty($_GET["fZDMax"]))
688 $zdmax = GetMax("fZenithDistanceMax", "Sequences", $host, $user, $pw, $db);
689 else
690 $zdmax = $_GET["fZDMax"];
691
692 printf("ZenithDistance&nbsp;from&nbsp;<input name=\"fZDMin\" type=\"text\" size=\"2\" maxlength=\"2\" value=\"%s\">\n", $zdmin);
693 printf("to&nbsp;<input name=\"fZDMax\" type=\"text\" size=\"2\" maxlength=\"2\" value=\"%s\">&nbsp;&nbsp;&nbsp;\n", $zdmax);
694}
695
696function PrintNightRangeMenu($host,$user,$pw,$db, $table)
697{
698 if (empty($_GET["fStartDate"]))
699 $timemin = GetMin("Date_Format(fRunStart, '%Y-%m-%d')", $table, $host, $user, $pw, $db);
700 else
701 $timemin = $_GET["fStartDate"];
702
703 if (empty($_GET["fStopDate"]))
704 $timemax = GetMaxDate("Date_Format(fRunStart, '%Y-%m-%d')", $table, $host, $user, $pw, $db);
705 else
706 $timemax = $_GET["fStopDate"];
707
708 printf("Night&nbsp;(yyyy-mm-dd)&nbsp;from&nbsp;<input name=\"fStartDate\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"%s\">\n", $timemin);
709 printf("to&nbsp;<input name=\"fStopDate\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"%s\">&nbsp;&nbsp;&nbsp;&nbsp;\n", $timemax);
710}
711
712function PrintStarRangeMenu($host,$user,$pw,$db)
713{
714 if (empty($_GET["fStarStart"]))
715 $starmin = GetMin("fStar", "SequenceProcessStatus", $host, $user, $pw, $db);
716 else
717 $starmin = $_GET["fStarStart"];
718
719 if (empty($_GET["fStarStop"]))
720 $starmax = GetMax("fStar", "SequenceProcessStatus", $host, $user, $pw, $db);
721 else
722 $starmax = $_GET["fStarStop"];
723
724 printf("<p>StarDone&nbsp;(yyyy-mm-dd hh:mm:ss)&nbsp;from&nbsp;<input name=\"fStarStart\" type=\"text\" size=\"19\" maxlength=\"19\" value=\"%s\">\n", $starmin);
725 printf("to&nbsp;<input name=\"fStarStop\" type=\"text\" size=\"19\" maxlength=\"19\" value=\"%s\">&nbsp;&nbsp;&nbsp;&nbsp;\n", $starmax);
726}
727
728function PrintGroupByDateMenu()
729{
730 printf("Group by Date ");
731 printf("<select name='fGroupByDate' size='1' class='Width'>\n");
732 if (empty($_GET["fGroupByDate"]) || $_GET["fGroupByDate"]==0)
733 printf(" <option value='0' selected>--- NO GROUP BY ---</option>\n");
734 else
735 printf(" <option value='0'>--- NO GROUP BY ---</option>\n");
736 $dates=array("Year", "Month","Night");
737 foreach ($dates as $date)
738 {
739 if ($_GET["fGroupByDate"]==$date)
740 printf(" <option value='%s' selected> %s </option>\n", $date, $date);
741 else
742 printf(" <option value='%s'> %s </option>\n", $date, $date);
743 }
744 printf(" </select>\n");
745}
746
747function PrintSourceMenu($host,$user,$pw,$db)
748{
749 printf("Source&nbsp;(<A HREF=\"regexp.html\">regexp</A>)&nbsp;<input name=\"fSourceN\" type=\"text\" size=\"15\" maxlength=\"15\" value=\"");
750 if (!empty($_GET["fSourceN"]))
751 printf("%s", $_GET["fSourceN"]);
752 printf("\">&nbsp;&nbsp;&nbsp;\n");
753}
754function PrintSequMenu($host,$user,$pw,$db)
755{
756 printf("Sequ#&nbsp;<input name=\"fSequenceNo\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"");
757 if (!empty($_GET["fSequenceNo"]))
758 printf("%s", $_GET["fSequenceNo"]);
759 printf("\">&nbsp;&nbsp;&nbsp;\n");
760}
761
762function PrintNumResPullDown()
763{
764 printf(" Results:\n");
765 printf(" <select name=\"fNumResults\">\n");
766
767 $numres = array("10", "20", "50", "100", "200", "500", "1000", "2000");
768 foreach ($numres as $element)
769 {
770 if ($element==$_GET["fNumResults"])
771 printf("<option value=\"%s\" selected>%3s</option>\n", $element, $element);
772 else
773 printf("<option value=\"%s\">%3s</option>\n", $element, $element);
774 }
775 printf(" </select>\n");
776 printf(" &nbsp;&nbsp;&nbsp;\n");
777}
778
779function PrintButtons($page)
780{
781 printf("<input class='Width' type='submit' value='Query Table'>&nbsp;&nbsp;&nbsp;\n");
782 printf("<input class='Width' type='button' value='Reset' onClick='self.location.href=\"%s\"'>&nbsp;&nbsp;&nbsp;\n", $page);
783// printf("<p>");
784 if (strchr($_SERVER["REQUEST_URI"], '?')!=FALSE)
785 {
786 printf("<input class='Width' type='button' value='Get .txt' onClick='self.location.href=\"%s&amp;fSendTxt=1\"'>&nbsp;&nbsp;&nbsp;\n", htmlspecialchars($_SERVER["REQUEST_URI"]));
787 printf("<input class='Width' type='button' value='Print' onClick='self.location.href=\"%s&amp;fPrintTable=1\"'>&nbsp;&nbsp;&nbsp;\n", htmlspecialchars($_SERVER["REQUEST_URI"]));
788 printf("MySqlQuery: <img id='showquerybutton' src='../plus.png' alt='+' onClick='showhide(\"showquery\")'>\n");
789 }
790}
791
792function InitFailInfo($first)
793{
794 if (empty($_GET["fStartTime"]))
795 $_GET["fStartTime"]="Off";
796
797 if (empty($_GET["fFailedTime"]))
798 $_GET["fFailedTime"]="Off";
799
800 if (empty($_GET["fReturnCode"]))
801 $_GET["fReturnCode"]="Off";
802
803 if (empty($_GET["fProgramId"]))
804 $_GET["fProgramId"]="Off";
805}
806
807function InitInfo($first)
808{
809 if (empty($_GET["fNumResults"]))
810 $_GET["fNumResults"]="20";
811
812 if (empty($_GET["fNumEvents"]))
813 $_GET["fNumEvents"]="Off";
814
815 if (empty($_GET["fRunStart"]))
816 $_GET["fRunStart"]="Off";
817
818 if (empty($_GET["fRunStop"]))
819 $_GET["fRunStop"]="Off";
820
821 if (empty($_GET["fTest"]))
822 $_GET["fTest"]="Off";
823
824 if (empty($_GET["fSourceName"]))
825 $_GET["fSourceName"]="Off";
826
827 if (empty($_GET["fProjectName"]))
828 $_GET["fProjectName"]="Off";
829
830 if (empty($_GET["fL1TriggerTableName"]))
831 $_GET["fL1TriggerTableName"]="Off";
832
833 if (empty($_GET["fL2TriggerTableName"]))
834 $_GET["fL2TriggerTableName"]="Off";
835
836 if (empty($_GET["fL3TriggerTableName"]))
837 $_GET["fL3TriggerTableName"]="Off";
838
839 if (empty($_GET["fHvSettingsName"]))
840 $_GET["fHvSettingsName"]="Off";
841
842 if (empty($_GET["fDiscriminatorThresholdTableName"]))
843 $_GET["fDiscriminatorThresholdTableName"]="Off";
844
845 if (empty($_GET["fTriggerDelayTableName"]))
846 $_GET["fTriggerDelayTableName"]="Off";
847
848 if (empty($_GET["fLightConditionsName"]))
849 $_GET["fLightConditionsName"]="Off";
850
851 if (empty($_GET["fTestFlagName"]))
852 $_GET["fTestFlagName"]="Off";
853
854 if (empty($_GET["fCycleName"]))
855 $_GET["fCycleName"]="Off";
856
857 if (empty($_GET["fPIName"]))
858 $_GET["fPIName"]="Off";
859
860 if (empty($_GET["fWorkingGroupName"]))
861 $_GET["fWorkingGroupName"]="Off";
862
863 if (empty($_GET["fProposalName"]))
864 $_GET["fProposalName"]="Off";
865}
866
867function InitRunStatus($first)
868{
869 if (empty($_GET["fDataCheckDone"]))
870 $_GET["fDataCheckDone"]="Off";
871
872 if (empty($_GET["fDataCheckDoneStatus"]))
873 $_GET["fDataCheckDoneStatus"]="0";
874
875 if (empty($_GET["fCCFileAvail"]))
876 $_GET["fCCFileAvail"]="Off";
877
878 if (empty($_GET["fCCFileAvailStatus"]))
879 $_GET["fCCFileAvailStatus"]="0";
880
881 if (empty($_GET["fCaCoFileAvail"]))
882 $_GET["fCaCoFileAvail"]=$first?"On":"";
883
884 if (empty($_GET["fCaCoFileAvailStatus"]))
885 $_GET["fCaCoFileAvailStatus"]="0";
886
887 if (empty($_GET["fCaCoFileFound"]))
888 $_GET["fCaCoFileFound"]="Off";
889
890 if (empty($_GET["fCaCoFileFoundStatus"]))
891 $_GET["fCaCoFileFoundStatus"]="0";
892
893 if (empty($_GET["fRawFileAvail"]))
894 $_GET["fRawFileAvail"]="Off";
895
896 if (empty($_GET["fRawFileAvailStatus"]))
897 $_GET["fRawFileAvailStatus"]="0";
898
899 if (empty($_GET["fTimingCorrection"]))
900 $_GET["fTimingCorrection"]="Off";
901
902 if (empty($_GET["fTimingCorrectionStatus"]))
903 $_GET["fTimingCorrectionStatus"]="0";
904}
905
906function InitRunInfo($first)
907{
908 InitRunStatus($first);
909 InitInfo($first);
910 InitFailInfo($first);
911
912 if (empty($_GET["fLinks"]))
913 $_GET["fLinks"]=$first?"On":"";
914
915 if (empty($_GET["fFormatVersion"]))
916 $_GET["fFormatVersion"]="Off";
917
918 if (empty($_GET["fAzimuth"]))
919 $_GET["fAzimuth"]="Off";
920
921 if (empty($_GET["fZenithDistance"]))
922 $_GET["fZenithDistance"]="Off";
923
924 if (empty($_GET["fRunTypeName"]))
925 $_GET["fRunTypeName"]="Off";
926
927 if (empty($_GET["fExcludedFDAName"]))
928 $_GET["fExcludedFDAName"]="Off";
929
930 if (empty($_GET["fMagicNumberName"]))
931 $_GET["fMagicNumberName"]="Off";
932
933 if (empty($_GET["fObservationModeName"]))
934 $_GET["fObservationModeName"]="Off";
935
936 if (empty($_GET["fSumTriggerFlagName"]))
937 $_GET["fSumTriggerFlagName"]="Off";
938
939 if (empty($_GET["fMeanTriggerRate"]))
940 $_GET["fMeanTriggerRate"]="Off";
941
942 if (empty($_GET["fCalibrationScriptName"]))
943 $_GET["fCalibrationScriptName"]="Off";
944
945 if (empty($_GET["fTestFlagName"]))
946 $_GET["fTestFlagName"]="Off";
947
948 if (empty($_GET["fDaqStoreRate"]))
949 $_GET["fDaqStoreRate"]="Off";
950
951 if (empty($_GET["fDaqTriggerRate"]))
952 $_GET["fDaqTriggerRate"]="Off";
953
954 if (empty($_GET["fL2RatePresc"]))
955 $_GET["fL2RatePresc"]="Off";
956
957 if (empty($_GET["fL3TriggerRate"]))
958 $_GET["fL3TriggerRate"]="Off";
959
960 if (empty($_GET["fWheelPos1"]))
961 $_GET["fWheelPos1"]="Off";
962
963 if (empty($_GET["fWheelPos2"]))
964 $_GET["fWheelPos2"]="Off";
965
966 if (empty($_GET["fL2RateUnpresc"]))
967 $_GET["fL2RateUnpresc"]="Off";
968
969 if (empty($_GET["fSequenceFirst"]))
970 $_GET["fSequenceFirst"]="Off";
971
972 if (empty($_GET["fSequenceNo"]))
973 $_GET["fSequenceNo"]="";
974}
975
976function InitSequStatus($first)
977{
978 if (empty($_GET["fSequenceFileWritten"]))
979 $_GET["fSequenceFileWritten"]="Off";
980
981 if (empty($_GET["fSequenceFileWrittenStatus"]))
982 $_GET["fSequenceFileWrittenStatus"]="0";
983
984 if (empty($_GET["fAllFilesAvail"]))
985 $_GET["fAllFilesAvail"]="Off";
986
987 if (empty($_GET["fAllFilesAvailStatus"]))
988 $_GET["fAllFilesAvailStatus"]="0";
989
990 if (empty($_GET["fCallisto"]))
991 $_GET["fCallisto"]="Off";
992
993 if (empty($_GET["fCallistoStatus"]))
994 $_GET["fCallistoStatus"]="0";
995
996 if (empty($_GET["fFillCallisto"]))
997 $_GET["fFillCallisto"]="Off";
998
999 if (empty($_GET["fFillCallistoStatus"]))
1000 $_GET["fFillCallistoStatus"]="0";
1001
1002 if (empty($_GET["fStar"]))
1003 $_GET["fStar"]="Off";
1004
1005 if (empty($_GET["fStarStatus"]))
1006 $_GET["fStarStatus"]="0";
1007
1008 if (empty($_GET["fFillStar"]))
1009 $_GET["fFillStar"]="Off";
1010
1011 if (empty($_GET["fFillStarStatus"]))
1012 $_GET["fFillStarStatus"]="0";
1013}
1014
1015function InitStarInfo($first)
1016{
1017 if (empty($_GET["fMeanNumberIslands"]))
1018 $_GET["fMeanNumberIslands"]="Off";
1019
1020 if (empty($_GET["fPSF"]))
1021 $_GET["fPSF"]="Off";
1022
1023 if (empty($_GET["fRatio"]))
1024 $_GET["fRatio"]="Off";
1025
1026 if (empty($_GET["fMuonNumber"]))
1027 $_GET["fMuonNumber"]="Off";
1028
1029 if (empty($_GET["fEffOnTime"]))
1030 $_GET["fEffOnTime"]="Off";
1031
1032 if (empty($_GET["fEffOnTime/fRunTime"]))
1033 $_GET["fEffOnTime/fRunTime"]="Off";
1034
1035 if (empty($_GET["fMuonRate"]))
1036 $_GET["fMuonRate"]="Off";
1037
1038 if (empty($_GET["fInhomogeneity"]))
1039 $_GET["fInhomogeneity"]="Off";
1040
1041 if (empty($_GET["fDataRate"]))
1042 $_GET["fDataRate"]="Off";
1043
1044 if (empty($_GET["fSparkRate"]))
1045 $_GET["fSparkRate"]="Off";
1046
1047 if (empty($_GET["fMaxHumidity"]))
1048 $_GET["fMaxHumidity"]="Off";
1049
1050 if (empty($_GET["fBrightnessMed"]))
1051 $_GET["fBrightnessMed"]="Off";
1052
1053 if (empty($_GET["fBrightnessRMS"]))
1054 $_GET["fBrightnessRMS"]="Off";
1055
1056 if (empty($_GET["fNumStarsMed"]))
1057 $_GET["fNumStarsMed"]="Off";
1058
1059 if (empty($_GET["fNumStarsRMS"]))
1060 $_GET["fNumStarsRMS"]="Off";
1061
1062 if (empty($_GET["fNumStarsCorMed"]))
1063 $_GET["fNumStarsCorMed"]="Off";
1064
1065 if (empty($_GET["fNumStarsCorRMS"]))
1066 $_GET["fNumStarsCorRMS"]="Off";
1067
1068 if (empty($_GET["fAvgWindSpeed"]))
1069 $_GET["fAvgWindSpeed"]="Off";
1070
1071 if (empty($_GET["fAvgTemperature"]))
1072 $_GET["fAvgTemperature"]="Off";
1073
1074 if (empty($_GET["fAvgHumidity"]))
1075 $_GET["fAvgHumidity"]="Off";
1076
1077 if (empty($_GET["fAvgTempSky"]))
1078 $_GET["fAvgTempSky"]="Off";
1079
1080 if (empty($_GET["fAvgCloudiness"]))
1081 $_GET["fAvgCloudiness"]="Off";
1082
1083 if (empty($_GET["fRmsCloudiness"]))
1084 $_GET["fRmsCloudiness"]="Off";
1085}
1086
1087function InitCalInfo($first)
1088{
1089 if (empty($_GET["fUnreliableInner"]))
1090 $_GET["fUnreliableInner"]="Off";
1091
1092 if (empty($_GET["fUnsuitableOuter"]))
1093 $_GET["fUnsuitableOuter"]="Off";
1094
1095 if (empty($_GET["fUnreliableOuter"]))
1096 $_GET["fUnreliableOuter"]="Off";
1097
1098 if (empty($_GET["fUnsuitableInner"]))
1099 $_GET["fUnsuitableInner"]="Off";
1100
1101 if (empty($_GET["fUnsuitable50"]))
1102 $_GET["fUnsuitable50"]="Off";
1103
1104 if (empty($_GET["fUnsuitable01"]))
1105 $_GET["fUnsuitable01"]="Off";
1106
1107 if (empty($_GET["fUnsuitableMax"]))
1108 $_GET["fUnsuitableMax"]="Off";
1109
1110 if (empty($_GET["fDeadMax"]))
1111 $_GET["fDeadMax"]="Off";
1112
1113 if (empty($_GET["fRateTrigEvts"]))
1114 $_GET["fRateTrigEvts"]="Off";
1115
1116 if (empty($_GET["fRateSumEvts"]))
1117 $_GET["fRateSumEvts"]="Off";
1118
1119 if (empty($_GET["fRatePedEvts"]))
1120 $_GET["fRatePedEvts"]="Off";
1121
1122 if (empty($_GET["fRatePedTrigEvts"]))
1123 $_GET["fRatePedTrigEvts"]="Off";
1124
1125 if (empty($_GET["fRateCalEvts"]))
1126 $_GET["fRateCalEvts"]="Off";
1127
1128 if (empty($_GET["fRateNullEvts"]))
1129 $_GET["fRateNullEvts"]="Off";
1130
1131 if (empty($_GET["fRateUnknownEvts"]))
1132 $_GET["fRateUnknownEvts"]="Off";
1133
1134 if (empty($_GET["fRatioCalEvents"]))
1135 $_GET["fRatioCalEvents"]="Off";
1136
1137 if (empty($_GET["fPulsePosCalib"]))
1138 $_GET["fPulsePosCalib"]="Off";
1139
1140 if (empty($_GET["fIsolatedInner"]))
1141 $_GET["fIsolatedInner"]="Off";
1142
1143 if (empty($_GET["fIsolatedOuter"]))
1144 $_GET["fIsolatedOuter"]="Off";
1145
1146 if (empty($_GET["fMeanPedRmsInner"]))
1147 $_GET["fMeanPedRmsInner"]="Off";
1148
1149 if (empty($_GET["fMeanPedRmsOuter"]))
1150 $_GET["fMeanPedRmsOuter"]="Off";
1151
1152 if (empty($_GET["fIsolatedMaxCluster"]))
1153 $_GET["fIsolatedMaxCluster"]="Off";
1154
1155 if (empty($_GET["fArrTimeMeanInner"]))
1156 $_GET["fArrTimeMeanInner"]="Off";
1157
1158 if (empty($_GET["fArrTimeMeanOuter"]))
1159 $_GET["fArrTimeMeanOuter"]="Off";
1160
1161 if (empty($_GET["fArrTimeRmsInner"]))
1162 $_GET["fArrTimeRmsInner"]="Off";
1163
1164 if (empty($_GET["fArrTimeRmsOuter"]))
1165 $_GET["fArrTimeRmsOuter"]="Off";
1166
1167 if (empty($_GET["fMeanSignalInner"]))
1168 $_GET["fMeanSignalInner"]=$first?"Off":"";
1169
1170 if (empty($_GET["fMeanSignalOuter"]))
1171 $_GET["fMeanSignalOuter"]=$first?"Off":"";
1172
1173 if (empty($_GET["fPulsePosMean"]))
1174 $_GET["fPulsePosMean"]=$first?"Off":"";
1175
1176 if (empty($_GET["fConvFactorInner"]))
1177 $_GET["fConvFactorInner"]="Off";
1178
1179 if (empty($_GET["fConvFactorOuter"]))
1180 $_GET["fConvFactorOuter"]="Off";
1181}
1182
1183function InitSequInfo($first)
1184{
1185 InitInfo($first);
1186 InitSequStatus($first);
1187 InitFailInfo($first);
1188 InitCalInfo($first);
1189 InitStarInfo($first);
1190
1191 if (empty($_GET["fRunTime/60"]))
1192 $_GET["fRunTime/60"]="Off";
1193
1194 if (empty($_GET["fSequenceLast"]))
1195 $_GET["fSequenceLast"]="Off";
1196
1197 if (empty($_GET["fAzimuthMin"]))
1198 $_GET["fAzimuthMin"]="Off";
1199
1200 if (empty($_GET["fAzimuthMax"]))
1201 $_GET["fAzimuthMax"]="Off";
1202
1203 if (empty($_GET["fZenithDistanceMin"]))
1204 $_GET["fZenithDistanceMin"]="Off";
1205
1206 if (empty($_GET["fZenithDistanceMax"]))
1207 $_GET["fZenithDistanceMax"]="Off";
1208
1209 if (empty($_GET["fObservationModeName"]))
1210 $_GET["fObservationModeName"]="Off";
1211
1212 if (empty($_GET["fSumTriggerFlagName"]))
1213 $_GET["fSumTriggerFlagName"]="Off";
1214
1215 if (empty($_GET["fOnlySum"]))
1216 $_GET["fOnlySum"]="Off";
1217
1218// if (empty($_GET["fManuallyChangedName"]))
1219// $_GET["fManuallyChangedName"]="Off";
1220}
1221
1222function InitDataSetStatus($first)
1223{
1224 if (empty($_GET["fDataSetInserted"]))
1225 $_GET["fDataSetInserted"]="Off";
1226
1227 if (empty($_GET["fDataSetInsertedStatus"]))
1228 $_GET["fDataSetInsertedStatus"]="0";
1229
1230 if (empty($_GET["fDataSetFileWritten"]))
1231 $_GET["fDataSetFileWritten"]=$first?"On":"";
1232
1233 if (empty($_GET["fDataSetFileWrittenStatus"]))
1234 $_GET["fDataSetFileWrittenStatus"]="0";
1235
1236 if (empty($_GET["fStarFilesAvail"]))
1237 $_GET["fStarFilesAvail"]="Off";
1238
1239 if (empty($_GET["fStarFilesAvailStatus"]))
1240 $_GET["fStarFilesAvailStatus"]="0";
1241
1242 if (empty($_GET["fGanymed"]))
1243 $_GET["fGanymed"]=$first?"On":"";
1244
1245 if (empty($_GET["fGanymedStatus"]))
1246 $_GET["fGanymedStatus"]="0";
1247
1248 if (empty($_GET["fFillGanymed"]))
1249 $_GET["fFillGanymed"]="Off";
1250
1251 if (empty($_GET["fFillGanymedStatus"]))
1252 $_GET["fFillGanymedStatus"]="0";
1253}
1254
1255function InitDataSetInfo($first)
1256{
1257 InitDataSetStatus($first);
1258 InitFailInfo($first);
1259
1260 if (empty($_GET["fNumResults"]))
1261 $_GET["fNumResults"]="50";
1262
1263 if (empty($_GET["fLinks"]))
1264 $_GET["fLinks"]=$first?"On":"";
1265
1266 if (empty($_GET["fExcessEvents"]))
1267 $_GET["fExcessEvents"]=$first?"On":"";
1268
1269 if (empty($_GET["fBackgroundEvents*60/fEffOnTime"]))
1270 $_GET["fBackgroundEvents*60/fEffOnTime"]=$first?"On":"";
1271
1272 if (empty($_GET["fBackgroundEvents"]))
1273 $_GET["fBackgroundEvents"]=$first?"On":"";
1274
1275 if (empty($_GET["fSignalEvents"]))
1276 $_GET["fSignalEvents"]=$first?"On":"";
1277
1278 if (empty($_GET["fSignificance"]))
1279 $_GET["fSignificance"]=$first?"On":"";
1280
1281 if (empty($_GET["fScaleFactor"]))
1282 $_GET["fScaleFactor"]=$first?"On":"";
1283
1284 if (empty($_GET["fEffOnTime/3600"]))
1285 $_GET["fEffOnTime/3600"]=$first?"On":"";
1286
1287 if (empty($_GET["fSourceName"]))
1288 $_GET["fSourceName"]=$first?"On":"";
1289
1290 if (empty($_GET["fObservationModeName"]))
1291 $_GET["fObservationModeName"]=$first?"On":"";
1292
1293 if (empty($_GET["fComment"]))
1294 $_GET["fComment"]="Off";
1295
1296 if (empty($_GET["fUserName"]))
1297 $_GET["fUserName"]="Off";
1298
1299 if (empty($_GET["fRunStart"]))
1300 $_GET["fRunStart"]="Off";
1301
1302 if (empty($_GET["fRunStop"]))
1303 $_GET["fRunStop"]="Off";
1304
1305 if (empty($_GET["fZenithDistanceMin"]))
1306 $_GET["fZenithDistanceMin"]=$first?"On":"";
1307
1308 if (empty($_GET["fZenithDistanceMax"]))
1309 $_GET["fZenithDistanceMax"]=$first?"On":"";
1310
1311 if (empty($_GET["fRunTime"]))
1312 $_GET["fRunTime"]="Off";
1313
1314 if (empty($_GET["fDataSetName"]))
1315 $_GET["fDataSetName"]=$first?"On":"";
1316
1317 if (empty($_GET["fExcessEvents*60/fEffOnTime"]))
1318 $_GET["fExcessEvents*60/fEffOnTime"]="Off";
1319
1320 if (empty($_GET["fSignalEvents*60/fEffOnTime"]))
1321 $_GET["fSignalEvents*60/fEffOnTime"]="Off";
1322
1323 if (empty($_GET["Round(fSignificance/Sqrt(fEffOnTime/3600),2)"]))
1324 $_GET["Round(fSignificance/Sqrt(fEffOnTime/3600),2)"]="Off";
1325
1326}
1327
1328function InitFindOffData($first)
1329{
1330 InitSequInfo($first);
1331
1332 //init for limits
1333
1334 if (empty($_GET["fArrTimeLimitMean"]))
1335 $_GET["fArrTimeLimitMean"]="";
1336
1337 if (empty($_GET["fArrTimeLimitRms"]))
1338 $_GET["fArrTimeLimitRms"]="";
1339
1340 if (empty($_GET["fSkyBrightLimitMean"]))
1341 $_GET["fSkyBrightLimitMean"]="";
1342
1343 if (empty($_GET["fSkyBrightLimitRms"]))
1344 $_GET["fSkyBrightLimitRms"]="";
1345
1346 if (empty($_GET["fMaxHumLimit1"]))
1347 $_GET["fMaxHumLimit1"]="";
1348
1349 if (empty($_GET["fMaxHumLimit2"]))
1350 $_GET["fMaxHumLimit2"]="";
1351
1352 if (empty($_GET["fCloudinessLimit1"]))
1353 $_GET["fCloudinessLimit1"]="40";
1354
1355 if (empty($_GET["fCloudinessLimit2"]))
1356 $_GET["fCloudinessLimit2"]="50";
1357
1358 //values that differ for different data
1359 if (empty($_GET["fPSFLimitMean"]))
1360 $_GET["fPSFLimitMean"]="";
1361
1362 if (empty($_GET["fPedRmsInLimitMean"]))
1363 $_GET["fPedRmsInLimitMean"]="";
1364
1365 if (empty($_GET["fZdMinLimit1"]))
1366 $_GET["fZdMinLimit1"]="";
1367
1368 if (empty($_GET["fZdMinLimit2"]))
1369 $_GET["fZdMinLimit2"]="";
1370
1371 if (empty($_GET["fZdMaxLimit1"]))
1372 $_GET["fZdMaxLimit1"]="";
1373
1374 if (empty($_GET["fZdMaxLimit2"]))
1375 $_GET["fZdMaxLimit2"]="";
1376
1377 // values taken from distribution or from experience
1378 if (empty($_GET["fUnsInLimit1"]))
1379 $_GET["fUnsInLimit1"]=$first?"12":"";
1380
1381 if (empty($_GET["fUnsInLimit2"]))
1382 $_GET["fUnsInLimit2"]=$first?"20":"";
1383
1384 if (empty($_GET["fRunTimeLimit1"]))
1385 $_GET["fRunTimeLimit1"]=$first?"5":"";
1386
1387 if (empty($_GET["fRunTimeLimit2"]))
1388 $_GET["fRunTimeLimit2"]=$first?"2":"";
1389
1390 if (empty($_GET["fPSFLimitRms"]))
1391 $_GET["fPSFLimitRms"]=$first?"1.0":"";
1392
1393 if (empty($_GET["fPedRmsInLimitRms"]))
1394 $_GET["fPedRmsInLimitRms"]=$first?"0.08":"";
1395
1396 if (empty($_GET["fNumIslLimitMean"]))
1397 $_GET["fNumIslLimitMean"]=$first?"1.230":"";
1398
1399 if (empty($_GET["fNumIslLimitRms"]))
1400 $_GET["fNumIslLimitRms"]=$first?"0.013":"";
1401
1402 if (empty($_GET["fMuonCalLimitMean"]))
1403 $_GET["fMuonCalLimitMean"]=$first?"100.0":"";
1404
1405 if (empty($_GET["fMuonCalLimitRms"]))
1406 $_GET["fMuonCalLimitRms"]=$first?"1.6":"";
1407
1408 if (empty($_GET["fRelTimeMaxLimit1"]))
1409 $_GET["fRelTimeMaxLimit1"]=$first?"1.0":"";
1410
1411 if (empty($_GET["fRelTimeMaxLimit2"]))
1412 $_GET["fRelTimeMaxLimit2"]=$first?"1.02":"";
1413
1414 if (empty($_GET["fRelTimeMinLimit1"]))
1415 $_GET["fRelTimeMinLimit1"]=$first?"0.97":"";
1416
1417 if (empty($_GET["fRelTimeMinLimit2"]))
1418 $_GET["fRelTimeMinLimit2"]=$first?"0.93":"";
1419
1420 if (empty($_GET["fIMCLimit1"]))
1421 $_GET["fIMCLimit1"]=$first?"00":"";
1422
1423 if (empty($_GET["fIMCLimit2"]))
1424 $_GET["fIMCLimit2"]=$first?"00":"";
1425
1426 if (empty($_GET["fIsoInLimit1"]))
1427 $_GET["fIsoInLimit1"]=$first?"00":"";
1428
1429 if (empty($_GET["fIsoInLimit2"]))
1430 $_GET["fIsoInLimit2"]=$first?"00":"";
1431
1432 if (empty($_GET["fInhomLimitMean"]))
1433 $_GET["fInhomLimitMean"]=$first?"10":"";
1434
1435 if (empty($_GET["fInhomLimitRms"]))
1436 $_GET["fInhomLimitRms"]=$first?"3":"";
1437
1438 if (empty($_GET["fImgRateLimitMean"]))
1439 $_GET["fImgRateLimitMean"]=$first?"180":"";
1440
1441 if (empty($_GET["fImgRateLimitRms"]))
1442 $_GET["fImgRateLimitRms"]=$first?"30":"";
1443
1444 if (empty($_GET["fMuonRateLimitMean"]))
1445 $_GET["fMuonRateLimitMean"]=$first?"1":"";
1446
1447 if (empty($_GET["fMuonRateLimitRms"]))
1448 $_GET["fMuonRateLimitRms"]=$first?"0.1":"";
1449
1450 if (empty($_GET["fMuonNumLimit1"]))
1451 $_GET["fMuonNumLimit1"]=$first?"180":"";
1452
1453 if (empty($_GET["fMuonNumLimit2"]))
1454 $_GET["fMuonNumLimit2"]=$first?"120":"";
1455
1456 if (empty($_GET["fPulsePosLimit1"]))
1457 $_GET["fPulsePosLimit1"]=$first?"3.5":"";
1458
1459 if (empty($_GET["fPulsePosLimit2"]))
1460 $_GET["fPulsePosLimit2"]=$first?"2.5":"";
1461
1462 if (empty($_GET["fNumStarsLimit1"]))
1463 $_GET["fNumStarsLimit1"]=$first?"30":"";
1464
1465 if (empty($_GET["fNumStarsLimit2"]))
1466 $_GET["fNumStarsLimit2"]=$first?"20":"";
1467
1468 if (empty($_GET["fNumStarsCorLimit1"]))
1469 $_GET["fNumStarsCorLimit1"]=$first?"10":"";
1470
1471 if (empty($_GET["fNumStarsCorLimit2"]))
1472 $_GET["fNumStarsCorLimit2"]=$first?"5":"";
1473
1474}
1475
1476function InitBuildDataSets($first)
1477{
1478 if (empty($_GET["fNumResults"]))
1479// $_GET["fNumResults"]="50";
1480 $_GET["fNumResults"]="10";
1481
1482 if (empty($_GET["fRunStart"]))
1483 $_GET["fRunStart"]=$first?"On":"";
1484
1485 if (empty($_GET["fRunTime/60"]))
1486 $_GET["fRunTime/60"]=$first?"On":"";
1487
1488 if (empty($_GET["fZenithDistanceMin"]))
1489 $_GET["fZenithDistanceMin"]=$first?"On":"";
1490
1491 if (empty($_GET["fZenithDistanceMax"]))
1492 $_GET["fZenithDistanceMax"]=$first?"On":"";
1493
1494 if (empty($_GET["fSourceName"]))
1495 $_GET["fSourceName"]=$first?"On":"";
1496
1497 if (empty($_GET["fObservationModeName"]))
1498 $_GET["fObservationModeName"]=$first?"On":"";
1499
1500 if (empty($_GET["fUnsuitableInner"]))
1501 $_GET["fUnsuitableInner"]=$first?"On":"";
1502
1503 if (empty($_GET["fUnreliableInner"]))
1504 $_GET["fUnreliableInner"]=$first?"On":"";
1505
1506 if (empty($_GET["fIsolatedInner"]))
1507 $_GET["fIsolatedInner"]=$first?"On":"";
1508
1509 if (empty($_GET["fIsolatedMaxCluster"]))
1510 $_GET["fIsolatedMaxCluster"]=$first?"On":"";
1511
1512 if (empty($_GET["fArrTimeRmsInner"]))
1513 $_GET["fArrTimeRmsInner"]=$first?"On":"";
1514
1515 if (empty($_GET["fMeanPedRmsInner"]))
1516 $_GET["fMeanPedRmsInner"]=$first?"On":"";
1517
1518 if (empty($_GET["fPulsePosMean"]))
1519 $_GET["fPulsePosMean"]=$first?"On":"";
1520
1521 if (empty($_GET["fConvFactorInner"]))
1522 $_GET["fConvFactorInner"]=$first?"On":"";
1523
1524 if (empty($_GET["fInhomogeneity"]))
1525 $_GET["fInhomogeneity"]=$first?"On":"";
1526
1527 if (empty($_GET["fPSF"]))
1528 $_GET["fPSF"]=$first?"On":"";
1529
1530 if (empty($_GET["fMuonNumber"]))
1531 $_GET["fMuonNumber"]=$first?"On":"";
1532
1533 if (empty($_GET["fEffOnTime/fRunTime"]))
1534 $_GET["fEffOnTime/fRunTime"]=$first?"On":"";
1535
1536 if (empty($_GET["fMuonRate"]))
1537 $_GET["fMuonRate"]=$first?"On":"";
1538
1539 if (empty($_GET["fDataRate"]))
1540 $_GET["fDataRate"]=$first?"On":"";
1541
1542 if (empty($_GET["fAvgCloudiness"]))
1543 $_GET["fAvgCloudiness"]=$first?"On":"";
1544
1545 if (empty($_GET["fNumStarsMed"]))
1546 $_GET["fNumStarsMed"]=$first?"On":"";
1547
1548 if (empty($_GET["fNumStarsCorMed"]))
1549 $_GET["fNumStarsCorMed"]=$first?"On":"";
1550
1551 if (empty($_GET["fOff"]))
1552 $_GET["fOff"]=$first?"On":"";
1553
1554 if (empty($_GET["fLinks"]))
1555 $_GET["fLinks"]=$first?"On":"";
1556
1557 if (empty($_GET["fOnlyOff"]))
1558 $_GET["fOnlyOff"]=$first?"Off":"";
1559
1560 InitFindOffData($first);
1561}
1562
1563// cta mc stuff
1564function InitCTAMCRunStatus($first)
1565{
1566 if (empty($_GET["fCorsikaSimTelarray"]))
1567 $_GET["fCorsikaSimTelarray"]="On";
1568
1569 if (empty($_GET["fCorsikaSimTelarrayStatus"]))
1570 $_GET["fCorsikaSimTelarrayStatus"]="0";
1571
1572 if (empty($_GET["fChimp"]))
1573 $_GET["fChimp"]="Off";
1574
1575 if (empty($_GET["fChimpStatus"]))
1576 $_GET["fChimpStatus"]="0";
1577
1578 if (empty($_GET["fCTAStar"]))
1579 $_GET["fCTAStar"]="Off";
1580
1581 if (empty($_GET["fCTAStarStatus"]))
1582 $_GET["fCTAStarStatus"]="0";
1583
1584 if (empty($_GET["fStereoB"]))
1585 $_GET["fStereoB"]="Off";
1586
1587 if (empty($_GET["fStereoBStatus"]))
1588 $_GET["fStereoBStatus"]="0";
1589
1590 if (empty($_GET["fStereoC"]))
1591 $_GET["fStereoC"]="Off";
1592
1593 if (empty($_GET["fStereoCStatus"]))
1594 $_GET["fStereoCStatus"]="0";
1595
1596 if (empty($_GET["fStereoG"]))
1597 $_GET["fStereoG"]="Off";
1598
1599 if (empty($_GET["fStereoGStatus"]))
1600 $_GET["fStereoGStatus"]="0";
1601
1602}
1603
1604function InitCTAMCRunInfo($first)
1605{
1606 if (empty($_GET["fNumResults"]))
1607 $_GET["fNumResults"]="50";
1608
1609 if (empty($_GET["fNumEvents"]))
1610 $_GET["fNumEvents"]="On";
1611
1612 InitCTAMCRunStatus($first);
1613 InitInfo($first);
1614 InitFailInfo($first);
1615
1616 if (empty($_GET["fObsLevel"]))
1617 $_GET["fObsLevel"]="On";
1618
1619 if (empty($_GET["fParticleTypeName"]))
1620 $_GET["fParticleTypeName"]="On";
1621
1622 if (empty($_GET["fNumEvents"]))
1623 $_GET["fNumEvents"]=$first?"On":"";
1624
1625 if (empty($_GET["fLinks"]))
1626 $_GET["fLinks"]=$first?"On":"";
1627
1628}
1629
1630//other MC stuff
1631function InitMCRunStatus($_GET, $first)
1632{
1633
1634 if (empty($_GET["Corsika"]))
1635 $_GET["Corsika"]=$first?"On":"";
1636
1637 if (empty($_GET["CorsikaStatus"]))
1638 $_GET["CorsikaStatus"]="0";
1639
1640 if (empty($_GET["Ceres"]))
1641 $_GET["Ceres"]=$first?"On":"";
1642
1643 if (empty($_GET["CeresStatus"]))
1644 $_GET["CeresStatus"]="0";
1645
1646 if (empty($_GET["SequenceFile"]))
1647 $_GET["SequenceFile"]=$first?"Off":"";
1648
1649 if (empty($_GET["SequenceFileStatus"]))
1650 $_GET["SequenceFileStatus"]="0";
1651
1652 if (empty($_GET["Callisto"]))
1653 $_GET["Callisto"]=$first?"Off":"";
1654
1655 if (empty($_GET["CallistoStatus"]))
1656 $_GET["CallistoStatus"]="0";
1657
1658 if (empty($_GET["Star"]))
1659 $_GET["Star"]=$first?"On":"";
1660
1661 if (empty($_GET["StarStatus"]))
1662 $_GET["StarStatus"]="0";
1663
1664}
1665
1666function InitMCRunInfo($_GET, $first)
1667{
1668 if (empty($_GET["fNumResults"]))
1669 $_GET["fNumResults"]="50";
1670
1671 InitMCRunStatus($_GET, $first);
1672 InitInfo($_GET, $first);
1673 InitFailInfo($_GET, $first);
1674
1675 if (empty($_GET["fParticleTypeName"]))
1676 $_GET["fParticleTypeName"]=$first?"On":"";
1677
1678 if (empty($_GET["fRunTypeName"]))
1679 $_GET["fRunTypeName"]=$first?"On":"";
1680
1681 if (empty($_GET["fAtmosphericModelName"]))
1682 $_GET["fAtmosphericModelName"]="Off";
1683
1684 if (empty($_GET["fNumEvents"]))
1685 $_GET["fNumEvents"]=$first?"On":"";
1686
1687 if (empty($_GET["fZenithDistanceMin"]))
1688 $_GET["fZenithDistanceMin"]=$first?"On":"";
1689
1690 if (empty($_GET["fZenithDistanceMax"]))
1691 $_GET["fZenithDistanceMax"]=$first?"On":"";
1692
1693 if (empty($_GET["fAzimuthMin"]))
1694 $_GET["fAzimuthMin"]=$first?"On":"";
1695
1696 if (empty($_GET["fAzimuthMax"]))
1697 $_GET["fAzimuthMax"]=$first?"On":"";
1698
1699 if (empty($_GET["fEnergyMin"]))
1700 $_GET["fEnergyMin"]=$first?"On":"";
1701
1702 if (empty($_GET["fEnergyMax"]))
1703 $_GET["fEnergyMax"]=$first?"On":"";
1704
1705 if (empty($_GET["fImpactMax"]))
1706 $_GET["fImpactMax"]=$first?"On":"";
1707
1708 if (empty($_GET["fViewConeMax"]))
1709 $_GET["fViewConeMax"]=$first?"On":"";
1710
1711 if (empty($_GET["fEnergySlope"]))
1712 $_GET["fEnergySlope"]=$first?"On":"";
1713
1714 if (empty($_GET["fStartingAltitude"]))
1715 $_GET["fStartingAltitude"]=$first?"On":"";
1716
1717 if (empty($_GET["fMirrorDiameter"]))
1718 $_GET["fMirrorDiameter"]=$first?"On":"";
1719
1720}
1721
1722
1723?>
Note: See TracBrowser for help on using the repository browser.