	<?php
		/*if (isset($con))
		{*/
	?>
	<!-- Modal -->
	<div class="modal fade" id="nuevoProducto" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
	  <div class="modal-dialog" role="document">
		<div class="modal-content">
		  <div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			<h4 class="modal-title" id="myModalLabel"><i class='glyphicon glyphicon-edit'></i> Agregar nuevo producto</h4>
		  </div>
		  <div class="modal-body">
			<form class="form-horizontal" method="post" id="guardar_producto" name="guardar_producto">
			<div id="resultados_ajax_productos"></div>
			  <div class="form-group col-lg-12">
                        <label for="Código" class="control-label ">Código</label>
                        <div class="input-group">
                          <div class="input-group-addon">
                            <i class="fa fa-bullseye"></i>
                          </div>
                          <input id="codigo" type="text" name="codigo" placeholder="Código" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group col-lg-12">
                        <label for="Nombre" class="control-label">Nombre</label>
                        <div class="input-group">
                          <div class="input-group-addon">
                            <i class="fa fa-cube"></i>
                          </div>
                          <input id="nomp" type="text" name="nombre" placeholder="Nombre" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group col-lg-12">
                        <label for="Categoría" class="control-label">Categoría</label>
                        <div class="input-group">
                          <div class="input-group-addon">
                            <i class="fa fa-cubes"></i>
                          </div>
                          <select id="cat" name="categoria_idcategoria" data-placeholder="Seleccione Categoría ..." class="form-control chzn-select" tabindex="2" >
               <option value=""></option>
               <?php foreach ($db->fetch_all("categoria") as $isi) {
                  echo "<option value='$isi->idcategoria'>$isi->categoria</option>";
               } ?>
              </select>
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group col-lg-12">
                        <label for="Stock" class="control-label ">Stock</label>
                        <div class="input-group">
                          <div class="input-group-addon">
                            <i class="fa fa-tag"></i>
                          </div>
                          <input id="stock" type="text" name="stock" placeholder="Stock" class="form-control" required> 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group col-lg-12">
                        <label for="Precio Costo" class="control-label ">Precio Costo</label>
                        <div class="input-group">
                          <div class="input-group-addon">
                            <i class="fa fa-dollar"></i>
                          </div>
                          <input id="costo" type="text" name="precio_costo" placeholder="Precio Costo" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group ">
	<div class="col-lg-12">
                        <label for="Precio Venta" class="control-label ">Precio Venta</label>
                        <div class="input-group">
                          <div class="input-group-addon">
                            <i class="fa fa-dollar"></i>
                          </div>
                          <input id="venta" type="text" name="precio_venta" placeholder="Precio Venta" class="form-control" required> 
                        </div>
                        </div>
                      </div><!-- /.form-group -->
			 
			 
			
		  </div>
		  <div class="modal-footer">
			<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
			<button type="submit" class="btn btn-primary" id="guardar_datosp">Guardar datos</button>
		  </div>
		  </form>
		</div>
	  </div>
	</div>
	<?php
		//}
	?>