if ($Inserting) { accede('cg_Clientes.php'); } else { denegar('reg_Cliente.php'); } } if (isset($_POST['act_Cliente'])) { $Updating = $objTransaccion->update_Cliente($_POST['nombre'], $_POST['apellido'], $_POST['direccion'], $_POST['telefono'], $_POST['ciudad'], $_POST['clave']); if ($Updating) { accede("cd_Cliente.php?btn_Query={$_POST['clave']}"); } else { denegar("cd_Cliente.php?btn_Query={$_POST['clave']}"); } } if (!empty($_GET['del_Cliente'])) { $Deleting = $objTransaccion->delete_Cliente($_GET['del_Cliente']); if ($Deleting) { accede('cg_Clientes.php'); } else { denegar("cd_Cliente.php?btn_Query={$_GET['del_Cliente']}"); } } #Push of buttom Ventas.********** if (isset($_POST[add_Venta])) { $Inserting = $objTransaccion->reg_Venta($_POST[cvCliente], $_POST[cvEmpleado], $_POST[matricula], $_POST[descripcion], $_POST[precio], $_POST[fecha_E]); if ($Inserting) { accede('cg_Ventas.php'); } else { denegar('reg_Venta.php'); } }