Beispiel #1
0
             $g->getCapteurs();
             break;
         case "getGrapheAsso":
             $g->getGrapheAsso($_GET['id']);
             break;
     }
     break;
 case "rendu":
     $r = new rendu();
     switch ($_GET['action']) {
         case "getGraphe":
             $g = new gstGraphique();
             $g->getGraphe();
             break;
         case "getGrapheData":
             $r->getGrapheData($_GET['id'], $_GET['day']);
             break;
         case "getIndicByDay":
             if (isset($_GET['timeStart']) && isset($_GET['timeEnd'])) {
                 $r->getIndicByDay($_GET['day'], $_GET['timeStart'], $_GET['timeEnd']);
             } else {
                 $r->getIndicByDay($_GET['day']);
             }
             break;
         case "getIndicByMonth":
             $r->getIndicByMonth($_GET['month'], $_GET['year']);
             break;
         case "getHistoByMonth":
             $r->getHistoByMonth($_GET['month'], $_GET['year']);
             break;
         case "getTotalSaison":
Beispiel #2
0
             $g->updateGrapheAssoPosition($_POST);
             break;
         case "deleteAssoGraphe":
             $g->deleteAssoGraphe($_POST);
             break;
     }
     break;
 case "rendu":
     $r = new rendu();
     switch ($_GET['action']) {
         case "getGraphe":
             $g = new gstGraphique();
             $g->getGraphe();
             break;
         case "getGrapheData":
             $r->getGrapheData($_GET['id'], $_GET['jour']);
             break;
         case "getIndicByDay":
             if (isset($_GET['timeStart']) && isset($_GET['timeEnd'])) {
                 //$r->getIndicByDay($_GET['jour'],(int)($_GET['timeStart'] / 1000),(int)($_GET['timeEnd'] / 1000));
                 $r->getIndicByDay($_GET['jour'], $_GET['timeStart'], $_GET['timeEnd']);
             } else {
                 $r->getIndicByDay($_GET['jour']);
             }
             break;
         case "getIndicByMonth":
             $r->getIndicByMonth($_GET['month'], $_GET['year']);
             break;
         case "getStockStatus":
             $r->getStockStatus();
             break;