Code

Added styles from currently used list.
[gosa.git] / test.php
index 1fdc8216421d3444ee06bd8b11ea2866a70e63bc..070e26adeab3231a346bf1de8262c848759cec5c 100644 (file)
--- a/test.php
+++ b/test.php
        border-collapse:collapse;
 }
 
-.ObjectListViewport_Entry_Cover{
-
-       border: 0px;
-       margin:0px;
-       padding:0px;
-}
-
 .ObjectListViewport_Footer_Table {
     width:100%;
     border: 0px;
 }
 .ObjectListViewport_Entry_Cover{
        overflow:auto;
+       height:100px;
 }
 .ObjectListViewport_Entry_Cell {
-       border-left: solid 1px;
-       font-size:10px;
-       height:18px;
+       background-color: white;
+    background-image: none;
+    background-repeat: repeat;
+    background-attachment: scroll;
+    -x-background-x-position: 0%;
+    -x-background-y-position: 0%;
+    -moz-background-clip: -moz-initial;
+    -moz-background-origin: -moz-initial;
+    -moz-background-inline-policy: -moz-initial;
+    border-right-width: 1px;
+    border-right-style: solid;
+    border-right-color: rgb(192, 192, 192);
+    padding-top: 3px;
+    padding-right-value: 3px;
+    padding-bottom: 3px;
+    padding-left-value: 3px;
+    padding-left-ltr-source: physical;
+    padding-left-rtl-source: physical;
+    padding-right-ltr-source: physical;
+    padding-right-rtl-source: physical;
+    height: 22px;
 }
 
+.ObjectListViewport_Footer_Cell {
+
+    background-color: rgb(240, 240, 240);
+    background-image: none;
+    background-repeat: repeat;
+    background-attachment: scroll;
+    -x-background-x-position: 0%;
+    -x-background-y-position: 0%;
+    -moz-background-clip: -moz-initial;
+    -moz-background-origin: -moz-initial;
+    -moz-background-inline-policy: -moz-initial;
+    font-weight: bold;
+    border-top-width: 1px;
+    border-top-style: solid;
+    border-top-color: rgb(170, 170, 170);
+    padding-top: 3px;
+    padding-right-value: 3px;
+    padding-bottom: 3px;
+    padding-left-value: 3px;
+    padding-left-ltr-source: physical;
+    padding-left-rtl-source: physical;
+    padding-right-ltr-source: physical;
+    padding-right-rtl-source: physical;
+    height: 22px;
+}
+
+.ObjectListViewport_Header_Cell {
+    background-color: rgb(240, 240, 240);
+    background-image: none;
+    background-repeat: repeat;
+    background-attachment: scroll;
+    -x-background-x-position: 0%;
+    -x-background-y-position: 0%;
+    -moz-background-clip: -moz-initial;
+    -moz-background-origin: -moz-initial;
+    -moz-background-inline-policy: -moz-initial;
+    font-weight: bold;
+    border-right-width: 1px;
+    border-right-style: solid;
+    border-right-color: rgb(170, 170, 170);
+    border-bottom-width: 1px;
+    border-bottom-style: solid;
+    border-bottom-color: rgb(170, 170, 170);
+    padding-top: 3px;
+    padding-right-value: 3px;
+    padding-bottom: 3px;
+    padding-left-value: 3px;
+    padding-left-ltr-source: physical;
+    padding-left-rtl-source: physical;
+    padding-right-ltr-source: physical;
+    padding-right-rtl-source: physical;
+    height: 22px;
+}
 </style>
+</head>
 <script type="text/javascript">
 
 <!--
@@ -88,11 +154,18 @@ window.onresize = updateObjectListViewportSize;
 
                var dbg = document.getElementById('debug');
                dbg.value ="";
+
+//     var all = getElementsByStyleClass('ObjectListViewport');
+//     for (var i = 0; i < all.length; ++i){
+//             alert(all[i].id);
+//             document.getElementById(all[i].id).style.display= "block";
+//             document.getElementById(all[i].id).style.height= "50px";
+//     }
                
                /* Somehow IE do not need to be resized 
          *  So skip the following part if the client uses ie
          */
-               if(document.all){
+               if(document.all && !window.opera){
                        var all = getElementsByStyleClass('ObjectListViewport_Entry_Cover');
                        for (var i = 0; i < all.length; ++i){
                                document.getElementById(all[i].id).style.height= "100%";
@@ -125,8 +198,8 @@ window.onresize = updateObjectListViewportSize;
                         *  display the scrollbar without breaking the layout
                         */
                        dbg.value += " " + calc;
-                       var viewport = getObjectWidth('ObjectListViewport_Table' + id_pref);
-                       document.getElementById('ObjectListViewport_Entry_Table' + id_pref).style.width = (viewport - 16) + 'px';
+                       var viewport_w = getObjectWidth('ObjectListViewport_Table' + id_pref);
+                       document.getElementById('ObjectListViewport_Entry_Table' + id_pref).style.width = (viewport_w - 16) + 'px';
                }
        }
 
@@ -156,38 +229,44 @@ window.onresize = updateObjectListViewportSize;
 
 -->
 </script>
-</head>
 <body>
+<input type='button' onclick='updateObjectListViewportSize();'>
+<?php
+$a1 = shell_exec("./test");
+$a2 = shell_exec("./test");
+$a3 = shell_exec("./test");
+$a4 = shell_exec("./test");
+$a5 = shell_exec("./test");
+$a6 = shell_exec("./test");
+?>
 <input type='text' id='debug' value="" style='width:100%;'>
-       <table style='height:90%;width:90%;background-color:#DDDDDD; border: solid 1px;'
-               cellspacing=0 cellpadding=0>
-               <tr>
-                       <td style='width:30%;height:30%;background-color:#EEEEEE;'>
-                               hallo<br>
-                               hallo<br>
-                               hallo<br>
-                               hallo<br>
-                               hallo<br>
-                               hallo<br>
-                       </td>
-                       <td style='background-color:#EEEEEE;'>
-                               <?php echo passthru("./test"); ?>
-                       </td>
-               </tr>
-               <tr>
-                       <td style='height:30%;background-color:#999777;'>
-                               <?php echo passthru("./test"); ?>
-                       </td>
-                       <td style='background-color:#AAA006;'>
-                       </td>
-               </tr>
-               <tr>
-                       <td style='background-color:#999777;'>
-                       </td>
-                       <td style='background-color:#999777;'>
-                               <?php echo passthru("./test"); ?>
-                       </td>
-               </tr>
-       </table>
+    <table style='height:90%;width:90%;background-color: rgb(170, 170, 170);'
+        cellspacing=1 cellpadding=0>
+        <tr>
+            <td style='width:30%;height:30%;'>
+                <?php echo $a1; ?>
+            </td>
+            <td>
+                <?php echo $a2; ?>
+            </td>
+        </tr>
+        <tr>
+            <td>
+                <?php echo $a3; ?>
+            </td>
+            <td>
+                <?php echo $a4; ?>
+            </td>
+        </tr>
+        <tr>
+            <td>
+                <?php echo $a5; ?>
+            </td>
+            <td>
+                <?php echo $a6; ?>
+            </td>
+        </tr>
+    </table>
+
 </body>
 </html>