index 69d43a1fb1b97005c0c3ba17f11d575cf1a41168..a3ecfb8d5ed2f5f7ef04e1afe34b04e43a008166 100644 (file)
var $i_currentPage;
var $i_entriesPerPage;
var $i_currentPage;
var $i_entriesPerPage;
- var $height_forced = false;
-
+ var $force_height = false;
+
// Added php 4 constructor
function divlist($pageid){
// Added php 4 constructor
function divlist($pageid){
function SetHeight($s_height) {
$this->s_height= $s_height;
function SetHeight($s_height) {
$this->s_height= $s_height;
- $this->height_forced =true;
+ $this->force_height = true;
}
function SetWidth($s_width) {
}
function SetWidth($s_width) {
function DrawList(){
$s_return = "";
function DrawList(){
$s_return = "";
- $s_return.= "<table summary='".$this->s_summary."' style='width:".
- $this->s_width."px;height:".$this->s_height.
- "px;' cellspacing='0' id='t_scrolltable'>";
+ if(!$this->force_height){
+ $s_return.= "<table summary='".$this->s_summary."' style='width:".
+ $this->s_width."px;height:".$this->s_height.
+ "px;' cellspacing='0' id='t_scrolltable'>";
+ } else {
+ $s_return.= "<table summary='".$this->s_summary."' style='width:".
+ $this->s_width."px;height:".$this->s_height.
+ "px;' cellspacing='0' id='t_scrolltable_onlywidth'>";
+ }
$s_return.= $this->_generateHeader();
$s_return.=$this->_generatePage();
$s_return.= $this->_generateHeader();
$s_return.=$this->_generatePage();
// Using scrolltable?
if($this->i_entriesPerPage == 0) {
// Using scrolltable?
if($this->i_entriesPerPage == 0) {
- $s_return.= "\n<tr><td class='scrollhead'><table summary='' style='width:".$this->s_width."px;' cellspacing='0' id='t_scrollhead'>";
+ if(!$this->force_height) {
+ $s_return.= "\n<tr><td class='scrollhead'><table summary='' style='width:".$this->s_width."px;' cellspacing='0' id='t_scrollhead'>";
+ } else {
+ $s_return.= "\n<tr><td class='scrollhead'><table summary='' style='width:".$this->s_width."px;' cellspacing='0' id='t_scrollhead_onlywidth'>";
+ }
}
$s_return.= "\n<tr>";
}
$s_return.= "\n<tr>";
if($this->i_entriesPerPage == 0) {
// We need to construct a "body"-table that is width-of-scrollbar thinner than the "head"-table.
if($this->i_entriesPerPage == 0) {
// We need to construct a "body"-table that is width-of-scrollbar thinner than the "head"-table.
- $s_return .= "\n<tr><td colspan='".$this->cols."' class='scrollbody'><div style='width:".$this->s_width."px;height:".($this->s_height-20)."px;' id='d_scrollbody' class='scrollbody'>";
- $s_return .= "<table summary='' style='height:100%;width:581px;' cellspacing='0' id='t_scrollbody'>";
+ if(!$this->force_height) {
+ $s_return .= "\n<tr><td colspan='".$this->cols."' class='scrollbody'><div style='width:".$this->s_width."px;height:".($this->s_height-20)."px;' id='d_scrollbody' class='scrollbody'>";
+ $s_return .= "<table summary='' style='height:100%;width:581px;' cellspacing='0' id='t_scrollbody'>";
+ } else {
+ $s_return .= "\n<tr><td colspan='".$this->cols."' class='scrollbody'><div style='width:".$this->s_width."px;height:".($this->s_height-20)."px;' id='d_scrollbody_onlywidth' class='scrollbody'>";
+ $s_return .= "<table summary='' style='height:100%;width:581px;' cellspacing='0' id='t_scrollbody_onlywidth'>";
+ }
}
$i_alternate=0;
}
$i_alternate=0;
// if fewer than 22 Entries (list not full), print row to fill empty space
//FIXME: Why 22? Isn't the size dynamic
// if fewer than 22 Entries (list not full), print row to fill empty space
//FIXME: Why 22? Isn't the size dynamic
- if($this->_numEntries()<=22){
+# if($this->_numEntries()<=22){
$fill= "";
for ($i= 1; $i <= $this->cols; $i++){
if ($i == $this->cols){
$fill= "";
for ($i= 1; $i <= $this->cols; $i++){
if ($i == $this->cols){
} else {
$fill.= "<td class='list1nohighlight' style='height:100%;'> </td>";
}
} else {
$fill.= "<td class='list1nohighlight' style='height:100%;'> </td>";
}
- }
+ }
$s_return.="\n<tr>$fill";
$s_return.="\n<tr>$fill";
- }
+# }
if($this->i_entriesPerPage == 0) {
$s_return .= "\n</table></div></td>";
}
if($this->i_entriesPerPage == 0) {
$s_return .= "\n</table></div></td>";
}