<?php require 'ExpertoRubros.php'; $exp = new ExpertoRubros(); $data = $exp->getAll(); /*echo $data; exit;*/ ?> <html> <head> <!-- FORMS --> <script language="javascript" src="<?php echo $lib_js; ?> mainFormba.js"></script> <!-- BÁSICO DHTMLX --> <link rel="stylesheet" type="text/css" href="<?php echo $dhtmlx; ?> dhtmlxGrid/codebase/dhtmlxgrid.css"> <link rel="stylesheet" type="text/css" href="<?php echo $dhtmlx; ?> dhtmlxGrid/codebase/skins/dhtmlxgrid_dhx_skyblue.css"> <script src="<?php echo $dhtmlx; ?> dhtmlxGrid/codebase/dhtmlxcommon.js"></script> <script src="<?php
<?php require_once 'ExpertoRubros.php'; require_once "../../_framework.php"; $oData = $oRequestData = $_POST ? $_POST : $_GET; $exp = new ExpertoRubros(); switch ($oData['behavior']) { case 'load': $oData = $exp->getById($oData['id_rubro']); break; case 'save': if (isset($oData['id_rubro'])) { $exp->save($oData); } break; case 'delete': $flag = false; if (isset($oData['id_rubro'])) { $ids = explode(",", $oData['id_rubro']); foreach ($ids as $id) { if (!$exp->delete($id)) { $flag = true; } } } if ($flag == true) { pushError("Algunos registros no pudieron ser eliminados"); } else { pushInfo("Cambios aplicados exitosamente"); } header("LOCATION: rubrosList.php");