index 52eaecce87fb642fae430ec7c3afbf368377b0d6..cd12a5ebdf206bce265b25f4900e6dc206bd33eb 100644 (file)
var $i_currentPage;
var $i_entriesPerPage;
var $i_currentPage;
var $i_entriesPerPage;
+ 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->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;
$s_value = $this->a_entries[$i];
$s_value = $this->a_entries[$i];
-
+ // Alternation of background color
if($i_alternate) $i_alternate=0; else $i_alternate=1;
$s_return .= "\n<tr>";
if($i_alternate) $i_alternate=0; else $i_alternate=1;
$s_return .= "\n<tr>";