Ignore:
Timestamp:
02/28/06 20:23:38 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/db/sequinfo.php

    r7527 r7546  
    403403    }
    404404
    405     function PrintForm($_GET, $db)
     405    function PrintForm($_GET, $host, $user, $pw, $db)
    406406    {
    407407        printf("<center>\n");
     
    520520        printf(" <table>\n");
    521521        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");
    529529        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");
    537537        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");
    541541        printf("  </td></tr>\n");
    542542        printf(" </table>\n");
     
    544544
    545545        if (empty($_GET["fStartDate"]))
    546             $timemin = GetMin("fRunStart", "Sequences", $db);
     546            $timemin = GetMin("fRunStart", "Sequences", $host, $user, $pw, $db);
    547547        else
    548548            $timemin = $_GET["fStartDate"];
    549549
    550550        if (empty($_GET["fStopDate"]))
    551             $timemax = GetMax("fRunStart", "Sequences", $db);
     551            $timemax = GetMax("fRunStart", "Sequences", $host, $user, $pw, $db);
    552552        else
    553553            $timemax = $_GET["fStopDate"];
     
    557557
    558558        if (empty($_GET["fRunMin"]))
    559             $min = GetMin("fSequenceFirst", "Sequences", $db);
     559            $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
    560560        else
    561561            $min = $_GET["fRunMin"];
    562562
    563563        if (empty($_GET["fRunMax"]))
    564             $max = GetMax("fSequenceFirst", "Sequences", $db);
     564            $max = GetMax("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
    565565        else
    566566            $max = $_GET["fRunMax"];
     
    614614    }
    615615
    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)
    617617    {
    618         $db_id = mysql_connect("hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");
     618        $db_id = mysql_connect($host, $user, $pw);
    619619        if ($db_id==FALSE)
    620620        {
     
    655655        header("Content-Disposition: attachment; filename=query-result.txt");
    656656
    657         PrintPage("0", $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs);
     657        PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs);
    658658    }
    659659    else
     
    665665        InitGet($_GET);
    666666        if (empty($_GET["fPrintTable"]))
    667             PrintForm($_GET, $db);
     667            PrintForm($_GET, $host, $user, $pw, $db);
    668668
    669669        if ($environment==0)
     
    672672        {
    673673            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);
    675675            else
    676                 PrintPage("2", $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs);
     676                PrintPage("2", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs);
    677677        }
    678678
Note: See TracChangeset for help on using the changeset viewer.