Changeset 7619 for trunk/MagicSoft/Mars/datacenter/db/ganymed.php
- Timestamp:
- 03/21/06 03:27:40 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/ganymed.php
r7578 r7619 132 132 } 133 133 134 function PrintDataSetInfo($result0, $ganymedtabs )134 function PrintDataSetInfo($result0, $ganymedtabsw, $ganymedtabs) 135 135 { 136 136 $numres = mysql_num_rows($result0); … … 232 232 } 233 233 printf("<tr><td colspan=\"6\">\n Plots: "); 234 foreach($ganymedtabs as $key => $element) 234 if ($wobble=='Y') 235 $tabs=$ganymedtabsw; 236 else 237 $tabs=$ganymedtabs; 238 foreach($tabs as $key => $element) 235 239 if (!$key==0) 236 240 printf("<a href=\"http://www.astro.uni-wuerzburg.de/datacenter/ganymed/%s/%s/ganymed%s-tab%s.png\">%s</a> ", $num2, $num, $num, $key, $element); … … 257 261 } 258 262 259 function PrintPage($html, $host, $user, $pw, $db, $ganymedtabs )263 function PrintPage($html, $host, $user, $pw, $db, $ganymedtabsw, $ganymedtabs) 260 264 { 261 265 $db_id = mysql_connect($host, $user, $pw); … … 274 278 { 275 279 if ($html=="1" || $html=="2") 276 PrintDataSetInfo($result0, $ganymedtabs );280 PrintDataSetInfo($result0, $ganymedtabsw, $ganymedtabs); 277 281 else 278 282 PrintText($result0); … … 298 302 header("Content-Disposition: attachment; filename=query-result.txt"); 299 303 300 PrintPage("0", $host, $user, $pw, $db, $ganymedtabs );304 PrintPage("0", $host, $user, $pw, $db, $ganymedtabsw, $ganymedtabs); 301 305 } 302 306 else … … 315 319 { 316 320 if (empty($_GET["fPrintTable"])) 317 PrintPage("1", $host, $user, $pw, $db, $ganymedtabs );318 else 319 PrintPage("2", $host, $user, $pw, $db, $ganymedtabs );321 PrintPage("1", $host, $user, $pw, $db, $ganymedtabsw, $ganymedtabs); 322 else 323 PrintPage("2", $host, $user, $pw, $db, $ganymedtabsw, $ganymedtabs); 320 324 } 321 325
Note:
See TracChangeset
for help on using the changeset viewer.