diff --git a/site/formGraphe.php b/site/formGraphe.php new file mode 100644 index 0000000..4dbe4ed --- /dev/null +++ b/site/formGraphe.php @@ -0,0 +1,44 @@ +
+
+
+

Affichage un graphe

+
+ + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+ +
+
+
diff --git a/site/graphe.php b/site/graphe.php index bf29787..0ed01ad 100644 --- a/site/graphe.php +++ b/site/graphe.php @@ -3,7 +3,14 @@ require_once ('jpgraph/jpgraph.php'); require_once ('jpgraph/jpgraph_line.php'); require_once('accesBase.php'); -$history1 = getHistory('Solaris', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4); +$start = $_POST['start-date']; +$end = $_POST['end-date']; +if(($end == NULL) || ($end < $start)) {$e = date_max(); $end = $e['max'];} +else $end = $end." 23:59:59"; +if($start == NULL) {$s = date_min(); $start = $s['min'];} +else $start = $start." 00:00:00"; + +$history1 = getHistory($_POST['nom'], '', '', $start, $end, $_POST['nombre']); $datay1 = makeArray($history1, "value"); $history2 = getHistory('Atmos', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4); diff --git a/site/rechercheGraphe.php b/site/rechercheGraphe.php new file mode 100644 index 0000000..c070b59 --- /dev/null +++ b/site/rechercheGraphe.php @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + -- libgit2 0.21.2