X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_divSelectBox.inc;h=4ddc3fba594c3b22bea5bc6edec6c34a082686bf;hb=0adbff1190cf5933e2f48f5c9022496de7bade2e;hp=303c37e1cf97eb5125c15006d059a7759a7eabcb;hpb=6cfec50695f35a64e49f23986cb50eb2d1acf291;p=gosa.git
diff --git a/include/class_divSelectBox.inc b/include/class_divSelectBox.inc
index 303c37e1c..4ddc3fba5 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 .= "
width-18)."px;\">
\n";
- $s_return .= "\n";
- $s_return .= "
height."px;width:".($this->width)."px;\">\n";
+ $s_return .= "
\n";
+ $s_return .= "
height.";width:100%\">\n";
+ $s_return .= "
height)."px;\">\n";
$s_return .= "
s_summary."' ".
- "width='".($this->width-18)."' ".
- "height='".($this->height)."' ".
+ "width='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++;
@@ -104,17 +100,18 @@ class divSelectBox {
$style = " ".$s_value2['attach']." " ;
}
- $s_return .= "\n";
+ $s_return .= "\n | ";
$s_return .= $s_value2['string'];
$s_return .= " | ";
}
$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 .= " | ";
}
}