Changeset 9184 for trunk/MagicSoft/Mars/datacenter/db/queryrbk.php
- Timestamp:
- 12/01/08 12:13:54 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/queryrbk.php
r8180 r9184 23 23 printf("%s\"> \n", $_GET["fNight"]); 24 24 25 25 26 printf("<input class='Width' type='submit' value='Query Table'> \n"); 26 27 printf("<input class='Width' type='button' value='Reset' onClick='self.location.href=\"queryrbk.php\"'> \n"); 27 28 if (strchr($_SERVER["REQUEST_URI"], '?')!=FALSE) 29 { 28 30 printf("<input class='Width' type='button' value='Get .txt' onClick='self.location.href=\"%s&fSendTxt=1\"'> \n", $_SERVER["REQUEST_URI"]); 31 printf("<input class='Width' type='button' value='Print' onClick='self.location.href=\"%s&fPrintTable=1\"'> \n", htmlspecialchars($_SERVER["REQUEST_URI"])); 32 } 33 29 34 printf("</form>\n"); 30 35 printf("</center>\n"); … … 61 66 if ($result0) 62 67 { 63 if ($html=="1" )68 if ($html=="1" || $html=="2") 64 69 { 65 70 $alias = array … … 98 103 else 99 104 { 100 echo (file_get_contents("index-header.html")); 105 if (empty($_GET["fPrintTable"])) 106 echo (file_get_contents("index-header.html")); 101 107 102 108 $environment = sizeof($_GET); 103 109 104 PrintForm($_GET); 110 if (empty($_GET["fPrintTable"])) 111 PrintForm($_GET); 105 112 106 113 if ($environment==0) 107 114 printf("No query submitted yet.<BR>"); 108 115 else 109 PrintPage("1", $host, $user, $pw, $db); 116 { 117 if (empty($_GET["fPrintTable"])) 118 PrintPage("1", $host, $user, $pw, $db); 119 else 120 PrintPage("2", $host, $user, $pw, $db); 121 } 110 122 111 echo (file_get_contents("index-footer.html")); 123 if (empty($_GET["fPrintTable"])) 124 echo (file_get_contents("index-footer.html")); 112 125 } 113 126
Note:
See TracChangeset
for help on using the changeset viewer.