Changeset 8273 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
01/27/07 13:29:08 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8271 r8273  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2007/01/27 Daniela Dorner
     22
     23   * datacenter/db/showplots.php:
     24     - added (tool to click through the calib, signal and star plots of
     25       one sequence)
     26
     27   * datacenter/db/index.html:
     28     - added link to new plot tool
     29
     30   * datacenter/db/ganymed.php:
     31     - added fDataSetName, removed fWobble
     32     - removed mininmum value of 100 for dataset range
     33
     34   * datacenter/db/builddatasets.php:
     35     - added fIsoInLimit2 and fIMCLimit2 in Init
     36     - added check on observation mode
     37
     38
    2039
    2140 2007/01/26 Thomas Bretz
  • trunk/MagicSoft/Mars/datacenter/db/builddatasets.php

    r8249 r8273  
    301301            $_GET["fIMCLimit1"]=$first?"00":"";
    302302
     303        if (empty($_GET["fIMCLimit2"]))
     304            $_GET["fIMCLimit2"]=$first?"00":"";
     305
    303306        if (empty($_GET["fIsoInLimit1"]))
    304307            $_GET["fIsoInLimit1"]=$first?"00":"";
     308
     309        if (empty($_GET["fIsoInLimit2"]))
     310            $_GET["fIsoInLimit2"]=$first?"00":"";
    305311
    306312        if (empty($_GET["fInhomLimitMean"]))
     
    563569                             );
    564570                //get runtimes of dataset
    565                 function GetSequenceValues($db_id, $sequences, $txt,&$values)
     571                function GetSequenceValues($db_id, $sequences, $txt, &$values)
    566572                {
    567573                    $query="SELECT COUNT(*) ";
     
    616622
    617623                //check observationmode for on-sequences
    618                 $query="SELECT fObservationModeKEY FROM Sequences where fSequenceFirst IN ('" . $sequences . "') GROUP BY fObservationModeKEY";
    619 //                printf("q: %s <br>", $query);
     624                $query="SELECT fObservationModeKEY FROM Sequences where fSequenceFirst IN (" . $on . ") GROUP BY fObservationModeKEY";
    620625                $result = mysql_query($query, $db_id);
    621626                $numobskeys=mysql_num_rows($result);
     
    711716                    {
    712717                        printf("<li style='color:%s'>%s: You have selected more than one (%s) different observation modes for your on sequences",
    713                                $color["ERROR"], "ERROR", $numobskeys);
    714                         $numerr=$numerr+1;
     718                               $color["ERROR"], "WARN", $numobskeys);
     719//                        $numerr=$numerr+1;
     720                    }
     721                    if (empty($_POST["fObservationModeKEY"]) && !empty($_GET["obsmode"]))
     722                        $_POST["fObservationModeKEY"]=$_GET["obsmode"];
     723                    if ($_POST["fObservationModeKEY"]==3 && empty($off))
     724                    {
     725                        printf("<li style='color:%s'>%s: You have selected on/off mode, but you haven't chosen any off sequences.",
     726                               $color["ERROR"], "WARN");
     727//                        $numerr=$numerr+1;
    715728                    }
    716729                    if (empty($realsourcekey))
     
    801814                    if (empty($_POST["comment"]) && !empty($_GET["comment"]))
    802815                        $_POST["comment"]=$_GET["comment"];
    803                     if (empty($_POST["fObservationModeKEY"]) && !empty($_GET["obsmode"]))
    804                         $_POST["fObservationModeKEY"]=$_GET["obsmode"];
    805816                    if (empty($_POST["fUserKEY"]) && !empty($_GET["username"]))
    806817                        $_POST["fUserKEY"]=$_GET["username"];
     
    851862                    printf("<table><tr><td colspan='2' align='center'>Dataset</td></tr>");
    852863                    printf("<tr><td>proposed DataSet#: </td><td>%s</td></tr>", $dataset);
    853                     printf("<tr><td>SequencesOn:</td><td> %s</td></tr>", $sequon);
     864                    printf("<tr><td valign='top'>SequencesOn:</td><td> %s</td></tr>", $sequon);
    854865                    if (!empty($sequoff))
    855                         printf("<tr><td>SequencesOff:</td><td> %s</td></tr>", $sequoff);
     866                        printf("<tr><td valign='top'>SequencesOff:</td><td> %s</td></tr>", $sequoff);
    856867                    printf("<tr><td>Scale: </td><td>%0.2f</td></tr>", $scale);
    857868                    printf("<tr><td>SourcenamesOn[%s]: </td><td>%s</td></tr>", str_word_count($sourceson), $sourceson);
  • trunk/MagicSoft/Mars/datacenter/db/ganymed.php

    r7873 r8273  
    55        $query0  = "SELECT ";
    66        //datasets (0-3)
    7         $query0 .= " DataSets.fDataSetNumber, fWobble, fComment, ";//0,1,2
     7        $query0 .= " DataSets.fDataSetNumber, fDataSetName, fComment, ";//0,1,2
    88        $query0 .= " fSourceName, ";//3
    99        //steps (4-7)
     
    7070
    7171        if (empty($_GET["fRunMin"]))
    72             $min = "100";
    73 //            $min = GetMin("fDataSetNumber", "DataSets", $host, $user, $pw, $db);
     72//            $min = "100";
     73            $min = GetMin("fDataSetNumber", "DataSets", $host, $user, $pw, $db);
    7474        else
    7575            $min = $_GET["fRunMin"];
     
    160160        {
    161161            $datasetno=mysql_result($result0, $i, 0);
    162             $wobble=mysql_result($result0, $i, 1);
     162            $datasetname=mysql_result($result0, $i, 1);
    163163            $comment=mysql_result($result0, $i, 2);
    164164            $source=mysql_result($result0, $i, 3);
     
    187187            printf(" </th></tr><tr>\n");
    188188
    189             printf(" <td colspan=\"6\"> Wobble: %s", $wobble);
     189            printf(" <td colspan=\"6\"> DatasetName: %s", $datasetname);
    190190            if (!is_null($ganymed))
    191191                printf(", <font color='green'> ganymed done</font> ");
     
    249249            }
    250250            printf("<tr><td colspan=\"6\">\n Plots: ");
     251
    251252            if ($wobble=='Y')
    252253                $tabs=$ganymedtabsw;
  • trunk/MagicSoft/Mars/datacenter/db/index.html

    r8163 r8273  
    5151plots for quality parameter from callisto and star for all data since 21.8.2004</li>
    5252<li><A HREF="plotdb.php">Plots</A>: plot values from the database yourself online</li>
     53<li><A HREF="showplots.php">All plots of one sequence</A>: click through all calib, signal and star plot of one sequence</li>
    5354</ul>
    5455<p>
  • trunk/MagicSoft/Mars/datacenter/db/showplots.php

    r8272 r8273  
    5353printf("<body>\n");
    5454
    55 //$type2= array("calib", "signal", "star");
    5655$seq=0;
    5756if (!empty($_GET["seq"]))
     
    6968    $plot=getplotname($seq, $tabnum, $type, $type2);
    7069
     70    //be careful: this has to be adapted in case tabs are removed or new tabs are added
    7171    if (($type2=="calib" && $tabnum==12) || ($type2=="signal" && $tabnum==11) || ($type2=="star" && $tabnum==15))
    7272    {
     
    9191else
    9292    printf("You have to select a sequence.");
    93 //printf("<img src='http://vela.astro.uni-wuerzburg.de/datacenter/%s/%04d/%08d/%s%08d-tab%d.png'>",
    94 //       $type, $seqshort, $seq, $type2, $seq, $tabnum);
    9593printf("</td>\n</tr>\n</table>\n");
    9694printf("</form>\n");
Note: See TracChangeset for help on using the changeset viewer.