<?php include 'sesion_user.php';?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Panel</title>



<style>

.caca {

    max-width: 200px;

	max-height:200px;

}</style>

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous"> 

<link href="http://radioshosting.com/css/delalora4new.css" rel="stylesheet">

<link rel="stylesheet" href="https://unpkg.com/flickity@2/dist/flickity.min.css"/>

<link rel="stylesheet" href="http://ejemplo.radiosnet.com.ar/css/font-awesome.min.css"/>



</head>



<?php



$deposito = $_POST['deposito'];

$extraccion = $_POST['extraccion'];





$varios = $_POST['varios'];

$precio_varios = $_POST['precio_varios'];





?>





<body onload="document.forms['form14']['busqueda'].focus()">





<div class="container-fluid">



<div class="row">



<div class="col-lg-3 col-md-3 col-sm-12">





<?php 

include 'nav.php';?>

<label>



</label>

</div>



<div class="col-lg-9 col-md-9 col-sm-12">







<?



include 'concha.php';



mysql_connect("$host","$usuario","$contra");



mysql_select_db ("$basedatos");



$sql = "SELECT * FROM `caja_proveedores` ORDER BY `ID` DESC LIMIT 1";



$consulta = mysql_query ($sql);



while ($row = mysql_fetch_array($consulta))



{

$ID_caja = $row["ID"];



$detalle = $row["detalle"];

$monto = $row["monto"];

$total_caja = $row["total_caja"];

$fecha = $row["fecha"];



}

mysql_free_result($consulta);



echo $total_caja;



$varios = $_POST['varios'];

$precio_varios = $_POST['precio_varios'];

echo $precio_varios ;



$total_caja_new = $total_caja + $precio_varios;



include 'concha.php';



mysql_connect("$host","$usuario","$contra");



mysql_select_db ("$basedatos");







$sSQL="INSERT INTO `caja_proveedores` (`ID`, `detalle`, `monto`, `total_caja`, `fecha`) VALUES (NULL, '$ID_venta - $varios', '$precio_varios', '$total_caja_new', CURRENT_TIMESTAMP);

";

mysql_db_query("$basedatos",$sSQL);



?>



CORRECTO!<br />





<A href="caja_proveedores.php">VOLVER</A>



</div>

</div>



</div>







    



  <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>

  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>

  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>

  

  

  <script type="text/javascript">window.setInterval(function(){

  $('.grid').isotope({

  itemSelector: '.grid-item'

});

}, 2000);

</script>



<script language=javascript>

function ventanaSecundaria56 (URL){

   window.open(URL,"ventana1","width=960,height=630,scrollbars=NO")

}

  </script>

</body>

</html>

