<?
session_start();
  include("../clases/BDConexion.php");
  include("../clases/clsPer.php");
  include("Funciones.php");
  include("stilos/config.inc.php");
  $objPer=new clsPer;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin t&iacute;tulo</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">
<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=no"
			par = par + "menubar=no,toolbar=no,status=yes"
			var ventana = window.open(sURL,"Ver",par)
			ventana.focus();
}
function Abrir_Ventanapopup2(sURL,x,y) { 
if (!window.focus) return;
			var par;
			par = "width=" +x + ",height="+y+","
			par = par + "dependent=no,scrollbars=yes,resizable=no"
			par = par + "menubar=no,toolbar=no,status=yes"
			var ventana = window.open(sURL,"Nuevo",par)
			ventana.focus();
}
//--> 
</script>
</head>

<body bgcolor="<?=$c_fondo['fondo']?>">
<table width="816" border="0" cellspacing="0" cellpadding="0">
  <tr>
  <form name="form1" method="post" action="enviar_detped.php">
    <td><div align="left">
      
        <table width="815" border="1" cellspacing="0" cellpadding="0" bordercolor="<?=$bordetabla?>" bgcolor="<?=$c_fondo['fondo tabla']?>" style="<?=$stylo['tabla']?>">
          <tr class="lblCampoBlanco" bgcolor="<?=$c_fondo_tr["fondo tr"]?>">
            <td colspan="6"><div align="left">Detalle de Pedidos :</div></td>
          </tr>
          <tr class="lblCampo" bgcolor="<?=$c_fondo_tr["fondo tr"]?>">
            <td width="412"><div align="center">Descripcion del Articulo </div></td>
            <td width="48"><div align="center">Unidad M. </div></td>
            <td width="57"><div align="center">cant. Pedidad </div></td>
            <td width="222"><div align="left">Detalle de Uso </div></td>
            <td width="27">
			<div align="center"></div>              
			<div align="center">Estado</div></td>
            <td>&nbsp;</td>
          </tr>
          <tr valign="top">
            <td><div align="left">
                <input name="nombres" type="text" id="nombres" size="80" >
                <input name="btn_ver1" type="hidden" class="botira" id="btn_ver1" style="<?=$stylo['st2']?>" value="Buscar" onClick="javascript:Abrir_Ventanapopup1('cvp_artped_ver.php',465,150)" >
                <input type="hidden" name="Submit" value="Nuevo" style="<?=$stylo['st2']?>" class="botira" onClick="javascript:Abrir_Ventanapopup2('cvp_artped_nuevo.php',465,150)">
                <span class="lblCampo">
                <input name="codigo_ap" type="hidden" size="5" >
                </span></div>
                <div align="left"> </div></td>
            <td><div align="center">
              <input name="um" type="text" id="um" value=".." size="4">
            </div></td>
            <td>
              <div align="center">
                <input name="cantidad_p" type="text" id="cantidad_p" value="0" size="4">
            </div></td>
            <td><input name="detalle_uso" type="text" id="detalle_uso" size="43"></td>
            <td>              
			  <div align="center" class="lblCampo">			
			  </div>
			</td>
            <td width="37"><input name="Submit22" type="submit" style="<?=$stylo['st2']?>" class="botira" value="&gt;&gt;&gt;" >              </td>
          </tr>
          <tr>
            <td colspan="6"><div align="center">
                <table width="814" border="0" cellspacing="0" cellpadding="0" style="<?=$stylo['tabla']?>" bgcolor="<?=$c_fondo['fondo tabla']?>" bordercolor="<?=$bordetabla?>">
                  <? 	
$n=0;
if (isset($pedido)){
while(list($clave,$valor)=each($pedido)){
$nombres=$valor[0];
$cantidad_p=$valor[1];
$estado=$valor[2];
$um=$valor[3];
$detalle_uso=$valor[4];
$n++; 
		  /*$resultado=$objPer->devolverArtPed($codigo_ap);
		  $filas=$objPer->NextRow($resultado);*/		  
?>
                  <?
//if ($linea){$color = "#ECE9D8";$linea=0;}else{$color = "#D4D0C8";$linea++;}
?>
                  <tr class="lblForm" >
                    <td width="30" >
                      <div align="center"> </div>
                      <div align="left"> <? echo $n;?> </div></td>
                    <td width="388"><div align="left">
              <? 
			  echo $nombres;			  
			  ?>
                    </div></td>
                    <td width="39">
                      <div align="center">
                <? 
				echo $um;				
				?>
                    </div></td>
                    <td width="62"><div align="center"><? echo $cantidad_p?> </div></td>
                    <td width="216"><div align="left"><? echo $detalle_uso?></div></td>
                    <td width="36"><div align="center"><? echo $estado?></div>                      
					</td>
                    <td width="43"><div align="center"> 
					<a href="procesos/cvp_detalle_borrar.php?item=<? echo $clave?>">
					<img src="../imagenes/btn_eliminar.gif" width="15" height="15" border="0" >
					</a> 
					</div></td>
                  </tr>
                  <?  
	} ?>
                  <? } ?>
                  <tr class="lblForm" >
                    <td>&nbsp;</td>
                    <td><div align="center">----------</div></td>
                    <td><div align="center">------</div></td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                </table>
            </div></td>
          </tr>
        </table>
     
        </div></td>
    </form>
  </tr>
  
  
</table>
</body>
</html>
