Implementado script principal

This commit is contained in:
unknown
2025-04-27 00:00:58 +02:00
parent e8958dc893
commit ae456c8890
4 changed files with 100 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<?php
namespace App\Controllers\Catalogo;
namespace App\Controllers\Importadores;
use App\Controllers\BaseResourceController;
use App\Entities\Catalogo\CatalogoLibroEntity;

View File

@ -8,12 +8,33 @@
<div class="card card-info">
<div class="card-header">
<h3 class="card-title"><?= lang('Importador.listingPage') ?></h3>
<h3 class="card-title"><?= lang('Importador.listingPage') ?></h3>
</div><!--//.card-header -->
<div class="card-body">
<?= view('themes/_commonPartialsBs/_alertBoxes'); ?>
<input type="file" id="excelFile" accept=".xlsx, .xls">
<div id="tableContainer"></div>
<br>
<button id="importBtn">Importar</button>
<table id="excelTable" class="display">
<thead>
<tr>
<th>cnt_pedida</th>
<th>precio_compra</th>
<th>idlinea</th>
<th>input</th>
<th>descripcion</th>
<th>Acción</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div><!--//.card-body -->
<div class="card-footer">
@ -46,5 +67,6 @@
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="<?= site_url("/themes/vuexy/vendor/libs/datatables-sk/plugins/pdfmake/vfs_fonts.js") ?>"></script>
<script src="<?= site_url('themes/vuexy/vendor/libs/sweetalert2/sweetalert2.js') ?>"></script>
<script type="module" src="<?= site_url("assets/js/safekat/pages/importador/catalogo_tool.js") ?>"></script>
<script src="https://cdn.sheetjs.com/xlsx-latest/package/dist/xlsx.full.min.js"></script>
<script type="module" src="<?= site_url("assets/js/safekat/pages/importadores/catalogo/catalogo_tool.js") ?>"></script>
<?= $this->endSection() ?>