Commit 7bf48c8ee5836c0eb7a2c17c3cf695448707d0a5

Authored by Guillaume
1 parent 6f5616bc

Test Graphe

Showing 1 changed file with 10 additions and 2 deletions   Show diff stats
site/graphique.php
1 1 <?php
2 2 session_start();
3   -
  3 +require_once("accesBase.php");
  4 +$nom = $_POST['nom'];
  5 +$nombre = $_POST['nombre'];
  6 +$start = $_POST['start-date'];
  7 +$end = $_POST['end-date'];
  8 +if(($end == NULL) || ($end < $start)) {$e = date_max(); $end = $e['max'];}
  9 +else $end = $end." 23:59:59";
  10 +if($start == NULL) {$s = date_min(); $start = $s['min'];}
  11 +else $start = $start." 00:00:00";
4 12 ?>
5 13 <!DOCTYPE html>
6 14  
... ... @@ -23,7 +31,7 @@ session_start();
23 31 <br/>
24 32  
25 33 <?php
26   - echo "<img src='graphe.php'>";//?nom=$nom&nombre=$nombre&start=$start&end=$end' alt='graphe'>"
  34 + echo "<img src='graphe.php?nom=$nom&nombre=$nombre&start=$start&end=$end' alt='graphe'>";
27 35 ?>
28 36 </div>
29 37 </div>
... ...