Code

Added width=100% for divSelect
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Nov 2005 11:25:13 +0000 (11:25 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Nov 2005 11:25:13 +0000 (11:25 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1922 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_divSelectBox.inc
plugins/gofax/faxaccount/class_gofaxAccount.inc
plugins/gofax/faxaccount/lists.tpl

index a853d16b2d29188889323ed6a1913e9de84610f1..4e4d45088b5bc1d84837e4e8db8f00741c62c0be 100644 (file)
@@ -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;
   }
@@ -32,8 +27,8 @@ class divSelectBox {
   function DrawList(){
     $s_return  = "";
     $s_return .= "<div style=\"height:2px; overflow:hidden;background:#888888;width:100%;margin-right:18px;\"></div>\n";
-    $s_return .= "<div style=\"padding-right:1px;padding-bottom:2px;\" height='100%' width='100%'>\n";
-    $s_return .= "<div style=\"overflow: auto;height:100%;width:100%;\">\n";
+    $s_return .= "<div style=\"padding-right:1px;padding-bottom:2px;;\" height='".$this->height."' width='100%'>\n";
+    $s_return .= "<div style=\"overflow: auto;width:100%;height:".$this->height."px;\">\n";
     $s_return .= "<table ".
                     "summary='".$this->s_summary."' ".
                     "width='100%' ".
@@ -75,6 +70,7 @@ class divSelectBox {
     }
 
     $i = $this->_numEntries();
+    for($e = 0 ; $e < 10 ; $e ++)
     foreach($this->a_entries as $s_key => $s_value){
       $i--;
 
@@ -87,7 +83,7 @@ class divSelectBox {
       $s_return .= "\n<tr>";
 
       $cnt = 0;                                        
-
+    
       foreach($s_value as $s_key2 => $s_value2 ){                              
         $this->cols = count($s_value) ;                                                
         $cnt++;                                        
index 24c94a4848a79e00b6c1fbf9d15665e4807cb219..acdc7d20b571bd39698273f05a1fce873a205a42 100644 (file)
@@ -411,8 +411,7 @@ class gofaxAccount extends plugin
 
       /* Create our divselect box */
       $divSel = new divSelectBox("divSelectPredefined");
-      $divSel->setHeight(150);
-      $divSel->setWidth(150);
+      $divSel->setHeight(296);
 
       /* NEW LIST MANAGMENT
        * We also need to search for the departments
@@ -499,8 +498,7 @@ class gofaxAccount extends plugin
 
       /*Create DivSel*/
       $divSel = new divSelectBox("divSelectPredefined");
-      $divSel->setHeight(300);
-      $divSel->setWidth(350);
+      $divSel->setHeight(296);
 
       /* NEW LIST MANAGMENT
        * We also need to search for the departments
index 08adb66c3701612256cec21e5ba01d1eb4b301f6..6359718a0da53196bd72ad0cf63becf496e4ad6e 100644 (file)
@@ -17,7 +17,7 @@
        <b>{t}List of predefined blocklists{/t}</b><br>
        <table height="300" style="width:100%">
                <tr>
-                       <td>
+                       <td valign="top">
                                        {$divSelectPredefined}
                        </td>
                </tr>