Changeset 8273 for trunk/MagicSoft/Mars
- Timestamp:
- 01/27/07 13:29:08 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8271 r8273 18 18 19 19 -*-*- 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 20 39 21 40 2007/01/26 Thomas Bretz -
trunk/MagicSoft/Mars/datacenter/db/builddatasets.php
r8249 r8273 301 301 $_GET["fIMCLimit1"]=$first?"00":""; 302 302 303 if (empty($_GET["fIMCLimit2"])) 304 $_GET["fIMCLimit2"]=$first?"00":""; 305 303 306 if (empty($_GET["fIsoInLimit1"])) 304 307 $_GET["fIsoInLimit1"]=$first?"00":""; 308 309 if (empty($_GET["fIsoInLimit2"])) 310 $_GET["fIsoInLimit2"]=$first?"00":""; 305 311 306 312 if (empty($_GET["fInhomLimitMean"])) … … 563 569 ); 564 570 //get runtimes of dataset 565 function GetSequenceValues($db_id, $sequences, $txt, &$values)571 function GetSequenceValues($db_id, $sequences, $txt, &$values) 566 572 { 567 573 $query="SELECT COUNT(*) "; … … 616 622 617 623 //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"; 620 625 $result = mysql_query($query, $db_id); 621 626 $numobskeys=mysql_num_rows($result); … … 711 716 { 712 717 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; 715 728 } 716 729 if (empty($realsourcekey)) … … 801 814 if (empty($_POST["comment"]) && !empty($_GET["comment"])) 802 815 $_POST["comment"]=$_GET["comment"]; 803 if (empty($_POST["fObservationModeKEY"]) && !empty($_GET["obsmode"]))804 $_POST["fObservationModeKEY"]=$_GET["obsmode"];805 816 if (empty($_POST["fUserKEY"]) && !empty($_GET["username"])) 806 817 $_POST["fUserKEY"]=$_GET["username"]; … … 851 862 printf("<table><tr><td colspan='2' align='center'>Dataset</td></tr>"); 852 863 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); 854 865 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); 856 867 printf("<tr><td>Scale: </td><td>%0.2f</td></tr>", $scale); 857 868 printf("<tr><td>SourcenamesOn[%s]: </td><td>%s</td></tr>", str_word_count($sourceson), $sourceson); -
trunk/MagicSoft/Mars/datacenter/db/ganymed.php
r7873 r8273 5 5 $query0 = "SELECT "; 6 6 //datasets (0-3) 7 $query0 .= " DataSets.fDataSetNumber, f Wobble, fComment, ";//0,1,27 $query0 .= " DataSets.fDataSetNumber, fDataSetName, fComment, ";//0,1,2 8 8 $query0 .= " fSourceName, ";//3 9 9 //steps (4-7) … … 70 70 71 71 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); 74 74 else 75 75 $min = $_GET["fRunMin"]; … … 160 160 { 161 161 $datasetno=mysql_result($result0, $i, 0); 162 $ wobble=mysql_result($result0, $i, 1);162 $datasetname=mysql_result($result0, $i, 1); 163 163 $comment=mysql_result($result0, $i, 2); 164 164 $source=mysql_result($result0, $i, 3); … … 187 187 printf(" </th></tr><tr>\n"); 188 188 189 printf(" <td colspan=\"6\"> Wobble: %s", $wobble);189 printf(" <td colspan=\"6\"> DatasetName: %s", $datasetname); 190 190 if (!is_null($ganymed)) 191 191 printf(", <font color='green'> ganymed done</font> "); … … 249 249 } 250 250 printf("<tr><td colspan=\"6\">\n Plots: "); 251 251 252 if ($wobble=='Y') 252 253 $tabs=$ganymedtabsw; -
trunk/MagicSoft/Mars/datacenter/db/index.html
r8163 r8273 51 51 plots for quality parameter from callisto and star for all data since 21.8.2004</li> 52 52 <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> 53 54 </ul> 54 55 <p> -
trunk/MagicSoft/Mars/datacenter/db/showplots.php
r8272 r8273 53 53 printf("<body>\n"); 54 54 55 //$type2= array("calib", "signal", "star");56 55 $seq=0; 57 56 if (!empty($_GET["seq"])) … … 69 68 $plot=getplotname($seq, $tabnum, $type, $type2); 70 69 70 //be careful: this has to be adapted in case tabs are removed or new tabs are added 71 71 if (($type2=="calib" && $tabnum==12) || ($type2=="signal" && $tabnum==11) || ($type2=="star" && $tabnum==15)) 72 72 { … … 91 91 else 92 92 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);95 93 printf("</td>\n</tr>\n</table>\n"); 96 94 printf("</form>\n");
Note:
See TracChangeset
for help on using the changeset viewer.