$emp->nvoEmp($datos);
            break;
        case 'editar':
            $datos = array('id_empleado' => $_POST['id_empleado'], 'a_pat' => $_POST['a_pat'], 'a_mat' => $_POST['a_mat'], 'nombres' => $_POST['nombres'], 'rfc' => $_POST['rfc'], 'curp' => $_POST['curp'], 'fnac' => $_POST['fnac'], 'ife' => $_POST['ife'], 'nacionalidad' => $_POST['nacionalidad'], 'telefono' => $_POST['telefono'], 'email' => $_POST['email'], 'calle' => $_POST['calle'], 'avenida' => $_POST['avenida'], 'col' => $_POST['col'], 'n_ext' => $_POST['n_ext'], 'n_int' => $_POST['n_int'], 'cp' => $_POST['cp'], 'delegacion' => $_POST['delegacion'], 'ciudad' => $_POST['ciudad'], 'estado' => $_POST['estado'], 'pais' => $_POST['pais'], 'giro' => $_POST['giro'], 'status' => $_POST['status'], 'sucursal' => $_POST['sucursal'], 'participacion' => $_POST['participacion'], 'cargo' => $_POST['cargo'], 'observaciones' => $_POST['observaciones'], 'id_dom' => $_POST['id_dom']);
            $emp->updateEmpleado($datos);
            break;
        case 'listaSucursal':
            $con = $emp->listaSucursal();
            $i = 0;
            while ($row = $con->NextRow()) {
                if ($i == 0) {
                    echo "<option value='" . $row['id_sucursal'] . "'selected='selected'>" . $row['nombre'] . "</option>";
                } else {
                    echo "<option value='" . $row['id_sucursal'] . "'>" . $row['nombre'] . "</option>";
                }
                $i++;
            }
            break;
        case 'getEmpleados':
            $emp->buscarEmpleado($_POST['fecha_inicio'], $_POST['fecha_fin'], $_POST['sucursal']);
            break;
        case 'familiar':
            $datos = array('parentesco' => $_POST['parentesco'], 'a_pat' => $_POST['a_pat'], 'a_mat' => $_POST['a_mat'], 'nombres' => $_POST['nombres'], 'rfc' => $_POST['rfc'], 'curp' => $_POST['curp'], 'fnac' => $_POST['fnac'], 'ife' => $_POST['ife'], 'nacionalidad' => $_POST['nacionalidad'], 'telefono' => $_POST['telefono'], 'email' => $_POST['email'], 'calle' => $_POST['calle'], 'avenida' => $_POST['avenida'], 'col' => $_POST['col'], 'n_ext' => $_POST['n_ext'], 'n_int' => $_POST['n_int'], 'cp' => $_POST['cp'], 'delegacion' => $_POST['delegacion'], 'ciudad' => $_POST['ciudad'], 'estado' => $_POST['estado'], 'pais' => $_POST['pais'], 'giro' => $_POST['giro']);
            $emp->inserFamiliar($_POST['id_empleado'], $datos);
            break;
        default:
            echo "Se equivoco de opcion";
            break;
    }
}
// echo "EMPLEADO REGISTRADO CON ÉXITO";