Changeset 7546 for trunk/MagicSoft/Mars/datacenter/db/findoffdata.php
- Timestamp:
- 02/28/06 20:23:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/findoffdata.php
r7527 r7546 392 392 } 393 393 394 function PrintForm($_GET, $ db, $limits, $rms, $alias)394 function PrintForm($_GET, $host, $user, $pw, $db, $limits, $rms, $alias) 395 395 { 396 396 printf("<center>\n"); … … 478 478 printf(" <table><tr><td>\n"); 479 479 480 PrintPullDown($ db, "Source", "fSourceName", "fSourceKEY", "Source Name");480 PrintPullDown($host, $user, $pw, $db, "Source", "fSourceName", "fSourceKEY", "Source Name"); 481 481 printf(" </td><td>\n"); 482 PrintPullDown($ db, "LightConditions", "fLightConditionsName", "fLightConditionsKEY", "Light Conditions");482 PrintPullDown($host, $user, $pw, $db, "LightConditions", "fLightConditionsName", "fLightConditionsKEY", "Light Conditions"); 483 483 printf(" </td><td>\n"); 484 PrintPullDown($ db, "DiscriminatorThresholdTable", "fDiscriminatorThresholdTableName", "fDiscriminatorThresholdTableKEY", "DT Table");484 PrintPullDown($host, $user, $pw, $db, "DiscriminatorThresholdTable", "fDiscriminatorThresholdTableName", "fDiscriminatorThresholdTableKEY", "DT Table"); 485 485 printf(" </td></tr><tr><td>\n"); 486 PrintPullDown($ db, "ManuallyChanged", "fManuallyChangedName", "fManuallyChangedKEY", "Manually changed");486 PrintPullDown($host, $user, $pw, $db, "ManuallyChanged", "fManuallyChangedName", "fManuallyChangedKEY", "Manually changed"); 487 487 printf(" </td><td>\n"); 488 488 PrintStatusMenu("fStar", "Star"); … … 507 507 508 508 if (empty($_GET["fStarStart"])) 509 $starmin = GetMin("fStar", "SequenceProcessStatus", $ db);509 $starmin = GetMin("fStar", "SequenceProcessStatus", $host, $user, $pw, $db); 510 510 else 511 511 $starmin = $_GET["fStarStart"]; 512 512 513 513 if (empty($_GET["fStarStop"])) 514 $starmax = GetMax("fStar", "SequenceProcessStatus", $ db);514 $starmax = GetMax("fStar", "SequenceProcessStatus", $host, $user, $pw, $db); 515 515 else 516 516 $starmax = $_GET["fStarStop"]; … … 528 528 529 529 if (empty($_GET["fStartDate"])) 530 $timemin = GetMin("fRunStart", "Sequences", $ db);530 $timemin = GetMin("fRunStart", "Sequences", $host, $user, $pw, $db); 531 531 else 532 532 $timemin = $_GET["fStartDate"]; 533 533 534 534 if (empty($_GET["fStopDate"])) 535 $timemax = GetMax("fRunStart", "Sequences", $ db);535 $timemax = GetMax("fRunStart", "Sequences", $host, $user, $pw, $db); 536 536 else 537 537 $timemax = $_GET["fStopDate"]; … … 541 541 542 542 if (empty($_GET["fRunMin"])) 543 $min = GetMin("fSequenceFirst", "Sequences", $ db);543 $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db); 544 544 else 545 545 $min = $_GET["fRunMin"]; 546 546 547 547 if (empty($_GET["fRunMax"])) 548 $max = GetMax("fSequenceFirst", "Sequences", $ db);548 $max = GetMax("fSequenceFirst", "Sequences", $host, $user, $pw, $db); 549 549 else 550 550 $max = $_GET["fRunMax"]; … … 604 604 } 605 605 606 function PrintPage($html, $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $limits, $rms, $needs)606 function PrintPage($html, $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $limits, $rms, $needs) 607 607 { 608 $db_id = mysql_connect( "hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");608 $db_id = mysql_connect($host, $user, $pw); 609 609 if ($db_id==FALSE) 610 610 { … … 645 645 header("Content-Disposition: attachment; filename=query-result.txt"); 646 646 647 PrintPage("0", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $limits, $rms, $needs);647 PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $limits, $rms, $needs); 648 648 } 649 649 else … … 655 655 InitGet($_GET); 656 656 if (empty($_GET["fPrintTable"])) 657 PrintForm($_GET, $ db, $limits, $rms, $alias);657 PrintForm($_GET, $host, $user, $pw, $db, $limits, $rms, $alias); 658 658 659 659 if ($environment==0) … … 662 662 { 663 663 if (empty($_GET["fPrintTable"])) 664 PrintPage("1", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $limits, $rms, $needs);665 else 666 PrintPage("2", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $limits, $rms, $needs);664 PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $limits, $rms, $needs); 665 else 666 PrintPage("2", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $limits, $rms, $needs); 667 667 } 668 668
Note:
See TracChangeset
for help on using the changeset viewer.