From 0111b73264cc614e6050b143a42dbdccc8cb974e Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 12 Mar 2010 02:17:13 +0000 Subject: Added datepicker view and deprecated calendar view. git-svn-id: http://code.elgg.org/elgg/trunk@5371 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/input/calendar.php | 44 +++----------------------------------- views/default/input/datepicker.php | 41 +++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 41 deletions(-) create mode 100644 views/default/input/datepicker.php (limited to 'views/default') diff --git a/views/default/input/calendar.php b/views/default/input/calendar.php index 09c29753a..553a254ce 100644 --- a/views/default/input/calendar.php +++ b/views/default/input/calendar.php @@ -1,44 +1,6 @@ - -END; - $calendarjs = 1; -} -$strippedname = sanitise_string($vars['internalname']); -$js = "cal" . $strippedname; - -if (!isset($vars['value']) || $vars['value'] === FALSE) { - $vars['value'] = elgg_get_sticky_value($vars['internalname']); -} - -if ($vars['value'] > 86400) { - $val = date("F j, Y",$vars['value']); -} else { - $val = $vars['value']; -} - -?> - - name="" id="" value="" /> -select \ No newline at end of file +echo elgg_view('input/datepicker', $vars); \ No newline at end of file diff --git a/views/default/input/datepicker.php b/views/default/input/datepicker.php new file mode 100644 index 000000000..43a0543f0 --- /dev/null +++ b/views/default/input/datepicker.php @@ -0,0 +1,41 @@ + 86400) { + $val = date("F j, Y", $vars['value']); +} else { + $val = $vars['value']; +} + +?> + + -- cgit v1.2.3