phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: wcm/inc class.uipage.inc.php,1.5,1.6


From: Miles Lott <address@hidden>
Subject: [Phpgroupware-cvs] CVS: wcm/inc class.uipage.inc.php,1.5,1.6
Date: Fri, 08 Feb 2002 10:23:13 -0500

Update of /cvsroot/phpgroupware/wcm/inc
In directory subversions:/tmp/cvs-serv17353/inc

Modified Files:
        class.uipage.inc.php 
Log Message:
Add a mock page preview function;  Need to now work on actually building the
page



Index: class.uipage.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/wcm/inc/class.uipage.inc.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** class.uipage.inc.php        4 Feb 2002 02:32:51 -0000       1.5
--- class.uipage.inc.php        8 Feb 2002 15:23:10 -0000       1.6
***************
*** 16,19 ****
--- 16,20 ----
                var $public_functions = array(
                        'index'  => True,
+                       'view'   => True,
                        'edit'   => True,
                        'add'    => True,
***************
*** 158,161 ****
--- 159,163 ----
                                
$this->nextmatchs->show_sort_order($this->sort,'page_security',$this->order,'/index.php',lang('Security'),'&menuaction=wcm.uipage.index'));
                        
$GLOBALS['phpgw']->template->set_var('lang_default',lang('Default'));
+                       
$GLOBALS['phpgw']->template->set_var('lang_view',lang('View'));
                        
$GLOBALS['phpgw']->template->set_var('lang_edit',lang('Edit'));
                        
$GLOBALS['phpgw']->template->set_var('lang_delete',lang('Delete'));
***************
*** 174,177 ****
--- 176,182 ----
                                ));
  
+                               
$GLOBALS['phpgw']->template->set_var('view',$GLOBALS['phpgw']->link('/index.php','menuaction=wcm.uipage.view&page_id='
 . $page_id));
+                               
$GLOBALS['phpgw']->template->set_var('lang_view_entry',lang('View'));
+ 
                                
$GLOBALS['phpgw']->template->set_var('edit',$GLOBALS['phpgw']->link('/index.php','menuaction=wcm.uipage.edit&page_id='
 . $page_id));
                                
$GLOBALS['phpgw']->template->set_var('lang_edit_entry',lang('Edit'));
***************
*** 184,187 ****
--- 189,231 ----
                        
$GLOBALS['phpgw']->template->parse('out','page_list_t',True);
                        $GLOBALS['phpgw']->template->p('out');
+               }
+ 
+               function view()
+               {
+                       $GLOBALS['phpgw_info']['flags']['nofooter'] = True;
+ 
+                       //$wcm = CreateObject('wcm.bowcm','phpgw');
+ 
+                       define('SITE_ROOT', PHPGW_SERVER_ROOT . SEP . 'wcm' . 
SEP . 'website' . SEP . 'templates');
+                       $GLOBALS['phpgw']->template = 
CreateObject('phpgwapi.Template',SITE_ROOT);
+ 
+                       $GLOBALS['phpgw']->template->set_file(array('frame' => 
'frame.tpl'));
+                       
$GLOBALS['phpgw']->template->set_block('frame','framing_table_start','framing_table_start');
+                       
$GLOBALS['phpgw']->template->set_block('frame','framing_table_end','framing_table_end');
+                       
$GLOBALS['phpgw']->template->set_block('frame','left_start','left_start');
+                       
$GLOBALS['phpgw']->template->set_block('frame','left_end','left_end');
+                       
$GLOBALS['phpgw']->template->set_block('frame','mid_start','mid_start');
+                       
$GLOBALS['phpgw']->template->set_block('frame','mid_end','mid_end');
+                       
$GLOBALS['phpgw']->template->set_block('frame','right_start','right_start');
+                       
$GLOBALS['phpgw']->template->set_block('frame','right_end','right_end');
+ 
+                       /* check expiration of each page and element */
+ 
+                       
$GLOBALS['phpgw']->template->set_var('left_content','LEFT');
+                       
$GLOBALS['phpgw']->template->set_var('mid_content','MIDDLE');
+                       
$GLOBALS['phpgw']->template->set_var('right_content','RIGHT');
+ 
+                       /* parse an html header template here */
+                       echo '
+ <html>
+ <head>
+ </head>
+ ';
+ 
+                       $GLOBALS['phpgw']->template->pfp('out','frame');
+ 
+                       /* parse an html footer template here */
+                       echo '
+ </html>';
                }
  




reply via email to

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