Viewing file: import_product.php (1.51 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div class="content-wrapper" style="min-height: 946px;"> <div ng-app="MenuOperaciones" style="margin-left:20px;"> <section class="content-header"> </section>
<!-- Main content --> <section class="content">
<form action="<?php echo base_url()?>home/importarExcel" enctype="multipart/form-data" method="post"> <input id="archivo" name="archivo" type="file" /> <input name="MAX_FILE_SIZE" type="hidden" value="20000" /> <input name="enviar" type="submit" value="Importar" /> <input name="mensaje" type="text" value="<?php echo($mensaje); ?>" />
<?php $this->table->set_heading( 'CAMP1','CAMP2', 'CAMP3'); //crea la primera fila de la tabla con el encabezado $tmp = array ( 'table_open' => '<table class="table table-bordered table-striped" id="busquedaRecibo" width="100%">' ); //modifica el espaciado $this->table->set_template($tmp); //aplico los cambios de modificacion anterior
if($datos != null){ foreach($datos as $dato): $this->table->add_row($dato['campo'],$dato['campo1'],$dato['campo2']); //agregamos la celda a la tabla por cada iteracion endforeach; }
echo $this->table->generate(); //cuando termina generamos la tabla a partir del vector echo $this->pagination->create_links(); ?> <button type="submit" class="btn btn-success btn-lg" aria-label="Left Align"> <span class="glyphicon glyphicon-plus"></span> ACTUALIZAR PRODUCTOS </button> </form>
</section><!-- /.content --> </div><!-- /.content-wrapper -->
|