File: /home/asjudine/public_html/afinanciera/facturacion_consulta.php
<?php
global $dbi;
$linea = '-';
require_once("../Conectarse.php");
$control = mysql_query('SELECT factura , nit, razon, direccion , ciudad, fecha, detalle, valor, iva, retencion, total, letra_tota FROM facturacion WHERE nit = "' . $HTTP_GET_VARS["cedula"] . '" and factura = "' . $HTTP_GET_VARS["factura"] . '" ');
if (!$control) {
die('Invalid query: ' . mysql_error());
}
list($id, $nit, $razon, $direccion, $ciudad, $fechas, $detalle, $valor, $iva, $retencion, $total, $son) = mysql_fetch_row($control);
?>
<!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>Consulta de Facturas</title>
<style type="text/css">
<!--
.est_cont5 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
font-style: normal;
font-weight: normal;
background-color: #EDFAF4;
margin: 2px;
padding: 2px;
height: auto;
width: auto;
border: thin groove #E9AAF0;
color: #C72350;
}
.color_fondo_sc {
background-color: #DCE0E4;
}
.est_cont2 {
font-family: Geneva, Arial;
font-size: 12px;
font-style: normal;
font-weight: normal;
background-color: #FFFFFF;
height: 18px;
width: auto;
}
.est_cont8 {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 13px;
font-style: normal;
font-weight: normal;
color: #2B39EC;
background-color: #FFFFFF;
height: 19px;
width: auto;
border: thin solid #FABF85;
}
.est_cont6 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 11px;
font-style: normal;
font-weight: normal;
color: #006262;
background-color: #EDFED3;
margin: 1px;
padding: 1px;
height: auto;
width: auto;
border: thin solid #D9B6F8;
}
.sol_cre1 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;
font-style: normal;
font-weight: normal;
color: #0B3495;
background-color: #E6FAFF;
margin: 1px;
padding: 1px;
height: 15px;
width: auto;
border: thin outset #56AD95;
}
.col_cre2 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
font-weight: bold;
color: #F92F0B;
background-color: #B3D9F0;
height: auto;
width: auto;
border: medium groove #FC9227;
}
.recaudo {font-family: "Courier New", Courier, monospace;
font-size: 12px;
font-style: normal;
font-weight: bold;
font-variant: normal;
color: #000000;
background-color: #B6CBDC;
margin: 4px;
padding: 8px;
width: auto;
border: medium outset #339966;
}
.sol_cre11 { font-family: "Times New Roman", Times, serif;
font-size: 12px;
background-color: #FFFFFF;
}
.est_cont51 { font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-style: normal;
font-weight: normal;
background-color: #FFFFCC;
margin: 2px;
padding: 2px;
height: auto;
width: auto;
border: thin groove #E9AAF0;
color: #C72350;
}
.Estilo69 {
color: #FF0000;
font-size: 24px;
}
.Estilo70 {font-size: 10px}
.Estilo71 {
font-size: 14;
font-weight: bold;
}
.Estilo75 {font-style: normal; font-weight: normal; background-color: #FFFFFF; height: 18px; width: auto; font-family: Geneva, Arial;}
.Estilo79 {font-size: 14px; font-weight: bold; }
.Estilo80 {font-size: 14px}
.Estilo81 {color: #CC0000; font-weight: bold; font-size: 14px; }
-->
</style>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data" name="form1" class="color_fondo_sc" id="form1">
<div align="center" class="Estilo69" ><strong> SERVI@JUDINET LTDA</strong></div>
<table width="689" height="334" border="" align="center" cellpadding="" cellspacing="" class="sol_cre11">
<caption>
<div align="center" class="Estilo71"><br />
EMPRESA DE SERVICIOS JURIDICOS PREPAGADOS POR INTERNET LTDA<br />
<span class="Estilo70">Nit. 830.134.189-1 - I.V.A REGIMEN COMUN<br />
ACTIVIDAD ECONOMICA 7411 TARIFA 6.9 X 1000<br />
Resolución Dían No. 320000846219 de 2011/11/24 - Rango Autorizado por Computador 15 - 1000<br />
Calle 19 No. 6 - 68 - Piso 9 - Tels: 2438820 - 2432341 - Bogotá, D.C.</span> <br />
<br />
</div>
</caption>
<tr>
<td height="32" align="right"><span class="Estilo79"> Bogotá D.C. </span></td>
<th width="359" align="center"> <span class="Estilo80"><strong>Fecha Factura </strong>
<input name="fecha" type="text" class="est_cont2" id="fecha" value="<?php echo $fechas ?>" size="10" maxlength="10" readonly=""/>
</span></th>
<td colspan="2" align="center"><div class="Estilo81">FACTURA DE VENTA</div></td>
<td width="120" align="center">
<input name="factu" type="text" class="Estilo75" id="factu" value= "PS - <?php echo $id ?>" size="10" maxlength="10" readonly=""/> </td>
</tr>
<td width="116" ><div align="right" class="Estilo80"><strong>Vendido a</strong></div></td>
<td colspan="2"><div align="left" class="Estilo80">
<input name="razon" type="text" class="Estilo75" id="razon" value="<?php echo $razon ?>" size="60" maxlength="65" readonly=""/>
</div></td>
<td width="83" height="20"><div align="right" class="Estilo80"><strong>Nit</strong></div></td>
<td width="120"><div align="left" class="Estilo80">
<input name="nite" type="text" class="Estilo75" id="nite" value="<?php echo $nit ?>" size="20" maxlength="20" readonly=""/>
</div></td>
</tr>
<tr> </tr>
<tr>
<td height="33"><div align="right" class="Estilo80"><strong>Direccion </strong></div></td>
<td colspan="2"><div align="left" class="Estilo80">
<input name="diret" type="text" class="Estilo75" id="diret" value="<?php echo $direccion ?>" size="60" maxlength="65" readonly=""/>
</div></td>
<th scope="col"><div align="right" class="Estilo80"><strong>Ciudad</strong></div></th>
<td ><input name="ciudad" type="text" class="Estilo75" id="ciudad" value="<?php echo $ciudad ?>" size="20" maxlength="10" readonly=""/></td>
</tr>
<tr>
<td height="19" colspan="4"><div align="CENTER" class="Estilo81">DETALLE </div></td>
<td ><div align="CENTER" class="Estilo81">VALOR </div></td>
</tr>
<tr >
<th height="95" colspan="4" align="center"><span class="Estilo80">
<textarea name="gestionre" cols="90" rows="5"> <?php echo $detalle ?></textarea>
</span></th>
<th><input name="valor" type="text" class="Estilo75" id="valor" value="<?php echo $valor ?>" size="15" maxlength="25" readonly="" align="right"/></th>
</tr>
<tr>
<td height="35" ><div align="right" class="Estilo80"><strong>SON</strong></div></td>
<td colspan="4">
<input name="son" type="text" class="Estilo75" id="son" value="<?php echo $son ?>" size="85" maxlength="50" readonly=""/> </td>
</tr>
<tr>
<td colspan="3" rowspan="6" align="center" ><span class="Estilo80"><strong> Esta Factura de venta se asimila en todos sus efectos a una Letra de Cambio segun articulo 774 de Codigo de Comercio
.</strong></span></td>
</tr>
<td ><div align="right" class="Estilo80"><strong>I.V.A </strong></div></td>
<td><div align="center" class="Estilo80">
<input name="iva" type="text" class="Estilo75" id="iva" value="<?php echo $iva ?>" size="15" maxlength="20" readonly="" align="right"/>
</div></td>
</tr>
<tr>
<td ><div align="right" class="Estilo80"><strong>RETENCION </strong></div></td>
<td><div align="center" class="Estilo80"><input name="retencion" type="text" class="Estilo75" id="retencion" value="<?php echo $retencion ?>" size="15" maxlength="20" readonly="" align="right"/>
</div></td>
</tr>
<tr>
<td height="41" ><div align="right" class="Estilo80"><strong>TOTAL </strong></div></td>
<td><div align="center" class="Estilo80">
<input name="total" type="text" class="Estilo75" id="total" value="<?php echo $total ?>" size="15" maxlength="20" readonly="" align="right"/>
</div></td>
</tr>
</table>
</form>
</body>
</html>