コード例 #1
0
<script src="../javascript/valida.js">  </script>
<link href="../estilos/css_sistema.css" rel="stylesheet" type="text/css" />
</head>
<?php 
$venta->ventas_ver($_REQUEST['codigo']);
if ($_REQUEST['id'] == '1') {
    /*if($venta->_ven_incluyeigv==0)
    	{
    		$precio = $_REQUEST['precio'] / 1.19;
    	}
    	
    	if($venta->_ven_incluyeigv==1)
    	{
    		$precio = $_REQUEST['precio'];
    	}*/
    $venta->detalleventa_insertar($_REQUEST['codigo'], $_REQUEST['descripcion'], $_REQUEST['cantidad'], $_REQUEST['precio']);
}
if ($_REQUEST['id'] == '2') {
    $venta->detalleventa_borrar($_POST['campos']);
}
?>
<body>
<form id="form1" name="form1" >
  <table width="100%" border="0">
    <tr>
      <td colspan="3" bgcolor="#FFFFEC"><table width="100%" border="0">
        <tr>
          <td colspan="5"><?php 
echo $venta->_tipc_descripcion;
?>
 : <?php