Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 9547)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 9548)
@@ -18,4 +18,27 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+ 2010/02/22 Daniela Dorner
+
+   * datacenter/db/menu.php:
+     - added ObsLevel and download link column for cta pages
+
+   * datacenter/db/ctadefs.php:
+     - added observation level
+
+   * datacenter/db/ctamcinfo.php:
+     - added column with download link for the files
+
+   * datacenter/db/builddatasets.php, datacenter/db/ctamcinfo.php, 
+     datacenter/db/culminating.php, datacenter/db/datacheck.php, 
+     datacenter/db/datasetinfo-aio.php, datacenter/db/ganymed.php, 
+     datacenter/db/include.php, datacenter/db/mcinfo.php, 
+     datacenter/db/opticaldata.php, datacenter/db/printtable.php, 
+     datacenter/db/queryrbk.php, datacenter/db/runinfo-aio.php, 
+     datacenter/db/sequence.php, datacenter/db/sequinfo-aio.php, 
+     datacenter/db/sources.php, datacenter/db/statussbs.php:
+     - bugfix for get.txt
+
+
 
  2010/02/01 Daniela Dorner
@@ -551,5 +574,5 @@
      - added usage of $timelimits array in function StatusQuery(), i.e.
        provides possibility to set different values for time after 
-       which job is marked as 'crashef' for diffent steps
+       which job is marked as 'crashed' for diffent steps
 
    * datacenter/db/builddatasets.php, datacenter/db/datacheck.php, 
Index: /trunk/MagicSoft/Mars/datacenter/db/builddatasets.php
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/db/builddatasets.php	(revision 9547)
+++ /trunk/MagicSoft/Mars/datacenter/db/builddatasets.php	(revision 9548)
@@ -848,5 +848,6 @@
         mysql_close($db_id);
 
-        PrintSubmittedQuery($query0, $html, $db, "");
+        if ($html=="1")
+            PrintSubmittedQuery($query0, $db, "");
     }
 
Index: /trunk/MagicSoft/Mars/datacenter/db/ctamcinfo.php
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/db/ctamcinfo.php	(revision 9547)
+++ /trunk/MagicSoft/Mars/datacenter/db/ctamcinfo.php	(revision 9548)
@@ -299,5 +299,5 @@
 
         if ($html=="1")
-            PrintSubmittedQuery($query0, $html, $db, "");
+            PrintSubmittedQuery($query0, $db, "");
     }
 
Index: /trunk/MagicSoft/Mars/datacenter/db/culminating.php
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/db/culminating.php	(revision 9547)
+++ /trunk/MagicSoft/Mars/datacenter/db/culminating.php	(revision 9548)
@@ -237,5 +237,6 @@
         mysql_close($db_id);
 
-        PrintSubmittedQuery($query0, $html, $db, "old");
+        if ($html=="1")
+            PrintSubmittedQuery($query0, $db, "old");
     }
     include ("include.php");
Index: /trunk/MagicSoft/Mars/datacenter/db/datacheck.php
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/db/datacheck.php	(revision 9547)
+++ /trunk/MagicSoft/Mars/datacenter/db/datacheck.php	(revision 9548)
@@ -430,5 +430,6 @@
         mysql_close($db_id);
 
-        PrintSubmittedQuery($query0, $html, $db, "old");
+        if ($html=="1")
+            PrintSubmittedQuery($query0, $db, "old");
     }
 
Index: /trunk/MagicSoft/Mars/datacenter/db/datasetinfo-aio.php
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/db/datasetinfo-aio.php	(revision 9547)
+++ /trunk/MagicSoft/Mars/datacenter/db/datasetinfo-aio.php	(revision 9548)
@@ -246,5 +246,6 @@
         mysql_close($db_id);
 
-        PrintSubmittedQuery($query0, $html, $db, "");
+        if ($html=="1")
+            PrintSubmittedQuery($query0, $db, "");
     }
 
Index: /trunk/MagicSoft/Mars/datacenter/db/ganymed.php
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/db/ganymed.php	(revision 9547)
+++ /trunk/MagicSoft/Mars/datacenter/db/ganymed.php	(revision 9548)
@@ -307,5 +307,6 @@
         mysql_close($db_id);
 
-        PrintSubmittedQuery($query0, $html, $db, "old");
+        if ($html=="1")
+            PrintSubmittedQuery($query0, $db, "old");
     }
 
Index: /trunk/MagicSoft/Mars/datacenter/db/include.php
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/db/include.php	(revision 9547)
+++ /trunk/MagicSoft/Mars/datacenter/db/include.php	(revision 9548)
@@ -266,17 +266,14 @@
 }
 
-function PrintSubmittedQuery($query0, $html, $db, $old)
+function PrintSubmittedQuery($query0, $db, $old)
 {
     //diplay query on old websites
     if (empty($old))
-        printf("<tr class='Block' id='showquery' style='display:none'><td>");
-    else
-        printf("<tr class='Block' id='showquery' style='display:block'><td>");
-    if ($html=="1")
-    {
-        printf("<b>DB:</b> %s <br>", $db);
-        printf("<U><B>submitted query:</B></U><BR>%s<BR>", htmlspecialchars($query0));
-    }
-    printf("</td></tr>");
+        printf("<tr class='Block' id='showquery' style='display:none'><td>\n");
+    else
+        printf("<tr class='Block' id='showquery' style='display:block'><td>\n");
+    printf("<b>DB:</b> %s <br>\n", $db);
+    printf("<U><B>submitted query:</B></U><BR>%s<BR>\n", htmlspecialchars($query0));
+    printf("</td></tr>\n");
 }
 
Index: /trunk/MagicSoft/Mars/datacenter/db/mcinfo.php
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/db/mcinfo.php	(revision 9547)
+++ /trunk/MagicSoft/Mars/datacenter/db/mcinfo.php	(revision 9548)
@@ -293,5 +293,6 @@
         mysql_close($db_id);
 
-        PrintSubmittedQuery($query0, $html, $db, "");
+        if ($html=="1")
+            PrintSubmittedQuery($query0, $db, "");
     }
 
Index: /trunk/MagicSoft/Mars/datacenter/db/opticaldata.php
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/db/opticaldata.php	(revision 9547)
+++ /trunk/MagicSoft/Mars/datacenter/db/opticaldata.php	(revision 9548)
@@ -261,5 +261,6 @@
         mysql_close($db_id);
 
-        PrintSubmittedQuery($query0, $html, $db, "old");
+        if ($html=="1")
+            PrintSubmittedQuery($query0, $db, "old");
     }
 
Index: /trunk/MagicSoft/Mars/datacenter/db/printtable.php
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/db/printtable.php	(revision 9547)
+++ /trunk/MagicSoft/Mars/datacenter/db/printtable.php	(revision 9548)
@@ -61,5 +61,6 @@
         mysql_close($db_id);
 
-        PrintSubmittedQuery($query0, $html, $db, "old");
+        if ($html=="1")
+            PrintSubmittedQuery($query0, $db, "old");
     }
 
Index: /trunk/MagicSoft/Mars/datacenter/db/queryrbk.php
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/db/queryrbk.php	(revision 9547)
+++ /trunk/MagicSoft/Mars/datacenter/db/queryrbk.php	(revision 9548)
@@ -87,5 +87,6 @@
         mysql_close($db_id);
 
-        PrintSubmittedQuery($query0, $html, $db, "old");
+        if ($html=="1")
+            PrintSubmittedQuery($query0, $db, "old");
     }
 
Index: /trunk/MagicSoft/Mars/datacenter/db/runinfo-aio.php
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/db/runinfo-aio.php	(revision 9547)
+++ /trunk/MagicSoft/Mars/datacenter/db/runinfo-aio.php	(revision 9548)
@@ -338,5 +338,6 @@
         mysql_close($db_id);
 
-        PrintSubmittedQuery($query0, $html, $db, "");
+        if ($html=="1")
+            PrintSubmittedQuery($query0, $db, "");
     }
 
Index: /trunk/MagicSoft/Mars/datacenter/db/sequence.php
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/db/sequence.php	(revision 9547)
+++ /trunk/MagicSoft/Mars/datacenter/db/sequence.php	(revision 9548)
@@ -580,5 +580,6 @@
         mysql_close($db_id);
 
-        PrintSubmittedQuery($query0, $html, $db, "old");
+        if ($html=="1")
+            PrintSubmittedQuery($query0, $db, "old");
     }
 
Index: /trunk/MagicSoft/Mars/datacenter/db/sequinfo-aio.php
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/db/sequinfo-aio.php	(revision 9547)
+++ /trunk/MagicSoft/Mars/datacenter/db/sequinfo-aio.php	(revision 9548)
@@ -411,5 +411,6 @@
         mysql_close($db_id);
 
-        PrintSubmittedQuery($query0, $html, $db, "");
+        if ($html=="1")
+            PrintSubmittedQuery($query0, $db, "");
     }
 
Index: /trunk/MagicSoft/Mars/datacenter/db/sources.php
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/db/sources.php	(revision 9547)
+++ /trunk/MagicSoft/Mars/datacenter/db/sources.php	(revision 9548)
@@ -126,5 +126,6 @@
         mysql_close($db_id);
 
-        PrintSubmittedQuery($query0, $html, $db, "old");
+        if ($html=="1")
+            PrintSubmittedQuery($query0, $db, "old");
     }
 
Index: /trunk/MagicSoft/Mars/datacenter/db/statussbs.php
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/db/statussbs.php	(revision 9547)
+++ /trunk/MagicSoft/Mars/datacenter/db/statussbs.php	(revision 9548)
@@ -193,5 +193,6 @@
         mysql_close($db_id);
 
-        PrintSubmittedQuery($query0, $html, $db, "old");
+        if ($html=="1")
+            PrintSubmittedQuery($query0, $db, "old");
     }
 
