Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 9158)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 9159)
@@ -18,4 +18,13 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+ 2008/11/12 Daniela Dorner
+
+   * datacenter/db/menu.js, datacenter/db/include.php:
+     - added feature to remove lines for table ('-' button at beginning 
+       of each line) and button to get all lines back ('+' at top of 
+       the column)
+
+
 
  2008/11/12 Thomas Bretz
Index: /trunk/MagicSoft/Mars/datacenter/db/include.php
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/db/include.php	(revision 9158)
+++ /trunk/MagicSoft/Mars/datacenter/db/include.php	(revision 9159)
@@ -471,11 +471,12 @@
         printf("<form method='POST'>");
     if (empty($_GET["fPrintTable"]))
-        printf("<p>%s<P>\n", $menu);
-    printf("<table BORDER='0'>\n");
+        printf("%s\n", $menu);
+    printf("<table BORDER='0' style='margin-top:1ex'>\n");
+    $counter=0;
     while ($row0 = mysql_fetch_assoc($result0))
     {
         if ($first)
         {
-            printf(" <tr BGCOLOR='#C0C0C0'>\n");
+            printf(" <tr BGCOLOR='#C0C0C0'>\n<td BGCOLOR='#F0F0F0'><img src='../plus.png' alt='+' onClick='showalllines(%d)'></td>\n", mysql_num_rows($result0));
             $first = FALSE;
             if ($form)
@@ -503,8 +504,9 @@
         }
 
+        $counter++;
         if (!$col)
-            printf(" <tr BGCOLOR='#E0E0E0'>\n");
+            printf(" <tr id='line%s' BGCOLOR='#E0E0E0'>\n<td BGCOLOR='#F0F0F0'>\n<img id='line%sbutton' src='../minus.png' alt='-' onClick='showhide(\"line%s\")'>\n</td>\n", $counter, $counter, $counter);
         else
-            printf(" <tr BGCOLOR='#D0D0D0'>\n");
+            printf(" <tr id='line%s' BGCOLOR='#D0D0D0'>\n<td BGCOLOR='#F0F0F0'>\n<img id='line%sbutton' src='../minus.png' alt='-' onClick='showhide(\"line%s\")'>\n</td>\n", $counter, $counter, $counter);
         $col = !$col;
 
Index: /trunk/MagicSoft/Mars/datacenter/db/menu.js
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/db/menu.js	(revision 9158)
+++ /trunk/MagicSoft/Mars/datacenter/db/menu.js	(revision 9159)
@@ -61,5 +61,5 @@
     var img = document.getElementById(id+"button");
     //query current status and change it accordingly
-    if (el.style.display == 'block')
+    if (el.style.display != 'none')
         hide(el,img);
     else
@@ -106,4 +106,23 @@
     var fShowHide = document.getElementById("sh");
     fShowHide.value = setdisplays();
+}
+
+//show all lines on db website
+function showalllines(num)
+{
+    for (var i = 1 ; i < num+1 ; i++)
+    {
+        var el = document.getElementById("line"+i);
+        var img = document.getElementById("line"+i+"button");
+        if (el.style.display == 'none')
+        {
+            el.style.display='';
+            if (img)
+            {
+                img.src='minus.png';
+                img.alt='-';
+            }
+        }
+    }
 }
 
