phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: etemplate/inc class.uietemplate.inc.php,1.30,1.3


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: etemplate/inc class.uietemplate.inc.php,1.30,1.31
Date: Sun, 29 Sep 2002 12:35:57 -0400

Update of /cvsroot/phpgroupware/etemplate/inc
In directory subversions:/tmp/cvs-serv15121

Modified Files:
        class.uietemplate.inc.php 
Log Message:
added overflow handling via <div style="overflow: $overflow"> to etemplate, but 
it is very buggy and inconsistent implemented in the several browsers so i cant 
recomand using it

Index: class.uietemplate.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/inc/class.uietemplate.inc.php,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -r1.30 -r1.31
*** class.uietemplate.inc.php   29 Sep 2002 13:00:58 -0000      1.30
--- class.uietemplate.inc.php   29 Sep 2002 16:35:54 -0000      1.31
***************
*** 110,113 ****
--- 110,118 ----
                                        
'/etemplate/process_exec.php','','eTemplate',$GLOBALS['phpgw_info']['etemplate']['form_options']);
  
+                       list($width,$height,,,,,$overflow) = 
explode(',',$this->size);
+                       if ($overflow)
+                       {
+                               $html = 
$this->html->div($html,'STYLE="'.($width?"width: $width; 
":'').($height?"height: $height; ":'')."overflow: $overflow;\"");
+                       }
                        $id = $this->save_appsession($this->as_array(1) + array(
                                'readonlys' => $readonlys,
***************
*** 304,312 ****
                        $html = 
$this->html->table($rows,$this->html->formatOptions($this->size,'WIDTH,HEIGHT,BORDER,CLASS,CELLSPACING,CELLPADDING'));
  
                        list($width,$height,,,,,$overflow) = 
explode(',',$this->size);
                        if (!empty($overflow)) {
                                $div_style=' STYLE="'.($width?"width: $width; 
":'').($height ? "height: $height; ":'')."overflow: $overflow\"";
                                $html = $this->html->div($html,$div_style);
!                       }
                        return "\n\n<!-- BEGIN $this->name 
-->\n$style\n".$html."<!-- END $this->name -->\n\n";
                }
--- 309,318 ----
                        $html = 
$this->html->table($rows,$this->html->formatOptions($this->size,'WIDTH,HEIGHT,BORDER,CLASS,CELLSPACING,CELLPADDING'));
  
+                       /* does NOT work with mozilla: shows nothing if a div 
is inside a form
                        list($width,$height,,,,,$overflow) = 
explode(',',$this->size);
                        if (!empty($overflow)) {
                                $div_style=' STYLE="'.($width?"width: $width; 
":'').($height ? "height: $height; ":'')."overflow: $overflow\"";
                                $html = $this->html->div($html,$div_style);
!                       }*/
                        return "\n\n<!-- BEGIN $this->name 
-->\n$style\n".$html."<!-- END $this->name -->\n\n";
                }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]