phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: etemplate/inc class.date_widget.inc.php,1.8,1.9


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: etemplate/inc class.date_widget.inc.php,1.8,1.9 class.datefield_widget.inc.php,1.7,NONE
Date: Sat, 12 Oct 2002 18:34:52 -0400

Update of /cvsroot/phpgroupware/etemplate/inc
In directory subversions:/tmp/cvs-serv22931

Modified Files:
        class.date_widget.inc.php 
Removed Files:
        class.datefield_widget.inc.php 
Log Message:
date_widget has now an option to show an input for the year instead a 
select-box, datefield_widget is no longer used

Index: class.date_widget.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/inc/class.date_widget.inc.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** class.date_widget.inc.php   12 Oct 2002 16:39:10 -0000      1.8
--- class.date_widget.inc.php   12 Oct 2002 22:34:50 -0000      1.9
***************
*** 14,20 ****
  
        /*!
!       @class datefield_widget
        @author ralfbecker
!       @abstract widget that reads a date
        @discussion This widget is independent of the UI as it only uses 
etemplate-widgets and has therefor no render-function
        */
--- 14,21 ----
  
        /*!
!       @class date_widget
        @author ralfbecker
!       @abstract widget that reads a date 
!       @param Options/$cell['size'] = $format[,$year_no_select], $format: 
''=timestamp or eg. 'Y-m-d' for 2002-12-31
        @discussion This widget is independent of the UI as it only uses 
etemplate-widgets and has therefor no render-function
        */
***************
*** 83,94 ****
                        $tpl->init('*** generated fields for 
date','','',0,'',0,0);     // make an empty template
  
!                       $fields = array('Y' => 'year', 'm' => 'month', 'd' => 
'day');
                        $row = array();
                        for ($n=0; $n < 3; ++$n)
                        {
                                $dcell = $tpl->empty_cell();
!                               $dcell['type'] = 'select-'.$fields[$format[$n]];
                                $dcell['name'] = $format[$n];
!                               $dcell['help'] = lang($fields[$format[$n]]).': 
'.$cell['help']; // note: no lang on help, already done
                                $dcell['no_lang'] = True;
                                $row[$tpl->num2chrs($n)] = &$dcell;
--- 84,104 ----
                        $tpl->init('*** generated fields for 
date','','',0,'',0,0);     // make an empty template
  
!                       $fields = array(
!                               'Y' => ($options ? 'int' : 'select-year'),      
// if options set, show an int-field
!                               'm' => 'select-month',
!                               'd' => 'select-day'
!                       );
!                       $help = array(
!                               'Y' => 'Year',
!                               'm' => 'Month',
!                               'd' => 'Day'
!                       );
                        $row = array();
                        for ($n=0; $n < 3; ++$n)
                        {
                                $dcell = $tpl->empty_cell();
!                               $dcell['type'] = $fields[$format[$n]];
                                $dcell['name'] = $format[$n];
!                               $dcell['help'] = lang($help[$format[$n]]).': 
'.$cell['help'];   // note: no lang on help, already done
                                $dcell['no_lang'] = True;
                                $row[$tpl->num2chrs($n)] = &$dcell;

--- class.datefield_widget.inc.php DELETED ---





reply via email to

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