Ignore:
Timestamp:
06/13/07 17:03:00 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8421 r8555  
    3333
    3434    //be careful: this has to be adapted in case tabs are removed or new tabs are added
    35     if (($type2=="calib" && $tabnum==12) || ($type2=="signal" && $tabnum==11) || ($type2=="star" && $tabnum==19))
     35    //number of tabs for calib*.root, signal*.root and star*.root
     36    $calibtabs=11;
     37    $signaltabs=12;
     38    $startabs=18;
     39
     40    if (($type2=="calib" && $tabnum==($calibtabs+1))
     41        || ($type2=="signal" && $tabnum==($signaltabs+1))
     42        || ($type2=="star" && $tabnum==($startabs+1)))
    3643    {
    3744        $tabnum=1;
     
    5764        case "calib":
    5865            $type2="star";
    59             $tabnum=18;
     66            $tabnum=$startabs;
    6067            break;
    6168        case "signal":
    6269            $type2="calib";
    63             $tabnum=11;
     70            $tabnum=$calibtabs;
    6471            break;
    6572        case "star":
    6673            $type2="signal";
    67             $tabnum=10;
     74            $tabnum=$signaltabs;
    6875            break;
    6976        }
Note: See TracChangeset for help on using the changeset viewer.