X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_divSelectBox.inc;h=dbee8bed455b52efd058542a89f6d72895cf6a7e;hb=5ac46e680e92e8e585e88560985ca46d8211a4b8;hp=a853d16b2d29188889323ed6a1913e9de84610f1;hpb=968c6c580427b6dac9fdf0494479f706b508c880;p=gosa.git
diff --git a/include/class_divSelectBox.inc b/include/class_divSelectBox.inc
index a853d16b2..dbee8bed4 100644
--- a/include/class_divSelectBox.inc
+++ b/include/class_divSelectBox.inc
@@ -7,7 +7,6 @@ class divSelectBox {
var $cols;
// Members for page managment
- var $width= 300;
var $height=200;
// Added php 4 constructor
@@ -17,10 +16,6 @@ class divSelectBox {
$this->cols = 0;
}
- function setWidth($w){
- $this->width=$w;
- }
-
function setHeight($h){
$this->height=$h;
}
@@ -31,15 +26,15 @@ class divSelectBox {
function DrawList(){
$s_return = "";
- $s_return .= "
\n";
- $s_return .= "\n";
- $s_return .= "
\n";
+ $s_return .= "
\n";
+ $s_return .= "
height.";width:100%\">\n";
+ $s_return .= "
height)."px;\">\n";
$s_return .= "
s_summary."' ".
"width='100%' ".
- "height='100%' ".
"cellspacing='0' ".
"style='overflow:scroll; ".
+ "height:".($this->height-2)."px;".
"padding-right:1px; ".
"padding-bottom:2px; ".
"border-left:solid 2px; ".
@@ -70,7 +65,8 @@ class divSelectBox {
/* If divlist is empty, append a single white entry */
if(count($this->a_entries)==0){
- $str.=" |
";
+ $str.=" |
";
return($str);
}
@@ -84,10 +80,10 @@ class divSelectBox {
$i_alternate=1;
}
- $s_return .= "\n";
+ $s_return .= "\n
";
$cnt = 0;
-
+
foreach($s_value as $s_key2 => $s_value2 ){
$this->cols = count($s_value) ;
$cnt++;
@@ -110,11 +106,12 @@ class divSelectBox {
}
$s_return.="\n
";
}
+ $s_return.="\n";
for($i = 0 ; $i < ($this->cols) ; $i ++){
if($i >= ($this->cols-1)){
- $s_return .= " | ";
+ $s_return .= " | ";
}else{
- $s_return .= " | ";
+ $s_return .= " | ";
}
}