Skip to content

Commit

Permalink
Merge pull request #767 from Evarisk/1.5.0
Browse files Browse the repository at this point in the history
1.5.0
  • Loading branch information
evarisk-theo authored Apr 4, 2023
2 parents 797fa50 + 672fcc6 commit bfba051
Show file tree
Hide file tree
Showing 166 changed files with 3,827 additions and 13,971 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ npm-debug.log
vendor
.editorconfig
.gitattributes
package-lock.json
27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,35 @@
## Informations

- Numéro du module : 436301
- Version : 1.4.0
- Dernière mise à jour : 22/11/2022
- Version : 1.5.0
- Dernière mise à jour : 04/04/2023
- Éditeur : [Evarisk](https://www.evarisk.com)
- Compatibilité : Dolibarr 15.0.0 - 16.0.1
- Compatibilité : Dolibarr 16.0.0 - 16.0.5
- Thème : Eldy Menu
- Licence : GPLv3
- Disponible sur : Windows - MacOS - Linux

## Liens

- Support & Assistance : [Forum www.dolibarr.fr](https://www.dolibarr.fr) / Par mail à contact@evarisk.com
- Demo : [Demo Dolismq](https://www.demodoli.digirisk.com) - ID: demo - Password: demo
- Support & Assistance : [Forum www.dolibarr.fr](https://www.dolibarr.fr) / Par mail à technique@evarisk.com
- Demo : [Demo DoliSMQ](https://www.demodoli.digirisk.com) - ID: demo - Password: demo
- Documentation : [Wiki DoliSMQ](https://wiki.dolibarr.org/index.php/Module_DoliSMQ)
- Projet Github : [Projet DoliSMQ](https://github.com/Evarisk/dolismq/projects?type=classic)
- D'autres modules développés par Evarisk disponible sur [Dolistore.com](https://www.dolistore.com)
- D'autres modules développés par Evarisk disponibles sur [Dolistore.com](https://www.dolistore.com)

## Fonctionnalités

Contrôle de la qualité de différents éléments :
Contrôle qualité de différents éléments :

- produit ou service
- numéro de série/lot
- projet et tâche
- tiers
- Produit/Service
- Numéro de lots/série
- Projet
- Tâche
- Tiers
- Utilisateur
- Contact/Adresse

Génération de rapport de contrôle sur la base des éléments contrôlés
Génération du rapport de contrôle

## Traductions

Expand Down
69 changes: 27 additions & 42 deletions admin/about.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
/* Copyright (C) 2022 EVARISK <dev@evarisk.com>
/* Copyright (C) 2022-2023 EVARISK <technique@evarisk.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -21,66 +21,51 @@
* \brief About page of module DoliSMQ.
*/

// Load Dolibarr environment
$res = 0;
// Try main.inc.php into web root known defined into CONTEXT_DOCUMENT_ROOT (not always defined)
if (!$res && !empty($_SERVER["CONTEXT_DOCUMENT_ROOT"])) $res = @include $_SERVER["CONTEXT_DOCUMENT_ROOT"]."/main.inc.php";
// Try main.inc.php into web root detected using web root calculated from SCRIPT_FILENAME
$tmp = empty($_SERVER['SCRIPT_FILENAME']) ? '' : $_SERVER['SCRIPT_FILENAME']; $tmp2 = realpath(__FILE__); $i = strlen($tmp) - 1; $j = strlen($tmp2) - 1;
while ($i > 0 && $j > 0 && isset($tmp[$i]) && isset($tmp2[$j]) && $tmp[$i] == $tmp2[$j]) { $i--; $j--; }
if (!$res && $i > 0 && file_exists(substr($tmp, 0, ($i + 1))."/main.inc.php")) $res = @include substr($tmp, 0, ($i + 1))."/main.inc.php";
if (!$res && $i > 0 && file_exists(dirname(substr($tmp, 0, ($i + 1)))."/main.inc.php")) $res = @include dirname(substr($tmp, 0, ($i + 1)))."/main.inc.php";
// Try main.inc.php using relative path
if (!$res && file_exists("../../main.inc.php")) $res = @include "../../main.inc.php";
if (!$res && file_exists("../../../main.inc.php")) $res = @include "../../../main.inc.php";
if (!$res) die("Include of main fails");

// Libraries
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';

require_once '../lib/dolismq.lib.php';
require_once '../core/modules/modDoliSMQ.class.php';
// Load DoliSMQ environment
if (file_exists('../dolismq.main.inc.php')) {
require_once __DIR__ . '/../dolismq.main.inc.php';
} else {
die('Include of dolismq main fails');
}

// Global variables definitions
global $db, $langs, $user;
global $db, $langs, $moduleName, $moduleNameLowerCase, $user;

// Libraries
require_once __DIR__ . '/../lib/' . $moduleNameLowerCase . '.lib.php';
require_once __DIR__ . '/../core/modules/mod' . $moduleName . '.class.php';

// Load translation files required by the page
$langs->loadLangs(array("errors", "admin", "dolismq@dolismq"));
saturne_load_langs(['admin']);

// Initialize technical objects
$modDoliSMQ = new modDoliSMQ($db);

// Get parameters
$backtopage = GETPOST('backtopage', 'alpha');

// Initialize objects
// Technical objets
$dolismq = new modDoliSMQ($db);

// View objects
$form = new Form($db);

// Access control
if (!$user->admin) accessforbidden();
// Security check - Protection if external user
$permissiontoread = $user->rights->dolismq->adminpage->read;
saturne_check_access($permissiontoread);

/*
* View
*/

$page_name = "DoliSMQAbout";
$help_url = 'FR:Module_DoliSMQ';
$morejs = array("/dolismq/js/dolismq.js");
$title = $langs->trans('ModuleAbout', 'DoliSMQ');
$help_url = 'FR:Module_DoliSMQ';

llxHeader('', $langs->trans($page_name), $help_url, '', 0, 0, $morejs);
saturne_header(0,'', $title, $help_url);

// Subheader
$linkback = '<a href="'.($backtopage ?: DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1').'">'.$langs->trans("BackToModuleList").'</a>';

print load_fiche_titre($langs->trans($page_name), $linkback, 'dolismq_color@dolismq');
$linkback = '<a href="' . ($backtopage ?: DOL_URL_ROOT . '/admin/modules.php?restore_lastsearch_values=1') . '">' . $langs->trans('BackToModuleList') . '</a>';
print load_fiche_titre($title, $linkback, 'dolismq_color@dolismq');

// Configuration header
$head = dolismqAdminPrepareHead();
print dol_get_fiche_head($head, 'about', $langs->trans($page_name), -1, 'dolismq_color@dolismq');
$head = dolismq_admin_prepare_head();
print dol_get_fiche_head($head, 'about', $title, -1, 'dolismq_color@dolismq');

print $dolismq->getDescLong();
print $modDoliSMQ->getDescLong();

// Page end
print dol_get_fiche_end();
Expand Down
Loading

0 comments on commit bfba051

Please sign in to comment.