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/findoffdata.php

    r7527 r7546  
    392392    }
    393393
    394     function PrintForm($_GET, $db, $limits, $rms, $alias)
     394    function PrintForm($_GET, $host, $user, $pw, $db, $limits, $rms, $alias)
    395395    {
    396396        printf("<center>\n");
     
    478478        printf(" <table><tr><td>\n");
    479479
    480         PrintPullDown($db, "Source",                      "fSourceName",                      "fSourceKEY",                      "Source Name");
     480        PrintPullDown($host, $user, $pw, $db, "Source",                      "fSourceName",                      "fSourceKEY",                      "Source Name");
    481481        printf("  </td><td>\n");
    482         PrintPullDown($db, "LightConditions",             "fLightConditionsName",             "fLightConditionsKEY",             "Light Conditions");
     482        PrintPullDown($host, $user, $pw, $db, "LightConditions",             "fLightConditionsName",             "fLightConditionsKEY",             "Light Conditions");
    483483        printf("  </td><td>\n");
    484         PrintPullDown($db, "DiscriminatorThresholdTable", "fDiscriminatorThresholdTableName", "fDiscriminatorThresholdTableKEY", "DT Table");
     484        PrintPullDown($host, $user, $pw, $db, "DiscriminatorThresholdTable", "fDiscriminatorThresholdTableName", "fDiscriminatorThresholdTableKEY", "DT Table");
    485485        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");
    487487        printf("  </td><td>\n");
    488488        PrintStatusMenu("fStar",                "Star");
     
    507507
    508508        if (empty($_GET["fStarStart"]))
    509             $starmin = GetMin("fStar", "SequenceProcessStatus", $db);
     509            $starmin = GetMin("fStar", "SequenceProcessStatus", $host, $user, $pw, $db);
    510510        else
    511511            $starmin = $_GET["fStarStart"];
    512512
    513513        if (empty($_GET["fStarStop"]))
    514             $starmax = GetMax("fStar", "SequenceProcessStatus", $db);
     514            $starmax = GetMax("fStar", "SequenceProcessStatus", $host, $user, $pw, $db);
    515515        else
    516516            $starmax = $_GET["fStarStop"];
     
    528528
    529529        if (empty($_GET["fStartDate"]))
    530             $timemin = GetMin("fRunStart", "Sequences", $db);
     530            $timemin = GetMin("fRunStart", "Sequences", $host, $user, $pw, $db);
    531531        else
    532532            $timemin = $_GET["fStartDate"];
    533533
    534534        if (empty($_GET["fStopDate"]))
    535             $timemax = GetMax("fRunStart", "Sequences", $db);
     535            $timemax = GetMax("fRunStart", "Sequences", $host, $user, $pw, $db);
    536536        else
    537537            $timemax = $_GET["fStopDate"];
     
    541541
    542542        if (empty($_GET["fRunMin"]))
    543             $min = GetMin("fSequenceFirst", "Sequences", $db);
     543            $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
    544544        else
    545545            $min = $_GET["fRunMin"];
    546546
    547547        if (empty($_GET["fRunMax"]))
    548             $max = GetMax("fSequenceFirst", "Sequences", $db);
     548            $max = GetMax("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
    549549        else
    550550            $max = $_GET["fRunMax"];
     
    604604    }
    605605
    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)
    607607    {
    608         $db_id = mysql_connect("hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");
     608        $db_id = mysql_connect($host, $user, $pw);
    609609        if ($db_id==FALSE)
    610610        {
     
    645645        header("Content-Disposition: attachment; filename=query-result.txt");
    646646
    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);
    648648    }
    649649    else
     
    655655        InitGet($_GET);
    656656        if (empty($_GET["fPrintTable"]))
    657             PrintForm($_GET, $db, $limits, $rms, $alias);
     657            PrintForm($_GET, $host, $user, $pw, $db, $limits, $rms, $alias);
    658658
    659659        if ($environment==0)
     
    662662        {
    663663            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);
    667667        }
    668668
Note: See TracChangeset for help on using the changeset viewer.