Changeset 7546 for trunk/MagicSoft/Mars/datacenter/db/queryseq.php
- Timestamp:
- 02/28/06 20:23:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/MagicSoft/Mars/datacenter/db/queryseq.php ¶
r7484 r7546 190 190 } 191 191 192 function PrintForm($_GET, $ db)192 function PrintForm($_GET, $host, $user, $pw, $db) 193 193 { 194 194 printf("<center>\n"); … … 216 216 printf(" <table>\n"); 217 217 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"); 223 223 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"); 229 229 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"); 235 235 printf(" </td></tr>\n"); 236 236 printf(" </table>\n"); … … 238 238 239 239 if (empty($_GET["fStartDate"])) 240 $timemin = GetMin("fRunStart", "RunData", $ db);240 $timemin = GetMin("fRunStart", "RunData", $host, $user, $pw, $db); 241 241 else 242 242 $timemin = $_GET["fStartDate"]; 243 243 244 244 if (empty($_GET["fStopDate"])) 245 $timemax = GetMax("fRunStart", "RunData", $ db);245 $timemax = GetMax("fRunStart", "RunData", $host, $user, $pw, $db); 246 246 else 247 247 $timemax = $_GET["fStopDate"]; … … 251 251 252 252 if (empty($_GET["fRunMin"])) 253 $min = GetMin("fSequenceFirst", "Sequences", $ db);253 $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db); 254 254 else 255 255 $min = $_GET["fRunMin"]; 256 256 257 257 if (empty($_GET["fRunMax"])) 258 $max = GetMax("fSequenceFirst", "Sequences", $ db);258 $max = GetMax("fSequenceFirst", "Sequences", $host, $user, $pw, $db); 259 259 else 260 260 $max = $_GET["fRunMax"]; … … 301 301 } 302 302 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); 306 306 if ($db_id==FALSE) 307 307 { … … 342 342 header("Content-Disposition: attachment; filename=query-result.txt"); 343 343 344 PrintPage("0", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup);344 PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup); 345 345 } 346 346 else … … 351 351 352 352 InitGet($_GET); 353 PrintForm($_GET, $ db);353 PrintForm($_GET, $host, $user, $pw, $db); 354 354 355 355 if ($environment==0) 356 356 printf("No query submitted yet.<BR>"); 357 357 else 358 PrintPage("1", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup);358 PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup); 359 359 360 360 echo (file_get_contents("index-footer.html"));
Note:
See TracChangeset
for help on using the changeset viewer.