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/impresion_informe_ventas_dir_ser.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>IMPRESION INFORME VENTAS</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.Estilo13 {font-size: 12px; font-weight: bold; }
.Estilo18 {font-family: "Arial Narrow"; font-weight: bold; font-size: 14; }
.Estilo19 {font-family: "Arial Narrow"; font-weight: bold; }
.Estilo2 {	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
}
.Estilo20 {color: #990000}
.Estilo21 {font-family: "Arial Narrow"; font-weight: bold; font-size: 14; color: #990000; }
.Estilo22 {font-family: "Arial Narrow"; font-weight: bold; color: #000000; }
.Estilo26 {font-size: 14; color: #990000; font-family: "Arial Narrow";}
.Estilo27 {font-size: 12px}
.Estilo29 {font-family: Arial, Helvetica, sans-serif}
.Estilo38 {font-weight: bold}
.Estilo39 {font-family: Arial, Helvetica, sans-serif; color: #000000;}
.Estilo40 {color: #000000}
.Estilo41 {
	font-size: 12px;
	font-family: Arial, Helvetica, sans-serif;
	color: #000000;
	font-weight: bold;
}
.Estilo42 {font-family: "Arial Narrow"; color: #000000; }
-->
</style>
</head>
<body>
 <?php 
require_once("mainfile.php");
include ("config.php");
global $dbi;
   if($id)
   {
                 $sql = "select id, cedula, nombre_funcionario, contactos, gestion from informe_ventas_dir_ser where id = $id" ; 
				 $con = mysql_query($sql, $dbi);
				 list($id, $cedula, $nombre_funcionario, $contactos, $gestion) =  mysql_fetch_array($con);
               
	}	 
	
	if(isset($_POST["enviar_estado"]))
	{
		$msql = "update informe_ventas_dir_ser set estado = '1' where id = $id";
        mysql_query($msql, $dbi) or die(mysql_error());	 
        echo "<script>alert('INFORME REVISADO CORRECTAMENTE');<script>";
	}		 
?>

 <table width="648" border="3" align="left" cellpadding="3" cellspacing="3" bordercolor="#666666" bgcolor="#FAFAF5">
   <tr valign="baseline" bgcolor="#0099FF">
     <td colspan="3" align="right" nowrap><div align="center"><span class="Estilo2"> INFORME VENTAS </span></div></td>
     <td align="right" nowrap>&nbsp;</td>
   </tr>
   <tr valign="baseline" bgcolor="#FFFFFF">
     <td width="154" align="right" nowrap><div align="center"><span class="Estilo29 Estilo27 Estilo20 Estilo19"><strong><span class="Estilo19 Estilo27 Estilo29 Estilo40"><span class="Estilo19 Estilo20 Estilo27  Estilo29 Estilo40">Cedula:</span></span></strong></span> </div></td>
     <td width="463" colspan="3"><span class="Estilo21 Estilo27 Estilo29"><span class="Estilo19 Estilo27 Estilo29 Estilo40">
<?php echo $cedula; ?>     </span></span></td>
   </tr>
   <tr valign="baseline" bgcolor="#FFFFFF">
     <td align="right" nowrap><div align="center"><span class="Estilo18"><span class="Estilo5 Estilo27 Estilo29 Estilo40">Apellidos y nombres:</span></span></div></td>
     <td colspan="3"><span class="Estilo41"><?php echo $nombre_funcionario; ?></span></td>
   </tr>
   <tr valign="baseline" bgcolor="#FFFFFF">
     <td align="right" nowrap><p align="left" class="Estilo20">&nbsp;</p>
     <p align="center" class="Estilo20"><span class="Estilo18 Estilo27 Estilo29"><span class="Estilo19 Estilo27 Estilo29 Estilo40">CONTACTOS</span></span><span class="Estilo18 Estilo27 Estilo29"><span class="Estilo19 Estilo27 Estilo29 Estilo40">:</span></span></p></td>
     <td colspan="3" align="right" nowrap>
       <div align="left" class="Estilo41">
          <?php
	/*echo "<textarea name='testimonios_recibidos' cols='50' rows='4' title='TESTIMONIOS RECIBIDOS' readonly>\n";
    echo htmlspecialchars($testimonios_recibidos)."\n";
    echo "</textarea>";	
	*/
                 $msmsql1="select contactos from informe_ventas_dir_ser where id = $id"; 
                 $result = mysql_query($msmsql1, $dbi); 
                 $num_rows = mysql_num_rows($result); 				 				 
				 	
echo "<TABLE BORDER=\"0\">\n"; 
for($i = 0; $i < $num_rows; $i++)
 { 
      $row = mysql_fetch_array($result); 
      if($i % $columns == 0) 
	  { 
            //SI NO HAY RESTO SIGNIFICA QUE INICIAMOS UNA NUEVA FILA 
            echo "<TR>\n"; 
       } 
      echo "<TD width=520><div align='justify'>".$row['contactos']."</div></TD>\n"; 
      if(($i % $columns) == ($columns - 1) || ($i + 1) == $num_rows) 
	  { 
            //SI EL RESTO ES UNO 
            //O SI NO HAY NADA MAS A LA IZQUIERDA 
            //ES EL FINAL DE LA TABLA 
            echo "</TR>\n"; 
      } 
}   
echo "</TABLE>\n";
?>

	 </div></td>
   </tr>
   <tr valign="baseline" bgcolor="#FFFFFF">
     <td align="right" nowrap><div align="right" class="Estilo41">
       <p align="left" class="Estilo20">&nbsp;</p>
       <p align="center" class="Estilo20"><span class="Estilo18 Estilo27 Estilo29"><span class="Estilo19 Estilo27 Estilo29 Estilo40">GESTION</span></span><span class="Estilo18 Estilo27 Estilo29"><span class="Estilo19 Estilo27 Estilo29 Estilo40"></span></span>:</p>
       </div></td>
     <td colspan="3" align="right" nowrap>
       <div align="left" class="Estilo41">
                   <?php				   
/*	echo "<textarea name='pruebas_solicitar' cols='50' rows='4' title='PRUEBAS A SOLICITAR' readonly>\n";
    echo htmlspecialchars($pruebas_solicitar)."\n";
    echo "</textarea>";
*/
                 $msmsql2="select gestion from informe_ventas_dir_ser where id = $id"; 
                 $result = mysql_query($msmsql2, $dbi); 
                 $num_rows = mysql_num_rows($result); 				 				 
echo "<TABLE BORDER=\"0\">\n"; 
for($i = 0; $i < $num_rows; $i++)
 { 
      $row = mysql_fetch_array($result); 
      if($i % $columns == 0) 
	  { 
            //SI NO HAY RESTO SIGNIFICA QUE INICIAMOS UNA NUEVA FILA 
            echo "<TR>\n"; 
       } 
      echo "<TD width=520><div align='justify'>" . $row['gestion'] . "</div></TD>\n"; 
      if(($i % $columns) == ($columns - 1) || ($i + 1) == $num_rows) 
	  { 
            //SI EL RESTO ES UNO 
            //O SI NO HAY NADA MAS A LA IZQUIERDA 
            //ES EL FINAL DE LA TABLA 
            echo "</TR>\n"; 
      } 
}   
echo "</TABLE>\n";
?>
     </div></td>
   </tr>
</table>
 <p align="center"> </p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <p>&nbsp;</p>
 <p>
   <SCRIPT LANGUAGE="JavaScript">
<!--
function imprimir()
{
   if (window.print)
        window.print()
  else
        alert("Disculpe, su navegador no soporta esta opción.");
}
// -->
   </SCRIPT>
 </p>
 <p><A HREF="javascript:imprimir()" style="font-family: Verdana; font-size: 8 pt; background-color: #C0C0C0; border-style: solid">Imprimir P&aacute;gina </A></p>
 <p><A HREF="javascript:imprimir()" style="font-family: Verdana; font-size: 8 pt; background-color: #C0C0C0; border-style: solid">                  </A></p>
 <p>&nbsp; </p>
 <p>&nbsp;</p>
 <p>&nbsp; </p>
</body>
</html>