Code

Fixed display
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 Nov 2007 08:24:35 +0000 (08:24 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 Nov 2007 08:24:35 +0000 (08:24 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-playground@7750 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_ObjectListViewport.inc
test.php

index a0aa85d472fe1a1515cb12ac3b03be18d4e6ec8c..3d55843e450931e1a84e30ef3eaf8a0fa1c4619f 100644 (file)
@@ -211,7 +211,7 @@ class ObjectListViewport {
 
     /* Generate fixed headline */
     $buffer = "
-    <table class='ObjectListViewport' id='ObjectListViewport".$this->id."' cellspacing=o cellpadding=0>
+    <table class='ObjectListViewport' id='ObjectListViewport".$this->id."' cellspacing=0 cellpadding=0>
       <tr>
         <td>
               <table class='ObjectListViewport_Table' id='ObjectListViewport_Table".$this->id."' cellpadding=0 cellspacing=0 >
index 4b30acf7c054befe34ea32692567c32b627f8679..9979820e69f3234984394bc716ffea68f0d0de54 100644 (file)
--- a/test.php
+++ b/test.php
 }
 .ObjectListViewport_Entry_Cover{
        overflow:auto;
-       height:20px;
+       height:100px;
 }
 .ObjectListViewport_Entry_Cell {
        border-left: solid 1px;
        font-size:10px;
-       height:18px;
+       height:12px;
 }
-
 </style>
+</head>
 <script type="text/javascript">
 
 <!--
@@ -82,6 +82,13 @@ 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
@@ -119,8 +126,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';
                }
        }
 
@@ -150,34 +157,41 @@ 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=2 cellpadding=2>
         <tr>
             <td style='width:30%;height:30%;'>
-                <?php echo passthru("./test"); ?>
+                <?php echo $a1; ?>
             </td>
             <td>
-                <?php echo passthru("./test"); ?>
+                <?php echo $a2; ?>
             </td>
         </tr>
         <tr>
             <td>
-                <?php echo passthru("./test"); ?>
+                <?php echo $a3; ?>
             </td>
             <td>
-                <?php echo passthru("./test"); ?>
+                <?php echo $a4; ?>
             </td>
         </tr>
         <tr>
             <td>
-                <?php echo passthru("./test"); ?>
+                <?php echo $a5; ?>
             </td>
             <td>
-                <?php echo passthru("./test"); ?>
+                <?php echo $a6; ?>
             </td>
         </tr>
     </table>