Ignore:
Timestamp:
04/19/07 22:51:59 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8402 r8421  
    11<?php
    22
     3//arrays and functions for plot.php and plotdb.php
    34include("include.php");
    45include("magicdefs.php");
     
    120121}
    121122
     123//functions for showplots.php and showplots2.php
     124function gettypename($type2)
     125{
     126    switch ($type2)
     127    {
     128    case "calib":
     129        $type="callisto";
     130        break;
     131    case "signal":
     132        $type="callisto";
     133        break;
     134    case "star":
     135        $type="star";
     136        break;
     137    }
     138    return $type;
     139}
     140
     141function getplotname($seq, $tabnum, $type, $type2)
     142{
     143    $seqlong=str_pad($seq, 8, "0", STR_PAD_LEFT);
     144    $seqshort=substr($seqlong, 0, 4);
     145    $plot  = "http://datacenter.astro.uni-wuerzburg.de/";
     146    $plot .= $type . "/" . str_pad( $seqshort, 4, "0", STR_PAD_LEFT);
     147    $plot .= "/" . $seqlong . "/" . $type2 . $seqlong . "-tab" . $tabnum . ".png";
     148    return $plot;
     149}
    122150
    123151?>
Note: See TracChangeset for help on using the changeset viewer.