Ignore:
Timestamp:
05/21/07 14:16:43 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8463 r8533  
    4444    $sequoff="";
    4545    if (!empty($offpos))
    46         $sequoff=substr($dataset, $offpos+13, $possource-($offpos+13));
     46        $sequoff=split(" ", trim(substr($dataset, $offpos+13, $possource-($offpos+13))));
    4747    if (empty($offpos))
    4848        $offpos=$possource;
    49     $sequon=substr($dataset, $onpos+12, $offpos-($onpos+12));
    50     $sequences=split(" ", trim($sequon));
     49    $sequon=split(" ", trim(substr($dataset, $onpos+12, $offpos-($onpos+12))));
     50    $sequences=$sequon;
     51    if (!empty($sequoff))
     52        $sequences=array_merge($sequences,$sequoff);
    5153    if ($seq!=0 && !in_array($seq, $sequences))
    5254        $seq=0;
     
    104106printf("</td>\n</tr>\n<tr>\n<td align='center'>\n");
    105107if (!empty($seq))
     108{
     109    if (in_array($seq, $sequon))
     110        printf("<font color='green'>\n");
     111    else
     112        printf("<font color='red'>\n");
    106113    printf("%s <img src='%s'>", $plot, $plot);
     114}
    107115else
    108116    printf("You have to insert a dataset number in the first field.");
Note: See TracChangeset for help on using the changeset viewer.