';
- var_dump($user_model->getGroupsTitles('c0bf18621f78cb2ffc4a67cf8d5173c7'));
- echo '';
+
+ echo lang('Tarifaacabado.tarifaacabado');
+
+
}
- public function validateControllerAccess(){
- $request = \Config\Services::request();
- $uri = $uri = new \CodeIgniter\HTTP\URI('https://sk-jjo.imnavajas.es/envioslogistica/logistica');
- $language = \Config\Services::language();
- $language->setLocale(session()->lang);
-
- $getWhiteList = $this->whiteListController();
-
- foreach ($getWhiteList as $item){
- if(strtolower($item) == $uri->getSegment(1)){
- return true;
- }
- }
-
- $getRules = json_decode(session()->get('rules')??'[]');
-
- foreach ($this->whiteListMethod() as $item){
- if(strtolower($item) == $uri->getSegment(2)){
- return true;
- }
- }
-
- foreach ($getRules as $key=>$value){
- if($key=='Digitalizacion') {
- echo 'Hola';
- }
- if(strtolower($key) == $uri->getSegment(1)){
- if($uri->getTotalSegments() <= 1){
- return true;
- }
- foreach ($value as $item){
- if(strtolower($item) == $uri->getSegment(2)){
- return true;
- }
- }
- }
- else{
- foreach($this->controllerFolderWhiteList() as $folder){
-
- if(strtolower($folder) == $uri->getSegment(1)){
-
- if(strtolower($key) == $uri->getSegment(2)){
- if($uri->getTotalSegments() <= 2){
- return true;
- }
-
- foreach ($value as $item){
- if(strtolower($item) == $uri->getSegment(3)){
- return true;
- }
- }
-
- }
- }
- }
-
- }
- }
- return false;
- }
-
- public function whiteListController(){
- return [
- '',
- 'BaseController',
- 'Home',
- 'Login',
- 'Oauth',
- 'Language',
- 'Api',
- 'Cron',
- 'lang',
- 'Ajax',
- 'Integration',
- 'Migrate',
- 'Test',
-
- ];
- }
-
- public function whiteListMethod(){
- return [
- 'initController',
- '__construct',
- 'validateControllerAccess',
- 'whiteListController',
- 'whiteListMethod'
- ];
- }
-
- public function controllerFolderWhiteList(){
- return [
- 'Catalogo',
- 'Clientes',
- 'Configuracion',
- 'Digitalizacion',
- 'Facturacion',
- 'Informes',
- 'EnviosLogistica',
- 'Pedidos',
- 'Presupuestos',
- 'Produccion',
- 'Proveedores',
- 'Tarifas',
- 'Usuarios',
- ];
- }
}
\ No newline at end of file
diff --git a/ci4/app/Language/en/App.php b/ci4/app/Language/en/App.php
index aa4f8ac4..27ce5837 100644
--- a/ci4/app/Language/en/App.php
+++ b/ci4/app/Language/en/App.php
@@ -31,6 +31,7 @@ return [
// LOGIN - Index
"login_title" => "Sign in to your account",
+ "login_subtitle" => "Subtitle?",
"login_email" => "Email",
"login_email_ph" => "Type your email",
"login_password" => "Password",
diff --git a/ci4/app/Language/es/Tarifaaacabado.php b/ci4/app/Language/es-ES/Tarifaaacabado.php
similarity index 100%
rename from ci4/app/Language/es/Tarifaaacabado.php
rename to ci4/app/Language/es-ES/Tarifaaacabado.php
diff --git a/ci4/app/Language/es/App.php b/ci4/app/Language/es/App.php
index 23d69f82..c7c9ca12 100644
--- a/ci4/app/Language/es/App.php
+++ b/ci4/app/Language/es/App.php
@@ -31,6 +31,7 @@ return [
// LOGIN - Index
"login_title" => "Iniciar sesión en su cuenta",
+ "login_subtitle" => "Subtitulo?",
"login_email" => "Correo Electrónico",
"login_email_ph" => "Escriba su correo electrónico",
"login_password" => "Contraseña",
diff --git a/ci4/app/Language/es/Tarifaacabado.php b/ci4/app/Language/es/Tarifaacabado.php
new file mode 100644
index 00000000..35bb5601
--- /dev/null
+++ b/ci4/app/Language/es/Tarifaacabado.php
@@ -0,0 +1,114 @@
+ 'Ajuste',
+ 'createdAt' => 'Creado en',
+ 'deletedAt' => 'Borrado en',
+ 'formulaPrice' => 'Fórmula precio',
+ 'id' => 'ID',
+ 'moduleTitle' => 'Tarifas Acabado',
+ 'nombre' => 'Nombre',
+ 'precioMax' => 'Precio Max',
+ 'precioMin' => 'Precio Min',
+ 'tarifaacabado' => 'Tarifas Acabado',
+ 'tarifaacabadoList' => 'Lista Tarifas Acabado',
+ 'tarifasacabado' => 'Tarifas Acabado',
+ 'tiradaMax' => 'Tirada Max',
+ 'tiradaMin' => 'Tirada Min',
+ 'updatedAt' => 'Actualizado en',
+ 'userCreatedId' => 'ID Usuario "Creado en"',
+ 'userUpdateId' => 'ID Usuario "Actualizado en"',
+ 'validation' => [
+ 'formula_price' => [
+ 'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.',
+ 'required' => 'El campo {field} es obligatorio.',
+
+ ],
+
+
+ ],
+
+ 'validation' => [
+ 'nombre' => [
+ 'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.',
+ 'required' => 'El campo {field} es obligatorio.',
+
+ ],
+
+
+ ],
+
+ 'validation' => [
+ 'precio_max' => [
+ 'decimal' => 'El campo {field} debe contener un número decimal.',
+ 'required' => 'El campo {field} es obligatorio.',
+
+ ],
+
+
+ ],
+
+ 'validation' => [
+ 'precio_min' => [
+ 'decimal' => 'El campo {field} debe contener un número decimal.',
+ 'required' => 'El campo {field} es obligatorio.',
+
+ ],
+
+
+ ],
+
+ 'validation' => [
+ 'tirada_max' => [
+ 'integer' => 'El campo {field} debe contener un número entero.',
+ 'required' => 'El campo {field} es obligatorio.',
+
+ ],
+
+
+ ],
+
+ 'validation' => [
+ 'tirada_min' => [
+ 'integer' => 'El campo {field} debe contener un número entero.',
+ 'required' => 'El campo {field} es obligatorio.',
+
+ ],
+
+
+ ],
+
+ 'validation' => [
+ 'user_created_id' => [
+ 'integer' => 'El campo {field} debe contener un número entero.',
+ 'required' => 'El campo {field} es obligatorio.',
+
+ ],
+
+
+ ],
+
+ 'validation' => [
+ 'user_update_id' => [
+ 'integer' => 'El campo {field} debe contener un número entero.',
+ 'required' => 'El campo {field} es obligatorio.',
+
+ ],
+
+
+ ],
+
+ 'validation' => [
+ 'ajuste' => [
+ 'decimal' => 'El campo {field} debe contener un número decimal',
+ 'required' => 'El campo {field} es obligatorio.',
+
+ ],
+
+
+ ],
+
+
+];
\ No newline at end of file
diff --git a/ci4/app/Views/themes/_commonPartialsBs/datatables.php b/ci4/app/Views/themes/_commonPartialsBs/datatables.php
index fee4d44b..f36b6b6d 100644
--- a/ci4/app/Views/themes/_commonPartialsBs/datatables.php
+++ b/ci4/app/Views/themes/_commonPartialsBs/datatables.php
@@ -160,7 +160,7 @@
"scrollX": true,
"stateSave": true,
"language": {
- //url: "//cdn.datatables.net/plug-ins/1.10.25/i18n/languages[$currentLocale] ?? config('Basics')->i18n ?>.json"
+ url: "//cdn.datatables.net/plug-ins/1.13.4/i18n/= config('Basics')->i18n ?>.json"
},
"columnDefs": [
{
diff --git a/ci4/app/Views/themes/backend/vuexy/login/header.php b/ci4/app/Views/themes/backend/vuexy/login/header.php
index cb484cb1..df656979 100644
--- a/ci4/app/Views/themes/backend/vuexy/login/header.php
+++ b/ci4/app/Views/themes/backend/vuexy/login/header.php
@@ -10,8 +10,7 @@ if (!empty($token) && $tfa == false) {
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 "";
+}
+?>
+
+
+
+
+
+
+
+
+