<?
session_start();
  include("../clases/BDConexion.php");
  include("../clases/clsReq.php");
  include("Funciones.php");
  include("stilos/config.inc.php");
  $objPer=new clsReq;
  session_register("EmpresaCoti"); 
?>
<!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,"Empresita",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();
}
//--> 
function enviar_url(){
   form1.submit();        
		}
</script>
</head>
<body bgcolor="<?=$c_fondo['fondo']?>">
<table width="360" border="0" cellspacing="0" cellpadding="0">
  <tr>
  <form name="form1" method="post" action="procesos/cvp_Empresacoti_agregarItem.php">
    <td><div align="left">
      
        <table width="360" 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="4"><div align="left">
              <table width="358" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td><div align="left">Empresas Cotizadas </div></td>
                  <td><div align="center">S/.</div></td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td width="201"><div align="left">
                    <?=$objPer->TiposEmpresa("tipo_emp",$valor)?>
</div></td>
                  <td width="40"><div align="left">
                    <input name="precio" type="text" id="precio" size="5">
                  </div></td>
                  <td width="117"><input type="button" name="Submit22" value="&gt;&gt;" style="<?=$stylo['st2']?>" class="botira" onClick="enviar_url()">
                    <input type="button" name="Submit222" value="Nuevo " style="<?=$stylo['st2']?>" class="botira" onClick="Abrir_Ventanapopup1('cvp_nueva_empresa.php',420,250)"></td>
                </tr>
              </table>
            </div></td>
          </tr>
          <tr class="lblCampo" bgcolor="<?=$c_fondo_tr["fondo tr"]?>"> 
            <td><div align="center">ITEM
              </div> <div align="center"></div></td>
            <td><div align="left">EMPRESA</div></td>
            <td><div align="center">S/.</div></td>
            <td>&nbsp;</td>
          </tr><?php 
		     if (isset($EmpresaCoti)){
									while(list($clave,$valor)=each($EmpresaCoti)){
									$Empresa=$valor[0];
									$precio=$valor[1];
		       ?>
          <tr valign="top">
            <td width="32"><div align="left">
                </div>
                <div align="center" class="lblForm"><?php echo ($clave + 1)?> </div></td>
            <td width="224" class="lblForm"><?php echo $Empresa?></td>
            <td width="64" class="lblForm"><div align="center"><?php echo $precio?></div></td>
            <td width="32"><div align="center"><a href="procesos/cvp_borrarItem_empresaCot.php?item=<? echo $clave?>"><img src="../imagenes/btn_eliminar.gif" width="15" height="15" border="0" ></a> </div></td>
          </tr>
		  <?php }}?>
          <tr>
            <td colspan="4"><div align="center"></div></td>
          </tr>
        </table>
     
        </div></td>
    </form>
  </tr>
</table>
</body>
</html>
