<?php header('Content-Type: application/json; charset=UTF-8'); extract($_POST); require './ws/ws_functions.php'; require './config/utils.php'; $ws = new WSFunctions(); if (isset($_POST['action']) && !empty($_POST['action']) && is_ajax()) { $action = $_POST['action']; switch ($action) { case 'getAllReserves': echo $ws->getAllReserves(); break; //muestra todos los eventos en el calendar //muestra todos los eventos en el calendar case 'getAllConfirmReserves': echo $ws->getAllConfirmReserves(); break; //muestra los últimos 4 eventos que se transmiten por streaming en el frontal } } ?>
<?php header('Content-Type: application/json; charset=UTF-8'); require 'ws/ws_functions.php'; echo WSFunctions::getAllReserves(); $fecha = "2015-01-16"; $hora = "12:00"; $fecha_hora = $fecha . " " . $hora; echo "<br>";