Ignore:
Timestamp:
06/23/07 18:48:19 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/db/showplots.php

    r8588 r8598  
    1111printf("<body>\n");
    1212
     13//init
    1314$seq=0;
    1415if (!empty($_GET["seq"]))
     
    2526if (!empty($seq))
    2627{
     28    //decision whether next or previous plot has been chosen
    2729    if (!empty($_GET["next"]))
    2830        $tabnum=$tabnum+1;
    2931    if (!empty($_GET["prev"]))
    3032        $tabnum=$tabnum-1;
    31     $type=gettypename($type2);
    32     $plot=getplotname($seq, $tabnum, $type, $type2);
    3333
    3434    //be careful: this has to be adapted in case tabs are removed or new tabs are added
     
    4141    $startabs=18;
    4242
     43    //in case the tab does not exist, because it's one the far
     44    //go to next type
    4345    if (($type2=="calib" && $tabnum==($calibtabs+1))
    4446        || ($type2=="signal" && $tabnum==($signaltabs+1))
     
    5860            break;
    5961        }
    60         $type=gettypename($type2);
    61         $plot=getplotname($seq, $tabnum, $type, $type2);
    6262    }
     63    //in case the tab does not exist, because it's 0
     64    //go to previous type
    6365    if ($tabnum==0)
    6466    {
     
    7880            break;
    7981        }
    80         $type=gettypename($type2);
    81         $plot=getplotname($seq, $tabnum, $type, $type2);
    8282    }
     83    //get link for plot
     84    $type=gettypename($type2);
     85    $plot=getplotname($seq, $tabnum, $type, $type2);
     86
    8387    $next=$tabnum+1;
    8488    $prev=$tabnum-1;
     
    8690printf("<form action='showplots.php' method='GET'>\n");
    8791printf("<table width='100%%' border='0'>\n");
    88 printf("<tr><td align='center'>\n");
     92printf("<tr><td valign='top'>\n");
     93printf("<a href='http://db.astro.uni-wuerzburg.de'>home</a>\n</td><td align='center'>");
    8994printf("<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);
     95PrintType2PullDown($type2);
    9196printf("<input type='text' name='tabnum' size='2' maxlenght='2' value='%s'>\n", $tabnum);
    9297printf("<input type='submit' value='Show Plot'><br>\n");
     
    97102    printf("<input type='submit' value='Next Plot %d >>' name='next'>\n", $next);
    98103}
    99 printf("</td>\n</tr>\n<tr>\n<td align='center'>\n");
     104printf("</td>\n</tr>\n<tr>\n<td align='center' colspan='2'>\n");
    100105if (!empty($seq))
    101106    printf("<img src='%s'>", $plot);
    102107else
    103     printf("You have to select a sequence.");
     108    printf("You have to insert a sequence number into the first field.");
    104109printf("</td>\n</tr>\n</table>\n");
    105110printf("</form>\n");
Note: See TracChangeset for help on using the changeset viewer.