[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: admin index.php,1.33,1.34
From: |
Bettina Gille <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: admin index.php,1.33,1.34 |
Date: |
Thu, 14 Nov 2002 19:18:41 -0500 |
Update of /cvsroot/phpgroupware/admin
In directory subversions:/tmp/cvs-serv13488
Modified Files:
index.php
Log Message:
use ['phpgw']->template
Index: index.php
===================================================================
RCS file: /cvsroot/phpgroupware/admin/index.php,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -r1.33 -r1.34
*** index.php 4 Nov 2002 00:55:06 -0000 1.33
--- index.php 15 Nov 2002 00:18:38 -0000 1.34
***************
*** 3,14 ****
* phpGroupWare - administration
*
* http://www.phpgroupware.org
*
! * Written by Joseph Engo <address@hidden> *
! * Modified by Stephen Brown <address@hidden> *
! * to distribute admin across the application directories
*
! * --------------------------------------------
*
! * This program is free software; you can redistribute it and/or modify
it *
! * under the terms of the GNU General Public License as published by
the *
! * Free Software Foundation; either version 2 of the License, or (at
your *
! * option) any later version.
*
\**************************************************************************/
/* $Id$ */
--- 3,14 ----
* phpGroupWare - administration
*
* http://www.phpgroupware.org
*
! * Written by coreteam <address@hidden> *
! * & Stephen Brown <address@hidden> *
! * to distribute admin across the application directories
*
! * ------------------------------------------------------
*
! * This program is free software; you can redistribute it and/or modify
it *
! * under the terms of the GNU General Public License as published by the
*
! * Free Software Foundation; either version 2 of the License, or (at
your *
! * option) any later version.
*
\**************************************************************************/
/* $Id$ */
***************
*** 18,49 ****
include('../header.inc.php');
! $GLOBALS['admin_tpl'] = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
! $GLOBALS['admin_tpl']->set_file(
! Array(
! 'admin' => 'index.tpl'
! )
! );
!
! $GLOBALS['admin_tpl']->set_block('admin','list');
! $GLOBALS['admin_tpl']->set_block('admin','app_row');
! $GLOBALS['admin_tpl']->set_block('admin','app_row_noicon');
! $GLOBALS['admin_tpl']->set_block('admin','link_row');
! $GLOBALS['admin_tpl']->set_block('admin','spacer_row');
! $GLOBALS['admin_tpl']->set_var('title',lang('Administration'));
// This func called by the includes to dump a row header
function section_start($appname='',$icon='')
{
! $GLOBALS['admin_tpl']->set_var('app_title',lang($appname));
! $GLOBALS['admin_tpl']->set_var('app_name',$appname);
! $GLOBALS['admin_tpl']->set_var('app_icon',$icon);
if ($icon)
{
! $GLOBALS['admin_tpl']->parse('rows','app_row',True);
}
else
{
!
$GLOBALS['admin_tpl']->parse('rows','app_row_noicon',True);
}
}
--- 18,44 ----
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',lang($appname));
! $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);
}
}
***************
*** 51,62 ****
function section_item($pref_link='',$pref_text='')
{
! $GLOBALS['admin_tpl']->set_var('pref_link',$pref_link);
! $GLOBALS['admin_tpl']->set_var('pref_text',$pref_text);
! $GLOBALS['admin_tpl']->parse('rows','link_row',True);
}
function section_end()
{
! $GLOBALS['admin_tpl']->parse('rows','spacer_row',True);
}
--- 46,57 ----
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);
}
***************
*** 80,84 ****
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array
(
! 'body_data' => $GLOBALS['admin_tpl']->parse('out','list')
));
?>
--- 75,79 ----
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array
(
! 'body_data' => $GLOBALS['phpgw']->template->parse('out','list')
));
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: admin index.php,1.33,1.34,
Bettina Gille <address@hidden> <=