Changeset 9453 for trunk/MagicSoft/Mars/datacenter
- Timestamp:
- 06/12/09 10:45:25 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/menu.php
r9249 r9453 1 1 <?php 2 3 function PrintCTAMCRunInfoMenu($host,$user,$pw,$db) 4 { 5 printf(" <div id='info' style='display:none'>"); 6 printf(" <table>\n"); 7 printf(" <tr valign='top'>\n"); 8 9 CheckBox("fNumEvents", "Num of events"); 10 11 printf(" <td>\n"); 12 PrintPullDown($host, $user, $pw, $db, "ParticleType", "fParticleTypeName", "fParticleTypeKEY", "Particle type"); 13 printf(" </td><td>\n"); 14 15 printf(" </tr>\n"); 16 printf(" </table>\n"); 17 printf(" </div><p>\n"); 18 } 19 20 function PrintCTAMCRunStatMenu() 21 { 22 printf(" <div id=\"stat\" style='display:none'>\n"); 23 printf(" <table>\n"); 24 printf(" <tr><td>\n"); 25 26 PrintStatusMenu("fCorsikaSimtelArray", "Corsika and Simtel"); 27 printf(" </td><td>\n"); 28 PrintStatusMenu("fChimp", "Chimp"); 29 printf(" </td><td>\n"); 30 PrintStatusMenu("fCTAStar", "Star"); 31 32 printf(" </td></tr><tr><td>\n"); 33 34 PrintStatusMenu("fStereoB", "StereoB"); 35 printf(" </td><td>\n"); 36 PrintStatusMenu("fStereoC", "StereoC"); 37 printf(" </td><td>\n"); 38 PrintStatusMenu("fStereoG", "StereoG"); 39 40 printf(" </td></tr></table>\n"); 41 printf(" <p>\n"); 42 printf(" </div><p>\n"); 43 } 2 44 3 45 function PrintRunInfoMenu() … … 484 526 } 485 527 528 function PrintCTAMCRunRangeMenu($host,$user,$pw,$db) 529 { 530 if (empty($_GET["fRunMin"])) 531 $min = GetMin("fMCRunNumber", "MCRunData", $host, $user, $pw, $db); 532 else 533 $min = $_GET["fRunMin"]; 534 535 if (empty($_GET["fRunMax"])) 536 $max = GetMax("fMCRunNumber", "MCRunData", $host, $user, $pw, $db); 537 else 538 $max = $_GET["fRunMax"]; 539 540 printf("Runs from <input name=\"fRunMin\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"%s\">\n", $min); 541 printf("to <input name=\"fRunMax\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"%s\"> \n", $max); 542 } 543 486 544 function PrintSequRangeMenu($host,$user,$pw,$db) 487 545 { … … 489 547 $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db); 490 548 else 491 549 $min = $_GET["fRunMin"]; 492 550 493 551 if (empty($_GET["fRunMax"])) … … 1279 1337 } 1280 1338 1339 function InitCTAMCRunStatus($_GET, $first) 1340 { 1341 if (empty($_GET["fCorsikaSimtelArray"])) 1342 $_GET["fCorsikaSimtelArray"]="Off"; 1343 1344 if (empty($_GET["fCorsikaSimtelArrayStatus"])) 1345 $_GET["fCorsikaSimtelArrayStatus"]="0"; 1346 1347 if (empty($_GET["fChimp"])) 1348 $_GET["fChimp"]="Off"; 1349 1350 if (empty($_GET["fChimpStatus"])) 1351 $_GET["fChimpStatus"]="0"; 1352 1353 if (empty($_GET["fCTAStar"])) 1354 $_GET["fCTAStar"]="Off"; 1355 1356 if (empty($_GET["fCTAStarStatus"])) 1357 $_GET["fCTAStarStatus"]="0"; 1358 1359 if (empty($_GET["fStereoB"])) 1360 $_GET["fStereoB"]="Off"; 1361 1362 if (empty($_GET["fStereoBStatus"])) 1363 $_GET["fStereoBStatus"]="0"; 1364 1365 if (empty($_GET["fStereoC"])) 1366 $_GET["fStereoC"]="Off"; 1367 1368 if (empty($_GET["fStereoCStatus"])) 1369 $_GET["fStereoCStatus"]="0"; 1370 1371 if (empty($_GET["fStereoG"])) 1372 $_GET["fStereoG"]="Off"; 1373 1374 if (empty($_GET["fStereoGStatus"])) 1375 $_GET["fStereoGStatus"]="0"; 1376 1377 } 1378 1379 function InitCTAMCRunInfo($_GET, $first) 1380 { 1381 if (empty($_GET["fNumResults"])) 1382 $_GET["fNumResults"]="50"; 1383 1384 InitCTAMCRunStatus($_GET, $first); 1385 InitInfo($_GET, $first); 1386 InitFailInfo($_GET, $first); 1387 1388 if (empty($_GET["fNumEvents"])) 1389 $_GET["fNumEvents"]="On"; 1390 1391 if (empty($_GET["fParticleTypeName"])) 1392 $_GET["fParticleTypeName"]="On"; 1393 1394 if (empty($_GET["fCorsikaSimtelArray"])) 1395 $_GET["fCorsikaSimtelArray"]="Off"; 1396 1397 if (empty($_GET["fChimp"])) 1398 $_GET["fChimp"]="Off"; 1399 1400 if (empty($_GET["fCTAStar"])) 1401 $_GET["fCTAStar"]="Off"; 1402 1403 if (empty($_GET["fStereoB"])) 1404 $_GET["fStereoB"]="Off"; 1405 1406 if (empty($_GET["fStereoC"])) 1407 $_GET["fStereoC"]="Off"; 1408 1409 if (empty($_GET["fStereoG"])) 1410 $_GET["fStereoG"]="Off"; 1411 1412 if (empty($_GET["fNumEvents"])) 1413 $_GET["fNumEvents"]=$first?"On":""; 1414 1415 } 1416 1417 1281 1418 ?>
Note:
See TracChangeset
for help on using the changeset viewer.