Commit d1e19845f1fb21ec1d9b03af8f03e1e86029b0ad

Authored by Guillaume
1 parent c6dab71a

Test Graphe

site/formGraphe.php
@@ -8,7 +8,7 @@ $maxs = explode(" ", $max['max']); @@ -8,7 +8,7 @@ $maxs = explode(" ", $max['max']);
8 $date_max = $maxs[0]; 8 $date_max = $maxs[0];
9 ?> 9 ?>
10 <div class="row"> 10 <div class="row">
11 - <div class="col-4 col-md-4 offset-md-4 offset-4"> 11 + <div class="col-6 col-md-6 offset-md-3 offset-3">
12 <br/> 12 <br/>
13 <h1 style="margin-bottom:50px; margin-top:50px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-chart-line"></i> Affichage un graphe</h1> 13 <h1 style="margin-bottom:50px; margin-top:50px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-chart-line"></i> Affichage un graphe</h1>
14 <form action="graphique.php" method="post"> 14 <form action="graphique.php" method="post">
@@ -3,7 +3,7 @@ require_once (&#39;jpgraph/jpgraph.php&#39;); @@ -3,7 +3,7 @@ require_once (&#39;jpgraph/jpgraph.php&#39;);
3 require_once ('jpgraph/jpgraph_line.php'); 3 require_once ('jpgraph/jpgraph_line.php');
4 require_once('accesBase.php'); 4 require_once('accesBase.php');
5 5
6 -$history1 = getHistory('Solarie', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4); 6 +$history1 = getHistory('Solaris', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4);
7 $datay1 = makeArray($history1, "value"); 7 $datay1 = makeArray($history1, "value");
8 8
9 $history2 = getHistory('Atmos', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4); 9 $history2 = getHistory('Atmos', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4);
site/graphique.php
@@ -28,8 +28,9 @@ else $start = $start.&quot; 00:00:00&quot;; @@ -28,8 +28,9 @@ else $start = $start.&quot; 00:00:00&quot;;
28 <br/> 28 <br/>
29 <h1 style="margin-bottom:20px; margin-top:30px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-chart-line"></i> Graphe du capteur</h1> 29 <h1 style="margin-bottom:20px; margin-top:30px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-chart-line"></i> Graphe du capteur</h1>
30 <br/> 30 <br/>
  31 +
31 <?php 32 <?php
32 - echo "<img src='graphe.php'>";//?nom=$nom&nombre=$nombre&start=$start&end=$end' alt='graphe'>"; 33 + echo "<img src='graphe.php?nom=$nom&nombre=$nombre&start=$start&end=$end' alt='graphe'>"
33 ?> 34 ?>
34 </div> 35 </div>
35 </div> 36 </div>