Changeset 8621 for trunk/MagicSoft/Mars/datacenter/db/sources.php
- Timestamp:
- 06/29/07 13:03:16 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/sources.php
r8249 r8621 9 9 else 10 10 { 11 $query0 .= " CONCAT('<A&ws;HREF=\"sequinfo .php?', ";11 $query0 .= " CONCAT('<A&ws;HREF=\"sequinfo-aio.php?', "; 12 12 $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', "; 14 14 $query0 .= " '&fSourceName=On', '&fSourceKEY=', fSourceKEY, "; //'&fRunMin=0', '&fRunMax=1000000', "; 15 15 $query0 .= " '&fNumResults=500\">', fSourcename, '</A>') "; … … 19 19 $query0 .= " FROM Source "; 20 20 21 if ( empty($_GET["fTest"]))21 if ($_GET["fTest"]=="Off") 22 22 $query0 .= " WHERE fTest='no'"; 23 23 … … 31 31 $query0 .= " NOT (fSourceName like '%Off%')"; 32 32 } 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 33 44 34 45 if (!empty($_GET["fSortBy"])) … … 58 69 } 59 70 60 function PrintForm($_GET )71 function PrintForm($_GET,$host,$user,$pw,$db) 61 72 { 62 73 printf("<center>\n"); … … 70 81 71 82 printf(" </table></p>\n"); 72 83 printf("<p>"); 84 PrintSourceMenu($host,$user,$pw,$db); 73 85 74 86 ini_set("mysql.trace_mode", "Off"); … … 116 128 117 129 include ("include.php"); 130 include ("menu.php"); 118 131 include ("db.php"); 119 132 include ("magicdefs.php"); … … 136 149 137 150 InitGet($_GET); 138 PrintForm($_GET );151 PrintForm($_GET,$host,$user,$pw,$db); 139 152 140 153 if ($environment==0)
Note:
See TracChangeset
for help on using the changeset viewer.