<?php
  include("stilos/config.inc.php");
  include("../clases/BDConexion.php");
  include("../clases/clsPer.php");
  include("funcion/funciones.php");
  include("Funciones.php");
  session_start();
  $objPer=new clsPer;
  
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><MMString:LoadString id="insertbar/formsHidden" /></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" rel="stylesheet" type="text/css">

<link href="Estilos.css" rel="stylesheet" type="text/css">

<link href="stilos/Estilos.css" rel="stylesheet" type="text/css">
<SCRIPT language=JavaScript src="js/calendario.js"></SCRIPT>
<!-- Copyright 2000,2001 Macromedia, Inc. All rights reserved. -->
<script language="JavaScript"> 
<!--
function Abrir_Ventanapopup1(sURL,x,y) {
if (!window.focus) return;
			var par;
			par = "width=" +x + ",height="+y+","
			par = par + "dependent=no,scrollbars=yes,resizable=yes"
			par = par + "menubar=no,toolbar=no,status=no"
			var ventana = window.open(sURL,"Ver",par)
			ventana.focus();
}
//--> 
</script>

</head>

<body onLoad="print();">
<table width="721" border="0" cellspacing="0" cellpadding="0">
  <tr class="lblCampo" valign="top">
    <td width="299"><div align="left">
      <table width="234" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="61"><div align="center"><img src="../imagenes/logobarrett.gif" width="50" height="50" border="0"></div></td>
          <td width="173">BARRETT RESOURCES (PERU) LLC<br>
      SUCURSAL PERU </td>
        </tr>
      </table>
    </div></td>
    <td width="177">&nbsp;</td>
    <td width="245"><div align="right">Fecha : <? echo date("d/m/Y");?> <br>
Hora : <? echo date("H:i:s");?></div></td>
  </tr>
  <tr class="lblCampo" valign="top">
    <td colspan="3"><div align="center">REPORTE DE PEDIDOS PENDIENTES </div></td>
  </tr>
  <tr class="lblCampo" valign="top">
    <td colspan="3">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3"><div align="left">
      <table width="718" border="0" cellspacing="0" cellpadding="0">
        
        
        <tr>
          <td><div align="left">
              <table width="713" border="1" cellpadding="0" cellspacing="0" style="<?=$stylo['tabla']?>" bordercolor="<?=$bordetabla1?>">
                <tr valign="top" class="lblCampo" >
                  <td width="75"><div align="center">N&ordm; de Pedido </div></td>
                  <td width="455"><div align="left">Articulo</div></td>
                  <td width="63"><div align="center">Und. M. </div></td>
                  <td width="66">
                    <div align="center">Cant. Ped. </div></td>
                  <td><div align="center">Cant. Rest. </div></td>
                  <td><div align="center">Estado</div></td>
                </tr>
                <? 
					  		   
				    if($tipo=="fecha_rd"){
						$resultado=$objPer->getArtPedDetF01($tipo,extraerfechamysql($campo1),extraerfechamysql($campo2));
						$resultadot=$objPer->getArtPedDetFecT($tipo,extraerfechamysql($campo1),extraerfechamysql($campo2));
					}else{
						$resultado=$objPer->getArtPedDet01($tipo,$campo1);
						$resultadot=$objPer->getArtPedDetT($tipo,$campo1);
					}
					
					
                  while($filas=$objPer->NextRow($resultado))
                   {
				   
				   ?>
                <tr valign="top" class="lblForm" >
                  <td class="lblForm">
                    <div align="center"> <? echo $filas['num_req']; ?> </div></td>
                  <td class="lblForm"><div align="left">
                    <?php 
						echo $filas['nom_ap'];						
						?>
                  </div></td>
                  <td class="lblForm"><div align="center">
                    <?php 
						echo $filas['um'];						
						?>
                  </div></td>
                  <td class="lblForm">
                    <div align="center">
                      <?php 
						echo $filas['cantidad_p'];						
						?> 
                      </div></td>
                  <td width="73">
                    <div align="center">
                      <?php 
						echo number_format($filas['cantidad_r'],0,'','');						
						?> 
                      </div></td>
                  <td width="45"><div align="center"><? echo $filas['estado']; ?></div></td>
                </tr>
                <? 
			}
			$objPer->Liberar($resultado); 
			 
			?>
              </table>
          </div></td>
        </tr>        
        <tr>          
            <td>
              <div align="center"> 
			  </div>
			</td>          
        </tr>
      </table>
    </div></td>
  </tr>
  <tr class="lblCampo">
    <td colspan="3"><div align="left">NOTA:</div></td>
  </tr>
  <tr class="lblCampo">
    <td colspan="3">P -----&gt;PENDIENTE</td>
  </tr>
</table>
</body>

</html>

