aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorGravatar Victor Huesca <victor.huesca@bootlin.com>2019-08-13 09:08:22 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-08-13 21:52:29 +0200
commit65e79bbec5a365f355291f9f43c577f30f42abac (patch)
treec994ac74a3f73f1b20b418faa9acffbc65f6a6f9 /web
parent757635e986e7428e20d38ac364d2d9462ef90cc9 (diff)
downloadbuildroot-test-65e79bbec5a365f355291f9f43c577f30f42abac.tar.gz
buildroot-test-65e79bbec5a365f355291f9f43c577f30f42abac.tar.bz2
web/index.php: allow filtering by date
This patch provide a way to pass a date as part of the filter. This date can be either a single date or a couple 'start and end' dates as an associative array to cover every case: Example: "date[from]=2019-03-03&date[to]=2019-07-21" Signed-off-by: Victor Huesca <victor.huesca@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'web')
-rw-r--r--web/index.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/index.php b/web/index.php
index 939cac5..0c79aa6 100644
--- a/web/index.php
+++ b/web/index.php
@@ -59,6 +59,9 @@ if (isset($_GET['subarch']) && preg_match("/^[A-Za-z0-9_\+\.\-]*$/", $_GET['suba
if (isset ($_GET['submitter']))
$filters["submitter"] = urldecode($_GET['submitter']);
+if (isset($_GET['date']))
+ $filters["date"] = $_GET['date'];
+
bab_header("Buildroot tests");
echo "<table>\n";