phpgroupware-cvs
[Top][All Lists]
Advanced

[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,





reply via email to

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