Changeset 7571 for trunk/MagicSoft/Mars/datacenter
- Timestamp:
- 03/06/06 02:41:44 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/ganymed.php
r7570 r7571 40 40 $_GET["fAll"]="Off"; 41 41 42 if (empty($_GET["fSequ"])) 43 $_GET["fSequ"]="Off"; 44 42 45 } 43 46 … … 71 74 $checked = ""; 72 75 printf("<input type=\"checkbox\" name=\"fAll\" value=\"On\" %s>plots\n", $checked); 76 77 if ($_GET["fSequ"]=="On") 78 $checked = "checked"; 79 else 80 $checked = ""; 81 printf("<input type=\"checkbox\" name=\"fSequ\" value=\"On\" %s>sequences\n", $checked); 73 82 74 83 printf(" <P>\n"); … … 165 174 $scale=mysql_result($result0, $i, 12); 166 175 $effontime=mysql_result($result0, $i, 13); 176 $num=sprintf("%08d",$datasetno); 177 $num2=substr($num,0,5); 178 $datasetfile="http://www.astro.uni-wuerzburg.de/datacenter/datasets/" . $num2 . "/dataset" . $num . ".txt"; 167 179 168 180 printf("<tr><td>"); … … 170 182 printf(" <table BORDER=\"1\">"); 171 183 printf(" <tr BGCOLOR='#C0C0C0'>\n"); 172 printf(" <th colspan=\"6\"><u>DataSet#:</u> %s - %s </th>", $datasetno, $source); 184 printf(" <th colspan=\"6\"><big>Source: <big>%s </big></big>(DataSet#:", $source, $datasetno); 185 printf(" <a href=\"%s\">%s</a>) </th>", $datasetfile, $datasetno); 173 186 printf(" </tr><tr BGCOLOR='#E0E0E0' ALIGN='left'>\n"); 174 187 printf(" <th colspan=\"6\"> %s ", $comment); … … 184 197 { 185 198 printf("<td colspan=\"6\"></td></tr>\n"); 186 printf(" <tr BGCOLOR='#C0C0C0'><th colspan=\"6\">results - "); 187 $num=sprintf("%08d",$datasetno); 188 printf(" <a href=\"http://www.astro.uni-wuerzburg.de/datacenter/ganymed/%s/%s/\">plots</a>", 189 substr($num,0,5), $num); 199 printf(" <tr BGCOLOR='#C0C0C0'><th colspan=\"6\">results "); 200 printf(" (<a href=\"http://www.astro.uni-wuerzburg.de/datacenter/ganymed/%s/%s/\">plots</a>)", 201 $num2, $num); 190 202 printf(" </th></tr><tr BGCOLOR='#E0E0E0'>\n"); 191 203 printf(" <td>excess events</td>\n"); … … 204 216 } 205 217 218 if ($_GET["fSequ"]=="On") 219 { 220 $dataset=file_get_contents($datasetfile); 221 $onpos=strpos($dataset, "SequencesOn:"); 222 $offpos=strpos($dataset, "SequencesOff:"); 223 $possource=strpos($dataset, "SourceName:"); 224 $sequoff=""; 225 if (!empty($offpos)) 226 $sequoff=substr($dataset, $offpos+13, $possource-($offpos+13)); 227 if (empty($offpos)) 228 $offpos=$possource; 229 $sequon=substr($dataset, $onpos+12, $offpos-($onpos+12)); 230 231 if (!empty($sequon)) 232 { 233 printf("<tr><td colspan=\"6\">\n SequencesOn: "); 234 $sequences=split(" ", trim($sequon)); 235 foreach($sequences as $key => $sequ) 236 { 237 $sequno=sprintf("%08d",$sequ); 238 $sequno2=substr($sequno,0,4); 239 printf("<a href=\"http://www.astro.uni-wuerzburg.de/datacenter/star/%s/%s/\">%s</a> ", 240 $sequno2, $sequno, $sequ); 241 } 242 printf("</td></tr>"); 243 244 if (!empty($sequoff)) 245 { 246 printf("<tr><td colspan=\"6\">\n SequencesOff: "); 247 $sequences=split(" ", trim($sequoff)); 248 foreach($sequences as $key => $sequ) 249 { 250 $sequno=sprintf("%08d",$sequ); 251 $sequno2=substr($sequno,0,4); 252 printf("<a href=\"http://www.astro.uni-wuerzburg.de/datacenter/star/%s/%s/\">%s</a> ", 253 $sequno2, $sequno, $sequ); 254 } 255 } 256 } 257 } 258 206 259 if ($_GET["fAll"]=="On" && !is_null($ganymed)) 207 260 { 208 261 printf("<tr><td colspan=\"6\" align='center'>\n"); 209 262 printf(" <img src=\"http://www.astro.uni-wuerzburg.de/datacenter/ganymed/%s/%s/ganymed%s-tab11.png\">", 210 substr($num,0,5), $num, $num);263 $num2, $num, $num); 211 264 printf(" <img src=\"http://www.astro.uni-wuerzburg.de/datacenter/ganymed/%s/%s/ganymed%s-tab10.png\">", 212 substr($num,0,5), $num, $num);265 $num2, $num, $num); 213 266 printf(" </td></tr>"); 214 267 }
Note:
See TracChangeset
for help on using the changeset viewer.