Changeset 7546 for trunk/MagicSoft/Mars/datacenter/db/culminating.php
- Timestamp:
- 02/28/06 20:23:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/culminating.php
r7484 r7546 134 134 } 135 135 136 function PrintForm($_GET, $ db)136 function PrintForm($_GET, $host, $user, $pw, $db) 137 137 { 138 138 printf("<center>\n"); … … 155 155 printf(" <table>\n"); 156 156 printf(" <tr><td>\n"); 157 PrintPullDown($ db, "Source", "fSourceName", "fSourceKEY", "Source Name");157 PrintPullDown($host, $user, $pw, $db, "Source", "fSourceName", "fSourceKEY", "Source Name"); 158 158 printf(" </td></tr>\n"); 159 159 printf(" </table>\n"); … … 161 161 162 162 if (empty($_GET["fRunMin"])) 163 $min = GetMin("fSequenceFirst", "Sequences", $ db);163 $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db); 164 164 else 165 165 $min = $_GET["fRunMin"]; 166 166 167 167 if (empty($_GET["fRunMax"])) 168 $max = GetMax("fSequenceFirst", "Sequences", $ db);168 $max = GetMax("fSequenceFirst", "Sequences", $host, $user, $pw, $db); 169 169 else 170 170 $max = $_GET["fRunMax"]; … … 210 210 } 211 211 212 function PrintPage($html, $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup)213 { 214 $db_id = mysql_connect( "hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");212 function PrintPage($html, $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup) 213 { 214 $db_id = mysql_connect($host, $user, $pw); 215 215 if ($db_id==FALSE) 216 216 { … … 251 251 header("Content-Disposition: attachment; filename=query-result.txt"); 252 252 253 PrintPage("0", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup);253 PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup); 254 254 } 255 255 else … … 260 260 261 261 InitGet($_GET); 262 PrintForm($_GET, $ db);262 PrintForm($_GET, $host, $user, $pw, $db); 263 263 264 264 if ($environment==0) 265 265 printf("No query submitted yet.<BR>"); 266 266 else 267 PrintPage("1", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup);267 PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup); 268 268 269 269 echo (file_get_contents("index-footer.html"));
Note:
See TracChangeset
for help on using the changeset viewer.