MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: /home/asjudine/public_html/facturacion_envio.php
<?php 
require_once("mainfile.php");
include ("config.php");
global $dbi;
$linea = '-';

require_once("Conectarse.php");

	
				$control = mysql_query('SELECT factura , nit, razon, direccion , ciudad, fecha, detalle, valor, iva, total, letra_tota  FROM facturacion   WHERE nit  = "' . $HTTP_GET_VARS["cedula"]  . '" and factura   = "' . $HTTP_GET_VARS["factura"]  . '" and estado = "1" ');
			if (!$control) {
				die('Invalid query: ' . mysql_error());
			}		 
		list($id, $nit, $razon, $direccion, $ciudad, $fecha, $detalle, $valor, $iva, $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;
	border: thin solid #FABF85;
}


.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;
}
.Estilo55 {	color: #FF0000;
	font-weight: bold;
}
.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;
}
.Estilo68 {
	color: #CC0000;
	font-weight: bold;
}
.Estilo69 {
	color: #FF0000;
	font-size: 24px;
}
.Estilo70 {font-size: 10px}
-->
</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 align="center" width="613" border="" cellpadding="" cellspacing="" class="sol_cre11">
      <caption>
      <div align="center"><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. 320000551193 de 2009/03/12 -  Rango Autorizado del  1 - 1000<br />
		  Calle 19 No. 6 - 68 -  Piso 9 - Tels: 2438820 - 2432341 - Bogotá, D.C.</span> <br />
        <br />
      </div>
      </caption>
      <tr>
        <td ><strong> Bogotá D.C. </strong> </td>
        <th width="98" align="right"> <strong>Fecha Factura </strong></th>
        <th width="211" align="left">
            <input name="fecha" type="text" class="est_cont2" id="fecha" value="<?php echo date("Y-m-d"); ?>" size="10" maxlength="10" readonly=""/>
        </th>
        <td width="95"  align="center"><div class="Estilo68">FACTURA DE VENTA</div></td>
        <td width="104"  align="center">  
        <input name="factu" type="text" class="est_cont2" id="factu" value= "PS - <?php echo $id ?>" size="10" maxlength="10"  readonly=""/> </td>
      </tr>
  <td width="109" ><div align="right"><strong>Vendido a</strong></div></td>
      <td colspan="2"><div align="left">
          <input name="razon" type="text" class="est_cont2" id="razon" value="<?php echo $razon ?>" size="66" maxlength="65" readonly=""/>
      </div></td>
	     <td height="21"><div align="right"><strong>Nit</strong></div></td>
    <td width="104"><div align="left">
      <input name="nite" type="text" class="est_cont2" id="nite" value="<?php echo $nit ?>" size="20" maxlength="20"  readonly=""/>
    </div></td>
  </tr>
  <tr>  </tr>
  <tr>
    <td><div align="right"><strong>Direccion </strong></div></td>
    <td colspan="2"><div align="left">
      <input name="diret" type="text" class="est_cont2" id="diret" value="<?php echo $direccion ?>" size="66" maxlength="65" readonly=""/>
    </div></td>
	
    <th  scope="col"><div align="right"><strong>Ciudad</strong></div></th>
    <td ><input name="ciudad" type="text" class="est_cont2" id="ciudad" value="<?php echo $ciudad ?>" size="20" maxlength="10" readonly=""/></td>
  </tr>
  <tr>
    <td height="24" colspan="4"><div align="CENTER" class="Estilo68">DETALLE </div></td>
    <td ><div align="CENTER" class="Estilo68">VALOR </div></td>
  </tr>
  <tr >
    <th colspan="4" align="center"><input name="diret" type="text" class="est_cont2" id="diret" value="<?php echo $detalle ?>" size="105" maxlength="65" readonly=""/></th>
    <th><input name="valor" align="left" type="text" class="est_cont2" id="valor" value="<?php echo $valor ?>" size="20" maxlength="25" readonly=""/></th>
  </tr>
  <tr>
  <td ><div align="right"><strong>SON</strong></div></td>
  <td colspan="4"> 
  <input name="son" type="text" class="est_cont2" id="son" value="<?php echo $son ?>" size="85" maxlength="50" readonly=""/>
  </td>
  
  </tr>
  <tr>
  <td colspan="3" rowspan="3" align="center" ><strong> Esta Factura de venta se asimila en todos sus efectos a una Letra de Cambio  segun articulo 774 de Codigo de Comercio 
  .</strong></td>
  </tr>
  
   <td ><div align="right"><strong>I.V.A </strong></div></td>
    <td><div align="center">
      <input align="left" name="iva" type="text" class="est_cont2" id="iva" value="<?php echo $iva ?>" size="20" maxlength="25" readonly=""/>
    </div></td>
     
    
  </tr>
  <tr>
   <td ><div align="right"><strong>TOTAL </strong></div></td>
    <td><div align="center">
      <input align="left" name="total" type="text" class="est_cont2" id="total" value="<?php echo $total ?>" size="20" maxlength="20" readonly=""/>
    </div></td>
  </tr>

    </table>
	
</form>

</body>
  <?php
			
			printf("<tr>
            	 <td bgcolor='#ECE9D8'><div align='center' class='lista'><input type='button' value='Exportar' name='expo' class=boton2 onClick =window.open('imagen.pdf?paga=$pag','','top=50,left=100,toolbar=no,scrollbars=no,width=790,height=580,status=yes')></a></span></div></td></tr>");
			 ?>