[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: preferences index.php,1.29,1.30
From: |
Bettina Gille <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: preferences index.php,1.29,1.30 |
Date: |
Thu, 14 Nov 2002 19:18:57 -0500 |
Update of /cvsroot/phpgroupware/preferences
In directory subversions:/tmp/cvs-serv13875
Modified Files:
index.php
Log Message:
use ['phpgw']->template
Index: index.php
===================================================================
RCS file: /cvsroot/phpgroupware/preferences/index.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -r1.29 -r1.30
*** index.php 4 Nov 2002 00:55:07 -0000 1.29
--- index.php 15 Nov 2002 00:18:55 -0000 1.30
***************
*** 16,32 ****
include('../header.inc.php');
! $GLOBALS['pref_tpl'] = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
! $templates = Array
! (
! 'pref' => 'index.tpl'
! );
!
! $GLOBALS['pref_tpl']->set_file($templates);
!
! $GLOBALS['pref_tpl']->set_block('pref','list');
! $GLOBALS['pref_tpl']->set_block('pref','app_row');
! $GLOBALS['pref_tpl']->set_block('pref','app_row_noicon');
! $GLOBALS['pref_tpl']->set_block('pref','link_row');
! $GLOBALS['pref_tpl']->set_block('pref','spacer_row');
if ($GLOBALS['phpgw']->acl->check('run',1,'admin'))
--- 16,26 ----
include('../header.inc.php');
! $GLOBALS['phpgw']->template->set_file(Array('pref' => 'index.tpl'));
!
! $GLOBALS['phpgw']->template->set_block('pref','list');
! $GLOBALS['phpgw']->template->set_block('pref','app_row');
! $GLOBALS['phpgw']->template->set_block('pref','app_row_noicon');
! $GLOBALS['phpgw']->template->set_block('pref','link_row');
! $GLOBALS['phpgw']->template->set_block('pref','spacer_row');
if ($GLOBALS['phpgw']->acl->check('run',1,'admin'))
***************
*** 75,79 ****
case 'forced': $selected = 2; break;
}
!
$GLOBALS['pref_tpl']->set_var('tabs',$GLOBALS['phpgw']->common->create_tabs($tabs,$selected));
}
--- 69,73 ----
case 'forced': $selected = 2; break;
}
!
$GLOBALS['phpgw']->template->set_var('tabs',$GLOBALS['phpgw']->common->create_tabs($tabs,$selected));
}
***************
*** 81,97 ****
function section_start($appname='',$icon='')
{
!
$GLOBALS['pref_tpl']->set_var('icon_backcolor',$GLOBALS['phpgw_info']['theme']['row_off']);
! //
$GLOBALS['pref_tpl']->set_var('link_backcolor',$GLOBALS['phpgw_info']['theme']['row_off']);
! $GLOBALS['pref_tpl']->set_var('app_name',$appname);
! $GLOBALS['pref_tpl']->set_var('app_title',lang($appname));
! $GLOBALS['pref_tpl']->set_var('app_icon',$icon);
if ($icon)
{
! $GLOBALS['pref_tpl']->parse('rows','app_row',True);
}
else
{
!
$GLOBALS['pref_tpl']->parse('rows','app_row_noicon',True);
}
}
--- 75,89 ----
function section_start($appname='',$icon='')
{
! $GLOBALS['phpgw']->template->set_var('app_name',$appname);
!
$GLOBALS['phpgw']->template->set_var('app_title',lang($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);
}
}
***************
*** 99,103 ****
function section_item($pref_link='',$pref_text='')
{
! $GLOBALS['pref_tpl']->set_var('pref_link',$pref_link);
if (strtolower($pref_text) == 'grant access' &&
$GLOBALS['phpgw_info']['server']['deny_user_grants_access'])
--- 91,95 ----
function section_item($pref_link='',$pref_text='')
{
! $GLOBALS['phpgw']->template->set_var('pref_link',$pref_link);
if (strtolower($pref_text) == 'grant access' &&
$GLOBALS['phpgw_info']['server']['deny_user_grants_access'])
***************
*** 107,119 ****
else
{
! $GLOBALS['pref_tpl']->set_var('pref_text',$pref_text);
}
! $GLOBALS['pref_tpl']->parse('rows','link_row',True);
}
function section_end()
{
! $GLOBALS['pref_tpl']->parse('rows','spacer_row',True);
}
--- 99,111 ----
else
{
!
$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);
}
***************
*** 131,135 ****
$GLOBALS['phpgw']->hooks->process('preferences',array('preferences'));
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array(
! 'body_data' => $GLOBALS['pref_tpl']->fp('out','list')
));
?>
--- 123,127 ----
$GLOBALS['phpgw']->hooks->process('preferences',array('preferences'));
$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: preferences index.php,1.29,1.30,
Bettina Gille <address@hidden> <=