[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: etemplate/inc class.tab_widget.inc.php,1.9,1.10
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: etemplate/inc class.tab_widget.inc.php,1.9,1.10 |
Date: |
Sat, 05 Oct 2002 06:39:45 -0400 |
Update of /cvsroot/phpgroupware/etemplate/inc
In directory subversions:/tmp/cvs-serv16806
Modified Files:
class.tab_widget.inc.php
Log Message:
allow to write only a relative eTemplate-name for each tab:
relative means it contains no '.' and it will then be prefixed with the name of
tpl it is used in (plus a '.')
eg. tpl-name 'etemplate.tab_widget.test' tab-names 'work|privat|note' will
expand to 'etemplate.tab_widget.test.work', ...
Index: class.tab_widget.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/inc/class.tab_widget.inc.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** class.tab_widget.inc.php 1 Oct 2002 18:26:30 -0000 1.9
--- class.tab_widget.inc.php 5 Oct 2002 10:39:41 -0000 1.10
***************
*** 47,50 ****
--- 47,54 ----
while (list($k,$name) = each($names))
{
+ if (!strstr($name,'.'))
+ {
+ $name = $names[$k] = $tmpl->name . '.'
. $name;
+ }
$tcell = $tabs->empty_cell();
if ($extension_data == $name)
***************
*** 61,65 ****
}
$tcell['type'] = 'template';
! $tcell['size'] =
$cell['name']/*form_name*/.'['.$name.']';
$value[$name] = array(
'name' => $name,
--- 65,69 ----
}
$tcell['type'] = 'template';
! $tcell['size'] = $cell['name'].'['.$name.']';
$value[$name] = array(
'name' => $name,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: etemplate/inc class.tab_widget.inc.php,1.9,1.10,
Ralf Becker <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: etemplate/templates/default tab_widget.test.xet,1.1,1.2
- Next by Date:
[Phpgroupware-cvs] CVS: phpgwapi/templates/default cat_filter.xsl,1.4,1.5 portal.xsl,1.3,1.4
- Previous by thread:
[Phpgroupware-cvs] CVS: etemplate/templates/default tab_widget.test.xet,1.1,1.2
- Next by thread:
[Phpgroupware-cvs] CVS: phpgwapi/templates/default cat_filter.xsl,1.4,1.5 portal.xsl,1.3,1.4
- Index(es):