From 247166f28b81e53c1ebd90285969ca92b67a872f Mon Sep 17 00:00:00 2001 From: msquare Date: Fri, 11 Nov 2016 16:34:23 +0100 Subject: improve code of user settings --- includes/sys_template.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'includes/sys_template.php') diff --git a/includes/sys_template.php b/includes/sys_template.php index 6c1727a4..5d450493 100644 --- a/includes/sys_template.php +++ b/includes/sys_template.php @@ -151,10 +151,11 @@ function form_spinner($name, $label, $value) { * Earliest possible date * @return HTML */ -function form_date($name, $label, $value, $start_date = '') { +function form_date($name, $label, $value, $start_date = '', $end_date = '') { $dom_id = $name . '-date'; $value = is_numeric($value) ? date('Y-m-d', $value) : ''; $start_date = is_numeric($start_date) ? date('Y-m-d', $start_date) : ''; + $end_date = is_numeric($end_date) ? date('Y-m-d', $end_date) : ''; return form_element($label, '
' . glyph('th') . ' @@ -165,7 +166,8 @@ function form_date($name, $label, $value, $start_date = '') { language: "' . locale_short() . '", todayBtn: "linked", format: "yyyy-mm-dd", - startDate: "' . $start_date . '" + startDate: "' . $start_date . '", + endDate: "' . $end_date . '" }); }); -- cgit v1.2.3-54-g00ecf