Ignore:
Timestamp:
06/29/07 13:03:16 (17 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8249 r8621  
    99        else
    1010        {
    11             $query0 .= " CONCAT('<A&ws;HREF=\"sequinfo.php?', ";
     11            $query0 .= " CONCAT('<A&ws;HREF=\"sequinfo-aio.php?', ";
    1212            $query0 .= " 'fRunStart=On', '&fZenithDistanceMin=On', '&fNumEvents=On', '&fRunTime%2F60=On', '&fSequenceLast=On', ";
    13             $query0 .= " '&fSequenceFileWrittenStatus=0', '&fAllFilesAvail=On', '&fAllFilesAvailStatus=0', '&fCallisto=On', '&fCallistoStatus=0', '&fStar=On', '&fStarStatus=0', '&fFillCallistoStatus=0', '&fFillStarStatus=0', ";
     13            $query0 .= " '&fSequenceFileWrittenStatus=0', '&fAllFilesAvailStatus=0', '&fCallistoStatus=0', '&fStar=On', '&fStarStatus=0', '&fFillCallistoStatus=0', '&fFillStarStatus=0', ";
    1414            $query0 .= " '&fSourceName=On', '&fSourceKEY=', fSourceKEY, "; //'&fRunMin=0', '&fRunMax=1000000', ";
    1515            $query0 .= " '&fNumResults=500\">', fSourcename, '</A>') ";
     
    1919        $query0 .= " FROM Source ";
    2020
    21         if (empty($_GET["fTest"]))
     21        if ($_GET["fTest"]=="Off")
    2222            $query0 .= " WHERE fTest='no'";
    2323
     
    3131            $query0 .= " NOT (fSourceName like '%Off%')";
    3232        }
     33
     34        if (!empty($_GET["fSourceN"]))
     35        {
     36            if (strpos($query0, " WHERE ")==FALSE)
     37                $query0 .= " WHERE ";
     38            else
     39                $query0 .= " AND ";
     40
     41            $query0 .= " fSourceName REGEXP \"^" . $_GET["fSourceN"] . "\" ";
     42        }
     43
    3344
    3445        if (!empty($_GET["fSortBy"]))
     
    5869    }
    5970
    60     function PrintForm($_GET)
     71    function PrintForm($_GET,$host,$user,$pw,$db)
    6172    {
    6273        printf("<center>\n");
     
    7081
    7182        printf(" </table></p>\n");
    72 
     83        printf("<p>");
     84        PrintSourceMenu($host,$user,$pw,$db);
    7385
    7486        ini_set("mysql.trace_mode", "Off");
     
    116128
    117129    include ("include.php");
     130    include ("menu.php");
    118131    include ("db.php");
    119132    include ("magicdefs.php");
     
    136149
    137150        InitGet($_GET);
    138         PrintForm($_GET);
     151        PrintForm($_GET,$host,$user,$pw,$db);
    139152
    140153        if ($environment==0)
Note: See TracChangeset for help on using the changeset viewer.