[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: notes/inc class.ui.inc.php,1.37,1.38
From: |
Bettina Gille <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: notes/inc class.ui.inc.php,1.37,1.38 |
Date: |
Thu, 03 Oct 2002 19:15:47 -0400 |
Update of /cvsroot/phpgroupware/notes/inc
In directory subversions:/tmp/cvs-serv686/inc
Modified Files:
class.ui.inc.php
Log Message:
update to use xslt
Index: class.ui.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/notes/inc/class.ui.inc.php,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -r1.37 -r1.38
*** class.ui.inc.php 3 Oct 2002 04:12:15 -0000 1.37
--- class.ui.inc.php 3 Oct 2002 23:15:45 -0000 1.38
***************
*** 36,45 ****
$this->nextmatchs =
CreateObject('phpgwapi.nextmatchs');
$this->account =
$GLOBALS['phpgw_info']['user']['account_id'];
- $this->t =
$GLOBALS['phpgw']->template;
- $this->tpl =
CreateObject('phpgwapi.xslttemplates',$GLOBALS['phpgw']->common->get_tpl_dir('notes'));
- if (!$this->tpl)
- {
- echo 'creating tpl failed';
- }
$this->grants =
$GLOBALS['phpgw']->acl->get_grants('notes');
--- 36,39 ----
***************
*** 236,240 ****
$this->display_app_header();
!
$this->tpl->add_file(array('list',$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default')
. SEP . 'app_header',
$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default') . SEP .
'cat_filter',
$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default') . SEP .
'filter_select',
--- 230,234 ----
$this->display_app_header();
!
$GLOBALS['phpgw']->xslttpl->add_file(array('list',$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default')
. SEP . 'app_header',
$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default') . SEP .
'cat_filter',
$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default') . SEP .
'filter_select',
***************
*** 305,314 ****
//_debug_array($data);
! $this->tpl->set_var('list',$data);
//echo $this->tpl->xml_parse(); exit;
//echo $this->tpl->xsl_parse(); exit;
! $this->tpl->pparse();
$this->save_sessiondata();
}
--- 299,308 ----
//_debug_array($data);
! $GLOBALS['phpgw']->xslttpl->set_var('list',$data);
//echo $this->tpl->xml_parse(); exit;
//echo $this->tpl->xsl_parse(); exit;
! $GLOBALS['phpgw']->xslttpl->pparse();
$this->save_sessiondata();
}
***************
*** 321,325 ****
$this->display_app_header();
!
$this->tpl->add_file(array('form',$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default')
. SEP . 'app_header',
$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default') . SEP .
'cat_select'));
--- 315,319 ----
$this->display_app_header();
!
$GLOBALS['phpgw']->xslttpl->add_file(array('form',$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default')
. SEP . 'app_header',
$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default') . SEP .
'cat_select'));
***************
*** 373,379 ****
}
! $this->tpl->set_var('form_data',$data);
!
! $this->tpl->pparse();
}
--- 367,372 ----
}
! $GLOBALS['phpgw']->xslttpl->set_var('form_data',$data);
! $GLOBALS['phpgw']->xslttpl->pparse();
}
***************
*** 452,456 ****
$this->display_app_header();
!
$this->tpl->add_file(array($GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default')
. SEP . 'app_delete',
$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default') . SEP .
'app_header'));
--- 445,449 ----
$this->display_app_header();
!
$GLOBALS['phpgw']->xslttpl->add_file(array($GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default')
. SEP . 'app_delete',
$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default') . SEP .
'app_header'));
***************
*** 468,474 ****
);
! $this->tpl->set_var('delete',$data);
!
! $this->tpl->pparse();
}
--- 461,466 ----
);
! $GLOBALS['phpgw']->xslttpl->set_var('delete',$data);
! $GLOBALS['phpgw']->xslttpl->pparse();
}
***************
*** 478,482 ****
$this->display_app_header();
!
$this->tpl->add_file(array('view',$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default')
. SEP . 'app_header'));
$note = $this->bo->read_single($note_id);
--- 470,474 ----
$this->display_app_header();
!
$GLOBALS['phpgw']->xslttpl->add_file(array('view',$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi','default')
. SEP . 'app_header'));
$note = $this->bo->read_single($note_id);
***************
*** 498,504 ****
);
! $this->tpl->set_var('view_data',$data);
!
! $this->tpl->pparse();
}
}
--- 490,495 ----
);
! $GLOBALS['phpgw']->xslttpl->set_var('view_data',$data);
! $GLOBALS['phpgw']->xslttpl->pparse();
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: notes/inc class.ui.inc.php,1.37,1.38,
Bettina Gille <address@hidden> <=