phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgwapi/inc class.ui_tools.inc.php


From: Dave Hall
Subject: [Phpgroupware-cvs] phpgwapi/inc class.ui_tools.inc.php
Date: Mon, 27 Nov 2006 05:54:31 +0000

CVSROOT:        /sources/phpgwapi
Module name:    phpgwapi
Changes by:     Dave Hall <skwashd>     06/11/27 05:54:31

Modified files:
        inc            : class.ui_tools.inc.php 

Log message:
        handle date better

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/class.ui_tools.inc.php?cvsroot=phpgwapi&r1=1.1&r2=1.2

Patches:
Index: class.ui_tools.inc.php
===================================================================
RCS file: /sources/phpgwapi/phpgwapi/inc/class.ui_tools.inc.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- class.ui_tools.inc.php      14 Oct 2006 05:42:49 -0000      1.1
+++ class.ui_tools.inc.php      27 Nov 2006 05:54:31 -0000      1.2
@@ -59,11 +59,19 @@
 
        function date($id, $label, $dateint = 0, $help = '', $class = '', $name 
= '', $disabled = false)
        {
+               if ( !isset($GLOBALS['phpgw']->jscal) || 
!is_object($GLOBALS['phpgw']->jscal) )
+               {
+                       $GLOBALS['phpgw']->jscal = 
createObject('phpgwapi.jscalendar');
+               }
+
                $datestr = 
date($GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat'], 
$dateint);
                $elm = $this->textbox($id, $label, $datestr, $help, $class, 
$name, $disabled);
                $elm['lang_trigger'] = lang('calendar popup');
                $elm['type'] = 'date';
                $elm['img_trigger'] = 
$GLOBALS['phpgw']->common->image('phpgwapi', 'cal', '.png');
+
+               $GLOBALS['phpgw']->jscal->input($id);
+
                return $elm;
        }
        




reply via email to

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