Changeset 9499 for trunk/MagicSoft/Mars/datacenter
- Timestamp:
- 08/21/09 11:16:57 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/menu.php
r9498 r9499 615 615 if (empty($_GET["fRunMax"])) 616 616 $max = GetMax("fMCRunNumber", "MCRunData", $host, $user, $pw, $db); 617 else 618 $max = $_GET["fRunMax"]; 619 620 printf("Runs from <input name=\"fRunMin\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"%s\">\n", $min); 621 printf("to <input name=\"fRunMax\" type=\"text\" size=\"8\" maxlength=\"8\" value=\"%s\"> \n", $max); 622 } 623 624 function PrintMCRunRangeMenu($host,$user,$pw,$db) 625 { 626 if (empty($_GET["fRunMin"])) 627 $min = GetMin("fCorsikaRunNumber", "MCCorsikaRunData", $host, $user, $pw, $db); 628 else 629 $min = $_GET["fRunMin"]; 630 631 if (empty($_GET["fRunMax"])) 632 $max = GetMax("fCorsikaRunNumber", "MCCorsikaRunData", $host, $user, $pw, $db); 617 633 else 618 634 $max = $_GET["fRunMax"]; … … 1531 1547 } 1532 1548 1549 // cta mc stuff 1533 1550 function InitCTAMCRunStatus($first) 1534 1551 { … … 1591 1608 } 1592 1609 1610 //other MC stuff 1611 function InitMCRunStatus($_GET, $first) 1612 { 1613 if (empty($_GET["fCorsikaFileAvail"])) 1614 $_GET["fCorsikaFileAvail"]="On"; 1615 1616 if (empty($_GET["fCorsikaFileAvailStatus"])) 1617 $_GET["fCorsikaFileAvailStatus"]="0"; 1618 1619 if (empty($_GET["fCorsikaInputCreated"])) 1620 $_GET["fCorsikaInputCreated"]="Off"; 1621 1622 if (empty($_GET["fCorsikaInputCreatedStatus"])) 1623 $_GET["fCorsikaInputCreatedStatus"]="0"; 1624 1625 } 1626 1627 function InitMCRunInfo($_GET, $first) 1628 { 1629 if (empty($_GET["fNumResults"])) 1630 $_GET["fNumResults"]="50"; 1631 1632 if (empty($_GET["fNumEvents"])) 1633 $_GET["fNumEvents"]="On"; 1634 1635 InitMCRunStatus($_GET, $first); 1636 InitInfo($_GET, $first); 1637 InitFailInfo($_GET, $first); 1638 1639 if (empty($_GET["fParticleTypeName"])) 1640 $_GET["fParticleTypeName"]="On"; 1641 1642 if (empty($_GET["fAtmosphericModelName"])) 1643 $_GET["fAtmosphericModelName"]="Off"; 1644 1645 if (empty($_GET["fNumEvents"])) 1646 $_GET["fNumEvents"]=$first?"On":""; 1647 1648 if (empty($_GET["fZenithDistanceMin"])) 1649 $_GET["fZenithDistanceMin"]="On"; 1650 1651 if (empty($_GET["fZenithDistanceMax"])) 1652 $_GET["fZenithDistanceMax"]="On"; 1653 1654 if (empty($_GET["fAzimuthMin"])) 1655 $_GET["fAzimuthMin"]="On"; 1656 1657 if (empty($_GET["fAzimuthMax"])) 1658 $_GET["fAzimuthMax"]="On"; 1659 1660 if (empty($_GET["fEnergyMin"])) 1661 $_GET["fEnergyMin"]="On"; 1662 1663 if (empty($_GET["fEnergyMax"])) 1664 $_GET["fEnergyMax"]="On"; 1665 1666 if (empty($_GET["fImpactMax"])) 1667 $_GET["fImpactMax"]="On"; 1668 1669 if (empty($_GET["fViewConeMax"])) 1670 $_GET["fViewConeMax"]="On"; 1671 1672 if (empty($_GET["fEnergySlope"])) 1673 $_GET["fEnergySlope"]="On"; 1674 1675 if (empty($_GET["fNumReUseShower"])) 1676 $_GET["fNumReUseShower"]="Off"; 1677 1678 if (empty($_GET["fStartingAltitude"])) 1679 $_GET["fStartingAltitude"]="On"; 1680 1681 if (empty($_GET["fMirrorDiameter"])) 1682 $_GET["fMirrorDiameter"]="On"; 1683 1684 } 1685 1593 1686 1594 1687 ?>
Note:
See TracChangeset
for help on using the changeset viewer.