Example #1
0
 public function execute()
 {
     $id = filter_input(INPUT_GET, 'id');
     $config = $this->getConfig();
     $implemento = new implementoTable($config);
     $this->objImplemento = $implemento->getById($id);
     $this->defineView('implemento', 'ver', 'html');
 }
 public function execute()
 {
     $config = $this->getConfig();
     $implemento = new implementoTable($config);
     $this->objImplemento = $implemento->reporte();
     // así declaramos la vista a usar
     $this->defineView('implemento', 'reporte', 'html');
 }
 public function execute()
 {
     $id = filter_input(INPUT_GET, 'id');
     $config = $this->getConfig();
     $implemento = new implementoTable($config);
     $implemento->setId($id);
     $implemento->delete();
     header('Location: ' . $config->getUrl() . 'index.php/implemento/index');
 }
 public function execute()
 {
     $config = $this->getConfig();
     $formImplemento = filter_input_array(INPUT_POST)['implemento'];
     //validaciones
     $implemento = new implementoTable($config);
     $implemento->setDescripcion($formImplemento['descripcion']);
     $this->objImplemento = $implemento->update();
     header('Location: ' . $config->getUrl() . 'index.php/implemento/index');
 }
 public function execute()
 {
     $config = $this->getConfig();
     $formLaboresMaquinaEquipo = filter_input_array(INPUT_POST)['laboresMaquinaEquipo'];
     //validaciones
     $laboresMaquinaEquipo = new implementoTable($config);
     $laboresMaquinaEquipo->setDescripcion($formLaboresMaquinaEquipo['hacienda_id']);
     $this->objFormLaboresMaquinaEquipo = $laboresMaquinaEquipo->update();
     header('Location: ' . $config->getUrl() . 'index.php/laboresMaquinaEquipo/index');
 }
 public function execute()
 {
     $id = filter_input(INPUT_GET, 'id');
     $config = $this->getConfig();
     $implemento = new implementoTable($config);
     //        $variables = array(
     //            'objImplemento' => $objImplemento
     //        );
     $this->objImplemento = $implemento->getAll();
     $this->defineView('implemento', 'editar', 'html');
 }
Example #7
0
 public function execute()
 {
     $config = $this->getConfig();
     $implemento = new implementoTable($config);
     $paginacion = new Zebra_Pagination();
     $this->objRespuesta = $implemento->total();
     $respuesta = $this->objRespuesta[0];
     $resultado = 5;
     $pagina = ($paginacion->get_page() - 1) * $resultado;
     $indicio = filter_input(INPUT_POST, 'filtro');
     if (empty($indicio)) {
         $this->objImplemento = $implemento->getAll($resultado, $pagina);
     } else {
         $this->objFiltro = $implemento->filtro($indicio);
         $this->objImplemento = $this->objFiltro;
     }
     $this->defineView('implemento', 'index', 'html');
 }