

                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                      Productos
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="<?=base_index();?>"><i class="fa fa-dashboard"></i> Inicio</a></li>
                        <li><a href="<?=base_index();?>productos">Productos</a></li>
                        <li class="active">Editar Productos</li>
                    </ol>
                </section>

                <!-- Main content -->
                <section class="content">
<div class="row">
    <div class="col-lg-12">
        <div class="box box-solid box-primary">
                                   <div class="box-header">
                                    <h3 class="box-title">Editar Productos</h3>
                                    <div class="box-tools pull-right">
                                        <button class="btn btn-info btn-sm" data-widget="collapse"><i class="fa fa-minus"></i></button>
                                        <button class="btn btn-info btn-sm" data-widget="remove"><i class="fa fa-times"></i></button>
                                    </div>
                                </div>

                  <div class="box-body">
                     <form id="update" method="post" class="form-horizontal" action="<?=base_admin();?>modul/productos/productos_action.php?act=up">
                      <div class="form-group">
                        <label for="Código" class="control-label col-lg-2">Código</label>
                        <div class="col-lg-10">
                          <input type="text" name="codigo" value="<?=$data_edit->codigo;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Nombre" class="control-label col-lg-2">Nombre</label>
                        <div class="col-lg-10">
                          <input type="text" name="nombre" value="<?=$data_edit->nombre;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Categoría" class="control-label col-lg-2">Categoría</label>
                        <div class="col-lg-10">
                          <select 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) {

                  if ($data_edit->categoria_idcategoria==$isi->idcategoria) {
                    echo "<option value='$isi->idcategoria' selected>$isi->categoria</option>";
                  } else {
                  echo "<option value='$isi->idcategoria'>$isi->categoria</option>";
                    }
               } ?>
              </select>
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Stock" class="control-label col-lg-2">Stock</label>
                        <div class="col-lg-10">
                          <input type="text" name="stock" value="<?=$data_edit->stock;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Precio Costo" class="control-label col-lg-2">Precio Costo</label>
                        <div class="col-lg-10">
                          <input type="text" name="precio_costo" value="<?=$data_edit->precio_costo;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="IVA" class="control-label col-lg-2">IVA</label>
                        <div class="col-lg-10">
                          <input type="text" name="iva" value="<?=$data_edit->iva;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->
<div class="form-group">
                        <label for="Precio Venta" class="control-label col-lg-2">Precio Venta</label>
                        <div class="col-lg-10">
                          <input type="text" name="precio_venta" value="<?=$data_edit->precio_venta;?>" class="form-control" > 
                        </div>
                      </div><!-- /.form-group -->

                      <input type="hidden" name="id" value="<?=$data_edit->idproductos;?>">
                      <div class="form-group">
                        <label for="tags" class="control-label col-lg-2">&nbsp;</label>
                        <div class="col-lg-10">
                          <input type="submit" class="btn btn-primary btn-flat" value="Enviar">
                        </div>
                      </div><!-- /.form-group -->
                    </form>
                    <a href="<?=base_index();?>productos" class="btn btn-success btn-flat"><i class="fa fa-step-backward"></i> Volver</a>
          
                  </div>
                  </div>
              </div>
</div>
                  
                </section><!-- /.content -->
        
 