X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_divSelectBox.inc;h=4ddc3fba594c3b22bea5bc6edec6c34a082686bf;hb=f1714ac56cc41319519c97c1ab7749d4d8a637c3;hp=14ffd0c244c72cd9b8f518f3df5c79c144e124ac;hpb=e2a5aacf9b5621c3ec5a1badc983f5eaecfe4b2c;p=gosa.git
diff --git a/include/class_divSelectBox.inc b/include/class_divSelectBox.inc
index 14ffd0c24..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; ".
@@ -66,10 +61,12 @@ class divSelectBox {
$s_key = "";
$s_return = "";
$i_alternate=0;
+ $str = "";
/* If divlist is empty, append a single white entry */
if(count($this->a_entries)==0){
- $str.=" |
";
+ $str.=" |
";
return($str);
}
@@ -83,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++;
@@ -103,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 .= " | ";
}
}