[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: etemplate/inc class.date_widget.inc.php,1.7,1.8
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: etemplate/inc class.date_widget.inc.php,1.7,1.8 |
Date: |
Sat, 12 Oct 2002 12:39:12 -0400 |
Update of /cvsroot/phpgroupware/etemplate/inc
In directory subversions:/tmp/cvs-serv29977
Modified Files:
class.date_widget.inc.php
Log Message:
if date_widget is readonly: just generate a label with the Date in the form
spec. in the user-prefs
Index: class.date_widget.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/inc/class.date_widget.inc.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** class.date_widget.inc.php 6 Oct 2002 00:15:14 -0000 1.7
--- class.date_widget.inc.php 12 Oct 2002 16:39:10 -0000 1.8
***************
*** 66,73 ****
);
}
$tpl = new etemplate;
$tpl->init('*** generated fields for
date','','',0,'',0,0); // make an empty template
- $format =
split('[/.-]',$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat']);
$fields = array('Y' => 'year', 'm' => 'month', 'd' =>
'day');
$row = array();
--- 66,86 ----
);
}
+ $format =
split('[/.-]',$sep=$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat']);
+ $sep = $sep[1];
+ if ($cell['readonly'] || $readonlys) // is readonly
+ {
+ for ($str='',$n = 0; $n < 3; ++$n)
+ {
+ $str .= ($str != '' ? $sep : '');
+ $str .= $value[$format[$n]];
+ }
+ $value = $str;
+ $cell['type'] = 'label';
+ $cell['no_lang'] = True;
+ return True;
+ }
$tpl = new etemplate;
$tpl->init('*** generated fields for
date','','',0,'',0,0); // make an empty template
$fields = array('Y' => 'year', 'm' => 'month', 'd' =>
'day');
$row = array();
***************
*** 141,143 ****
return True;
}
! }
\ No newline at end of file
--- 154,156 ----
return True;
}
! }
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: etemplate/inc class.date_widget.inc.php,1.7,1.8,
Ralf Becker <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: etemplate/templates/default disable_test.xet,NONE,1.1 editor.cell.vbox.xet,NONE,1.1 vbox.test.xet,NONE,1.1 editor.xet,1.2,1.3
- Next by Date:
[Phpgroupware-cvs] CVS: phpgwapi/inc class.categories.inc.php,1.93,1.94
- Previous by thread:
[Phpgroupware-cvs] CVS: etemplate/templates/default disable_test.xet,NONE,1.1 editor.cell.vbox.xet,NONE,1.1 vbox.test.xet,NONE,1.1 editor.xet,1.2,1.3
- Next by thread:
[Phpgroupware-cvs] CVS: phpgwapi/inc class.categories.inc.php,1.93,1.94
- Index(es):