From 8911c88a419a0c820cc27d2ea075dbdcf5192a83 Mon Sep 17 00:00:00 2001 From: Andre Cianfarani Date: Wed, 1 Mar 2006 10:49:10 +0000 Subject: [PATCH] pour date en popup --- htdocs/html.form.class.php | 24 +++++++++++++++++++++--- htdocs/theme/dev/img/calendar.png | Bin 0 -> 308 bytes htdocs/theme/dolibarr/img/calendar.png | Bin 0 -> 308 bytes htdocs/theme/eldy/img/calendar.png | Bin 0 -> 308 bytes htdocs/theme/freelug/img/calendar.png | Bin 0 -> 308 bytes htdocs/theme/yellow/img/calendar.png | Bin 0 -> 308 bytes 6 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 htdocs/theme/dev/img/calendar.png create mode 100644 htdocs/theme/dolibarr/img/calendar.png create mode 100644 htdocs/theme/eldy/img/calendar.png create mode 100644 htdocs/theme/freelug/img/calendar.png create mode 100644 htdocs/theme/yellow/img/calendar.png diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 268d24ae2fd..33fbbb91508 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -1646,11 +1646,12 @@ class Form $smin = ''; } - $conf->use_popup_date=0; // Mettre 1 pour avoir date en popup (experimental) + $conf->use_popup_date=1; // Mettre 1 pour avoir date en popup (experimental) - /* + /* Commenté par André * Affiche date en popup */ + /* if ($conf->use_javascript && $conf->use_popup_date) { $timearray=getDate($set_time); @@ -1660,7 +1661,24 @@ class Form print ''."\n"; print ''."\n"; } - + */ + if ($conf->use_javascript && $conf->use_popup_date) + { + print ''; + if ($langs->defaultlang != "") + { + print ''; + } + $timearray=getDate($set_time); + $formated_date=dolibarr_print_date($set_time,$conf->format_date_short); + print ' '; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''.img_cal().''; + } /* * Affiche date en select */ diff --git a/htdocs/theme/dev/img/calendar.png b/htdocs/theme/dev/img/calendar.png new file mode 100644 index 0000000000000000000000000000000000000000..90829a353c3bc132301a84376b2bd6602a55c322 GIT binary patch literal 308 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJOS+@4BLlKLxU{OjR;02jx|k; zJqlV3OdQS(3JnHZ7=UUPGBCEN9XP}#;J}mfhU37oV_>F^MnkWtLPJAT0E4yzgJHp@ kMNAD0Ne^6@85r3Z4k@tiV{49!2fB#C)78&qol`;+0Gaq<#Q*>R literal 0 HcmV?d00001 diff --git a/htdocs/theme/dolibarr/img/calendar.png b/htdocs/theme/dolibarr/img/calendar.png new file mode 100644 index 0000000000000000000000000000000000000000..90829a353c3bc132301a84376b2bd6602a55c322 GIT binary patch literal 308 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJOS+@4BLlKLxU{OjR;02jx|k; zJqlV3OdQS(3JnHZ7=UUPGBCEN9XP}#;J}mfhU37oV_>F^MnkWtLPJAT0E4yzgJHp@ kMNAD0Ne^6@85r3Z4k@tiV{49!2fB#C)78&qol`;+0Gaq<#Q*>R literal 0 HcmV?d00001 diff --git a/htdocs/theme/eldy/img/calendar.png b/htdocs/theme/eldy/img/calendar.png new file mode 100644 index 0000000000000000000000000000000000000000..90829a353c3bc132301a84376b2bd6602a55c322 GIT binary patch literal 308 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJOS+@4BLlKLxU{OjR;02jx|k; zJqlV3OdQS(3JnHZ7=UUPGBCEN9XP}#;J}mfhU37oV_>F^MnkWtLPJAT0E4yzgJHp@ kMNAD0Ne^6@85r3Z4k@tiV{49!2fB#C)78&qol`;+0Gaq<#Q*>R literal 0 HcmV?d00001 diff --git a/htdocs/theme/freelug/img/calendar.png b/htdocs/theme/freelug/img/calendar.png new file mode 100644 index 0000000000000000000000000000000000000000..90829a353c3bc132301a84376b2bd6602a55c322 GIT binary patch literal 308 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJOS+@4BLlKLxU{OjR;02jx|k; zJqlV3OdQS(3JnHZ7=UUPGBCEN9XP}#;J}mfhU37oV_>F^MnkWtLPJAT0E4yzgJHp@ kMNAD0Ne^6@85r3Z4k@tiV{49!2fB#C)78&qol`;+0Gaq<#Q*>R literal 0 HcmV?d00001 diff --git a/htdocs/theme/yellow/img/calendar.png b/htdocs/theme/yellow/img/calendar.png new file mode 100644 index 0000000000000000000000000000000000000000..90829a353c3bc132301a84376b2bd6602a55c322 GIT binary patch literal 308 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJOS+@4BLlKLxU{OjR;02jx|k; zJqlV3OdQS(3JnHZ7=UUPGBCEN9XP}#;J}mfhU37oV_>F^MnkWtLPJAT0E4yzgJHp@ kMNAD0Ne^6@85r3Z4k@tiV{49!2fB#C)78&qol`;+0Gaq<#Q*>R literal 0 HcmV?d00001