Changeset 7546 for trunk/MagicSoft/Mars/datacenter/db/sequinfo.php
- Timestamp:
- 02/28/06 20:23:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/sequinfo.php
r7527 r7546 403 403 } 404 404 405 function PrintForm($_GET, $ db)405 function PrintForm($_GET, $host, $user, $pw, $db) 406 406 { 407 407 printf("<center>\n"); … … 520 520 printf(" <table>\n"); 521 521 printf(" <tr><td>\n"); 522 PrintPullDown($ db, "Source", "fSourceName", "fSourceKEY", "Source Name");523 printf(" </td><td>\n"); 524 PrintPullDown($ db, "L1TriggerTable", "fL1TriggerTableName", "fL1TriggerTableKEY", "L1Trigger Table");525 printf(" </td><td>\n"); 526 PrintPullDown($ db, "L2TriggerTable", "fL2TriggerTableName", "fL2TriggerTableKEY", "L2Trigger Table");527 printf(" </td><td>\n"); 528 PrintPullDown($ db, "TriggerDelayTable", "fTriggerDelayTableName", "fTriggerDelayTableKEY", "Trigger Delay Table");522 PrintPullDown($host, $user, $pw, $db, "Source", "fSourceName", "fSourceKEY", "Source Name"); 523 printf(" </td><td>\n"); 524 PrintPullDown($host, $user, $pw, $db, "L1TriggerTable", "fL1TriggerTableName", "fL1TriggerTableKEY", "L1Trigger Table"); 525 printf(" </td><td>\n"); 526 PrintPullDown($host, $user, $pw, $db, "L2TriggerTable", "fL2TriggerTableName", "fL2TriggerTableKEY", "L2Trigger Table"); 527 printf(" </td><td>\n"); 528 PrintPullDown($host, $user, $pw, $db, "TriggerDelayTable", "fTriggerDelayTableName", "fTriggerDelayTableKEY", "Trigger Delay Table"); 529 529 printf(" </td></tr><tr><td>\n"); 530 PrintPullDown($ db, "LightConditions", "fLightConditionsName", "fLightConditionsKEY", "Light Conditions");531 printf(" </td><td>\n"); 532 PrintPullDown($ db, "Project", "fProjectName", "fProjectKEY", "Project Name");533 printf(" </td><td>\n"); 534 PrintPullDown($ db, "HvSettings", "fHvSettingsName", "fHvSettingsKEY", "HV Settings");535 printf(" </td><td>\n"); 536 PrintPullDown($ db, "DiscriminatorThresholdTable", "fDiscriminatorThresholdTableName", "fDiscriminatorThresholdTableKEY", "DT Table");530 PrintPullDown($host, $user, $pw, $db, "LightConditions", "fLightConditionsName", "fLightConditionsKEY", "Light Conditions"); 531 printf(" </td><td>\n"); 532 PrintPullDown($host, $user, $pw, $db, "Project", "fProjectName", "fProjectKEY", "Project Name"); 533 printf(" </td><td>\n"); 534 PrintPullDown($host, $user, $pw, $db, "HvSettings", "fHvSettingsName", "fHvSettingsKEY", "HV Settings"); 535 printf(" </td><td>\n"); 536 PrintPullDown($host, $user, $pw, $db, "DiscriminatorThresholdTable", "fDiscriminatorThresholdTableName", "fDiscriminatorThresholdTableKEY", "DT Table"); 537 537 printf(" </td></tr><tr><td>\n"); 538 PrintPullDown($ db, "ManuallyChanged", "fManuallyChangedName", "fManuallyChangedKEY", "Manually changed");539 printf(" </td><td>\n"); 540 PrintPullDown($ db, "TestFlag", "fTestFlagName", "fTestFlagKEY", "Test Flag");538 PrintPullDown($host, $user, $pw, $db, "ManuallyChanged", "fManuallyChangedName", "fManuallyChangedKEY", "Manually changed"); 539 printf(" </td><td>\n"); 540 PrintPullDown($host, $user, $pw, $db, "TestFlag", "fTestFlagName", "fTestFlagKEY", "Test Flag"); 541 541 printf(" </td></tr>\n"); 542 542 printf(" </table>\n"); … … 544 544 545 545 if (empty($_GET["fStartDate"])) 546 $timemin = GetMin("fRunStart", "Sequences", $ db);546 $timemin = GetMin("fRunStart", "Sequences", $host, $user, $pw, $db); 547 547 else 548 548 $timemin = $_GET["fStartDate"]; 549 549 550 550 if (empty($_GET["fStopDate"])) 551 $timemax = GetMax("fRunStart", "Sequences", $ db);551 $timemax = GetMax("fRunStart", "Sequences", $host, $user, $pw, $db); 552 552 else 553 553 $timemax = $_GET["fStopDate"]; … … 557 557 558 558 if (empty($_GET["fRunMin"])) 559 $min = GetMin("fSequenceFirst", "Sequences", $ db);559 $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db); 560 560 else 561 561 $min = $_GET["fRunMin"]; 562 562 563 563 if (empty($_GET["fRunMax"])) 564 $max = GetMax("fSequenceFirst", "Sequences", $ db);564 $max = GetMax("fSequenceFirst", "Sequences", $host, $user, $pw, $db); 565 565 else 566 566 $max = $_GET["fRunMax"]; … … 614 614 } 615 615 616 function PrintPage($html, $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs)616 function PrintPage($html, $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs) 617 617 { 618 $db_id = mysql_connect( "hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");618 $db_id = mysql_connect($host, $user, $pw); 619 619 if ($db_id==FALSE) 620 620 { … … 655 655 header("Content-Disposition: attachment; filename=query-result.txt"); 656 656 657 PrintPage("0", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs);657 PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs); 658 658 } 659 659 else … … 665 665 InitGet($_GET); 666 666 if (empty($_GET["fPrintTable"])) 667 PrintForm($_GET, $ db);667 PrintForm($_GET, $host, $user, $pw, $db); 668 668 669 669 if ($environment==0) … … 672 672 { 673 673 if (empty($_GET["fPrintTable"])) 674 PrintPage("1", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs);674 PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs); 675 675 else 676 PrintPage("2", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs);676 PrintPage("2", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs); 677 677 } 678 678
Note:
See TracChangeset
for help on using the changeset viewer.