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/factu_recibo_caja.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  = "' . $_GET["cedula"]  . '" and factura   = "' . $_GET["id"]  . '" and estado = "1" ');
			if (!$control) {
				die('Invalid query: ' . mysql_error());
			}		 
		list($id, $nit, $razon, $direccion, $ciudad, $fechas, $detalle, $valor, $iva, $retencion,  $total, $son) = mysql_fetch_row($control);

if(isset($_POST["guardar"]))
{


		$mssql3 = mysql_query("UPDATE  facturacion  set recibo_caja = '" . $_POST[recibo] . "', fecha_recibo   = '" . $_POST[fecha] . "', estado = '2' WHERE nit  = '" . $_GET[cedula]  . "' and factura   = '" . $_GET[id]  . "' and estado = '1' ");
		
		
	/*	$inser2= mysql_query("INSERT INTO facturacion (factura, nit, razon, direccion, ciudad, fecha, detalle,  valor , iva, total, letra_tota, estado) VALUES ('" . "$fatura". "', '" . $_POST["nite"]  . "', '" . $_POST["razon"]  . "', '" . $_POST["diret"]  . "', '" . $_POST["ciudad"]  . "', '" . $_POST["fecha"]  . "' , '" . $_POST["detalle"]  . "', '" . $_POST["valor"]  . "','" . $_POST["iva"]  . "','" . $_POST["total"]  . "', '" . $_POST["son"]  . "', '1')");

if (! $inser2) {
				die('Invalid inser2 : ' . mysql_error());
			}*/
			
 echo "<script>alert('Recibo de caja guardado con exito');</script>";


}
?>
<!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;
}
.Estilo68 {
	color: #CC0000;
	font-weight: bold;
}
.Estilo69 {
	color: #FF0000;
	font-size: 24px;
}
.Estilo70 {font-size: 10px}
.Estilo73 {color: #000066; font-weight: bold; font-size: 18px; }
.Estilo74 {font-size: 18}
.Estilo75 {color: #000066; font-weight: bold; font-size: 18; }
.Estilo76 {font-style: normal; font-weight: normal; background-color: #FFFFFF; height: 18px; width: auto; font-family: Geneva, Arial;}
-->
</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> INTER@JUDINET LTDA</strong></div>

    <table width="594" height="296" border="" align="center" 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. 320000846219 de 2011/11/24 -  Rango Autorizado por Computador 1 - 1000<br />
		  Calle 19 No. 6 - 68 -  Piso 9 - Tels: 2438820 - 2432341 - Bogotá, D.C.</span> <br />-->
          INTERAMERICANA DE SERVICIOS JURIDICOS LIMITADA<br />
        <span class="Estilo70">Nit. 901.165.062-3  -  I.V.A REGIMEN COMUN<br />
          ACTIVIDAD ECONOMICA 6910 TARIFA 6.9 X 1000<br />
          Resolución Dían No. 18762007847494 de 2018/04/18<br />
		  Calle 19 No. 6 - 68 -  Piso 9 - Tels: 2438820 - 2438870 - Bogotá, D.C.</span> <br />
        <br />
      </div>
      </caption>
      <tr>
        <td ><strong> Bogotá D.C. </strong> </td>
        <th width="347" align="center"> <strong>Fecha Factura </strong>
            <input name="fecha" type="text" class="est_cont2" id="fecha" value="<?php echo $fechas ?>" size="10" maxlength="10" readonly=""/>
        </th>
        <td  colspan="2" align="center"><div class="Estilo68">FACTURA DE VENTA</div></td>
        <td width="118"  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="100" ><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 width="87" height="21"><div align="right"><strong>Nit</strong></div></td>
    <td width="118"><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" rowspan=""><input name="diret" type="text" r class="est_cont2" id="diret" value="<?php echo $detalle ?>" size="90" maxlength="50" 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="4" 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>RETENCION </strong></div></td>
    <td><div align="center">
      <input align="left" name="retencion" type="text" class="est_cont2" id="retencion" value="<?php echo $retencion ?>" size="20" maxlength="20" 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>
	<br />
	<table align="center" border="1">
<TR>
<td bgcolor="#CCFFCC" ><div align="right" class="Estilo73 Estilo74">
  <div align="center">Fecha </div>
</div></td>
<td bgcolor="#CCFFCC" ><div align="right" class="Estilo75">
  <div align="center">Recibo de Caja </div>
</div></td>
</TR>

<TR>
<TD bgcolor="#CCFFCC">
  <div align="center" class="Estilo74">
    <input name="fecha" type="text" class="Estilo76" id="fecha" value="<?php echo date("Y-m-d"); ?>" size="13" maxlength="13" readonly="" align="left"/>
  </div></TD>
<TD bgcolor="#CCFFCC">
  <div align="center" class="Estilo74">
    <input name="recibo" type="text" class="Estilo76" id="recibo" value="" size="4" maxlength="4"  align="left"/>
  </div></TD>
</TR>
</table>
	<P align="center">
	<input name="guardar" type="submit"  class="Estilo68"  value ="GUARDAR" > 
	</P>
</form>

</body>

</html>