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/www/afinanciera/factu_consul_gen.php
<!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 General de Facturas</title>
<style type="text/css">
<!--
.titulos {font: 16px; color: red; font-family:Arial; font-weight:bold}
.boton {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.texto {background-color: #CCFFCC; font-size: 10px; font-family: Arial; color:#0000CC; display: block;}
.fecha {font-size: 12px; font-family: Arial; color:#990000; display: block; }
.campo {background-color:#FFFFFF; width: 100px; border:2px solid #990000;}
.lista {font-family: Arial; font-size: 12px;	color: #003333;}
.lista2 {font-family: Arial; font-size: 16px;	color: #FF6600;}
.boton2 {
	font-family: Verdana;
	font-size: 8 pt;
	color: #000080;
	background-color: #C0C0C0;
	border-style: solid;
	width:90px;
	height:22px;
}
body {
	background-image: url();
}
.Estilo50 {color: #CC3333;
	font-family: "Arial Narrow";
	font-weight: bold;
}
.Estilo51 {
	color: #3366FF;
	font-weight: bold;
}
.boton1 {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.boton11 {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.Estilo53 {color: #000099; font-weight: bold; }
-->
</style>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
  <div align="center">
    <table width="669" border="0" align="center" cellpadding="2" cellspacing="2">
      <tr bgcolor="#FFFFCC">
        <td class="titulos"><div align="center">CONSULTA DE FACTURAS GENERAL </div></td>
      </tr>
     
    
      <tr bgcolor="#FFCC99">
        <td><div align="center">
            <input name="menu2" type="button" class="Estilo50" id="menu2" onclick="window.location.href='menu_facturacion.php'" value="IR AL MENU" />
            <label></label>
        </div></td>
      </tr>
    </table>
    <div align="left"></div>
    <div align="left"></div>
    <div align="right"></div> 
  </div>
</form>
</body>
</html>
<?php


echo "<form id='form2' name='form2' method='post' action=''>";

global $dbi;

require_once("../Conectarse.php");

  
   $resul = mysql_query('SELECT * FROM facturacion   ');
			if (!$resul) {
				die('Invalid query: ' . mysql_error());
			}
   if($resul)
   {
         $filas = mysql_num_rows($resul);
         if ($filas > 0)
         {

	 $contro2 = mysql_query('SELECT  factura , nit, razon,  direccion , ciudad, fecha FROM facturacion   ');
			
			if (!$contro2) {
				die('Invalid query: ' . mysql_error());
			}

  						if ((mysql_num_rows($contro2)!=0)) 
	                    {	 
                              echo "<TABLE width='900' border='' align='center' cellpadding='' cellspacing=''>
                              <TR>
                              <TD bgcolor='#000066'><div align='center'><span class='texto'>No FACTURA</span></div></TD>
							  <TD bgcolor='#000066'><div align='center'><span class='texto'>NIT</span></div></TD>
							  <TD bgcolor='#000066'><div align='center'><span class='texto'>RAZON</span></div></TD>	
                              <TD bgcolor='#000066'><div align='center'><span class='texto'>DIRECCION</span></div></TD>		 
                              <TD bgcolor='#000066'><div align='center'><span class='texto'>CIUDAD</span></div></TD>
							  <TD bgcolor='#000066'><div align='center'><span class='texto'>FECHA FACTURA</span></div></TD>";	
							  
  	while(list($fact, $nit, $razon, $diret, $ciud, $fecha) = mysql_fetch_row($contro2)) 
            {  
 
								   printf("<tr>
								   <td bgcolor='#FFFFCC'><div align='center' class='lista'>".$fact."</span></div></td>
									<TD bgcolor='#ECE9D8'><div align='center' class='estilo3'><input type='button' value=$nit name='nit' class=Estilo53 onClick =window.open('facturacion_consulta.php?cedula=$nit&factura=$fact','','top=50,left=100,toolbar=yes,scrollbars=yes,width=950,height=650,status=yes')></a></span></div></TD>			
								   <td bgcolor='#FFFFCC'><div align='center' class='lista'>".$razon."</span></div></td>						   
		                           <td bgcolor='#FFFFCC'><div align='center' class='lista'>".$diret."</span></div></td>								   								
		                           <td bgcolor='#FFFFCC'><div align='center' class='lista'>".$ciud."</span></div></td>
								   <td bgcolor='#FFFFCC'><div align='center' class='lista'>".$fecha."</span></div></td>
								  ");  
								                								   
                               }
			                       
								   echo "</table>";		  
                        }
						
					
		       
	      }
     }

echo "</form>";


?>