From 8c518d4c3496ce9c72e4eed400923bd978b4e6a5 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Sun, 12 Jul 2015 14:45:58 +0200 Subject: add arrival date feature --- includes/sys_template.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'includes/sys_template.php') diff --git a/includes/sys_template.php b/includes/sys_template.php index 452e3a82..1c631dbe 100644 --- a/includes/sys_template.php +++ b/includes/sys_template.php @@ -131,20 +131,25 @@ function form_spinner($name, $label, $value) { * Label * @param int $value * Unix Timestamp + * @param int $min_date + * Earliest possible date * @return HTML */ -function form_date($name, $label, $value) { +function form_date($name, $label, $value, $start_date = '') { $id = $name . '-date'; $value = is_numeric($value) ? date('Y-m-d', $value) : ''; + $start_date = is_numeric($start_date) ? date('Y-m-d', $start_date) : ''; return form_element($label, '
- ' . glyph('th') . ' + ' . glyph('th') . '
-- cgit v1.2.3-54-g00ecf