From e9deae13151614cad5239fc396b9fcd7f88991b2 Mon Sep 17 00:00:00 2001 From: laf Date: Tue, 20 Oct 2015 21:35:08 +0000 Subject: [PATCH] Centralised the date selector for graphs for re-use --- html/includes/print-date-selector.inc.php | 40 +++++++++++++++++ html/index.php | 1 + html/js/librenms.js | 12 ++++++ html/pages/device/edit.inc.php | 2 - html/pages/devices.inc.php | 52 +++++++++++++++++------ html/pages/graphs.inc.php | 51 +--------------------- html/pages/settings.inc.php | 2 - 7 files changed, 94 insertions(+), 66 deletions(-) create mode 100644 html/includes/print-date-selector.inc.php diff --git a/html/includes/print-date-selector.inc.php b/html/includes/print-date-selector.inc.php new file mode 100644 index 000000000..3333df0b6 --- /dev/null +++ b/html/includes/print-date-selector.inc.php @@ -0,0 +1,40 @@ + +
+ +"; + +echo ' +
+ + +
+
+ + +
+ +
+ +'; diff --git a/html/index.php b/html/index.php index e42190acc..6499e2c27 100644 --- a/html/index.php +++ b/html/index.php @@ -165,6 +165,7 @@ else { +