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

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