summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9b648a7)
raw | patch | inline | side by side (parent: 9b648a7)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 7 Nov 2007 07:43:26 +0000 (07:43 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 7 Nov 2007 07:43:26 +0000 (07:43 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-playground@7741 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_ObjectListViewport.inc | patch | blob | history | |
test.php | patch | blob | history |
index 7d51f7b8b5f74390aa364b526a8fd5c95bae221b..959ae306775a8f651b15b2394f9a5690e15a9272 100644 (file)
/* Apply current filter */
$objects= new ObjectListFilterIterator($this->objects->getIterator());
-
- $buffer.="<table><tr><td>
- <table class='ObjectListViewport_Entry_Table'>\n";
+
+ $buffer.="<div style='overflow:auto' id='ObjectListViewport_Entry_Cover'>";
+ $buffer.="<table class='ObjectListViewport_Entry_Table'>\n";
foreach ($objects as $value){
- $buffer.= "<br>";//$this->renderEntry($value);
+ $buffer.= $this->renderEntry($value);
}
- $buffer.="</table>
- </td></tr></table>\n";
+ $buffer.="</table>\n";
+ $buffer.="</div>";
/* Generate footer */
$buffer.= $this->renderFooter();
diff --git a/test.php b/test.php
index c3ff99321e0e080e269ca75cffaaa01b2c7cee60..1b156e4b7cae469e59da5ed67881530e478c9b08 100644 (file)
--- a/test.php
+++ b/test.php
.ObjectListViewport_Headline_Table {
background-color: #FF0000;
width:100%;
- height:20px;
border-collapse:collapse;
}
.ObjectListViewport_Headline_Cell {
}
.ObjectListViewport_Footer_Table {
background-color: #0000FF;
- height:20px;
width:100%;
border-collapse:collapse;
}
</style>
<script type="text/javascript">
function setHeight() {
- // document.getElementById("tolletable").style.height=document.defaultView.getComputedStyle(document.getElementById("tolletable"),"").getPropertyValue("height"))+"px";
- alert(document.getElementById("tolletable").style.height());
+ dbg = document.getElementById('debug');
+ OVP = document.getElementById('ObjectListViewport');
+ style = getComputedStyle(OVP,"");
+ dbg.value = style.height;
+ document.getElementById('ObjectListViewport_Entry_Cover').style.height= '200px' ;
}
</script>
</head>
-<body>
-
-<table onmouseover="setHeight();" id="tolletable" style='height:50%;background-color: #00FF00;'><tr><td></td></tr></table>
-
-<table style='height:30px; width:50%; background-color:#FF0000;'>
-<tr>
-<td>
+<body onmouseover="setHeight();" >
+<input type='text' id='debug' value="">
+<div id='ObjectListViewport' style='height:20%;'>
<?php
echo passthru("./test");
?>
-</td>
-</tr>
-</table>
</div>
</body>
</html>