phpgroupware-cvs
[Top][All Lists]
Advanced

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

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


From: Sigurd Nes
Subject: [Phpgroupware-cvs] phpgwapi/inc class.custom_fields.inc.php
Date: Tue, 09 Jan 2007 08:04:25 +0000

CVSROOT:        /sources/phpgwapi
Module name:    phpgwapi
Changes by:     Sigurd Nes <sigurdne>   07/01/09 08:04:25

Modified files:
        inc            : class.custom_fields.inc.php 

Log message:
        jscalendar

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/class.custom_fields.inc.php?cvsroot=phpgwapi&r1=1.17&r2=1.18

Patches:
Index: class.custom_fields.inc.php
===================================================================
RCS file: /sources/phpgwapi/phpgwapi/inc/class.custom_fields.inc.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- class.custom_fields.inc.php 8 Jan 2007 22:41:01 -0000       1.17
+++ class.custom_fields.inc.php 9 Jan 2007 08:04:25 -0000       1.18
@@ -8,7 +8,7 @@
        * @license http://www.gnu.org/licenses/gpl.html GNU General Public 
License
        * @internal Development of this application was funded by 
http://www.bergen.kommune.no/bbb_/ekstern/
        * @package phpgwapi
-       * @version $Id: class.custom_fields.inc.php,v 1.17 2007/01/08 22:41:01 
sigurdne Exp $
+       * @version $Id: class.custom_fields.inc.php,v 1.18 2007/01/09 08:04:25 
sigurdne Exp $
        */
 
        /**
@@ -1086,13 +1086,6 @@
                                'LB' => 'listbox'
                        );
 
-                       $sep = '/';
-                       $dlarr[strpos($dateformat,'Y')] = 'Y';
-                       $dlarr[strpos($dateformat,'m')] = 'm';
-                       $dlarr[strpos($dateformat,'d')] = 'd';
-                       ksort($dlarr);
-
-                       $dateformat= (implode($sep,$dlarr));
 //_debug_array($values['attributes']);
                        $m=0;
                        for ($i=0;$i<count($values['attributes']);$i++)
@@ -1105,13 +1098,13 @@
                                                $jscal = 
CreateObject('phpgwapi.jscalendar');
                                        }
 
-                                       
$jscal->add_listener('values_attribute_' . 
$values['attributes'][$i]['column_name']);
+                                       
$jscal->add_listener('values_attribute_' . $i);
                                        $values['attributes'][$i]['img_cal']= 
$GLOBALS['phpgw']->common->image('phpgwapi','cal');
                                        
$values['attributes'][$i]['lang_datetitle']= lang('Select date');
 
                                        
if(isset($values['attributes'][$i]['value']) && 
$values['attributes'][$i]['value'])
                                        {
-                                               $timestamp_date= 
mktime(0,0,0,date(m,strtotime($values['attributes'][$i]['value'])),date(d,strtotime($values['attributes'][$i]['value'])),date(y,strtotime($values['attributes'][$i]['value'])));
+                                               $timestamp_date= 
mktime(0,0,0,date('m',strtotime($values['attributes'][$i]['value'])),date('d',strtotime($values['attributes'][$i]['value'])),date('y',strtotime($values['attributes'][$i]['value'])));
                                                
$values['attributes'][$i]['value']      = 
$GLOBALS['phpgw']->common->show_date($timestamp_date,$dateformat);
                                        }
                                }




reply via email to

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