Changeset 7619 for trunk/MagicSoft


Ignore:
Timestamp:
03/21/06 03:27:40 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7618 r7619  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2006/03/21 Daniela Dorner
     22
     23   * datacenter/db/ganymed.php,tabs.php:
     24     - included different tabs for on/off and wobble
     25
     26
    2027
    2128 2006/03/20 Thomas Bretz
  • trunk/MagicSoft/Mars/datacenter/db/ganymed.php

    r7578 r7619  
    132132    }
    133133
    134     function PrintDataSetInfo($result0, $ganymedtabs)
     134    function PrintDataSetInfo($result0, $ganymedtabsw, $ganymedtabs)
    135135    {
    136136        $numres = mysql_num_rows($result0);
     
    232232            }
    233233            printf("<tr><td colspan=\"6\">\n Plots: ");
    234             foreach($ganymedtabs as $key => $element)
     234            if ($wobble=='Y')
     235                $tabs=$ganymedtabsw;
     236            else
     237                $tabs=$ganymedtabs;
     238            foreach($tabs as $key => $element)
    235239                if (!$key==0)
    236240                    printf("<a href=\"http://www.astro.uni-wuerzburg.de/datacenter/ganymed/%s/%s/ganymed%s-tab%s.png\">%s</a> ", $num2, $num, $num, $key, $element);
     
    257261    }
    258262
    259     function PrintPage($html, $host, $user, $pw, $db, $ganymedtabs)
     263    function PrintPage($html, $host, $user, $pw, $db, $ganymedtabsw, $ganymedtabs)
    260264    {
    261265        $db_id = mysql_connect($host, $user, $pw);
     
    274278        {
    275279            if ($html=="1" || $html=="2")
    276                 PrintDataSetInfo($result0, $ganymedtabs);
     280                PrintDataSetInfo($result0, $ganymedtabsw, $ganymedtabs);
    277281            else
    278282                PrintText($result0);
     
    298302        header("Content-Disposition: attachment; filename=query-result.txt");
    299303
    300         PrintPage("0", $host, $user, $pw, $db, $ganymedtabs);
     304        PrintPage("0", $host, $user, $pw, $db, $ganymedtabsw, $ganymedtabs);
    301305    }
    302306    else
     
    315319        {
    316320            if (empty($_GET["fPrintTable"]))
    317                 PrintPage("1", $host, $user, $pw, $db, $ganymedtabs);
    318             else
    319                 PrintPage("2", $host, $user, $pw, $db, $ganymedtabs);
     321                PrintPage("1", $host, $user, $pw, $db, $ganymedtabsw, $ganymedtabs);
     322            else
     323                PrintPage("2", $host, $user, $pw, $db, $ganymedtabsw, $ganymedtabs);
    320324        }
    321325
  • trunk/MagicSoft/Mars/datacenter/db/tabs.php

    r7613 r7619  
    11<?php
    22
    3 $ganymedtabs = array ("0", "SourcePos", "PreCut", "FSOff", "PostCut", "VsSize", "HillasExt", "HilSrc", "ImgPar", "NewPar", "HistOff", "FS", "Hist", "MHPhi", "OnTime");
     3$ganymedtabs = array ("0", "SourcePos", "PreCut", "FSOff", "PostCut", "VsSize", "HillasExt", "HilSrc", "ImgPar", "NewPar", "HistOff", "FS", "Hist", "OnTime");
     4$ganymedtabsw = array ("0", "SourcePos", "PreCut", "FSOff", "PostCut", "VsSize", "HillasExt", "HilSrc", "ImgPar", "NewPar", "HistOff", "FS", "Hist", "MHPhi", "OnTime");
    45
    56$startabs = array ("0", "Rate", "EffOnTime", "Cleaned", "UsedPix", "MHHillas", "MHHillasExt", "MHHillasSrc", "MHImagePar", "MHNewImagePar", "MHMuonPar", "MHWeather", "MHPointing", "Curents", "MeanRms");
Note: See TracChangeset for help on using the changeset viewer.