summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 14cdb05)
raw | patch | inline | side by side (parent: 14cdb05)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 28 Aug 2009 13:48:42 +0000 (13:48 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 28 Aug 2009 13:48:42 +0000 (13:48 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14162 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_listing.inc | patch | blob | history |
index 28d2165ed565d53d1a6946037754394408e1039f..911c904f06dc254c12121b74081c25d0b17e3bc8 100644 (file)
var $exporter= array();
var $exportColumns= array();
var $useSpan= false;
+ var $height= 0;
function listing($filename)
}
+ function setHeight($height)
+ {
+ $this->height= $height;
+ }
+
+
function setSnapshotHandler($handler)
{
$this->snapshotHandler= &$handler;
// Initialize list
$result= "<input type='hidden' value='$this->pid' name='PID'>\n";
+ $height= 450;
+ if ($this->height != 0) {
+ $result= "<input type='hidden' value='$this->height' id='d_height'>\n";
+ $height= $this->height;
+ }
+
$result.= "<div class='contentboxb' id='listing_container' style='border-top:1px solid #B0B0B0;'>\n";
- $result.= "<table summary='$this->headline' style='width:600px;height:450px;' cellspacing='0' id='t_scrolltable'>
+ $result.= "<table summary='$this->headline' style='width:600px;height:".$height."px;' cellspacing='0' id='t_scrolltable'>
<tr><td class='scrollhead'><table summary='' style='width:100%;' cellspacing='0' id='t_scrollhead'>\n";
$this->numColumns= count($this->colprops) + ($this->multiSelect?1:0);
$result.= "<td class='listheader' style='width:13px;border-right:0px;'> </td></table></td></tr>\n";
// New table for the real list contents
- $result.= "<tr><td colspan='$this->numColumns' class='scrollbody'><div style='width:600px;height:430px;' id='d_scrollbody' class='scrollbody'><table summary='' style='height:100%;width:581px;' cellspacing='0' id='t_scrollbody'>\n";
+ $result.= "<tr><td colspan='$this->numColumns' class='scrollbody'><div style='width:600px;height:".($height-20)."px;' id='d_scrollbody' class='scrollbody'><table summary='' style='height:100%;width:581px;' cellspacing='0' id='t_scrollbody'>\n";
// No results? Just take an empty colspanned row
if (count($this->entries) + count($this->departments) == 0) {