Changeset 8533 for trunk/MagicSoft


Ignore:
Timestamp:
05/21/07 14:16:43 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8532 r8533  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2007/05/21 Daniela Dorner
     22
     23   * datacenter/db/showplots-ds.php:
     24     - also off-sequences are plottet now
     25     - by plotting the link to the plot in colour, it is marked, whether
     26       a on sequence (green) or a off sequence is plotted
     27
     28
     29
    2030 2007/05/21 Daniel Hoehne
    2131
  • 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.