Cambios en menus y correccion de error en login (consola error cambiador de estilo dark/light)

This commit is contained in:
imnavajas
2023-06-14 23:46:12 +02:00
parent f5e2305a9f
commit 51552bc594
9 changed files with 27 additions and 99 deletions

View File

@ -10,11 +10,11 @@ ini_set('display_errors', '1');
*/
$sql_details = array(
"type" => "Mysql", // Database type: "Mysql", "Postgres", "Sqlserver", "Sqlite" or "Oracle"
"user" => "sk_jjo", // Database user name
"pass" => "61tv&G1Zf^XY", // Database password
"user" => "sk_imn", // Database user name
"pass" => "Uyia19_87", // Database password
"host" => "localhost", // Database host
"port" => "", // Database connection port (can be left empty for default)
"db" => "sk_jjo", // Database name
"db" => "sk_imn", // Database name
"dsn" => "", // PHP DSN extra information. Set as `charset=utf8mb4` if you are using MySQL
"pdoAttr" => array() // PHP PDO attributes array. See the PHP documentation for all options
);

View File

@ -381,7 +381,7 @@ if (!empty($token) && $tfa == false) {
data-bs-auto-close="outside"
aria-expanded="false"
>
<i class="ti ti-eye ti-md"></i>
<i class="ti ti-building ti-md"></i>
</a>
<div class="dropdown-menu dropdown-menu-end py-0">
<div class="dropdown-menu-header border-bottom">

View File

@ -148,7 +148,7 @@ if (!empty($token) && $tfa == false) {
data-bs-auto-close="outside"
aria-expanded="false"
>
<i class="ti ti-eye ti-md"></i>
<i class="ti ti-building ti-md"></i>
</a>
<div class="dropdown-menu dropdown-menu-end py-0">
<div class="dropdown-menu-header border-bottom">

View File

@ -148,7 +148,7 @@ if (!empty($token) && $tfa == false) {
data-bs-auto-close="outside"
aria-expanded="false"
>
<i class="ti ti-eye ti-md"></i>
<i class="ti ti-building ti-md"></i>
</a>
<div class="dropdown-menu dropdown-menu-end py-0">
<div class="dropdown-menu-header border-bottom">

View File

@ -304,35 +304,6 @@
<?php endif; ?>
<?php
/**
* MENU MAQUETACION
*/
if (count(getArrayItem($menus, 'name', 'Maquetacion')) > 0): ?>
<!-- Maquetacion -->
<li class="menu-item">
<a href="<?= site_url("servicios/maquetacion") ?>" class="menu-link">
<i class="menu-icon tf-icons ti ti-ruler-2"></i>
<div data-i18n="<?= lang("App.menu_maquetacion") ?>"><?= lang("App.menu_maquetacion") ?></div>
</a>
</li>
<?php endif; ?>
<?php
/**
* MENU IMPRESION
*/
if (count(getArrayItem($menus, 'name', 'Impresion')) > 0): ?>
<!-- Printing -->
<li class="menu-item">
<a href="<?= site_url("servicios/impresion") ?>" class="menu-link">
<i class="menu-icon tf-icons ti ti-printer"></i>
<div data-i18n="<?= lang("App.menu_impresion") ?>"><?= lang("App.menu_impresion") ?></div>
</a>
</li>
<?php endif; ?>
<li class="menu-header small text-uppercase">

View File

@ -451,7 +451,7 @@
* MENU CONFIGURACION
*/
if (allowMenuSection($menus,
['Calendario', 'Paises', 'Users', 'Group'], 'index')): ?>
['Calendario', 'Paises', 'Users', 'Group', 'Papelesgenericos', 'Papelesimpresion'], 'index')): ?>
<li class="menu-item">
<a href="javascript:void(0);" class="menu-link menu-toggle">
<i class="menu-icon tf-icons ti ti-adjustments-horizontal"></i>
@ -494,6 +494,24 @@
</li>
<?php endif; ?>
<?php endif; ?>
<?php if (count($temp = getArrayItem($menus, 'name', 'Papelesgenericos')) > 0): ?>
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
<li class="menu-item">
<a href="<?= site_url("configuracion/papelesgenericos") ?>" class="menu-link">
<div data-i18n="<?= lang("App.menu_papelgenerico") ?>"><?= lang("App.menu_papelgenerico") ?></div>
</a>
</li>
<?php endif; ?>
<?php endif; ?>
<?php if (count($temp = getArrayItem($menus, 'name', 'Papelesimpresion')) > 0): ?>
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
<li class="menu-item">
<a href="<?= site_url("configuracion/papelesimpresion") ?>" class="menu-link">
<div data-i18n="<?= lang("App.menu_papelimpresion") ?>"><?= lang("App.menu_papelimpresion") ?></div>
</a>
</li>
<?php endif; ?>
<?php endif; ?>
</ul>
</li>
<?php endif; ?>
@ -514,37 +532,6 @@
<?php endif; ?>
<?php
/**
* MENU MAQUETACION
*/
if (count(getArrayItem($menus, 'name', 'Maquetacion')) > 0): ?>
<!-- Maquetacion -->
<li class="menu-item">
<a href="<?= site_url("servicios/maquetacion") ?>" class="menu-link">
<i class="menu-icon tf-icons ti ti-ruler-2"></i>
<div data-i18n="<?= lang("App.menu_maquetacion") ?>"><?= lang("App.menu_maquetacion") ?></div>
</a>
</li>
<?php endif; ?>
<?php
/**
* MENU DIGITALIZACIÓN
*/
if (count(getArrayItem($menus, 'name', 'Digitalizacion')) > 0): ?>
<!-- Digitalization -->
<li class="menu-item">
<a href="<?= site_url("servicios/digitalizacion") ?>" class="menu-link">
<i class="menu-icon tf-icons ti ti-file-code-2"></i>
<div data-i18n="<?= lang("App.menu_digitalizacion") ?>"><?= lang("App.menu_digitalizacion") ?></div>
</a>
</li>
<?php endif; ?>
<li class="menu-header small text-uppercase">
<span class="menu-header-text">Ajustes del Sistema</span>
</li>

View File

@ -327,36 +327,6 @@
<?php endif; ?>
<?php
/**
* MENU IMPRESION
*/
if (count(getArrayItem($menus, 'name', 'Impresion')) > 0): ?>
<!-- Printing -->
<li class="menu-item">
<a href="<?= site_url("servicios/impresion") ?>" class="menu-link">
<i class="menu-icon tf-icons ti ti-printer"></i>
<div data-i18n="<?= lang("App.menu_impresion") ?>"><?= lang("App.menu_impresion") ?></div>
</a>
</li>
<?php endif; ?>
<?php
/**
* MENU DIGITALIZACIÓN
*/
if (count(getArrayItem($menus, 'name', 'Digitalizacion')) > 0): ?>
<!-- Digitalization -->
<li class="menu-item">
<a href="<?= site_url("servicios/digitalizacion") ?>" class="menu-link">
<i class="menu-icon tf-icons ti ti-file-code-2"></i>
<div data-i18n="<?= lang("App.menu_digitalizacion") ?>"><?= lang("App.menu_digitalizacion") ?></div>
</a>
</li>
<?php endif; ?>
<li class="menu-header small text-uppercase">
<span class="menu-header-text">Ajustes del Sistema</span>

View File

@ -89,7 +89,7 @@ if (document.getElementById('layout-menu')) {
// Style Switcher (Light/Dark Mode)
//---------------------------------
let styleSwitcherToggleEl = document.querySelector('.style-switcher-toggle');
/*let styleSwitcherToggleEl = document.querySelector('.style-switcher-toggle');
if (window.templateCustomizer) {
// setStyle light/dark on click of styleSwitcherToggleEl
if (styleSwitcherToggleEl) {
@ -124,7 +124,7 @@ if (document.getElementById('layout-menu')) {
} else {
// Removed style switcher element if not using template customizer
styleSwitcherToggleEl.parentElement.remove();
}
}*/
// Update light/dark image based on current style
function switchImage(style) {