2005-07-15 16:17:33 +02:00
|
|
|
<?php
|
2012-08-22 17:33:09 +02:00
|
|
|
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
2015-02-18 21:01:17 +01:00
|
|
|
* Copyright (C) 2004-2015 Laurent Destailleur <eldy@users.sourceforge.net>
|
2018-10-27 14:43:12 +02:00
|
|
|
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
2013-08-14 11:11:49 +02:00
|
|
|
* Copyright (C) 2011-2013 Juanjo Menent <jmenent@2byte.es>
|
2024-03-24 21:35:39 +01:00
|
|
|
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
2024-11-04 23:53:20 +01:00
|
|
|
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
2005-07-15 16:17:33 +02:00
|
|
|
*
|
|
|
|
|
* 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
|
2013-01-16 15:36:08 +01:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2005-07-15 16:17:33 +02:00
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2019-09-23 21:55:30 +02:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2005-07-15 16:17:33 +02:00
|
|
|
*/
|
|
|
|
|
|
2008-08-28 02:31:27 +02:00
|
|
|
/**
|
2011-09-03 02:14:27 +02:00
|
|
|
* \file htdocs/admin/barcode.php
|
2009-03-23 01:17:48 +01:00
|
|
|
* \ingroup barcode
|
2011-09-03 02:14:27 +02:00
|
|
|
* \brief Page to setup barcode module
|
2008-08-28 02:31:27 +02:00
|
|
|
*/
|
2005-07-15 16:17:33 +02:00
|
|
|
|
2022-09-07 20:08:59 +02:00
|
|
|
// Load Dolibarr environment
|
2012-08-22 23:24:21 +02:00
|
|
|
require '../main.inc.php';
|
2012-08-22 23:11:24 +02:00
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
|
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formbarcode.class.php';
|
2005-07-15 16:17:33 +02:00
|
|
|
|
2024-11-04 23:53:20 +01:00
|
|
|
/**
|
|
|
|
|
* @var Conf $conf
|
|
|
|
|
* @var DoliDB $db
|
|
|
|
|
* @var HookManager $hookmanager
|
|
|
|
|
* @var Translate $langs
|
|
|
|
|
* @var User $user
|
|
|
|
|
*/
|
|
|
|
|
|
2018-05-26 18:41:16 +02:00
|
|
|
// Load translation files required by the page
|
2005-07-15 16:17:33 +02:00
|
|
|
$langs->load("admin");
|
|
|
|
|
|
2022-09-10 21:10:29 +02:00
|
|
|
// Security Check Access
|
2021-02-26 22:04:03 +01:00
|
|
|
if (!$user->admin) {
|
|
|
|
|
accessforbidden();
|
|
|
|
|
}
|
2005-07-15 16:17:33 +02:00
|
|
|
|
2022-09-10 21:10:29 +02:00
|
|
|
// Get Parameters
|
2020-09-16 19:39:50 +02:00
|
|
|
$action = GETPOST('action', 'aZ09');
|
2022-01-26 13:49:46 +01:00
|
|
|
$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
|
2011-09-03 16:53:40 +02:00
|
|
|
|
2011-11-27 15:33:18 +01:00
|
|
|
|
2011-09-03 16:53:40 +02:00
|
|
|
/*
|
|
|
|
|
* Actions
|
|
|
|
|
*/
|
|
|
|
|
|
2017-06-01 12:11:45 +02:00
|
|
|
include DOL_DOCUMENT_ROOT.'/core/actions_setmoduleoptions.inc.php';
|
|
|
|
|
|
2021-02-26 22:04:03 +01:00
|
|
|
if ($action == 'setbarcodeproducton') {
|
2020-10-31 14:32:18 +01:00
|
|
|
$barcodenumberingmodule = GETPOST('value', 'alpha');
|
2019-11-14 12:09:15 +01:00
|
|
|
$res = dolibarr_set_const($db, "BARCODE_PRODUCT_ADDON_NUM", $barcodenumberingmodule, 'chaine', 0, '', $conf->entity);
|
2023-10-24 17:00:13 +02:00
|
|
|
if ($barcodenumberingmodule == 'mod_barcode_product_standard' && !getDolGlobalString('BARCODE_STANDARD_PRODUCT_MASK')) {
|
2023-01-09 01:47:38 +01:00
|
|
|
$res = dolibarr_set_const($db, "BARCODE_STANDARD_PRODUCT_MASK", '04{0000000000}', 'chaine', 0, '', $conf->entity);
|
2019-03-08 11:31:12 +01:00
|
|
|
}
|
2021-02-26 22:04:03 +01:00
|
|
|
} elseif ($action == 'setbarcodeproductoff') {
|
2019-11-14 12:09:15 +01:00
|
|
|
$res = dolibarr_del_const($db, "BARCODE_PRODUCT_ADDON_NUM", $conf->entity);
|
2014-01-31 18:12:54 +01:00
|
|
|
}
|
2014-02-10 00:24:20 +01:00
|
|
|
|
2022-06-28 16:33:00 +02:00
|
|
|
if ($action == 'setbarcodethirdpartyon') {
|
|
|
|
|
$barcodenumberingmodule = GETPOST('value', 'alpha');
|
|
|
|
|
$res = dolibarr_set_const($db, "BARCODE_THIRDPARTY_ADDON_NUM", $barcodenumberingmodule, 'chaine', 0, '', $conf->entity);
|
2023-10-24 17:00:13 +02:00
|
|
|
if ($barcodenumberingmodule == 'mod_barcode_thirdparty_standard' && !getDolGlobalString('BARCODE_STANDARD_THIRDPARTY_MASK')) {
|
2023-01-09 01:47:38 +01:00
|
|
|
$res = dolibarr_set_const($db, "BARCODE_STANDARD_THIRDPARTY_MASK", '04{0000000000}', 'chaine', 0, '', $conf->entity);
|
2022-06-28 16:33:00 +02:00
|
|
|
}
|
|
|
|
|
} elseif ($action == 'setbarcodethirdpartyoff') {
|
|
|
|
|
$res = dolibarr_del_const($db, "BARCODE_THIRDPARTY_ADDON_NUM", $conf->entity);
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-26 22:04:03 +01:00
|
|
|
if ($action == 'setcoder') {
|
2019-01-27 11:55:16 +01:00
|
|
|
$coder = GETPOST('coder', 'alpha');
|
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
|
|
|
$code_id = GETPOSTINT('code_id');
|
2007-09-29 13:35:43 +02:00
|
|
|
$sqlp = "UPDATE ".MAIN_DB_PREFIX."c_barcode_type";
|
2020-09-19 21:19:04 +02:00
|
|
|
$sqlp .= " SET coder = '".$db->escape($coder)."'";
|
|
|
|
|
$sqlp .= " WHERE rowid = ".((int) $code_id);
|
2019-11-14 12:09:15 +01:00
|
|
|
$sqlp .= " AND entity = ".$conf->entity;
|
2009-05-04 02:37:45 +02:00
|
|
|
|
2019-11-14 12:09:15 +01:00
|
|
|
$resql = $db->query($sqlp);
|
2021-02-26 22:04:03 +01:00
|
|
|
if (!$resql) {
|
|
|
|
|
dol_print_error($db);
|
|
|
|
|
}
|
|
|
|
|
} elseif ($action == 'update') {
|
2019-01-27 11:55:16 +01:00
|
|
|
$location = GETPOST('GENBARCODE_LOCATION', 'alpha');
|
|
|
|
|
$res = dolibarr_set_const($db, "GENBARCODE_LOCATION", $location, 'chaine', 0, '', $conf->entity);
|
|
|
|
|
$coder_id = GETPOST('PRODUIT_DEFAULT_BARCODE_TYPE', 'alpha');
|
|
|
|
|
$res = dolibarr_set_const($db, "PRODUIT_DEFAULT_BARCODE_TYPE", $coder_id, 'chaine', 0, '', $conf->entity);
|
|
|
|
|
$coder_id = GETPOST('GENBARCODE_BARCODETYPE_THIRDPARTY', 'alpha');
|
|
|
|
|
$res = dolibarr_set_const($db, "GENBARCODE_BARCODETYPE_THIRDPARTY", $coder_id, 'chaine', 0, '', $conf->entity);
|
2011-10-26 12:58:10 +02:00
|
|
|
|
2021-02-26 22:04:03 +01:00
|
|
|
if ($res > 0) {
|
2020-10-31 14:32:18 +01:00
|
|
|
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
|
|
|
|
} else {
|
|
|
|
|
setEventMessages($langs->trans("Error"), null, 'errors');
|
|
|
|
|
}
|
2021-02-26 22:04:03 +01:00
|
|
|
} elseif ($action == 'updateengine') {
|
2020-10-31 14:32:18 +01:00
|
|
|
$sql = "SELECT rowid, coder";
|
|
|
|
|
$sql .= " FROM ".MAIN_DB_PREFIX."c_barcode_type";
|
|
|
|
|
$sql .= " WHERE entity = ".$conf->entity;
|
|
|
|
|
$sql .= " ORDER BY code";
|
|
|
|
|
|
|
|
|
|
$resql = $db->query($sql);
|
2021-02-26 22:04:03 +01:00
|
|
|
if ($resql) {
|
2020-10-31 14:32:18 +01:00
|
|
|
$num = $db->num_rows($resql);
|
|
|
|
|
$i = 0;
|
|
|
|
|
|
2021-02-26 22:04:03 +01:00
|
|
|
while ($i < $num) {
|
2020-10-31 14:32:18 +01:00
|
|
|
$obj = $db->fetch_object($resql);
|
|
|
|
|
|
2021-02-26 22:04:03 +01:00
|
|
|
if (GETPOST('coder'.$obj->rowid, 'alpha')) {
|
2020-10-31 14:32:18 +01:00
|
|
|
$coder = GETPOST('coder'.$obj->rowid, 'alpha');
|
|
|
|
|
$code_id = $obj->rowid;
|
|
|
|
|
|
|
|
|
|
$sqlp = "UPDATE ".MAIN_DB_PREFIX."c_barcode_type";
|
|
|
|
|
$sqlp .= " SET coder = '".$db->escape($coder)."'";
|
|
|
|
|
$sqlp .= " WHERE rowid = ".((int) $code_id);
|
|
|
|
|
$sqlp .= " AND entity = ".$conf->entity;
|
|
|
|
|
|
|
|
|
|
$upsql = $db->query($sqlp);
|
2021-02-26 22:04:03 +01:00
|
|
|
if (!$upsql) {
|
|
|
|
|
dol_print_error($db);
|
|
|
|
|
}
|
2020-10-31 14:32:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$i++;
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-12-02 10:02:05 +01:00
|
|
|
}
|
2008-01-03 19:41:32 +01:00
|
|
|
|
|
|
|
|
|
2009-03-23 01:17:48 +01:00
|
|
|
/*
|
2011-09-03 16:53:40 +02:00
|
|
|
* View
|
2009-03-23 01:17:48 +01:00
|
|
|
*/
|
|
|
|
|
|
2011-11-08 10:18:45 +01:00
|
|
|
$form = new Form($db);
|
2008-01-03 20:02:40 +01:00
|
|
|
$formbarcode = new FormBarCode($db);
|
2007-09-28 20:15:19 +02:00
|
|
|
|
2021-03-15 16:19:29 +01:00
|
|
|
$help_url = 'EN:Module_Barcode|FR:Module_Codes_Barre|ES:Módulo Código de barra|DE:Modul_Barcode';
|
2024-06-08 14:53:14 +02:00
|
|
|
llxHeader('', $langs->trans("BarcodeSetup"), $help_url, '', 0, 0, '', '', '', 'mod-admin page-barcode');
|
2005-07-15 16:17:33 +02:00
|
|
|
|
2019-11-14 12:09:15 +01:00
|
|
|
$linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
|
2019-01-27 11:55:16 +01:00
|
|
|
print load_fiche_titre($langs->trans("BarcodeSetup"), $linkback, 'title_setup');
|
2005-07-15 16:17:33 +02:00
|
|
|
|
2008-01-03 19:41:32 +01:00
|
|
|
// Detect bar codes modules
|
2019-11-14 12:09:15 +01:00
|
|
|
$barcodelist = array();
|
2008-01-03 19:41:32 +01:00
|
|
|
|
|
|
|
|
clearstatcache();
|
|
|
|
|
|
|
|
|
|
|
2012-04-28 17:01:25 +02:00
|
|
|
// Scan list of all barcode included provided by external modules
|
2019-11-14 12:09:15 +01:00
|
|
|
$dirbarcode = array_merge(array("/core/modules/barcode/doc/"), $conf->modules_parts['barcode']);
|
2012-02-22 16:18:03 +01:00
|
|
|
|
2021-02-26 22:04:03 +01:00
|
|
|
foreach ($dirbarcode as $reldir) {
|
2020-10-31 14:32:18 +01:00
|
|
|
$dir = dol_buildpath($reldir);
|
|
|
|
|
$newdir = dol_osencode($dir);
|
2012-02-22 16:18:03 +01:00
|
|
|
|
2020-10-31 14:32:18 +01:00
|
|
|
// Check if directory exists (we do not use dol_is_dir to avoid loading files.lib.php)
|
2021-02-26 22:04:03 +01:00
|
|
|
if (!is_dir($newdir)) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
2009-05-04 02:37:45 +02:00
|
|
|
|
2019-11-14 12:09:15 +01:00
|
|
|
$handle = @opendir($newdir);
|
2021-02-26 22:04:03 +01:00
|
|
|
if (is_resource($handle)) {
|
|
|
|
|
while (($file = readdir($handle)) !== false) {
|
2023-12-26 22:32:46 +01:00
|
|
|
if (substr($file, 0, 1) != '.' && substr($file, 0, 3) != 'CVS') {
|
2021-02-26 22:04:03 +01:00
|
|
|
if (is_readable($newdir.$file)) {
|
|
|
|
|
if (preg_match('/(.*)\.modules\.php$/i', $file, $reg)) {
|
2019-11-14 12:09:15 +01:00
|
|
|
$filebis = $reg[1];
|
2009-05-04 02:37:45 +02:00
|
|
|
|
2015-11-06 09:46:18 +01:00
|
|
|
// Loading encoding class
|
2012-08-22 23:11:24 +02:00
|
|
|
require_once $newdir.$file;
|
2009-05-04 02:37:45 +02:00
|
|
|
$classname = "mod".ucfirst($filebis);
|
|
|
|
|
$module = new $classname($db);
|
|
|
|
|
|
2024-08-17 19:32:52 +02:00
|
|
|
'@phan-var-force ModeleBarCode $module';
|
|
|
|
|
|
2009-05-04 02:37:45 +02:00
|
|
|
// Show modules according to features level
|
2023-11-27 12:24:18 +01:00
|
|
|
if ($module->version == 'development' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 2) {
|
2021-02-26 22:04:03 +01:00
|
|
|
continue;
|
|
|
|
|
}
|
2023-11-27 12:24:18 +01:00
|
|
|
if ($module->version == 'experimental' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 1) {
|
2021-02-26 22:04:03 +01:00
|
|
|
continue;
|
|
|
|
|
}
|
2009-05-04 02:37:45 +02:00
|
|
|
|
2021-02-26 22:04:03 +01:00
|
|
|
if ($module->isEnabled()) {
|
2023-12-03 15:25:22 +01:00
|
|
|
$barcodelist[$filebis] = $module->info($langs);
|
2009-05-04 02:37:45 +02:00
|
|
|
}
|
|
|
|
|
}
|
2008-09-05 01:44:36 +02:00
|
|
|
}
|
2008-01-03 19:41:32 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-10-26 18:24:40 +02:00
|
|
|
'@phan-var-force array<string,string> $barcodelist';
|
2021-11-07 18:28:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// Select barcode numbering module
|
2022-08-19 17:59:57 +02:00
|
|
|
if (isModEnabled('product')) {
|
2021-11-07 18:28:59 +01:00
|
|
|
print load_fiche_titre($langs->trans("BarCodeNumberManager")." (".$langs->trans("Product").")", '', '');
|
|
|
|
|
|
|
|
|
|
print '<div class="div-table-responsive-no-min">';
|
|
|
|
|
print '<table class="noborder centpercent">';
|
|
|
|
|
print '<tr class="liste_titre">';
|
|
|
|
|
print '<td width="140">'.$langs->trans("Name").'</td>';
|
|
|
|
|
print '<td>'.$langs->trans("Description").'</td>';
|
|
|
|
|
print '<td>'.$langs->trans("Example").'</td>';
|
|
|
|
|
print '<td class="center" width="80">'.$langs->trans("Status").'</td>';
|
|
|
|
|
print '<td class="center" width="60">'.$langs->trans("ShortInfo").'</td>';
|
|
|
|
|
print "</tr>\n";
|
|
|
|
|
|
|
|
|
|
$dirbarcodenum = array_merge(array('/core/modules/barcode/'), $conf->modules_parts['barcode']);
|
|
|
|
|
|
|
|
|
|
foreach ($dirbarcodenum as $dirroot) {
|
|
|
|
|
$dir = dol_buildpath($dirroot, 0);
|
|
|
|
|
|
|
|
|
|
$handle = @opendir($dir);
|
|
|
|
|
if (is_resource($handle)) {
|
|
|
|
|
while (($file = readdir($handle)) !== false) {
|
|
|
|
|
if (preg_match('/^mod_barcode_product_.*php$/', $file)) {
|
|
|
|
|
$file = substr($file, 0, dol_strlen($file) - 4);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
dol_include_once($dirroot.$file.'.php');
|
|
|
|
|
} catch (Exception $e) {
|
|
|
|
|
dol_syslog($e->getMessage(), LOG_ERR);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$modBarCode = new $file();
|
2024-03-24 21:35:39 +01:00
|
|
|
'@phan-var-force ModeleNumRefBarCode $modBarCode';
|
2021-11-07 18:28:59 +01:00
|
|
|
|
|
|
|
|
print '<tr class="oddeven">';
|
|
|
|
|
print '<td>'.(isset($modBarCode->name) ? $modBarCode->name : $modBarCode->nom)."</td><td>\n";
|
|
|
|
|
print $modBarCode->info($langs);
|
|
|
|
|
print '</td>';
|
|
|
|
|
print '<td class="nowrap">'.$modBarCode->getExample($langs)."</td>\n";
|
|
|
|
|
|
2024-06-28 18:18:57 +02:00
|
|
|
if (getDolGlobalString('BARCODE_PRODUCT_ADDON_NUM') == "$file") {
|
2021-11-07 18:28:59 +01:00
|
|
|
print '<td class="center"><a class="reposition" href="'.$_SERVER['PHP_SELF'].'?action=setbarcodeproductoff&token='.newToken().'&value='.urlencode($file).'">';
|
|
|
|
|
print img_picto($langs->trans("Activated"), 'switch_on');
|
|
|
|
|
print '</a></td>';
|
|
|
|
|
} else {
|
|
|
|
|
print '<td class="center"><a class="reposition" href="'.$_SERVER['PHP_SELF'].'?action=setbarcodeproducton&token='.newToken().'&value='.urlencode($file).'">';
|
|
|
|
|
print img_picto($langs->trans("Disabled"), 'switch_off');
|
|
|
|
|
print '</a></td>';
|
|
|
|
|
}
|
|
|
|
|
print '<td class="center">';
|
|
|
|
|
$s = $modBarCode->getToolTip($langs, null, -1);
|
|
|
|
|
print $form->textwithpicto('', $s, 1);
|
|
|
|
|
print '</td>';
|
|
|
|
|
print "</tr>\n";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
closedir($handle);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
print "</table>\n";
|
|
|
|
|
print '</div>';
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-28 16:33:00 +02:00
|
|
|
// Select barcode numbering module
|
2022-08-19 17:59:57 +02:00
|
|
|
if (isModEnabled('societe')) {
|
2022-06-28 16:33:00 +02:00
|
|
|
print load_fiche_titre($langs->trans("BarCodeNumberManager")." (".$langs->trans("ThirdParty").")", '', '');
|
|
|
|
|
|
|
|
|
|
print '<div class="div-table-responsive-no-min">';
|
|
|
|
|
print '<table class="noborder centpercent">';
|
|
|
|
|
print '<tr class="liste_titre">';
|
|
|
|
|
print '<td width="140">'.$langs->trans("Name").'</td>';
|
|
|
|
|
print '<td>'.$langs->trans("Description").'</td>';
|
|
|
|
|
print '<td>'.$langs->trans("Example").'</td>';
|
|
|
|
|
print '<td class="center" width="80">'.$langs->trans("Status").'</td>';
|
|
|
|
|
print '<td class="center" width="60">'.$langs->trans("ShortInfo").'</td>';
|
|
|
|
|
print "</tr>\n";
|
|
|
|
|
|
|
|
|
|
$dirbarcodenum = array_merge(array('/core/modules/barcode/'), $conf->modules_parts['barcode']);
|
|
|
|
|
|
|
|
|
|
foreach ($dirbarcodenum as $dirroot) {
|
|
|
|
|
$dir = dol_buildpath($dirroot, 0);
|
|
|
|
|
|
|
|
|
|
$handle = @opendir($dir);
|
|
|
|
|
if (is_resource($handle)) {
|
|
|
|
|
while (($file = readdir($handle)) !== false) {
|
|
|
|
|
if (preg_match('/^mod_barcode_thirdparty_.*php$/', $file)) {
|
|
|
|
|
$file = substr($file, 0, dol_strlen($file) - 4);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
dol_include_once($dirroot.$file.'.php');
|
|
|
|
|
} catch (Exception $e) {
|
|
|
|
|
dol_syslog($e->getMessage(), LOG_ERR);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$modBarCode = new $file();
|
2024-08-17 19:32:52 +02:00
|
|
|
|
|
|
|
|
'@phan-var-force ModeleNumRefBarCode $modBarCode';
|
|
|
|
|
|
2022-06-28 16:33:00 +02:00
|
|
|
print '<tr class="oddeven">';
|
|
|
|
|
print '<td>'.(isset($modBarCode->name) ? $modBarCode->name : $modBarCode->nom)."</td><td>\n";
|
|
|
|
|
print $modBarCode->info($langs);
|
|
|
|
|
print '</td>';
|
|
|
|
|
print '<td class="nowrap">'.$modBarCode->getExample($langs)."</td>\n";
|
|
|
|
|
|
2023-10-24 17:00:13 +02:00
|
|
|
if (getDolGlobalString('BARCODE_THIRDPARTY_ADDON_NUM') && $conf->global->BARCODE_THIRDPARTY_ADDON_NUM == "$file") {
|
2022-06-28 16:33:00 +02:00
|
|
|
print '<td class="center"><a class="reposition" href="'.$_SERVER['PHP_SELF'].'?action=setbarcodethirdpartyoff&token='.newToken().'&value='.urlencode($file).'">';
|
|
|
|
|
print img_picto($langs->trans("Activated"), 'switch_on');
|
|
|
|
|
print '</a></td>';
|
|
|
|
|
} else {
|
|
|
|
|
print '<td class="center"><a class="reposition" href="'.$_SERVER['PHP_SELF'].'?action=setbarcodethirdpartyon&token='.newToken().'&value='.urlencode($file).'">';
|
|
|
|
|
print img_picto($langs->trans("Disabled"), 'switch_off');
|
|
|
|
|
print '</a></td>';
|
|
|
|
|
}
|
|
|
|
|
print '<td class="center">';
|
|
|
|
|
$s = $modBarCode->getToolTip($langs, null, -1);
|
|
|
|
|
print $form->textwithpicto('', $s, 1);
|
|
|
|
|
print '</td>';
|
|
|
|
|
print "</tr>\n";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
closedir($handle);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
print "</table>\n";
|
|
|
|
|
print '</div>';
|
|
|
|
|
}
|
2021-11-07 18:28:59 +01:00
|
|
|
|
2005-07-15 16:17:33 +02:00
|
|
|
/*
|
|
|
|
|
* CHOIX ENCODAGE
|
|
|
|
|
*/
|
2007-09-28 20:15:19 +02:00
|
|
|
|
2005-07-15 16:17:33 +02:00
|
|
|
print '<br>';
|
2019-01-27 11:55:16 +01:00
|
|
|
print load_fiche_titre($langs->trans("BarcodeEncodeModule"), '', '');
|
2005-07-15 16:17:33 +02:00
|
|
|
|
2021-02-26 22:04:03 +01:00
|
|
|
if (empty($conf->use_javascript_ajax)) {
|
2020-10-31 14:32:18 +01:00
|
|
|
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST" id="form_engine">';
|
2022-06-28 16:39:34 +02:00
|
|
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
2020-10-31 14:32:18 +01:00
|
|
|
print '<input type="hidden" name="action" value="updateengine">';
|
2018-12-02 10:02:05 +01:00
|
|
|
}
|
2016-02-03 03:10:58 +01:00
|
|
|
|
2021-11-07 18:28:59 +01:00
|
|
|
print '<div class="div-table-responsive-no-min">';
|
2019-11-05 21:24:41 +01:00
|
|
|
print '<table class="noborder centpercent">';
|
2005-07-15 16:17:33 +02:00
|
|
|
print '<tr class="liste_titre">';
|
2005-07-15 18:35:08 +02:00
|
|
|
print '<td>'.$langs->trans("Name").'</td>';
|
|
|
|
|
print '<td>'.$langs->trans("Description").'</td>';
|
2019-02-23 21:57:35 +01:00
|
|
|
print '<td width="200" class="center">'.$langs->trans("Example").'</td>';
|
|
|
|
|
print '<td class="center" width="60">'.$langs->trans("CodeBarGenerator").'</td>';
|
2005-07-15 16:17:33 +02:00
|
|
|
print "</tr>\n";
|
|
|
|
|
|
2019-11-02 12:59:38 +01:00
|
|
|
$sql = "SELECT rowid, code as encoding, libelle as label, coder, example";
|
2020-04-10 10:59:32 +02:00
|
|
|
$sql .= " FROM ".MAIN_DB_PREFIX."c_barcode_type";
|
|
|
|
|
$sql .= " WHERE entity = ".$conf->entity;
|
|
|
|
|
$sql .= " ORDER BY code";
|
2009-05-03 19:28:14 +02:00
|
|
|
|
2014-06-12 11:31:53 +02:00
|
|
|
dol_syslog("admin/barcode.php", LOG_DEBUG);
|
2020-04-10 10:59:32 +02:00
|
|
|
$resql = $db->query($sql);
|
2021-02-26 22:04:03 +01:00
|
|
|
if ($resql) {
|
2007-09-28 20:15:19 +02:00
|
|
|
$num = $db->num_rows($resql);
|
|
|
|
|
$i = 0;
|
2008-08-28 02:31:27 +02:00
|
|
|
|
2021-02-26 22:04:03 +01:00
|
|
|
while ($i < $num) {
|
2007-09-28 20:15:19 +02:00
|
|
|
$obj = $db->fetch_object($resql);
|
|
|
|
|
|
2021-11-07 18:28:59 +01:00
|
|
|
print '<tr class="oddeven">';
|
|
|
|
|
print '<td width="100">';
|
|
|
|
|
print dol_escape_htmltag($obj->label);
|
2007-10-03 23:02:04 +02:00
|
|
|
print "</td><td>\n";
|
2008-08-28 02:31:27 +02:00
|
|
|
print $langs->trans('BarcodeDesc'.$obj->encoding);
|
2024-01-11 09:59:52 +01:00
|
|
|
//print "L'EAN se compose de 8 characters, 7 chiffres plus une cle de verification.<br>";
|
|
|
|
|
//print "L'utilisation des symbologies EAN8 impose la souscription et l'abonnement aupres d'organismes comme GENCOD.<br>";
|
2009-03-23 01:17:48 +01:00
|
|
|
//print "Codes numeriques utilises exclusivement a l'identification des produits susceptibles d'etre vendus au grand public.";
|
2007-10-03 23:02:04 +02:00
|
|
|
print '</td>';
|
|
|
|
|
|
2009-03-23 01:17:48 +01:00
|
|
|
// Show example
|
2019-02-23 21:57:35 +01:00
|
|
|
print '<td class="center">';
|
2021-02-26 22:04:03 +01:00
|
|
|
if ($obj->coder && $obj->coder != -1) {
|
2019-11-14 12:09:15 +01:00
|
|
|
$result = 0;
|
2012-02-22 16:18:03 +01:00
|
|
|
|
2021-02-26 22:04:03 +01:00
|
|
|
foreach ($dirbarcode as $reldir) {
|
2020-10-31 14:32:18 +01:00
|
|
|
$dir = dol_buildpath($reldir, 0);
|
|
|
|
|
$newdir = dol_osencode($dir);
|
2012-02-22 16:18:03 +01:00
|
|
|
|
2020-10-31 14:32:18 +01:00
|
|
|
// Check if directory exists (we do not use dol_is_dir to avoid loading files.lib.php)
|
2021-02-26 22:04:03 +01:00
|
|
|
if (!is_dir($newdir)) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
2012-02-22 16:18:03 +01:00
|
|
|
|
2019-11-14 12:09:15 +01:00
|
|
|
$result = @include_once $newdir.$obj->coder.'.modules.php';
|
2021-02-26 22:04:03 +01:00
|
|
|
if ($result) {
|
|
|
|
|
break;
|
|
|
|
|
}
|
2009-05-04 02:37:45 +02:00
|
|
|
}
|
2021-02-26 22:04:03 +01:00
|
|
|
if ($result) {
|
2009-03-25 21:25:57 +01:00
|
|
|
$classname = "mod".ucfirst($obj->coder);
|
2021-02-26 22:04:03 +01:00
|
|
|
if (class_exists($classname)) {
|
2010-08-06 00:51:36 +02:00
|
|
|
$module = new $classname($db);
|
2024-09-16 01:49:38 +02:00
|
|
|
'@phan-var-force ModeleBarCode $module';
|
2021-02-26 22:04:03 +01:00
|
|
|
if ($module->encodingIsSupported($obj->encoding)) {
|
2010-08-06 00:51:36 +02:00
|
|
|
// Build barcode on disk (not used, this is done to make debug easier)
|
2020-10-31 14:32:18 +01:00
|
|
|
$result = $module->writeBarCode($obj->example, $obj->encoding, 'Y');
|
2010-08-06 00:51:36 +02:00
|
|
|
// Generate on the fly and output barcode with generator
|
2019-11-14 12:09:15 +01:00
|
|
|
$url = DOL_URL_ROOT.'/viewimage.php?modulepart=barcode&generator='.urlencode($obj->coder).'&code='.urlencode($obj->example).'&encoding='.urlencode($obj->encoding);
|
2010-08-06 00:51:36 +02:00
|
|
|
//print $url;
|
|
|
|
|
print '<img src="'.$url.'" title="'.$obj->example.'" border="0">';
|
2020-05-21 09:35:30 +02:00
|
|
|
} else {
|
2010-08-06 00:51:36 +02:00
|
|
|
print $langs->trans("FormatNotSupportedByGenerator");
|
|
|
|
|
}
|
2020-05-21 09:35:30 +02:00
|
|
|
} else {
|
2010-08-06 00:51:36 +02:00
|
|
|
print 'ErrorClassNotFoundInModule '.$classname.' '.$obj->coder;
|
2009-03-25 21:25:57 +01:00
|
|
|
}
|
2008-01-03 19:41:32 +01:00
|
|
|
}
|
2020-05-21 09:35:30 +02:00
|
|
|
} else {
|
2022-07-28 18:30:26 +02:00
|
|
|
print '<span class="opacitymedium">'.$langs->trans("ChooseABarCode").'</span>';
|
2007-10-03 23:02:04 +02:00
|
|
|
}
|
|
|
|
|
print '</td>';
|
|
|
|
|
|
2019-02-23 21:57:35 +01:00
|
|
|
print '<td class="center">';
|
2019-01-27 11:55:16 +01:00
|
|
|
print $formbarcode->setBarcodeEncoder($obj->coder, $barcodelist, $obj->rowid, 'form'.$i);
|
2007-10-03 23:02:04 +02:00
|
|
|
print "</td></tr>\n";
|
2017-06-01 12:11:45 +02:00
|
|
|
|
2007-10-03 23:02:04 +02:00
|
|
|
$i++;
|
2007-09-28 20:15:19 +02:00
|
|
|
}
|
|
|
|
|
}
|
2007-09-29 22:15:02 +02:00
|
|
|
print "</table>\n";
|
2021-11-07 18:28:59 +01:00
|
|
|
print '</div>';
|
2007-09-29 22:15:02 +02:00
|
|
|
|
2021-02-26 22:04:03 +01:00
|
|
|
if (empty($conf->use_javascript_ajax)) {
|
2021-08-20 14:41:30 +02:00
|
|
|
print $form->buttonsSaveCancel("Save", '');
|
2016-02-03 03:10:58 +01:00
|
|
|
}
|
|
|
|
|
|
2007-09-29 22:15:02 +02:00
|
|
|
print "<br>";
|
|
|
|
|
|
2016-02-03 03:10:58 +01:00
|
|
|
|
2007-09-29 22:15:02 +02:00
|
|
|
/*
|
2016-02-03 03:10:58 +01:00
|
|
|
* Other options
|
2007-09-29 22:15:02 +02:00
|
|
|
*/
|
2019-01-27 11:55:16 +01:00
|
|
|
print load_fiche_titre($langs->trans("OtherOptions"), '', '');
|
2007-09-29 22:15:02 +02:00
|
|
|
|
2014-01-31 18:12:54 +01:00
|
|
|
print "<form method=\"post\" action=\"".$_SERVER["PHP_SELF"]."\">";
|
2019-12-18 23:12:31 +01:00
|
|
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
2014-01-31 18:12:54 +01:00
|
|
|
print "<input type=\"hidden\" name=\"action\" value=\"update\">";
|
|
|
|
|
|
2021-11-07 18:28:59 +01:00
|
|
|
print '<div class="div-table-responsive-no-min">';
|
2019-11-05 21:24:41 +01:00
|
|
|
print '<table class="noborder centpercent">';
|
2007-09-29 22:15:02 +02:00
|
|
|
print '<tr class="liste_titre">';
|
|
|
|
|
print '<td>'.$langs->trans("Parameter").'</td>';
|
2025-01-24 13:12:48 +01:00
|
|
|
print '<td width="60" class="center"></td>';
|
2007-09-29 22:15:02 +02:00
|
|
|
print '<td> </td>';
|
|
|
|
|
print '</tr>';
|
|
|
|
|
|
|
|
|
|
// Chemin du binaire genbarcode sous linux
|
2021-02-26 22:04:03 +01:00
|
|
|
if (!isset($_SERVER['WINDIR'])) {
|
2017-04-14 11:22:48 +02:00
|
|
|
print '<tr class="oddeven">';
|
2007-09-29 22:15:02 +02:00
|
|
|
print '<td>'.$langs->trans("GenbarcodeLocation").'</td>';
|
2019-02-23 21:57:35 +01:00
|
|
|
print '<td width="60" class="center">';
|
2022-07-28 18:30:26 +02:00
|
|
|
print '<input type="text" size="40" name="GENBARCODE_LOCATION" value="'.getDolGlobalString('GENBARCODE_LOCATION').'">';
|
2023-10-24 17:00:13 +02:00
|
|
|
if (getDolGlobalString('GENBARCODE_LOCATION') && !@file_exists($conf->global->GENBARCODE_LOCATION)) {
|
2008-01-27 18:12:56 +01:00
|
|
|
$langs->load("errors");
|
2024-01-05 04:18:53 +01:00
|
|
|
print '<br><span class="error">'.$langs->trans("ErrorFileNotFound", getDolGlobalString('GENBARCODE_LOCATION')).'</span>';
|
2008-01-27 18:12:56 +01:00
|
|
|
}
|
2021-11-07 18:28:59 +01:00
|
|
|
print '</td>';
|
|
|
|
|
print '<td> </td>';
|
|
|
|
|
print '</tr>';
|
2007-09-29 22:15:02 +02:00
|
|
|
}
|
|
|
|
|
|
2014-01-30 18:21:04 +01:00
|
|
|
// Module products
|
2022-08-19 17:59:57 +02:00
|
|
|
if (isModEnabled('product')) {
|
2017-04-14 11:22:48 +02:00
|
|
|
print '<tr class="oddeven">';
|
2008-08-28 02:31:27 +02:00
|
|
|
print '<td>'.$langs->trans("SetDefaultBarcodeTypeProducts").'</td>';
|
2019-01-31 12:35:49 +01:00
|
|
|
print '<td width="60" class="right">';
|
2024-04-27 18:14:20 +02:00
|
|
|
print $formbarcode->selectBarcodeType(getDolGlobalString('PRODUIT_DEFAULT_BARCODE_TYPE'), "PRODUIT_DEFAULT_BARCODE_TYPE", 1);
|
2021-11-07 18:28:59 +01:00
|
|
|
print '</td>';
|
|
|
|
|
print '<td> </td>';
|
|
|
|
|
print '</tr>';
|
2008-08-28 02:31:27 +02:00
|
|
|
}
|
|
|
|
|
|
2014-01-30 18:21:04 +01:00
|
|
|
// Module thirdparty
|
2022-08-19 17:59:57 +02:00
|
|
|
if (isModEnabled('societe')) {
|
2017-04-14 11:22:48 +02:00
|
|
|
print '<tr class="oddeven">';
|
2008-08-28 02:31:27 +02:00
|
|
|
print '<td>'.$langs->trans("SetDefaultBarcodeTypeThirdParties").'</td>';
|
2019-01-31 12:35:49 +01:00
|
|
|
print '<td width="60" class="right">';
|
2024-04-27 18:14:20 +02:00
|
|
|
print $formbarcode->selectBarcodeType(getDolGlobalString('GENBARCODE_BARCODETYPE_THIRDPARTY'), "GENBARCODE_BARCODETYPE_THIRDPARTY", 1);
|
2021-11-07 18:28:59 +01:00
|
|
|
print '</td>';
|
|
|
|
|
print '<td> </td>';
|
|
|
|
|
print '</tr>';
|
2007-09-29 22:15:02 +02:00
|
|
|
}
|
|
|
|
|
|
2014-01-31 18:12:54 +01:00
|
|
|
print "</table>\n";
|
2021-11-07 18:28:59 +01:00
|
|
|
print '</div>';
|
|
|
|
|
|
2016-04-30 18:56:16 +02:00
|
|
|
print '<div class="tabsAction">';
|
|
|
|
|
print '<input type="submit" class="button" name="submit_GENBARCODE_BARCODETYPE_THIRDPARTY" value="'.$langs->trans("Modify").'">';
|
|
|
|
|
print "</div>";
|
2014-12-16 14:49:07 +01:00
|
|
|
print '</form>';
|
2014-01-31 18:12:54 +01:00
|
|
|
|
|
|
|
|
print '<br>';
|
|
|
|
|
|
|
|
|
|
|
2018-07-28 17:26:56 +02:00
|
|
|
// End of page
|
2011-08-27 16:24:16 +02:00
|
|
|
llxFooter();
|
2015-02-18 21:01:17 +01:00
|
|
|
$db->close();
|