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
  • TabularUnified trunk/MagicSoft/Mars/datacenter/db/queryseq.php

    r7484 r7546  
    190190    }
    191191
    192     function PrintForm($_GET, $db)
     192    function PrintForm($_GET, $host, $user, $pw, $db)
    193193    {
    194194        printf("<center>\n");
     
    216216        printf(" <table>\n");
    217217        printf("  <tr><td>\n");
    218         PrintPullDown($db, "Source",      "fSourceName",      "fSourceKEY", "Source Name");
    219         printf("  </td><td>\n");
    220         PrintPullDown($db, "TriggerTable", "fTriggerTableName", "fTriggerTableKEY", "Trigger Table");
    221         printf("  </td><td>\n");
    222         PrintPullDown($db, "TriggerDelayTable",  "fTriggerDelayTableName",  "fTriggerDelayTableKEY", "Trigger Delay Table");
     218        PrintPullDown($host, $user, $pw, $db, "Source",      "fSourceName",      "fSourceKEY", "Source Name");
     219        printf("  </td><td>\n");
     220        PrintPullDown($host, $user, $pw, $db, "TriggerTable", "fTriggerTableName", "fTriggerTableKEY", "Trigger Table");
     221        printf("  </td><td>\n");
     222        PrintPullDown($host, $user, $pw, $db, "TriggerDelayTable",  "fTriggerDelayTableName",  "fTriggerDelayTableKEY", "Trigger Delay Table");
    223223        printf("  </td></tr><tr><td>\n");
    224         PrintPullDown($db, "Project",     "fProjectName",     "fProjectKEY", "Project Name");
    225         printf("  </td><td>\n");
    226         PrintPullDown($db, "HvSettings",  "fHvSettingsName",  "fHvSettingsKEY", "HV Settings");
    227         printf("  </td><td>\n");
    228         PrintPullDown($db, "DiscriminatorThresholdTable",  "fDiscriminatorThresholdTableName",  "fDiscriminatorThresholdTableKEY", "DT Table");
     224        PrintPullDown($host, $user, $pw, $db, "Project",     "fProjectName",     "fProjectKEY", "Project Name");
     225        printf("  </td><td>\n");
     226        PrintPullDown($host, $user, $pw, $db, "HvSettings",  "fHvSettingsName",  "fHvSettingsKEY", "HV Settings");
     227        printf("  </td><td>\n");
     228        PrintPullDown($host, $user, $pw, $db, "DiscriminatorThresholdTable",  "fDiscriminatorThresholdTableName",  "fDiscriminatorThresholdTableKEY", "DT Table");
    229229        printf("  </td></tr><tr><td>\n");
    230         PrintPullDown($db, "TestFlag",  "fTestFlagName",  "fTestFlagKEY", "Test Flag");
    231         printf("  </td><td>\n");
    232         PrintPullDown($db, "LightConditions",  "fLightConditionsName",  "fLightConditionsKEY", "Light Conditions");
    233         printf("  </td><td>\n");
    234         PrintPullDown($db, "ManuallyChanged", "fManuallyChangedName", "fManuallyChangedKEY", "Manually changed");
     230        PrintPullDown($host, $user, $pw, $db, "TestFlag",  "fTestFlagName",  "fTestFlagKEY", "Test Flag");
     231        printf("  </td><td>\n");
     232        PrintPullDown($host, $user, $pw, $db, "LightConditions",  "fLightConditionsName",  "fLightConditionsKEY", "Light Conditions");
     233        printf("  </td><td>\n");
     234        PrintPullDown($host, $user, $pw, $db, "ManuallyChanged", "fManuallyChangedName", "fManuallyChangedKEY", "Manually changed");
    235235        printf("  </td></tr>\n");
    236236        printf(" </table>\n");
     
    238238
    239239        if (empty($_GET["fStartDate"]))
    240             $timemin = GetMin("fRunStart", "RunData", $db);
     240            $timemin = GetMin("fRunStart", "RunData", $host, $user, $pw, $db);
    241241        else
    242242            $timemin = $_GET["fStartDate"];
    243243
    244244        if (empty($_GET["fStopDate"]))
    245             $timemax = GetMax("fRunStart", "RunData", $db);
     245            $timemax = GetMax("fRunStart", "RunData", $host, $user, $pw, $db);
    246246        else
    247247            $timemax = $_GET["fStopDate"];
     
    251251
    252252        if (empty($_GET["fRunMin"]))
    253             $min = GetMin("fSequenceFirst", "Sequences", $db);
     253            $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
    254254        else
    255255            $min = $_GET["fRunMin"];
    256256
    257257        if (empty($_GET["fRunMax"]))
    258             $max = GetMax("fSequenceFirst", "Sequences", $db);
     258            $max = GetMax("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
    259259        else
    260260            $max = $_GET["fRunMax"];
     
    301301    }
    302302
    303     function PrintPage($html, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup)
    304     {
    305         $db_id = mysql_connect("hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");
     303    function PrintPage($html, $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup)
     304    {
     305        $db_id = mysql_connect($host, $user, $pw);
    306306        if ($db_id==FALSE)
    307307        {
     
    342342        header("Content-Disposition: attachment; filename=query-result.txt");
    343343
    344         PrintPage("0", $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup);
     344        PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup);
    345345    }
    346346    else
     
    351351
    352352        InitGet($_GET);
    353         PrintForm($_GET, $db);
     353        PrintForm($_GET, $host, $user, $pw, $db);
    354354
    355355        if ($environment==0)
    356356            printf("No query submitted yet.<BR>");
    357357        else
    358             PrintPage("1", $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup);
     358            PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup);
    359359
    360360        echo (file_get_contents("index-footer.html"));
Note: See TracChangeset for help on using the changeset viewer.