summaryrefslogtreecommitdiff
path: root/includes/sys_template.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-11-11 16:34:23 +0100
committermsquare <msquare@notrademark.de>2016-11-11 16:34:23 +0100
commit247166f28b81e53c1ebd90285969ca92b67a872f (patch)
tree2a4391433e0e7b651a8c2b85de9cfc24034c3c68 /includes/sys_template.php
parentf5a5f234e41a23f56c1515eebc0824ce8cd115d1 (diff)
improve code of user settings
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r--includes/sys_template.php6
1 files changed, 4 insertions, 2 deletions
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, '
<div class="input-group date" id="' . $dom_id . '">
<input type="text" name="' . $name . '" class="form-control" value="' . $value . '"><span class="input-group-addon">' . glyph('th') . '</span>
@@ -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 . '"
});
});
</script>