<?php
 
session_start();
include("DMMYSQLG.php");
include("DSA1000.php");
include("DMMYSQLG.php");
include("DF30000.inc");

$sql = mysqli_query($con ,"select * from dgfactur fol_fac = '".$_REQUEST['bot']."'");
$res=mysqli_fetch_array($sql); 
?>
<html>
<HEAD> <meta name="tipo_contenido" content="text/html;" http-equiv="content-type" charset="utf-8"></HEAD>
<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">
  <form name="frm1" method="post" action="" >
    <table  >
      <tr>
        <th colspan="8">Factura</th>
      </tr>
      <tr>
        <th><div align="center">Fecha </div></th>
        <th><div align="center">Tipo/Factura </div></th>
        <th><div align="center">Factura</div></th>
        <th><div align="center">Folio/Venta </div></th>
        <th><div align="center">Cliente</div></th>
        <th><div align="center">Total</div></th>
        <th><div align="center">Cancelada</div></th>
        <th><div align="center">Fecha/Cancelacion</div></th>
      </tr>
      <tr>
        <td>
		<?php
 
		$fec1 = $res['fec_fac'];
		include('DF20000.php');
		echo $f_f;
		?>
		&nbsp;</td>
        <td>
		<?php
 
		$sql = mysqli_query($con ,"select * from dgtipven where tip_ven = '".$res['tip_fac']."'");
		$ress=mysqli_fetch_array($sql); 
		$sqly = mysqli_query($con ,"select * from dgtipfac where tip_fac = '".$ress['tip_fac']."'");
		$resy=mysqli_fetch_array($sqly); 
		echo $resy['des_tipfac'];
		?>
		&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>
    <p>&nbsp;</p>
  </form>
</div>
</body>
</html>