Changeset 7546 for trunk/MagicSoft/Mars/datacenter/db/querymc.php
- Timestamp:
- 02/28/06 20:23:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/querymc.php
r7521 r7546 131 131 132 132 if (empty($_GET["fParticleType"])) 133 $_GET["fP rojectName"]="Off";134 135 } 136 137 function PrintForm($_GET, $ db)133 $_GET["fParticleTypeName"]="Off"; 134 135 } 136 137 function PrintForm($_GET, $host, $user, $pw, $db) 138 138 { 139 139 printf("<center>\n"); … … 154 154 printf(" <table>\n"); 155 155 printf(" <tr><td>\n"); 156 PrintPullDown($ db, "ParticleType", "fParticleTypeName", "fParticleTypeKEY", "particle type");156 PrintPullDown($host, $user, $pw, $db, "ParticleType", "fParticleTypeName", "fParticleTypeKEY", "particle type"); 157 157 printf(" </td></tr></table>\n"); 158 158 printf(" <p>\n"); … … 160 160 /* 161 161 if (empty($_GET["fStartDate"])) 162 $timemin = GetMin("fRunStart", "RunData", $ db);162 $timemin = GetMin("fRunStart", "RunData", $host, $user, $pw, $db); 163 163 else 164 164 $timemin = $_GET["fStartDate"]; 165 165 166 166 if (empty($_GET["fStopDate"])) 167 $timemax = GetMax("fRunStart", "RunData", $ db);167 $timemax = GetMax("fRunStart", "RunData", $host, $user, $pw, $db); 168 168 else 169 169 $timemax = $_GET["fStopDate"]; … … 174 174 175 175 if (empty($_GET["fRunMin"])) 176 $min = GetMin("fRunNumber", "MCRunData", $ db);176 $min = GetMin("fRunNumber", "MCRunData", $host, $user, $pw, $db); 177 177 else 178 178 $min = $_GET["fRunMin"]; 179 179 180 180 if (empty($_GET["fRunMax"])) 181 $max = GetMax("fRunNumber", "MCRunData", $ db);181 $max = GetMax("fRunNumber", "MCRunData", $host, $user, $pw, $db); 182 182 else 183 183 $max = $_GET["fRunMax"]; … … 224 224 } 225 225 226 function PrintPage($html, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup) 227 { 228 // $db_id = mysql_connect("localhost", "hercules", "d99swMT!"); 229 $db_id = mysql_connect("hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!"); 226 function PrintPage($html, $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup) 227 { 228 $db_id = mysql_connect($host, $user, $pw); 230 229 if ($db_id==FALSE) 231 230 { … … 268 267 header("Content-Disposition: attachment; filename=query-result.txt"); 269 268 270 PrintPage("0", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup);269 PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup); 271 270 } 272 271 else … … 277 276 278 277 InitGet($_GET); 279 PrintForm($_GET, $ db);278 PrintForm($_GET, $host, $user, $pw, $db); 280 279 281 280 if ($environment==0) 282 281 printf("No query submitted yet.<BR>"); 283 282 else 284 PrintPage("1", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup);283 PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup); 285 284 286 285 echo (file_get_contents("index-footer.html"));
Note:
See TracChangeset
for help on using the changeset viewer.