<?php
 
if(!isset($_SESSION)) {  session_start();  } 
include("DMMYSQLG.php");
include('DF20000.php');
?>
<html>
<link rel="stylesheet" href="css/estilo1.css" type="text/css"/>
<script type="text/javascript" language="JavaScript1.2" src="DSSCRIPT.js"></script>
<body>
<?php
 
	$fecha_salida = chfecha($_POST['ffecsalida'],'d/m/Y','Y-m-d');
        $vfn=(isset($_POST['fnumres']))?$_POST['fnumres']:"";
        $vfd=(isset($_POST['fnumadu']))?$_POST['fnumadu']:"";
        $vnm=(isset($_POST['fnummenor']))?$_POST['fnummenor']:"";
        $vtx=(isset($_POST['tex']))?$_POST['tex']:"";
        $vtx2=(isset($_POST['tex2']))?$_POST['tex2']:"";
	$vtx3=(isset($_POST['tex3']))?$_POST['tex3']:"";
        $vtx4=(isset($_POST['tex4']))?$_POST['tex4']:"";
        $vtx5=(isset($_POST['tex5']))?$_POST['tex5']:"";
        $vtx6=(isset($_POST['tex6']))?$_POST['tex6']:"";
        $vtxt1=(isset($_POST['text1']))?$_POST['text1']:"";
        $vtxt2=(isset($_POST['text2']))?$_POST['text2']:"";
        $vtxt3=(isset($_POST['text3']))?$_POST['text3']:"";
        $vtxt4=(isset($_POST['text4']))?$_POST['text4']:"";
        $vtxt5=(isset($_POST['text5']))?$_POST['text5']:"";
       $vtxt6=(isset($_POST['text6']))?$_POST['text6']:"";
       $vfs=(isset($_POST['fsaldo']))?$_POST['fsaldo']:"";
       $vfp=(isset($_POST['fplacas']))?$_POST['fplacas']:"";
       $vfv=(isset($_POST['fvehiculo']))?$_POST['fvehiculo']:""; 
       $vfc=(isset($_POST['fcodtarifa']))?$_POST['fcodtarifa']:"";
       $vft=(isset($_POST['ftotal']))?$_POST['ftotal']:"";
       $sql = mysqli_query($con ,"UPDATE valeryus19 SET fnumres = '".$vfn."', fcodtarifa = '".$vfc."', fnumcto = '".$_POST['fnumcto']."', fnumadu = '".$vfd."', fnummenor = '".$vnm."', ftipocto = '".$_POST['ftipocto']."', fnorasvip = '".$_POST['fnorasvip']."', fcodgrupo = '".$_POST['fcodgrupo']."', fcodagen = '".$_POST['fcodagen']."', smerf = '".$_POST['smerf']."', fempresa = '".$_POST['fempresa']."', tex5 = '".$vtx5."', tex6 = '".$vtx6."', text1 = '".$vtxt1."', text2 = '".$vtxt2."', text3 = '".$vtxt3."', text4 = '".$vtxt4."', text5 = '".$vtxt5."', text6 = '".$vtxt6."', ftotal = '".$vft."', fsaldo = '".$vfs."', fformpago = '".$_POST['fformpago']."', fnumtar = '".$_POST['fnumtar']."', flimite = '".$_POST['flimite']."', fcodseg = '".$_POST['fcodseg']."', fnombre = '".$_POST['fnombre']."', fapellido = '".$_POST['fapellido']."', ftelefono = '".$_POST['ftelefono']."', fmail = '".$_POST['fmail']."', fdireccion = '".$_POST['fdireccion']."', fplacas = '".$vfp."', fvehiculo = '".$vfv."', fusucamb = '".$_SESSION['usuario']."', ffecsalida = '$fecha_salida', ffeccam  = '".date('Y-m-d')."' where n_reg = '".$_POST['bot']."'");
		 //ffecllegada= '$this->ffecllegada', , , ', , , , , , , , , flengua= '$this->flengua', , , fvip= '$this->fvip', , , , , , , , , , , , , , fnumctos= '$this->fnumctos',, , , femail = '".$_POST['femail']."', ftelemp = '".$_POST['ftelemp']."', 
	echo mysqli_error($con);	
	
	echo '<h2>!!! SE MODIFICO EL REGISTRO... ACTUALIZANDO !!!</h2>';
	echo '<meta content="1; url=rec_miscelaneos_PR.php"  HTTP-EQUIV="REFRESH">';
	
?>
</body>
</html>
