Esempio n. 1
0
 public function execute()
 {
     $id = filter_input(INPUT_GET, 'id');
     $config = $this->getConfig();
     $turno = new turnoTable($config);
     $this->objturno = $turno->getById($id);
     $this->defineView('turno', 'verView', 'html');
 }
 public function execute()
 {
     $config = $this->getConfig();
     $id = filter_input(INPUT_GET, 'id');
     $turno = new turnoTable($config);
     $turno->setId($id);
     $this->objturno = $turno->delete();
     header('Location: ' . $config->getUrl() . 'index.php/turno/index');
     exit;
 }
Esempio n. 3
0
 public function execute()
 {
     $config = $this->getConfig();
     $turno = new turnoTable($config);
     $paginacion = new Zebra_Pagination();
     $this->objRespuesta = $turno->total();
     $resultado = 5;
     $pagina = ($paginacion->get_page() - 1) * $resultado;
     $this->objturno = $turno->getAll($resultado, $pagina);
     $this->defineView('turno', 'index', 'html');
 }
 public function execute()
 {
     $config = $this->getConfig();
     $formturno = filter_input_array(INPUT_POST)['turno'];
     $turno = new turnoTable($config);
     $turno->setId($formturno['id']);
     $turno->setDescripcion($formturno['descripcion']);
     $turno->setHoraInicio($formturno['horainicio']);
     $turno->setHoraFin($formturno['horafin']);
     $turno->setEstado($formturno['estado']);
     $this->objturno = $turno->update();
     header('Location: ' . $config->getUrl() . 'index.php/turno/index');
     exit;
 }