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/reporte_informe_ventas_dir_ser.php
<html>
<head>
<title>REPORTE VENTAS</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<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: 11px; font-family: Arial; color:#0000CC; display: block;}
.fecha {font-size: 12px; font-family: Arial; color:#990000; display: block; }
.campo {background-color:#FFFFAA; width: 100px; border:2px solid #990000;}
.lista {font-family: Arial; font-size: 11px;	color: #990000;}
.boton2 {font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid; width:70px; height:22px;}
body {
	background-image: url();
}
.Estilo1 {
	color: #990000;
	font-weight: bold;
}
.Estilo4 {font-family: "Courier New", Courier, mono;
	color: #0033FF;
	height: 25px;
	width: 15px;
}
.boton11 {background-color: #FFCCCC; color:#FFFFFF; width:150px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<table width="533" border="1" align="center" cellpadding="1" cellspacing="1">
  <tr>
    <td width="525" bgcolor="#ECE9D8"><div align="center" class="Estilo1">REPORTE VENTAS</div></td>
  </tr>
</table>
<p align="center"><span class="Estilo4">
</span></p>
</body>
</html>

<?php

    echo "<form name='form' action='' method='post'>";
    require_once("mainfile.php");
    include ("config.php");
    global $dbi;

    echo "<TABLE width='700' border='0' align='center' cellpadding='0' cellspacing='1'>
    <TR>
    <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>REPORTE No.</span></div></TD>
	<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>CEDULA</span></div></TD>
    <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>NOMBRE FUNCIONARIO</span></div></TD>	
		<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>FECHA REPORTE</span></div></TD>	
	</tr>";
	

		   $sql = "select id, cedula, nombre_funcionario, fecha_reporte from informe_ventas_dir_ser where estado = '0' order by fecha_reporte";
           $control = mysql_query($sql, $dbi);	 
           if ($control) 
            {	 
					 while(list($id_inf, $cedula_fun, $nombre_fun, $fecha_rep) = mysql_fetch_array($control)) 
                      {  
                       
                          printf("<tr>												   
                                   <td bgcolor='#C5D6FC'><div align='center' class='lista'>".$id_inf."</span></div></td> 
								   <td bgcolor='#ECE9D8'><div align='center' class='lista'><input type='button' value=$cedula_fun name='cedula' class=boton2 onClick =window.open('impresion_informe_ventas_dir_ser.php?id=$id_inf','','top=50,left=100,toolbar=no,scrollbars=yes,width=850,height=650,status=yes')></a></span></div></td>
					               <td bgcolor='#C5D6FC'><div align='center' class='lista'>".$nombre_fun."</span></div></td> 
							       <td bgcolor='#C5D6FC'><div align='center' class='lista'>".$fecha_rep."</span></div></td> ");

                      }
				}
         
                  echo "</table>";		  
?>