<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head><meta http-equiv="Content-Type" content="text/html; charset=euc-jp">



<title>Panel</title>





<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">

<link href="http://radioshosting.com/css/delalora4new.css" rel="stylesheet">

<link rel="stylesheet" href="https://unpkg.com/flickity@2/dist/flickity.min.css"/>

<link rel="stylesheet" href="http://ejemplo.radiosnet.com.ar/css/font-awesome.min.css"/>



</head>



<body>

<div class="container-fluid">



<div class="row">



<div class="col-lg-3 col-md-3 col-sm">





<?php

include 'concha.php';
include 'nav.php';?>



</div>



<div class="col-lg-9 col-md-9">



  <span class="h2">Añadir un Articulo Nuevo </span>
<B>SOLO CON PRECIO DE COSTO.</B>

  <hr />





  <form id="form1" name="form1" method="post" action="form_cargar_articulo_solo_costo.php">



  <table width="100%" border="0" cellspacing="5">

    <tr>

      <td width="15%" height="38"><div align="right">Nombre Articulo:</div></td>

      <td width="85%"><input name="titulo" type="text" class="h4" id="titulo" placeholder="nombre del artículo" /></td>

    </tr>

    <tr>

      <td><div align="right">    <p>PROVEEDOR:<br> (<A HREF="cargar_proveedor.php">AÑADIR UNO</A>)</div></td>

      <td><select name="proveedor" id="proveedor">



     <option value="0">Seleccione un Proveedor ----></option>

<?








mysql_connect("$host","$usuario","$contra");



mysql_select_db ("$basedatos");



$sql = "SELECT * FROM `proveedores`";



$consulta = mysql_query ($sql);



while ($row = mysql_fetch_array($consulta))



{

$ID_proveedor = $row["ID"];

$nombre = $row["nombre"];

$empresa = $row["empresa"];

?>



<option value="<?php echo $ID_proveedor ?>"><?php echo $empresa ?> - <?php echo $nombre ?> </option>

<?



}



mysql_free_result($consulta);



?>





      </select>



<hr>
<p>CAT:
  <select name="cat" id="cat">
      <option>NINGUNA</option>
<?
$sql = "SELECT * FROM `cat`";
$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{
$ID_cat = $row["ID"];
$nombre = $row["nombre"];

?>
  <option <? if ($nombre == $cat) { echo "selected";} ?>  value="<? echo $nombre ?>"><? echo "$nombre"; ?></option>
<?
}
mysql_free_result($consulta);
?>


  </select>
  </p>
        </td>

    </tr>

    <tr>

      <td><div align="right">Precio de costo: <br>

    </div></td>

      <td>  <font color="red">A PARTIR DE ESTE PRECIO, SE VAN A CARGAR 2 PRECIOS MAS EN EL SISTEMA. <BR>

  LOS AGREGADOS QUE TIENE SON:<br>
  COSTO + IVA = COSTO + <? echo $precio_con_iva ?>%
  <br>
  PRECIO VENTA AL PUBLICO: (COSTO + IVA) + <? echo $precio_al_publico ?>%.


</font><br>

<BR><br>
COLOQUE AQUI PRECIO DE COSTO:<br><input name="precio" type="text" id="precio" onKeypress="if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;" value="" maxlength="9" placeholder="decimal con punto"><br><br></td>

    </tr>





    <tr>

      <td><div align="right">Stock:</div></td>

      <td><input name="stock" type="text" id="precio" onKeypress="if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;" value="" maxlength="9" placeholder="stock actual"></td>

    </tr>





       <tr>

      <td><div align="right">Codigo de Barras <br>(Escanee o invente uno):</div></td>

      <td><input name="barcode" type="text" id="barcode" required="required" onKeypress="if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;" value="" placeholder="obligatorio (solo números)"></td>

    </tr>

    <tr>

      <td>&nbsp;</td>

      <td>&nbsp;</td>

    </tr>

    <tr>

      <td>&nbsp;</td>

      <td><label>

        <input name="button" type="submit" class="h4" id="button" value="Cargar" />

      </label></td>

    </tr>

  </table>

  </form>

</div>

</div>













<script src="http://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>







<script type="text/javascript">window.setInterval(function(){

  $('.grid').isotope({

  itemSelector: '.grid-item'

});

}, 2000);

</script>

 <script language=javascript>

function ventanaSecundaria56 (URL){

   window.open(URL,"ventana1","width=960,height=630,scrollbars=NO")

}

  </script>



</body>

</html>
