<?
session_start();
require ("../conectar.php");
?>
<HTML>
<HEAD>
<TITLE>
factura
</TITLE>
</head>
<BODY bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<?
ECHO $sql="select * from facturas where no='$no'";
$r=mysql_query($sql);
$l=mysql_fetch_object($r);
mysql_free_result($r);

$texto=$l->totalgral;
//require ("../forms/conversor.php");
$l->cantletra=$numeroenletra;

$aņo2d=substr($l->fecha,2,2);
$mes=substr($l->fecha,5,2);
$dia=substr($l->fecha,8,2);
?>
<BODY bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<div id="total" style="position:absolute; left:602px; top:877px; width:140px; height:17px; z-index:27">
<div align="RIGHT"><FONT size=2 face="Arial Black">$l->totalgral</FONT></div>
</div>
<div id="iva" style="position:absolute; left:602px; top:851px; width:140px; height:17px; z-index:26">
<div align="RIGHT"><FONT size=2 face="Arial Black">$l->iva</FONT></div>
</div>
<div id="subtotal" style="position:absolute; left:602px; top:825px; width:140px; height:17px; z-index:25">
<div align="RIGHT"><FONT size=2 face="Arial Black">$l->subtotal</FONT></div>
</div>
<div id="impletra" style="position:absolute; left:65px; top:775px; height:17px; z-index:24">
<FONT size=2 face="Arial Black">($l->cantletra)</FONT></div>
<div id="totxcan" style="position:absolute; left:600px; top:315px; width:140px; height:17px; z-index:23">
<div align="RIGHT"><FONT size=2 face="Arial Black">$l->totales</FONT></div>
</div>
<div id="comvent" style="position:absolute; left:508px; top:315px; width:140px; height:17px; z-index:22">
<div align="RIGHT"><FONT size=2 face="Arial Black">$l->preciosunitarios</FONT></div>
</div>
<div id="cant" style="position:absolute; left:22px; top:315px; width:39px; height:17px; z-index:21">
<div align="CENTER"><FONT size=2 face="Arial Black">$l->cantidades</FONT></div>
</div>
</div>

<div id="Layer9" style="position:absolute; left:70px; top:315px; height:18px; width:530px; z-index:9">
<FONT size=2 face="Arial Black">$l->descripcion $l->tipofactura</FONT></div>

<div id="nofactura" style="position:absolute; left:602px; top:35px; width:139px; height:17px; z-index:4">
<div align="CENTER"><FONT size=2 face="Arial Black">$no</FONT></div>
</div>


<div id="fecha" style="position:absolute; left:602px; top:68px; width:139px; height:17px; z-index:4">
<div align="CENTER"><FONT size=2 face="Arial Black">$dia&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $mes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $aņo2d</FONT></div>
</div>
<div id="rfc" style="position:absolute; left:70px; top:198px; width:142px; height:17px; z-index:3">
<FONT size=2 face="Arial Black">$l->rfc</FONT></div>
<div id="dom" style="position:absolute; left:92px; top:160px; width:620px; height:17px; z-index:2">
<FONT size=2 face="Arial Black">$l->domicilio</FONT></div>
<div id="nom1" style="position:absolute; left:82px; top:121px; width:631px; height:17px; z-index:1">
<FONT size=2 face="Arial Black">$l->nombre</FONT></div>
</BODY>
</HTML>

<BODY bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">


<div id="text1" style="position:absolute; overflow:hidden; left:143px; top:149px; width:665px; height:33px; z-index:1"><div class="wpmd">
<div><FONT SIZE="2"><B>$l->nombre</B></FONT></div>
</div></div>

<div id="text2" style="position:absolute; overflow:hidden; left:143px; top:198px; width:336px; height:33px; z-index:2"><div class="wpmd">
<div><FONT SIZE="2"><B>$l->rfc</B></div>
</div></div>

<div id="text3" style="position:absolute; overflow:hidden; left:143px; top:242px; width:649px; height:33px; z-index:3"><div class="wpmd">
<div><FONT SIZE="2"><B>$l->domicilio</B></div>
</div></div>

<div id="text4" style="position:absolute; overflow:hidden; left:319px; top:285px; width:309px; height:33px; z-index:4"><div class="wpmd">
<div><B>$dia / $mes / $aņo2d</B></div>
</div></div>

<div id="text5" style="position:absolute; overflow:hidden; left:717px; top:185px; width:78px; height:22px; z-index:5"><div class="wpmd">
<div><font class="ws8"><B>$no</B></font></div>
</div></div>

<div id="cant" style="position:absolute; left:22px; top:390px; width:39px; height:17px; z-index:21">
<div align="right"><FONT size=2 face="Arial Black">$l->cantidades</FONT></div>
</div>

<div id="text7" style="position:absolute; overflow:hidden; left:147px; top:425px; width:351px; height:160px; z-index:7"><div class="wpmd">
<div><B>$l->descripcion $l->tipofactura</B></div>
</div></div>

<div id="comvent" style="position:absolute; left:508px; top:390px; width:140px; height:17px; z-index:22">
<div align="center"><FONT size=2 face="Arial Black">$l->preciosunitarios</FONT></div>
</div>

<div id="totxcan" style="position:absolute; left:600px; top:390px; width:140px; height:17px; z-index:23">
<div align="right"><FONT size=2 face="Arial Black">$l->totales</FONT></div>
</div>

<div id="text10" style="position:absolute; overflow:hidden; left:262px; top:880px; width:415px; height:26px; z-index:10"><div class="wpmd">
<div><FONT SIZE="1"><B>($l->cantletra)</B></FONT></div>
</div></div>

<div id="text11" style="position:absolute; overflow:hidden; left:686px; top:926px; width:120px; height:26px; z-index:11"><div class="wpmd">
<div><B>$l->subtotal</B></div>
</div></div>

<div id="text12" style="position:absolute; overflow:hidden; left:686px; top:960px; width:120px; height:26px; z-index:12"><div class="wpmd">
<div><B>$l->iva</B></div>
</div></div>

<div id="text13" style="position:absolute; overflow:hidden; left:686px; top:991px; width:120px; height:26px; z-index:13"><div class="wpmd">
<div><B>$l->totalgral</B></div>
</div></div>
</BODY>
</HTML>
<?
mysql_close();
?>