Changeset 8598 for trunk/MagicSoft/Mars/datacenter/db/showplots.php
- Timestamp:
- 06/23/07 18:48:19 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/showplots.php
r8588 r8598 11 11 printf("<body>\n"); 12 12 13 //init 13 14 $seq=0; 14 15 if (!empty($_GET["seq"])) … … 25 26 if (!empty($seq)) 26 27 { 28 //decision whether next or previous plot has been chosen 27 29 if (!empty($_GET["next"])) 28 30 $tabnum=$tabnum+1; 29 31 if (!empty($_GET["prev"])) 30 32 $tabnum=$tabnum-1; 31 $type=gettypename($type2);32 $plot=getplotname($seq, $tabnum, $type, $type2);33 33 34 34 //be careful: this has to be adapted in case tabs are removed or new tabs are added … … 41 41 $startabs=18; 42 42 43 //in case the tab does not exist, because it's one the far 44 //go to next type 43 45 if (($type2=="calib" && $tabnum==($calibtabs+1)) 44 46 || ($type2=="signal" && $tabnum==($signaltabs+1)) … … 58 60 break; 59 61 } 60 $type=gettypename($type2);61 $plot=getplotname($seq, $tabnum, $type, $type2);62 62 } 63 //in case the tab does not exist, because it's 0 64 //go to previous type 63 65 if ($tabnum==0) 64 66 { … … 78 80 break; 79 81 } 80 $type=gettypename($type2);81 $plot=getplotname($seq, $tabnum, $type, $type2);82 82 } 83 //get link for plot 84 $type=gettypename($type2); 85 $plot=getplotname($seq, $tabnum, $type, $type2); 86 83 87 $next=$tabnum+1; 84 88 $prev=$tabnum-1; … … 86 90 printf("<form action='showplots.php' method='GET'>\n"); 87 91 printf("<table width='100%%' border='0'>\n"); 88 printf("<tr><td align='center'>\n"); 92 printf("<tr><td valign='top'>\n"); 93 printf("<a href='http://db.astro.uni-wuerzburg.de'>home</a>\n</td><td align='center'>"); 89 94 printf("<input type='text' name='seq' size='10' maxlength='10' value='%s'>\n", $seq); 90 printf("<input type='text' name='type2' size='10' maxlength='10' value='%s'>\n",$type2);95 PrintType2PullDown($type2); 91 96 printf("<input type='text' name='tabnum' size='2' maxlenght='2' value='%s'>\n", $tabnum); 92 97 printf("<input type='submit' value='Show Plot'><br>\n"); … … 97 102 printf("<input type='submit' value='Next Plot %d >>' name='next'>\n", $next); 98 103 } 99 printf("</td>\n</tr>\n<tr>\n<td align='center' >\n");104 printf("</td>\n</tr>\n<tr>\n<td align='center' colspan='2'>\n"); 100 105 if (!empty($seq)) 101 106 printf("<img src='%s'>", $plot); 102 107 else 103 printf("You have to select a sequence.");108 printf("You have to insert a sequence number into the first field."); 104 109 printf("</td>\n</tr>\n</table>\n"); 105 110 printf("</form>\n");
Note:
See TracChangeset
for help on using the changeset viewer.