<?php
  include("stilos/config.inc.php");
  include("../clases/BDConexion.php");
  include("../clases/clsReq.php");
  include("funcion/funciones.php");
  include("Funciones.php");
  session_start();
  $objPer=new clsReq;
  
?>
<!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="1" cellspacing="0" cellpadding="0" style="<?=$stylo['tabla']?>" bordercolor="<?=$bordetabla1?>">
  <tr class="lblCampo" valign="top">
    <td><div align="left">
      </div>      <div align="center">
<table width="717" border="0" cellspacing="0" cellpadding="0">
  <tr class="lblTituloReporte">
    <td width="114"><div align="left">
      <table width="110" 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">&nbsp;</td>
        </tr>
      </table>
    </div></td>
    <td width="489"><div align="center">FORMATO DE EVALUACION DE COTIZACIONES </div></td>
    <td width="114">&nbsp;</td>
  </tr>
</table>
</td>
  </tr>
  
  
  <tr>
    <td><div align="left">
      <table width="718" border="0" cellspacing="0" cellpadding="0">
        
        
        <tr valign="top">
          <td height="450"><div align="left">
              <table width="719" border="1" cellpadding="0" cellspacing="0" style="<?=$stylo['tabla']?>" bordercolor="<?=$bordetabla1?>">
                <tr valign="top" class="lblCampo" >
                  <td width="39"><div align="center" class="rdoBanners">Item</div></td>
                  <td width="59"><div align="left" class="rdoBanners">Cantidad</div></td>
                  <td width="40" class="rdoBanners">Medida</td>
                  <td width="295" class="rdoBanners"><div align="center">Descripci&oacute;n del Aritculo </div></td>
                  <td colspan="2" class="rdoBanners"><div align="center">Empresas</div></td>
                  <td class="rdoBanners"><div align="center">Mejor Opci&oacute;n </div></td>
                </tr>
                <? 
					  		   
				    if(isset($Numcotiza)){
						$resultado=$objPer->DevolverEvaluacion($Numcotiza);
						$result=$objPer->DevolverDetaEvaluacion($Numcotiza);
						$item = 1;
					
                  while($filas=$objPer->NextRow($result))
                   {
				    
				   ?>
                <tr valign="top" class="lblCampo12">
                  <td class="lblForm">
                    <div align="center"> <? echo $item ?> </div></td>
                  <td class="lblForm"><div align="left">
                    <?php 
						echo $filas['cantidad_p'];						
						?>
                  </div></td>
                  <td class="lblForm"><?php 
						echo $filas['um'];						
						?></td>
                  <td class="lblForm"><?php 
						echo $filas['nom_ap'];						
						?></td>
                  <td colspan="2" class="lblForm"><div align="center">
                    <?php 
						echo $filas['empresas'];						
						?>
                  </div></td>
                  <td width="68"><div align="center"><? echo $filas['mejor_opc']; ?></div></td>
                </tr>
				<?php $item += 1; }  $objPer->Liberar($result); }?>
                            
              </table>
          </div></td>
        </tr>
        
		<? if ($datos=$objPer->NextRow($resultado)){?>       
        <tr>          
            <td>
			  <div align="center">
			    <table width="717" border="1" cellspacing="0" cellpadding="0" style="<?=$stylo['tabla']?>" bordercolor="<?=$bordetabla1?>">
                  <tr class="lblCampo12">
                    <td width="161" height="50"><div align="center"><strong>COMENTARIOS<br>
ADICIONALES</strong></div></td>
                    <td width="550"><div align="left"><span class="lblForm"><? echo $datos['comentarios'];?></span></div></td>
                  </tr>
                </table>
			  </div></td>          
        </tr>
        <tr class="lblCampo12">
          <td><div align="right">
            <table width="200" border="1" cellspacing="0" cellpadding="0" style="<?=$stylo['tabla']?>" bordercolor="<?=$bordetabla1?>">
              <tr>
                <td><div align="center">Fecha</div></td>
              </tr>
              <tr>
                <td><div align="center"><?php echo extraerfechanormal($datos['fecha']);?></div></td>
              </tr>
            </table>
          </div></td>
        </tr>
        <tr>
          <td><div align="center">
            <table width="717" border="1" cellspacing="0" cellpadding="0" style="<?=$stylo['tabla']?>" bordercolor="<?=$bordetabla1?>">
              <tr valign="top">
                <td width="330" height="70"><div align="left"><span class="lblForm"><strong>Preparado Por: </strong><?php echo $datos['preparadopor'];?></span></div></td>
                <td width="381"><div align="left"><span class="lblForm"><strong>Aprobado Por:</strong> <?php echo $datos['aprobadopor']; ?></span></div></td>
              </tr>
            </table>
          </div></td>
        </tr>
		<? } $objPer->Liberar($resultado);?>
      </table>
    </div></td>
  </tr>
  
</table>
</body>

</html>


