Commit cb1c4ded authored by Kylian ou Nathan's avatar Kylian ou Nathan
Browse files


parent 268b5631
......@@ -7,6 +7,10 @@ class Resume extends CI_Controller{
public function show(){
public function show($actions){
foreach($actions as $action){
......@@ -15,7 +19,7 @@ class Resume extends CI_Controller{
$this->load->view('resume/show', $data);
......@@ -40,10 +40,13 @@ class ResumeModele extends CI_Model
public function getByAction($action)
public function getLog($idCapteurs, $actions, $date)
$sql = "SELECT * FROM LogCapteur WHERE Action = ?";
$query = $this->db->query($sql, array($action));
$sql = "SELECT * FROM LogCapteur WHERE capteurId = ? AND action = ? AND BETWEEN aujourdhui AND ?";
$query = $this->db->query($sql, array($idCapteurs, $actions, $date));
if($query->num_rows() == 0){
return false;
......@@ -28,6 +28,19 @@
<i class='uil uil-file'></i>
<div class="subtitle">Filtres</div>
<div class="anciennte_container subcontainer">
<form method="post">
<input class="checkbox_input" type="checkbox" name="time" id="capteur1">
<label class="input_label" for="capteur1">Capteur 1</label>
<input class="checkbox_input" type="checkbox" name="time" id="capteur2">
<label class="input_label" for="capteur2">Capteur 2</label>
<input class="checkbox_input" type="checkbox" name="time" id="capteur3">
<label class="input_label" for="capteur3">Capteur 3</label>
<div class="action_container subcontainer">
......@@ -47,11 +60,11 @@
<form method="post">
<input class="radio_input" type="radio" name="time" id="an1">
<label class="input_label" for="an1">Jour</label>
<label class="input_label" for="an1">1 jour</label>
<input class="radio_input" type="radio" name="time" id="an2">
<label class="input_label" for="an2">Semaine</label>
<label class="input_label" for="an2">1 semaine</label>
<input class="radio_input" type="radio" name="time" id="an3">
<label class="input_label" for="an3">Mois</label>
<label class="input_label" for="an3">1 mois</label>
<input class="radio_input" type="radio" name="time" id="an4">
<label class="input_label" for="an4">Tout</label>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment