<?php
 
session_start();
include("DMMYSQLG.php");
include("JQUERY.inc");
@$lista = mysqli_query($con ,"SELECT * FROM dgrequid where cons_ven = '".$_POST['tnum']."'");
$cr = mysqli_num_rows($lista);
if($cr == 0){
	//@$lista = mysqli_query($con ,"delete FROM dgpemema where fol_ven = '".$_POST['tnum']."'");
	//echo '<meta content="1; url=AL10800_PR.php?rr=77" HTTP-EQUIV="REFRESH">';
}
	?>
<html>
<link rel="stylesheet" href="css/estilo1.css" type="text/css"/>
<script type="text/javascript" language="JavaScript1.2" src="DSSCRIPT.js"></script>
<body>
<div align="center">
<?php
if(isset($_REQUEST['ver'])&&$_REQUEST['ver'] == 11){
	echo '<h4 class="tdimp">Se Modifico la venta N&deg;'.$_REQUEST['tnum'].'</h4>';
}else{
	echo '<h4 class="tdimp">Se Agrego la venta N&deg;'.$_REQUEST['tnum'].'</h4>';
}
?>
  
</div>
<form name="frm1" id="frm1" method="post" action="" >

<input name="s1" type="hidden" <?php
$vrs1=(isset($_REQUEST['s1']))?$_REQUEST['s1']:"";
 echo 'value="'.$vrs1.'"' ?>>
<input name="s2" type="hidden" <?php
$vrs2=(isset($_REQUEST['s2']))?$_REQUEST['s2']:"";
 echo 'value="'.$vrs2.'"' ?>>
<input name="s3" type="hidden" <?php
$vrs3=(isset($_REQUEST['s3']))?$_REQUEST['s3']:"";
 echo 'value="'.$vrs3.'"' ?>>

  <div align="center">
    <input type="hidden" name="bot" value="<?php
 echo $_REQUEST['tnum'] ?>">
    <input type="button" name="Submit" value="Regresar" onClick="openpage('AL10800_PR.php','_self')" class="original">
     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	 <?php
 if(isset($_REQUEST['s1'])&&$_REQUEST['s1']==""){?>
    <input type="button" name="Submit2" value="Imprimir" onClick="openpage('AL10800_IM.php','_self')" class="bot_WsW">
	<?php
 }else{?>
	<input type="button" name="Submit2" value="Imprimir" onClick="openpage('AL10800_IM1.php','_self')" class="bot_WsW">
	<?php
 }?>
</div>
</form>
</body>
</html>
