phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: etemplate/inc class.sbox2.inc.php,1.3,1.4 class.


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: etemplate/inc class.sbox2.inc.php,1.3,1.4 class.uietemplate.inc.php,1.8,1.9
Date: Fri, 07 Jun 2002 17:26:08 -0400

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

Modified Files:
        class.uietemplate.inc.php 
Added Files:
        class.sbox2.inc.php 
Log Message:
this enables the eTemplates to run in 0.9.14 as well as HEAD


Index: class.uietemplate.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/inc/class.uietemplate.inc.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** class.uietemplate.inc.php   5 Jun 2002 21:34:55 -0000       1.8
--- class.uietemplate.inc.php   7 Jun 2002 21:26:05 -0000       1.9
***************
*** 49,53 ****
                        $this->boetemplate();
                        $this->html = CreateObject('etemplate.html');   // 
should  be in the api (older version in infolog)
!                       $this->sbox = CreateObject('phpgwapi.sbox2');   // 
older version is in the api
  
                        if (!$this->read($name,$template,$lang,$group,$version))
--- 49,53 ----
                        $this->boetemplate();
                        $this->html = CreateObject('etemplate.html');   // 
should  be in the api (older version in infolog)
!                       $this->sbox = CreateObject('etemplate.sbox2');  // 
older version is in the api
  
                        if (!$this->read($name,$template,$lang,$group,$version))
***************
*** 106,112 ****
                        ));
  
!                       
$GLOBALS['phpgw']->template->set_var('phpgw_body',$this->html->nextMatchStyles($this->style)."\n\n".
 // so they get included once
                                
$this->html->form($this->show($content,$sel_options,$readonlys,'exec'),
!                                       array('etemplate_exec_id' => 
$id),'/index.php?menuaction=etemplate.etemplate.process_exec'));
                }
  
--- 106,123 ----
                        ));
  
!                       $html = 
$this->html->nextMatchStyles($this->style)."\n\n". // so they get included once
                                
$this->html->form($this->show($content,$sel_options,$readonlys,'exec'),
!                                       array('etemplate_exec_id' => 
$id),'/index.php?menuaction=etemplate.etemplate.process_exec');
! 
!                       list($a,$b,$c,$d) = 
explode('.',$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']);
!                       //echo "Version: $a.$b.$c.$d\n";
!                       if ($a <= 0 && $b <= 9 && $c <= 14)
!                       {
!                               echo parse_navbar() . $html;
!                       }
!                       else
!                       {
!                               
$GLOBALS['phpgw']->template->set_var('phpgw_body',$html);
!                       }
                }
  




reply via email to

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