<?php
 
session_start();
$com = "A";
include("DMMYSQLG.php");
include("DSA3000.php");
include("DMMYSQLG.php");
require_once("DFJQUERY.inc");
?>
<html>
<link rel="stylesheet" href="css/estilo1.css" type="text/css"/>
<script type="text/javascript" language="JavaScript1.2" src="DSSCRIPT.js"></script>

<script language="javascript">
$(document).ready(function(){
	function formatItem(row) {
		return " (<strong>" + row[1] + "</strong>)"+row[0];
	}
	$("#tap2").autocomplete('provedor.php',{
		minChars: 1,                 //Caracteres Minimos antes de autocompletar
		//max:3                        //maximo de resultados mostrados, se manda como limit en autosugestion
		delay: 200,                  //Retardo de autocompletar 
		width: 500,                  //ancho del cuadro de despliegue
		highlight: false,            //Resalta letras coincidentes
		autoFill: false,             //autocompleta en texto la posible palabra
		scroll: true,				 //si cuadro tiene barra scroll
		scrollHeight: 300,           //alto del cuadro para el scroll
		formatItem:formatItem,	     //formato de presentacion de las posibles busquedas
		extraParams:{tipBus:'d'}     //Parametros Extra a Mandar en autosugestion
	});
});
</script>

<script language="javascript">
function ocultaMuestra(divVent){
	if(divVent.style.display=='none'){
		divVent.style.display='';

	}else{
		divVent.style.display='none';

	}
}	
	</script>
<body>

<form name="frm1" method="post" action="" enctype="multipart/form-data">
  <table width="475"  align="center">
    <tr>
      <th>AGREGAR COTIZACION POR PROVEDORES </th>
    </tr>
  </table>
  <div id="divVent" style="display:">
    <table width="475"  align="center"  >
      <tr>
        <td colspan="7"><div align="center">PROVEDOR</div></td>
      </tr>
      <tr>
        <td width="87">CODIGO</td>
        <td colspan="3">&nbsp;</td>
        <td width="76">PROVEDOR</td>
        <td colspan="2"><select name="nparte1" id="nparte1">
          <option value="" selected>----SELECCIONE----</option>
          <?php
 
$sql = mysqli_query($con ,"SELECT * FROM fprovedores");
while($reg=mysqli_fetch_array($sql)){
	if($_REQUEST['nparte1']==$reg['np_desc1'] ){
		echo '<option value="' . $reg['np_desc1'] . '" selected>' . $reg['np_desc1'] . '</option>';
	}else{
		echo '<option value="' . $reg['np_desc1'] . '">' . $reg['np_desc1'] . '</option>';
	}
}
?>
                        </select></td>
      </tr>
      <tr>
        <td colspan="7"><div align="center">ARTICULO
          
        </div></td>
      </tr>
      <tr>
        <td>CODIGO</td>
        <td colspan="3"><input name="textfield5" type="text" size="20"></td>
        <td>ARTICULO</td>
        <td colspan="2"><select name="select2">
        </select>        </td>
      </tr>
      <tr>
        <td colspan="2">UNIDAD DE COMPRA </td>
        <td width="144">
          <div align="left">
            <input name="textfield2" type="text" size="10">
          </div></td>
        <td colspan="2">UNIDAD POR PIEZA </td>
        <td width="62"><input name="textfield3" type="text" size="10"></td>
        <td width="68"><input name="textfield4" type="text" size="10"></td>
      </tr>
      <tr>
        <td>AGRUPADOR</td>
        <td colspan="3"><input type="text" name="textfield6"></td>
        <td>COSTO</td>
        <td colspan="2"><input name="textfield7" type="text" size="20"></td>
      </tr>
      <tr>
        <td height="28">FECHA DE VENCIMIENTO </td>
        <td colspan="4"><input type="text" name="textfield8"></td>
        <td colspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="3"><div align="right">DESCRIPCION MARCA </div></td>
        <td colspan="4"><select name="select3">
        </select>        </td>
      </tr>
      <tr>
        <td colspan="7"><div align="center">
          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" name="r1" width="105" height="33" id="r1" accesskey="art">
            <param name="movie" value="button1.swf">
            <param name="quality" value="high">
            <param name="bgcolor" value="#FFFFFF">
            <embed src="button1.swf" width="105" height="33" quality="high" pluginspage="" type="application/x-shockwave-flash" style="#FFFFFF" name="r1"></embed>
          </object>
        </div></td>
      </tr>
      <tr>
        <td colspan="7"><div align="center">TABLA DE ARTICULOS </div></td>
      </tr>
      <tr>
        <td colspan="7"><table width="588" >
          <tr>
            <td width="51">ARTICULO</td>
            <td width="37">MARCA</td>
            <td width="38">UNIDAD</td>
            <td width="58">CAPACIDAD</td>
            <td width="58">UN.CAP</td>
            <td width="71">COSTO</td>
            <td width="100">AGRUPADOR</td>
            <td width="123">FECHA DE VENCIMIENTO</td>
          </tr>
        </table>
          <label>
          <div align="center">
            <input name="Submit22" type="Button" onClick="cargapag('CO20600_AC.php','_self')" value="Guardar">
            <input type="Button" name="Submit2" value="Regresar" onClick="envia1('CO20600_PR.php','_self')">
          </div>
        </label></td>
      </tr>
    </table>	
  </div>
</form>
</body>
</html>
<?php
 mysqli_close($con);?>
