phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: admin index.php,1.35,1.36


From: Bettina Gille <address@hidden>
Subject: [Phpgroupware-cvs] CVS: admin index.php,1.35,1.36
Date: Tue, 22 Apr 2003 21:08:34 -0400

Update of /cvsroot/phpgroupware/admin
In directory subversions:/tmp/cvs-serv28202

Modified Files:
        index.php 
Log Message:
started updating to xslt and rework accounts classes

Index: index.php
===================================================================
RCS file: /cvsroot/phpgroupware/admin/index.php,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -r1.35 -r1.36
*** index.php   27 Mar 2003 11:06:33 -0000      1.35
--- index.php   23 Apr 2003 01:08:31 -0000      1.36
***************
*** 4,8 ****
        * http://www.phpgroupware.org                                           
   *
        * Written by coreteam <address@hidden>                    *
!       *           & Stephen Brown <address@hidden>                        *
        * to distribute admin across the application directories                
   *
        * ------------------------------------------------------                
   *
--- 4,8 ----
        * http://www.phpgroupware.org                                           
   *
        * Written by coreteam <address@hidden>                    *
!       *               & Stephen Brown <address@hidden>                    *
        * to distribute admin across the application directories                
   *
        * ------------------------------------------------------                
   *
***************
*** 14,83 ****
        /* $Id$ */
  
!       $GLOBALS['phpgw_info'] = array();
!       $GLOBALS['phpgw_info']['flags']['currentapp'] = 'admin';
        include('../header.inc.php');
  
!       $GLOBALS['phpgw']->template->set_file(Array('admin' => 'index.tpl'));
! 
!       $GLOBALS['phpgw']->template->set_block('admin','list');
!       $GLOBALS['phpgw']->template->set_block('admin','app_row');
!       $GLOBALS['phpgw']->template->set_block('admin','app_row_noicon');
!       $GLOBALS['phpgw']->template->set_block('admin','link_row');
!       $GLOBALS['phpgw']->template->set_block('admin','spacer_row');
! 
!       $GLOBALS['phpgw']->template->set_var('title',lang('Administration'));
! 
!       // This func called by the includes to dump a row header
!       function section_start($appname='',$icon='')
!       {
!               
$GLOBALS['phpgw']->template->set_var('app_title',$GLOBALS['phpgw_info']['apps'][$appname]['title']);
!               $GLOBALS['phpgw']->template->set_var('app_name',$appname);
!               $GLOBALS['phpgw']->template->set_var('app_icon',$icon);
!               if ($icon)
!               {
!                       
$GLOBALS['phpgw']->template->parse('rows','app_row',True);
!               }
!               else
!               {
!                       
$GLOBALS['phpgw']->template->parse('rows','app_row_noicon',True);
!               }
!       }
! 
!       function section_item($pref_link='',$pref_text='')
!       {
!               $GLOBALS['phpgw']->template->set_var('pref_link',$pref_link);
!               $GLOBALS['phpgw']->template->set_var('pref_text',$pref_text);
!               $GLOBALS['phpgw']->template->parse('rows','link_row',True);
!       }
! 
!       function section_end()
!       {
!               $GLOBALS['phpgw']->template->parse('rows','spacer_row',True);
!       }
! 
!       function display_section($appname,$file,$file2=False)
!       {
!               if ($file2)
!               {
!                       $file = $file2;
!               }
!               if(is_array($file))
!               {
!                       section_start($appname,
!                               
$GLOBALS['phpgw']->common->image($appname,'navbar','',True)
!                       );
! 
!                       while(is_array($file) && list($text,$url) = each($file))
!                       {
!                               section_item($url,lang($text));
!                       }
!                       section_end();
!               }
!       }
! 
!       $GLOBALS['phpgw']->hooks->process('admin');
!       $GLOBALS['phpgw']->xslttpl->set_var('phpgw',array
!       (
!               'body_data' => $GLOBALS['phpgw']->template->parse('out','list')
!       ));
  ?>
--- 14,24 ----
        /* $Id$ */
  
!       $GLOBALS['phpgw_info']['flags'] = array
!       (
!               'currentapp' => 'admin'
!       );
        include('../header.inc.php');
  
!       header('Location: '. 
$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uimainscreen.mainscreen'));
!       exit;
  ?>





reply via email to

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