Changeset 7546 for trunk/MagicSoft/Mars/datacenter/db/dbstatus.php
- Timestamp:
- 02/28/06 20:23:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/dbstatus.php
r7527 r7546 222 222 223 223 if (empty($_GET["fAllFilesAvailStatus"])) 224 $_GET["fAllFilesAvailStatus"]=" 4";224 $_GET["fAllFilesAvailStatus"]="7"; 225 225 226 226 if (empty($_GET["fCallisto"])) … … 228 228 229 229 if (empty($_GET["fCallistoStatus"])) 230 $_GET["fCallistoStatus"]=" 4";230 $_GET["fCallistoStatus"]="7"; 231 231 232 232 if (empty($_GET["fFillCallisto"])) … … 240 240 241 241 if (empty($_GET["fStarStatus"])) 242 $_GET["fStarStatus"]=" 4";242 $_GET["fStarStatus"]="7"; 243 243 244 244 if (empty($_GET["fFillStar"])) … … 249 249 } 250 250 251 function PrintForm($_GET, $ db)251 function PrintForm($_GET, $host, $user, $pw, $db) 252 252 { 253 253 printf("<center>\n"); … … 272 272 printf(" <table>\n"); 273 273 printf(" <tr><td>\n"); 274 PrintPullDown($ db, "Source", "fSourceName", "fSourceKEY", "Source Name");274 PrintPullDown($host, $user, $pw, $db, "Source", "fSourceName", "fSourceKEY", "Source Name"); 275 275 printf(" </td><td>\n"); 276 276 … … 285 285 286 286 if (empty($_GET["fStartDate"])) 287 $timemin = GetMin("fRunStart", "Sequences", $ db);287 $timemin = GetMin("fRunStart", "Sequences", $host, $user, $pw, $db); 288 288 else 289 289 $timemin = $_GET["fStartDate"]; 290 290 291 291 if (empty($_GET["fStopDate"])) 292 $timemax = GetMax("fRunStart", "Sequences", $ db);292 $timemax = GetMax("fRunStart", "Sequences", $host, $user, $pw, $db); 293 293 else 294 294 $timemax = $_GET["fStopDate"]; … … 298 298 299 299 if (empty($_GET["fRunMin"])) 300 $min = GetMin("fSequenceFirst", "Sequences", $ db);300 $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db); 301 301 else 302 302 $min = $_GET["fRunMin"]; 303 303 304 304 if (empty($_GET["fRunMax"])) 305 $max = GetMax("fSequenceFirst", "Sequences", $ db);305 $max = GetMax("fSequenceFirst", "Sequences", $host, $user, $pw, $db); 306 306 else 307 307 $max = $_GET["fRunMax"]; … … 318 318 319 319 printf("<input class='Width' type='submit' value='Query Table'> \n"); 320 printf("<input class='Width' type='button' value='Reset' onClick='self.location.href=\" sequinfo.php\"'> \n");320 printf("<input class='Width' type='button' value='Reset' onClick='self.location.href=\"dbstatus.php\"'> \n"); 321 321 if (strchr($_SERVER["REQUEST_URI"], '?')!=FALSE) 322 322 printf("<input class='Width' type='button' value='Get .txt' onClick='self.location.href=\"%s&fSendTxt=1\"'> \n", $_SERVER["REQUEST_URI"]); … … 331 331 } 332 332 333 function PrintPage($html, $ db, $needs)334 { 335 $db_id = mysql_connect( "hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");333 function PrintPage($html, $host, $user, $pw, $db, $needs) 334 { 335 $db_id = mysql_connect($host, $user, $pw); 336 336 if ($db_id==FALSE) 337 337 { … … 375 375 include ("include.php"); 376 376 include ("db.php"); 377 include ("magicdefs.php"); 377 378 378 379 ini_set("display_errors", "On"); … … 384 385 header("Content-Disposition: attachment; filename=query-result.txt"); 385 386 386 PrintPage("0", $ db);387 PrintPage("0", $host, $user, $pw, $db); 387 388 } 388 389 else … … 394 395 InitGet($_GET); 395 396 if (empty($_GET["fPrintTable"])) 396 PrintForm($_GET, $ db);397 PrintForm($_GET, $host, $user, $pw, $db); 397 398 398 399 if ($environment==0) … … 401 402 { 402 403 if (empty($_GET["fPrintTable"])) 403 PrintPage("1", $ db, $needs);404 PrintPage("1", $host, $user, $pw, $db, $needs); 404 405 else 405 PrintPage("2", $ db, $needs);406 PrintPage("2", $host, $user, $pw, $db, $needs); 406 407 } 407 408
Note:
See TracChangeset
for help on using the changeset viewer.