From 37afc63e2ed8effe2f63b517b28455308d45ec7c Mon Sep 17 00:00:00 2001 From: imnavajas Date: Tue, 6 Jun 2023 13:57:34 +0200 Subject: [PATCH] Menus segun JM --- ci4/app/Controllers/Activity.php | 4 - ci4/app/Controllers/Ajax.php | 4 +- .../Presupuestos/Presupuestomaquetacion.php | 19 +- .../Compras.php | 4 +- .../Digitalizacion.php | 2 +- ci4/app/Controllers/Servicios/Impresion.php | 21 + .../Maquetacion.php | 2 +- .../Mensajes.php | 2 +- .../Productos.php | 2 +- .../Proveedor.php | 2 +- ci4/app/Filters/LoginAuthFilter.php | 5 +- ci4/app/Language/es/App.php | 8 +- .../backend/vuexy/form/activity/index.php | 209 +++++---- .../backend/vuexy/form/activity/index_bk.php | 234 +++++++++++ .../backend/vuexy/form/settings/index.php | 1 - .../backend/vuexy/main/activities_layout.php | 342 +++++++++++++++ .../Views/themes/backend/vuexy/main/all.php | 4 +- .../backend/vuexy/main/defaultlayout.php | 52 ++- .../vuexy/main/general_settings_layout.php | 52 ++- .../themes/backend/vuexy/main/header.php | 2 +- .../vuexy/main/menu_digitalizacion.php | 373 +++++++++++++++++ .../backend/vuexy/main/menu_impresion.php | 14 +- .../backend/vuexy/main/menu_maquetacion.php | 396 ++++++++++++++++++ .../backend/vuexy/main/selector_menu.php | 14 +- 24 files changed, 1621 insertions(+), 147 deletions(-) rename ci4/app/Controllers/{Servicioscompras => Servicios}/Compras.php (77%) rename ci4/app/Controllers/{Serviciosdigitalizacion => Servicios}/Digitalizacion.php (81%) create mode 100644 ci4/app/Controllers/Servicios/Impresion.php rename ci4/app/Controllers/{Serviciosmaquetacion => Servicios}/Maquetacion.php (89%) rename ci4/app/Controllers/{Serviciosmensajeria => Servicios}/Mensajes.php (89%) rename ci4/app/Controllers/{Servicioscompras => Servicios}/Productos.php (82%) rename ci4/app/Controllers/{Servicioscompras => Servicios}/Proveedor.php (82%) create mode 100644 ci4/app/Views/themes/backend/vuexy/form/activity/index_bk.php create mode 100644 ci4/app/Views/themes/backend/vuexy/main/activities_layout.php create mode 100644 ci4/app/Views/themes/backend/vuexy/main/menu_digitalizacion.php create mode 100644 ci4/app/Views/themes/backend/vuexy/main/menu_maquetacion.php diff --git a/ci4/app/Controllers/Activity.php b/ci4/app/Controllers/Activity.php index 609f1c4d..41c49144 100644 --- a/ci4/app/Controllers/Activity.php +++ b/ci4/app/Controllers/Activity.php @@ -43,9 +43,7 @@ class Activity extends BaseController SUM( IF( browser LIKE "%Edge%", 1, 0 ) ) AS edge, SUM( IF( browser LIKE "%Opera%", 1, 0 ) ) AS opera')->where('auth_activity.user',$session->get('token'))->first(); $data['all'] = ""; - echo view(getenv('theme.path').'main/header'); echo view(getenv('theme.path').'form/activity/index',$data); - echo view(getenv('theme.path').'main/footer'); } public function all() @@ -79,8 +77,6 @@ class Activity extends BaseController SUM( IF( browser LIKE "%Edge%", 1, 0 ) ) AS edge, SUM( IF( browser LIKE "%Opera%", 1, 0 ) ) AS opera')->first(); $data['all'] = "/all"; - echo view(getenv('theme.path').'main/header'); echo view(getenv('theme.path').'form/activity/index',$data); - echo view(getenv('theme.path').'main/footer'); } } diff --git a/ci4/app/Controllers/Ajax.php b/ci4/app/Controllers/Ajax.php index bbe7cbb1..95250477 100644 --- a/ci4/app/Controllers/Ajax.php +++ b/ci4/app/Controllers/Ajax.php @@ -5,8 +5,8 @@ namespace App\Controllers; use App\Models\CronTabModel; use App\Models\NotificationModel; use App\Models\Usuarios\UserModel; -use App\Models\UserGroupModel; -use App\Models\GroupUserModel; +use App\Models\Usuarios\UserGroupModel; +use App\Models\Usuarios\GroupUserModel; use App\Models\ActivityModel; use CodeIgniter\RESTful\ResourceController; diff --git a/ci4/app/Controllers/Presupuestos/Presupuestomaquetacion.php b/ci4/app/Controllers/Presupuestos/Presupuestomaquetacion.php index 28c732ca..101941db 100644 --- a/ci4/app/Controllers/Presupuestos/Presupuestomaquetacion.php +++ b/ci4/app/Controllers/Presupuestos/Presupuestomaquetacion.php @@ -13,8 +13,23 @@ class Presupuestomaquetacion extends BaseController public function index() { - echo 'Presupuesto maquetacion'; - } + echo 'Presupuesto maquetacion Todos'; + } + + public function nuevo() + { + echo 'Presupuesto maquetacion Nuevo'; + } + + public function borrador() + { + echo 'Presupuesto maquetacion Borrador'; + } + + public function aceptados() + { + echo 'Presupuesto maquetacion Aceptados'; + } public function delete() { diff --git a/ci4/app/Controllers/Servicioscompras/Compras.php b/ci4/app/Controllers/Servicios/Compras.php similarity index 77% rename from ci4/app/Controllers/Servicioscompras/Compras.php rename to ci4/app/Controllers/Servicios/Compras.php index 791aee00..27536b8f 100644 --- a/ci4/app/Controllers/Servicioscompras/Compras.php +++ b/ci4/app/Controllers/Servicios/Compras.php @@ -1,6 +1,6 @@ "Panel de control", "menu_clientes" => "Clientes", + "menu_clientes_nuevo" => "Nuevo", "menu_tarifacliente" => "Tarifas", "menu_configuration" => "Configuracion", @@ -694,6 +695,8 @@ return [ "menu_mensajes" => "Mensajes", + "menu_impresion" => "Impresion", + "menu_maquetacion" => "Maquetación", "menu_digitalizacion" => "Digitalización", @@ -735,7 +738,10 @@ return [ "menu_presupuestos" => "Presupuestos", "menu_presupuesto" => "Libros", - "menu_presupuestomaquetacion" => "Presupuestos maquetación", + "menu_presupuestomaquetacion_nuevo" => "Nuevo", + "menu_presupuestomaquetacion_todos" => "Todos", + "menu_presupuestomaquetacion_borrador" => "Borrador", + "menu_presupuestomaquetacion_aceptados" => "Aceptados", "menu_produccion" => "Producción", "menu_orden_trabajo" => "OTs", diff --git a/ci4/app/Views/themes/backend/vuexy/form/activity/index.php b/ci4/app/Views/themes/backend/vuexy/form/activity/index.php index b3625cf5..dcac76d0 100644 --- a/ci4/app/Views/themes/backend/vuexy/form/activity/index.php +++ b/ci4/app/Views/themes/backend/vuexy/form/activity/index.php @@ -1,132 +1,136 @@ +include("themes/_commonPartialsBs/select2bs5") ?> +include("themes/_commonPartialsBs/datatables") ?> +extend('themes/backend/vuexy/main/activities_layout') ?> + +section('content'); ?> -
-
-
-
-
-

- -
-
-
- -
-
-
-
+
+
+ +
+ +
-
-
- +
+
+
+
-
-
-
+
+ + +
-
+
-
-
- +
+
+
+
-
-
-
+
+ + +
-
+
-
-
- +
+
+
+
-
-
-
+
+ + +
-
+
-
-
- +
+
+
+
-
-
-
+
+ + +
-
+
-
-
- +
+
+
+
-
-
-
+
+ + +
-
+
-
-
- +
+
+
+
-
-
-
+
+ + +
-
+
-
-
- +
+
+
+
-
-
-
+
+ + +
-
+
-
-
- +
+
+
+
-
-
-
+
+ + +
-
-
+ +
@@ -162,31 +167,13 @@
+
- - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file +endSection() ?> \ No newline at end of file diff --git a/ci4/app/Views/themes/backend/vuexy/form/activity/index_bk.php b/ci4/app/Views/themes/backend/vuexy/form/activity/index_bk.php new file mode 100644 index 00000000..b3625cf5 --- /dev/null +++ b/ci4/app/Views/themes/backend/vuexy/form/activity/index_bk.php @@ -0,0 +1,234 @@ + +
+
+
+
+
+

+ +
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+

+
+ get('dashboard')=='admin') : ?> + + +
+
+ + + +
+ + + + + + + + + + + + +
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ci4/app/Views/themes/backend/vuexy/form/settings/index.php b/ci4/app/Views/themes/backend/vuexy/form/settings/index.php index 0ad9d8f1..4bf37724 100644 --- a/ci4/app/Views/themes/backend/vuexy/form/settings/index.php +++ b/ci4/app/Views/themes/backend/vuexy/form/settings/index.php @@ -1483,5 +1483,4 @@ } } } - endSection() ?> diff --git a/ci4/app/Views/themes/backend/vuexy/main/activities_layout.php b/ci4/app/Views/themes/backend/vuexy/main/activities_layout.php new file mode 100644 index 00000000..a0c8c2cb --- /dev/null +++ b/ci4/app/Views/themes/backend/vuexy/main/activities_layout.php @@ -0,0 +1,342 @@ +get('token') ?? ''; +$tfa = $session->get('tfa') ?? false; +$settings = $session->get('settings'); + +$picture = session()->get('picture'); +$pulse = session()->get('pulse'); +$notification = session()->get('notification'); + +if (!empty($token) && $tfa == false) { + //echo ""; +} +?> + + + + + + + + + + <?= lang("App.dashboard_title") ?> - <?= $settings['title'] ?? '' ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + renderSection('css') ?> + + + + + + + + + + + +
+
+ + + + +
+ + + + + + +
+ + +
+

Activities / Access

+ + renderSection('content') ?> + +
+ + + + + + +
+
+ +
+ +
+ + +
+ + +
+
+ + +renderSection('footerAdditions') ?> + + + + + + + + + + + + +renderSection('additionalExternalJs') ?> + + + + + + + + + + + + + + diff --git a/ci4/app/Views/themes/backend/vuexy/main/all.php b/ci4/app/Views/themes/backend/vuexy/main/all.php index db682dd1..8b2aa3f7 100644 --- a/ci4/app/Views/themes/backend/vuexy/main/all.php +++ b/ci4/app/Views/themes/backend/vuexy/main/all.php @@ -372,7 +372,7 @@ if (!empty($token) && $tfa == false) { - +
- + + + + + + + + +
- + diff --git a/ci4/app/Views/themes/backend/vuexy/main/menu_digitalizacion.php b/ci4/app/Views/themes/backend/vuexy/main/menu_digitalizacion.php new file mode 100644 index 00000000..b12f782b --- /dev/null +++ b/ci4/app/Views/themes/backend/vuexy/main/menu_digitalizacion.php @@ -0,0 +1,373 @@ + + + + + \ No newline at end of file diff --git a/ci4/app/Views/themes/backend/vuexy/main/menu_impresion.php b/ci4/app/Views/themes/backend/vuexy/main/menu_impresion.php index 6c86e9df..60bed43b 100644 --- a/ci4/app/Views/themes/backend/vuexy/main/menu_impresion.php +++ b/ci4/app/Views/themes/backend/vuexy/main/menu_impresion.php @@ -409,7 +409,7 @@ 0): ?> 0): ?> @@ -418,7 +418,7 @@ 0): ?> 0): ?> @@ -427,7 +427,7 @@ 0): ?> 0): ?> @@ -436,7 +436,7 @@ 0): ?> 0): ?> @@ -506,7 +506,7 @@ if (count(getArrayItem($menus, 'name', 'Mensajes')) > 0): ?>