From: hickert Date: Fri, 11 Nov 2005 06:32:15 +0000 (+0000) Subject: Some style changes for divSelect. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e2a5aacf9b5621c3ec5a1badc983f5eaecfe4b2c;p=gosa.git Some style changes for divSelect. Scrolling tested in IE 6.0, firefox & konqueror git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1910 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_divSelectBox.inc b/include/class_divSelectBox.inc index 8942e96c9..14ffd0c24 100644 --- a/include/class_divSelectBox.inc +++ b/include/class_divSelectBox.inc @@ -3,33 +3,18 @@ class divSelectBox { var $a_entries; - var $a_header; - var $b_displayPageNums; var $summary; var $cols; // Members for page managment - var $i_currentPage; - var $i_entriesPerPage; - var $width= 300; var $height=200; // Added php 4 constructor function divSelectBox(){ - - $this->i_currentPage = 0; - $this->i_entriesPerPage = 10; $this->s_summary = ""; $this->a_entries = array(); - $this->a_header = array(); - $this->b_displayPageNums= true; $this->cols = 0; - - } - - function __destruct(){ - } function setWidth($w){ @@ -45,20 +30,24 @@ class divSelectBox { } function DrawList(){ - $s_return = " -
". - "\n
height."px;width:".($this->width)."px;\">"; - $s_return.= ""; - + $s_return = ""; + $s_return .= "
width-18)."px;\">
\n"; + $s_return .= "
\n"; + $s_return .= "
height."px;width:".($this->width)."px;\">\n"; + $s_return .= "
\n"; $s_return.=$this->_generatePage(); $s_return.= "
"; - return ($s_return); } @@ -76,16 +65,11 @@ class divSelectBox { $s_value = ""; $s_key = ""; $s_return = ""; - $i_alternate=0; /* If divlist is empty, append a single white entry */ if(count($this->a_entries)==0){ - $str = ""; - for($i = 0 ; $i < count($this->a_header[0]); $i++){ - $str.=" "; - } - $str .=""; + $str.=" "; return($str); } @@ -104,7 +88,6 @@ class divSelectBox { $cnt = 0; foreach($s_value as $s_key2 => $s_value2 ){ - $this->cols = count($s_value) ; $cnt++; @@ -124,9 +107,8 @@ class divSelectBox { $s_return .= $s_value2['string']; $s_return .= ""; } - + $s_return.="\n"; } - $s_return.=""; for($i = 0 ; $i < ($this->cols) ; $i ++){ if($i >= ($this->cols-1)){ $s_return .= "";