Changeset 7546 for trunk/MagicSoft/Mars/datacenter/db/runinfo.php
- Timestamp:
- 02/28/06 20:23:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/runinfo.php
r7527 r7546 319 319 } 320 320 321 function PrintForm($_GET, $ db)321 function PrintForm($_GET, $host, $user, $pw, $db) 322 322 { 323 323 printf("<center>\n"); … … 372 372 printf(" <table>\n"); 373 373 printf(" <tr><td>\n"); 374 PrintPullDown($ db, "RunType", "fRunTypeName", "fRunTypeKEY", "Run type");375 printf(" </td><td>\n"); 376 PrintPullDown($ db, "Source", "fSourceName", "fSourceKEY", "Source Name");377 printf(" </td><td>\n"); 378 PrintPullDown($ db, "HvSettings", "fHvSettingsName", "fHvSettingsKEY", "HV Settings");379 printf(" </td><td>\n"); 380 PrintPullDown($ db, "L1TriggerTable", "fL1TriggerTableName", "fL1TriggerTableKEY", "L1 Trigger Table");374 PrintPullDown($host, $user, $pw, $db, "RunType", "fRunTypeName", "fRunTypeKEY", "Run type"); 375 printf(" </td><td>\n"); 376 PrintPullDown($host, $user, $pw, $db, "Source", "fSourceName", "fSourceKEY", "Source Name"); 377 printf(" </td><td>\n"); 378 PrintPullDown($host, $user, $pw, $db, "HvSettings", "fHvSettingsName", "fHvSettingsKEY", "HV Settings"); 379 printf(" </td><td>\n"); 380 PrintPullDown($host, $user, $pw, $db, "L1TriggerTable", "fL1TriggerTableName", "fL1TriggerTableKEY", "L1 Trigger Table"); 381 381 printf(" </td></tr><tr><td>\n"); 382 PrintPullDown($ db, "TestFlag", "fTestFlagName", "fTestFlagKEY", "Test Flag");383 printf(" </td><td>\n"); 384 PrintPullDown($ db, "Project", "fProjectName", "fProjectKEY", "Project Name");385 printf(" </td><td>\n"); 386 PrintPullDown($ db, "DiscriminatorThresholdTable", "fDiscriminatorThresholdTableName", "fDiscriminatorThresholdTableKEY", "DT Table");387 printf(" </td><td>\n"); 388 PrintPullDown($ db, "L2TriggerTable", "fL2TriggerTableName", "fL2TriggerTableKEY", "L2 Trigger Table");382 PrintPullDown($host, $user, $pw, $db, "TestFlag", "fTestFlagName", "fTestFlagKEY", "Test Flag"); 383 printf(" </td><td>\n"); 384 PrintPullDown($host, $user, $pw, $db, "Project", "fProjectName", "fProjectKEY", "Project Name"); 385 printf(" </td><td>\n"); 386 PrintPullDown($host, $user, $pw, $db, "DiscriminatorThresholdTable", "fDiscriminatorThresholdTableName", "fDiscriminatorThresholdTableKEY", "DT Table"); 387 printf(" </td><td>\n"); 388 PrintPullDown($host, $user, $pw, $db, "L2TriggerTable", "fL2TriggerTableName", "fL2TriggerTableKEY", "L2 Trigger Table"); 389 389 printf(" </td></tr><tr><td>\n"); 390 PrintPullDown($ db, "ExcludedFDA", "fExcludedFDAName", "fExcludedFDAKEY", "Exclusions");391 printf(" </td><td>\n"); 392 PrintPullDown($ db, "LightConditions", "fLightConditionsName", "fLightConditionsKEY", "Light Conditions");393 printf(" </td><td>\n"); 394 PrintPullDown($ db, "CalibrationScript", "fCalibrationScriptName", "fCalibrationScriptKEY", "Cal Script");395 printf(" </td><td>\n"); 396 PrintPullDown($ db, "TriggerDelayTable", "fTriggerDelayTableName", "fTriggerDelayTableKEY", "Trigger Delay Table");390 PrintPullDown($host, $user, $pw, $db, "ExcludedFDA", "fExcludedFDAName", "fExcludedFDAKEY", "Exclusions"); 391 printf(" </td><td>\n"); 392 PrintPullDown($host, $user, $pw, $db, "LightConditions", "fLightConditionsName", "fLightConditionsKEY", "Light Conditions"); 393 printf(" </td><td>\n"); 394 PrintPullDown($host, $user, $pw, $db, "CalibrationScript", "fCalibrationScriptName", "fCalibrationScriptKEY", "Cal Script"); 395 printf(" </td><td>\n"); 396 PrintPullDown($host, $user, $pw, $db, "TriggerDelayTable", "fTriggerDelayTableName", "fTriggerDelayTableKEY", "Trigger Delay Table"); 397 397 printf(" </td></tr><tr><td>\n"); 398 PrintPullDown($ db, "MagicNumber", "fMagicNumberName", "fMagicNumberKEY", "Magic Number");398 PrintPullDown($host, $user, $pw, $db, "MagicNumber", "fMagicNumberName", "fMagicNumberKEY", "Magic Number"); 399 399 printf(" </td></tr></table>\n"); 400 400 … … 402 402 403 403 if (empty($_GET["fStartDate"])) 404 $timemin = GetMin("fRunStart", "RunData", $ db);404 $timemin = GetMin("fRunStart", "RunData", $host, $user, $pw, $db); 405 405 else 406 406 $timemin = $_GET["fStartDate"]; 407 407 408 408 if (empty($_GET["fStopDate"])) 409 $timemax = GetMax("fRunStart", "RunData", $ db);409 $timemax = GetMax("fRunStart", "RunData", $host, $user, $pw, $db); 410 410 else 411 411 $timemax = $_GET["fStopDate"]; … … 427 427 428 428 if (empty($_GET["fRunMin"])) 429 $min = GetMin("fRunNumber", "RunData", $ db);429 $min = GetMin("fRunNumber", "RunData", $host, $user, $pw, $db); 430 430 else 431 431 $min = $_GET["fRunMin"]; 432 432 433 433 if (empty($_GET["fRunMax"])) 434 $max = GetMax("fRunNumber", "RunData", $ db);434 $max = GetMax("fRunNumber", "RunData", $host, $user, $pw, $db); 435 435 else 436 436 $max = $_GET["fRunMax"]; … … 477 477 } 478 478 479 function PrintPage($html, $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs)479 function PrintPage($html, $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs) 480 480 { 481 $db_id = mysql_connect( "hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");481 $db_id = mysql_connect($host, $user, $pw); 482 482 if ($db_id==FALSE) 483 483 { … … 519 519 header("Content-Disposition: attachment; filename=query-result.txt"); 520 520 521 PrintPage("0", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs);521 PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs); 522 522 } 523 523 else … … 529 529 InitGet($_GET); 530 530 if (empty($_GET["fPrintTable"])) 531 PrintForm($_GET, $ db);531 PrintForm($_GET, $host, $user, $pw, $db); 532 532 533 533 if ($environment==0) … … 536 536 { 537 537 if (empty($_GET["fPrintTable"])) 538 PrintPage("1", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs);538 PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs); 539 539 else 540 PrintPage("2", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs);540 PrintPage("2", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs); 541 541 } 542 542
Note:
See TracChangeset
for help on using the changeset viewer.