phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: phpgwapi/inc class.listbox.inc.php,1.6,1.7 class


From: Bettina Gille <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.listbox.inc.php,1.6,1.7 class.portalbox.inc.php,1.13,1.14
Date: Sat, 05 Oct 2002 17:59:30 -0400

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv31884

Modified Files:
        class.listbox.inc.php class.portalbox.inc.php 
Log Message:
update portalbox functions

Index: class.listbox.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.listbox.inc.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** class.listbox.inc.php       3 Oct 2002 23:14:38 -0000       1.6
--- class.listbox.inc.php       5 Oct 2002 21:59:27 -0000       1.7
***************
*** 58,62 ****
                        }
                        $this->portalbox($param['title']);
!                       $this->start_template();
                }
  
--- 58,62 ----
                        }
                        $this->portalbox($param['title']);
!                       //$this->start_template();
                }
  
***************
*** 67,70 ****
--- 67,79 ----
                function draw($extra_data='')
                {
+                       if ($extra_data)
+                       {
+                               $this->start_template(True);
+                       }
+                       else
+                       {
+                               $this->start_template();
+                       }
+ 
                        if(count($this->data))
                        {
***************
*** 80,83 ****
--- 89,93 ----
                                $this->output['listbox'] = $var;
                        }
+ 
                        $this->set_internal($extra_data);
                        return $this->draw_box();

Index: class.portalbox.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.portalbox.inc.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** class.portalbox.inc.php     3 Oct 2002 23:14:38 -0000       1.13
--- class.portalbox.inc.php     5 Oct 2002 21:59:27 -0000       1.14
***************
*** 27,30 ****
--- 27,31 ----
                //Set up the Object, reserving memory space for variables
  
+               var $app_name;
                var $outerwidth;
                var $width;
***************
*** 76,88 ****
                This is the constructor for the object.
                */
!               function portalbox($title='')
                {
                        $this->setvar('title',$title);
                        // echo 'After SetVar Title = 
'.$this->getvar('title')."<br>\n";
                }
  
!               function start_template()
                {
!                       $GLOBALS['phpgw']->xslttpl->add_file(array('portal'));
  
                        $this->output = array
--- 77,97 ----
                This is the constructor for the object.
                */
!               function portalbox($title = '')
                {
                        $this->setvar('title',$title);
+ 
                        // echo 'After SetVar Title = 
'.$this->getvar('title')."<br>\n";
                }
  
!               function start_template($extra = False)
                {
!                       if ($extra)
!                       {
!                               
$GLOBALS['phpgw']->xslttpl->add_file(array('portal',$GLOBALS['phpgw']->common->get_tpl_dir($this->getvar('app_name'),'default')
 . SEP . 'extrabox'));
!                       }
!                       else
!                       {
!                               
$GLOBALS['phpgw']->xslttpl->add_file(array('portal'));
!                       }
  
                        $this->output = array
***************
*** 112,119 ****
                        }
  
!                       $this->output['extrabox'] = array
!                       (
!                               'data' => $data
!                       );
                }
  
--- 121,125 ----
                        }
  
!                       $this->output['extrabox'] = $data;
                }
  





reply via email to

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