2005-01-29 16:27:01 +01:00
|
|
|
<?php
|
2018-02-06 19:29:16 +01:00
|
|
|
/* Copyright (C) 2005-2018 Laurent Destailleur <eldy@users.sourceforge.net>
|
2024-04-09 23:55:07 +02:00
|
|
|
* Copyright (C) 2005-2024 Regis Houssin <regis.houssin@inodbox.com>
|
|
|
|
|
* Copyright (C) 2019 Nicolas ZABOURI <info@inovea-conseil.com>
|
2024-11-04 23:53:20 +01:00
|
|
|
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
2005-01-29 16:27:01 +01: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-01-29 16:27:01 +01: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-01-29 16:27:01 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
2009-08-17 19:32:38 +02:00
|
|
|
* \file htdocs/user/home.php
|
2011-05-25 11:51:01 +02:00
|
|
|
* \brief Home page of users and groups management
|
2009-08-17 19:32:38 +02:00
|
|
|
*/
|
2005-07-09 12:55:21 +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';
|
2018-02-06 19:16:15 +01:00
|
|
|
require_once DOL_DOCUMENT_ROOT.'/user/class/usergroup.class.php';
|
2021-01-02 20:20:22 +01:00
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
2005-07-09 12:55:21 +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
|
|
|
|
|
*/
|
|
|
|
|
|
2023-12-04 13:53:48 +01:00
|
|
|
$contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'userhome'; // To manage different context of search
|
2018-03-31 18:48:27 +02:00
|
|
|
|
2023-10-15 18:41:39 +02:00
|
|
|
if (!$user->hasRight('user', 'user', 'lire') && !$user->admin) {
|
2009-08-17 19:32:38 +02:00
|
|
|
// Redirection vers la page de l'utilisateur
|
2014-09-18 21:18:25 +02:00
|
|
|
header("Location: card.php?id=".$user->id);
|
2011-04-06 21:54:06 +02:00
|
|
|
exit;
|
2005-08-23 13:16:40 +02:00
|
|
|
}
|
|
|
|
|
|
2018-05-26 16:24:54 +02:00
|
|
|
// Load translation files required by page
|
2005-01-29 16:27:01 +01:00
|
|
|
$langs->load("users");
|
|
|
|
|
|
2024-09-01 13:48:58 +02:00
|
|
|
$permissiontoreadgroup = true;
|
2023-11-27 12:08:48 +01:00
|
|
|
if (getDolGlobalString('MAIN_USE_ADVANCED_PERMS')) {
|
2024-09-01 13:48:58 +02:00
|
|
|
$permissiontoreadgroup = (!empty($user->admin) || $user->hasRight("user", "group_advance", "read"));
|
2010-11-08 15:33:44 +01:00
|
|
|
}
|
|
|
|
|
|
2010-10-29 17:55:15 +02:00
|
|
|
// Security check (for external users)
|
2020-01-30 01:48:28 +01:00
|
|
|
$socid = 0;
|
2021-01-02 20:20:22 +01:00
|
|
|
if ($user->socid > 0) {
|
|
|
|
|
$socid = $user->socid;
|
|
|
|
|
}
|
2010-10-29 17:55:15 +02:00
|
|
|
|
2010-10-29 18:08:54 +02:00
|
|
|
$companystatic = new Societe($db);
|
2011-04-06 21:54:06 +02:00
|
|
|
$fuserstatic = new User($db);
|
|
|
|
|
|
2024-06-30 21:02:50 +02:00
|
|
|
// Initialize a technical object to manage hooks. Note that conf->hooks_modules contains array
|
2018-03-31 18:48:27 +02:00
|
|
|
$hookmanager->initHooks(array('userhome'));
|
2021-01-02 20:20:22 +01:00
|
|
|
if (!isset($form) || !is_object($form)) {
|
|
|
|
|
$form = new Form($db);
|
|
|
|
|
}
|
|
|
|
|
// Load $resultboxes (selectboxlist + boxactivated + boxlista + boxlistb)
|
|
|
|
|
$resultboxes = FormOther::getBoxesArea($user, "1");
|
|
|
|
|
|
|
|
|
|
if (GETPOST('addbox')) {
|
|
|
|
|
// Add box (when submit is done from a form when ajax disabled)
|
|
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/class/infobox.class.php';
|
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
|
|
|
$zone = GETPOSTINT('areacode');
|
|
|
|
|
$userid = GETPOSTINT('userid');
|
2021-01-02 20:20:22 +01:00
|
|
|
$boxorder = GETPOST('boxorder', 'aZ09');
|
|
|
|
|
$boxorder .= GETPOST('boxcombo', 'aZ09');
|
|
|
|
|
$result = InfoBox::saveboxorder($db, $zone, $boxorder, $userid);
|
|
|
|
|
if ($result > 0) {
|
|
|
|
|
setEventMessages($langs->trans("BoxAdded"), null);
|
|
|
|
|
}
|
|
|
|
|
}
|
2005-01-29 16:27:01 +01:00
|
|
|
|
2024-06-04 01:53:22 +02:00
|
|
|
$max = getDolGlobalInt('MAIN_SIZE_SHORTLIST_LIMIT', 5);
|
|
|
|
|
|
|
|
|
|
|
2009-08-17 19:32:38 +02:00
|
|
|
/*
|
|
|
|
|
* View
|
|
|
|
|
*/
|
2024-06-04 01:53:22 +02:00
|
|
|
|
2022-06-27 12:46:39 +02:00
|
|
|
$title = $langs->trans("MenuUsersAndGroups");
|
|
|
|
|
$help_url = '';
|
2024-06-08 15:02:50 +02:00
|
|
|
llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-user page-home');
|
2005-01-29 16:27:01 +01:00
|
|
|
|
2005-07-09 16:04:26 +02:00
|
|
|
|
2021-01-02 20:20:22 +01:00
|
|
|
print load_fiche_titre($langs->trans("MenuUsersAndGroups"), $resultboxes['selectboxlist'], 'user');
|
2005-07-09 16:04:26 +02:00
|
|
|
|
2005-01-29 16:27:01 +01:00
|
|
|
|
2010-10-29 09:27:33 +02:00
|
|
|
// Search User
|
2021-03-02 22:41:20 +01:00
|
|
|
$searchbox = '<form method="post" action="'.DOL_URL_ROOT.'/core/search.php">';
|
|
|
|
|
$searchbox .= '<input type="hidden" name="token" value="'.newToken().'">';
|
2020-01-22 12:44:10 +01:00
|
|
|
|
2021-03-02 22:41:20 +01:00
|
|
|
$searchbox .= '<table class="noborder nohover centpercent">';
|
|
|
|
|
$searchbox .= '<tr class="liste_titre"><td colspan="2">'.$langs->trans("Search").'</td></tr>';
|
|
|
|
|
$searchbox .= '<tr><td>';
|
2021-09-28 11:53:00 +02:00
|
|
|
$searchbox .= $langs->trans("User").':</td><td><input class="flat inputsearch width200" type="text" name="search_user"></td></tr>';
|
2005-01-29 16:27:01 +01:00
|
|
|
|
2010-10-29 09:27:33 +02:00
|
|
|
// Search Group
|
2024-09-01 13:48:58 +02:00
|
|
|
if ($permissiontoreadgroup) {
|
2021-03-02 22:41:20 +01:00
|
|
|
$searchbox .= '<tr><td>';
|
2021-09-28 11:53:00 +02:00
|
|
|
$searchbox .= $langs->trans("Group").':</td><td><input class="flat inputsearch width200" type="text" name="search_group"></td></tr>';
|
2010-10-29 09:27:33 +02:00
|
|
|
}
|
2005-01-29 16:27:01 +01:00
|
|
|
|
2021-03-02 22:41:20 +01:00
|
|
|
$searchbox .= '<tr><td class="center" colspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
|
|
|
|
$searchbox .= "</table><br>\n";
|
2013-03-16 14:53:15 +01:00
|
|
|
|
2021-03-02 22:41:20 +01:00
|
|
|
$searchbox .= '</form>';
|
2005-01-29 16:27:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2020-04-22 22:02:25 +02:00
|
|
|
* Latest created users
|
2005-01-29 16:27:01 +01:00
|
|
|
*/
|
2024-06-04 01:53:22 +02:00
|
|
|
|
2021-03-02 22:41:20 +01:00
|
|
|
$lastcreatedbox = '';
|
2018-03-06 19:08:39 +01:00
|
|
|
$sql = "SELECT DISTINCT u.rowid, u.lastname, u.firstname, u.admin, u.login, u.fk_soc, u.datec, u.statut";
|
2020-01-30 01:48:28 +01:00
|
|
|
$sql .= ", u.entity";
|
|
|
|
|
$sql .= ", u.ldap_sid";
|
|
|
|
|
$sql .= ", u.photo";
|
|
|
|
|
$sql .= ", u.admin";
|
|
|
|
|
$sql .= ", u.email";
|
|
|
|
|
$sql .= ", s.nom as name";
|
|
|
|
|
$sql .= ", s.code_client";
|
|
|
|
|
$sql .= ", s.canvas";
|
|
|
|
|
$sql .= " FROM ".MAIN_DB_PREFIX."user as u";
|
|
|
|
|
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON u.fk_soc = s.rowid";
|
2018-03-23 10:42:36 +01:00
|
|
|
// Add fields from hooks
|
2020-01-30 01:48:28 +01:00
|
|
|
$parameters = array();
|
|
|
|
|
$reshook = $hookmanager->executeHooks('printUserListWhere', $parameters); // Note that $action and $object may have been modified by hook
|
2018-03-23 10:52:10 +01:00
|
|
|
if ($reshook > 0) {
|
2020-01-30 01:48:28 +01:00
|
|
|
$sql .= $hookmanager->resPrint;
|
2018-03-06 19:22:59 +01:00
|
|
|
} else {
|
2020-01-30 01:48:28 +01:00
|
|
|
$sql .= " WHERE u.entity IN (".getEntity('user').")";
|
2011-08-20 00:15:22 +02:00
|
|
|
}
|
2021-01-02 20:20:22 +01:00
|
|
|
if (!empty($socid)) {
|
2021-03-22 13:31:06 +01:00
|
|
|
$sql .= " AND u.fk_soc = ".((int) $socid);
|
2021-01-02 20:20:22 +01:00
|
|
|
}
|
2020-01-30 01:48:28 +01:00
|
|
|
$sql .= $db->order("u.datec", "DESC");
|
|
|
|
|
$sql .= $db->plimit($max);
|
2005-01-29 16:27:01 +01:00
|
|
|
|
2020-01-30 01:48:28 +01:00
|
|
|
$resql = $db->query($sql);
|
2021-01-02 20:20:22 +01:00
|
|
|
if ($resql) {
|
2009-08-17 19:32:38 +02:00
|
|
|
$num = $db->num_rows($resql);
|
2020-01-22 12:44:10 +01:00
|
|
|
|
2021-10-25 22:07:31 +02:00
|
|
|
$lastcreatedbox .= '<div class="div-table-responsive-no-min">';
|
|
|
|
|
$lastcreatedbox .= '<table class="noborder centpercent">';
|
2024-06-04 01:53:22 +02:00
|
|
|
$lastcreatedbox .= '<tr class="liste_titre"><td colspan="3" class="valignmiddle">';
|
|
|
|
|
$lastcreatedbox .= '<span class="valignmiddle">'.$langs->trans("LastUsersCreated", min($num, $max)).'</span>';
|
2024-06-04 02:24:33 +02:00
|
|
|
$lastcreatedbox .= '<a class="valignmiddle marginleftonlyshort" href="'.DOL_URL_ROOT.'/user/list.php?sortfield=u.datec&sortorder=DESC" title="'.$langs->trans("FullList").'">';
|
2024-06-04 01:53:22 +02:00
|
|
|
$lastcreatedbox .= '<span class="badge marginleftonlyshort valignmiddle">...</span>';
|
|
|
|
|
$lastcreatedbox .= '</a>';
|
|
|
|
|
$lastcreatedbox .= '</td>';
|
|
|
|
|
$lastcreatedbox .= '<td class="right" colspan="2">';
|
|
|
|
|
//$lastcreatedbox .= '<a class="commonlink" href="'.DOL_URL_ROOT.'/user/list.php?sortfield=u.datec&sortorder=DESC">'.$langs->trans("FullList");
|
|
|
|
|
$lastcreatedbox .= '</td>';
|
2021-10-25 22:07:31 +02:00
|
|
|
$lastcreatedbox .= '</tr>'."\n";
|
2009-08-17 19:32:38 +02:00
|
|
|
$i = 0;
|
|
|
|
|
|
2021-01-02 20:20:22 +01:00
|
|
|
while ($i < $num && $i < $max) {
|
2009-08-17 19:32:38 +02:00
|
|
|
$obj = $db->fetch_object($resql);
|
2018-02-06 19:16:15 +01:00
|
|
|
|
|
|
|
|
$fuserstatic->id = $obj->rowid;
|
|
|
|
|
$fuserstatic->statut = $obj->statut;
|
2024-06-04 02:24:33 +02:00
|
|
|
$fuserstatic->status = $obj->statut;
|
2018-02-06 19:16:15 +01:00
|
|
|
$fuserstatic->lastname = $obj->lastname;
|
|
|
|
|
$fuserstatic->firstname = $obj->firstname;
|
|
|
|
|
$fuserstatic->login = $obj->login;
|
|
|
|
|
$fuserstatic->photo = $obj->photo;
|
|
|
|
|
$fuserstatic->admin = $obj->admin;
|
|
|
|
|
$fuserstatic->email = $obj->email;
|
2019-11-04 20:29:33 +01:00
|
|
|
$fuserstatic->socid = $obj->fk_soc;
|
2018-02-06 19:16:15 +01:00
|
|
|
|
2020-01-30 01:48:28 +01:00
|
|
|
$companystatic->id = $obj->fk_soc;
|
|
|
|
|
$companystatic->name = $obj->name;
|
2018-02-06 19:16:15 +01:00
|
|
|
$companystatic->code_client = $obj->code_client;
|
2020-01-30 01:48:28 +01:00
|
|
|
$companystatic->canvas = $obj->canvas;
|
2009-08-17 19:32:38 +02:00
|
|
|
|
2021-10-25 22:07:31 +02:00
|
|
|
$lastcreatedbox .= '<tr class="oddeven">';
|
2022-07-18 11:51:28 +02:00
|
|
|
$lastcreatedbox .= '<td class="nowraponall tdoverflowmax150">';
|
2021-10-25 22:07:31 +02:00
|
|
|
$lastcreatedbox .= $fuserstatic->getNomUrl(-1);
|
2022-08-28 14:37:36 +02:00
|
|
|
if (isModEnabled('multicompany') && $obj->admin && !$obj->entity) {
|
2023-09-12 15:58:42 +02:00
|
|
|
$lastcreatedbox .= img_picto($langs->trans("SuperAdministratorDesc"), 'redstar');
|
2021-01-02 20:20:22 +01:00
|
|
|
} elseif ($obj->admin) {
|
2023-09-12 15:58:42 +02:00
|
|
|
$lastcreatedbox .= img_picto($langs->trans("AdministratorDesc"), 'star');
|
2009-08-17 19:32:38 +02:00
|
|
|
}
|
2021-10-25 22:07:31 +02:00
|
|
|
$lastcreatedbox .= "</td>";
|
2022-07-18 11:51:28 +02:00
|
|
|
$lastcreatedbox .= '<td class="tdoverflowmax150" title="'.dol_escape_htmltag($obj->login).'">'.dol_escape_htmltag($obj->login).'</td>';
|
|
|
|
|
$texttoshow = '';
|
2021-01-02 20:20:22 +01:00
|
|
|
if ($obj->fk_soc) {
|
2022-07-18 11:51:28 +02:00
|
|
|
$texttoshow .= $companystatic->getNomUrl(1);
|
2020-05-21 15:05:19 +02:00
|
|
|
} else {
|
2022-07-18 11:51:28 +02:00
|
|
|
$texttoshow .= '<span class="opacitymedium">'.$langs->trans("InternalUser").'</span>';
|
2011-08-20 00:15:22 +02:00
|
|
|
}
|
2021-01-02 20:20:22 +01:00
|
|
|
if ($obj->ldap_sid) {
|
2022-07-18 11:51:28 +02:00
|
|
|
$texttoshow .= ' <span class="opacitymedium">('.$langs->trans("DomainUser").')</span>';
|
2014-05-30 13:08:01 +02:00
|
|
|
}
|
2020-01-30 01:48:28 +01:00
|
|
|
$entity = $obj->entity;
|
|
|
|
|
$entitystring = '';
|
2020-10-31 14:32:18 +01:00
|
|
|
// TODO Set of entitystring should be done with a hook
|
2022-08-28 14:37:36 +02:00
|
|
|
if (isModEnabled('multicompany') && is_object($mc)) {
|
2021-01-02 20:20:22 +01:00
|
|
|
if (empty($entity)) {
|
2020-01-30 01:48:28 +01:00
|
|
|
$entitystring = $langs->trans("AllEntities");
|
2020-05-21 15:05:19 +02:00
|
|
|
} else {
|
2015-07-13 09:54:26 +02:00
|
|
|
$mc->getInfo($entity);
|
2020-01-30 01:48:28 +01:00
|
|
|
$entitystring = $mc->label;
|
2015-07-13 09:54:26 +02:00
|
|
|
}
|
|
|
|
|
}
|
2022-07-18 11:51:28 +02:00
|
|
|
$texttoshow .= ($entitystring ? ' <span class="opacitymedium">('.$entitystring.')</span>' : '');
|
|
|
|
|
$lastcreatedbox .= '<td class="tdoverflowmax150" title="'.dol_escape_htmltag(dol_string_nohtmltag($texttoshow)).'">';
|
|
|
|
|
$lastcreatedbox .= $texttoshow;
|
2021-10-25 22:07:31 +02:00
|
|
|
$lastcreatedbox .= '</td>';
|
|
|
|
|
$lastcreatedbox .= '<td class="center nowrap">'.dol_print_date($db->jdate($obj->datec), 'dayhour').'</td>';
|
|
|
|
|
$lastcreatedbox .= '<td class="right">';
|
|
|
|
|
$lastcreatedbox .= $fuserstatic->getLibStatut(3);
|
|
|
|
|
$lastcreatedbox .= '</td>';
|
2011-04-06 21:54:06 +02:00
|
|
|
|
2021-10-25 22:07:31 +02:00
|
|
|
$lastcreatedbox .= '</tr>';
|
2009-08-17 19:32:38 +02:00
|
|
|
$i++;
|
|
|
|
|
}
|
2021-10-25 22:07:31 +02:00
|
|
|
$lastcreatedbox .= "</table>";
|
|
|
|
|
$lastcreatedbox .= "</div><br>";
|
2009-08-17 19:32:38 +02:00
|
|
|
|
|
|
|
|
$db->free($resql);
|
2020-05-21 15:05:19 +02:00
|
|
|
} else {
|
2009-08-17 19:32:38 +02:00
|
|
|
dol_print_error($db);
|
2005-01-29 16:27:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2005-09-06 21:17:12 +02:00
|
|
|
/*
|
2011-05-25 11:51:01 +02:00
|
|
|
* Last groups created
|
2005-09-06 21:17:12 +02:00
|
|
|
*/
|
2021-03-02 22:41:20 +01:00
|
|
|
$lastgroupbox = '';
|
2024-09-01 13:48:58 +02:00
|
|
|
if ($permissiontoreadgroup) {
|
2014-10-04 17:20:17 +02:00
|
|
|
$sql = "SELECT g.rowid, g.nom as name, g.note, g.entity, g.datec";
|
2020-01-30 01:48:28 +01:00
|
|
|
$sql .= " FROM ".MAIN_DB_PREFIX."usergroup as g";
|
2022-10-02 13:40:50 +02:00
|
|
|
if (isModEnabled('multicompany') && $conf->entity == 1 && (getDolGlobalInt('MULTICOMPANY_TRANSVERSE_MODE') || ($user->admin && !$user->entity))) {
|
2020-01-30 01:48:28 +01:00
|
|
|
$sql .= " WHERE g.entity IS NOT NULL";
|
2020-05-21 15:05:19 +02:00
|
|
|
} else {
|
2022-10-02 13:40:50 +02:00
|
|
|
$sql .= " WHERE g.entity IN (0, ".$conf->entity.")";
|
2011-08-20 11:03:38 +02:00
|
|
|
}
|
2020-01-30 01:48:28 +01:00
|
|
|
$sql .= $db->order("g.datec", "DESC");
|
|
|
|
|
$sql .= $db->plimit($max);
|
2011-04-06 21:54:06 +02:00
|
|
|
|
2020-01-30 01:48:28 +01:00
|
|
|
$resql = $db->query($sql);
|
2021-01-02 20:20:22 +01:00
|
|
|
if ($resql) {
|
2020-01-30 01:48:28 +01:00
|
|
|
$colspan = 1;
|
2022-08-28 14:37:36 +02:00
|
|
|
if (isModEnabled('multicompany')) {
|
2021-01-02 20:20:22 +01:00
|
|
|
$colspan++;
|
|
|
|
|
}
|
2010-10-29 09:27:33 +02:00
|
|
|
$num = $db->num_rows($resql);
|
2020-01-22 12:44:10 +01:00
|
|
|
|
2021-10-25 22:07:31 +02:00
|
|
|
$lastgroupbox .= '<div class="div-table-responsive-no-min">';
|
|
|
|
|
$lastgroupbox .= '<table class="noborder centpercent">';
|
2024-06-04 01:53:22 +02:00
|
|
|
$lastgroupbox .= '<tr class="liste_titre"><td colspan="'.$colspan.'">';
|
|
|
|
|
$lastgroupbox .= '<span class="valignmiddle">'.$langs->trans("LastGroupsCreated", ($num ? $num : $max)).'</span>';
|
2024-06-04 02:24:33 +02:00
|
|
|
$lastgroupbox .= '<a class="valignmiddle marginleftonlyshort" href="'.DOL_URL_ROOT.'/user/group/list.php?sortfield=g.datec&sortorder=DESC" title="'.$langs->trans("FullList").'">';
|
2024-06-04 01:53:22 +02:00
|
|
|
$lastgroupbox .= '<span class="badge marginleftonlyshort valignmiddle">...</span>';
|
|
|
|
|
$lastgroupbox .= '</a>';
|
|
|
|
|
|
|
|
|
|
$lastgroupbox .= '</td>';
|
|
|
|
|
$lastgroupbox .= '<td class="right">';
|
|
|
|
|
//$lastgroupbox .= '<a class="commonlink" href="'.DOL_URL_ROOT.'/user/group/list.php?sortfield=g.datec&sortorder=DESC">'.$langs->trans("FullList");
|
|
|
|
|
$lastgroupbox .= '</td>';
|
2021-10-25 22:07:31 +02:00
|
|
|
$lastgroupbox .= '</tr>';
|
2010-10-29 09:27:33 +02:00
|
|
|
$i = 0;
|
2011-04-06 21:54:06 +02:00
|
|
|
|
2018-02-06 19:16:15 +01:00
|
|
|
$grouptemp = new UserGroup($db);
|
|
|
|
|
|
2021-01-02 20:20:22 +01:00
|
|
|
while ($i < $num && (!$max || $i < $max)) {
|
2010-10-29 09:27:33 +02:00
|
|
|
$obj = $db->fetch_object($resql);
|
2018-02-06 19:16:15 +01:00
|
|
|
|
2018-02-06 19:29:16 +01:00
|
|
|
$grouptemp->id = $obj->rowid;
|
2018-02-06 19:16:15 +01:00
|
|
|
$grouptemp->name = $obj->name;
|
|
|
|
|
$grouptemp->note = $obj->note;
|
2011-04-06 21:54:06 +02:00
|
|
|
|
2021-10-25 22:07:31 +02:00
|
|
|
$lastgroupbox .= '<tr class="oddeven">';
|
|
|
|
|
$lastgroupbox .= '<td>';
|
|
|
|
|
$lastgroupbox .= $grouptemp->getNomUrl(1);
|
2021-01-02 20:20:22 +01:00
|
|
|
if (!$obj->entity) {
|
2021-10-25 22:07:31 +02:00
|
|
|
$lastgroupbox .= img_picto($langs->trans("GlobalGroup"), 'redstar');
|
2010-10-29 09:27:33 +02:00
|
|
|
}
|
2021-10-25 22:07:31 +02:00
|
|
|
$lastgroupbox .= "</td>";
|
2022-08-28 14:37:36 +02:00
|
|
|
if (isModEnabled('multicompany') && is_object($mc)) {
|
2020-10-31 14:32:18 +01:00
|
|
|
$mc->getInfo($obj->entity);
|
2021-10-25 22:07:31 +02:00
|
|
|
$lastgroupbox .= '<td>';
|
|
|
|
|
$lastgroupbox .= $mc->label;
|
|
|
|
|
$lastgroupbox .= '</td>';
|
2011-09-20 17:41:16 +02:00
|
|
|
}
|
2021-10-25 22:07:31 +02:00
|
|
|
$lastgroupbox .= '<td class="nowrap right">'.dol_print_date($db->jdate($obj->datec), 'dayhour').'</td>';
|
|
|
|
|
$lastgroupbox .= "</tr>";
|
2010-10-29 09:27:33 +02:00
|
|
|
$i++;
|
2009-08-17 19:32:38 +02:00
|
|
|
}
|
2021-03-02 22:41:20 +01:00
|
|
|
$lastgroupbox .= "</table>";
|
|
|
|
|
$lastgroupbox .= "</div><br>";
|
2011-04-06 21:54:06 +02:00
|
|
|
|
2010-10-29 09:27:33 +02:00
|
|
|
$db->free($resql);
|
2020-05-21 15:05:19 +02:00
|
|
|
} else {
|
2010-10-29 09:27:33 +02:00
|
|
|
dol_print_error($db);
|
2009-08-17 19:32:38 +02:00
|
|
|
}
|
2005-09-06 21:17:12 +02:00
|
|
|
}
|
|
|
|
|
|
2021-01-02 20:20:22 +01:00
|
|
|
// boxes
|
|
|
|
|
print '<div class="clearboth"></div>';
|
|
|
|
|
print '<div class="fichecenter fichecenterbis">';
|
|
|
|
|
|
|
|
|
|
$boxlist = '<div class="twocolumns">';
|
|
|
|
|
|
|
|
|
|
$boxlist .= '<div class="firstcolumn fichehalfleft boxhalfleft" id="boxhalfleft">';
|
2021-03-02 22:41:20 +01:00
|
|
|
$boxlist .= $searchbox;
|
2021-01-02 20:20:22 +01:00
|
|
|
$boxlist .= $resultboxes['boxlista'];
|
|
|
|
|
$boxlist .= '</div>'."\n";
|
|
|
|
|
|
|
|
|
|
$boxlist .= '<div class="secondcolumn fichehalfright boxhalfright" id="boxhalfright">';
|
2021-03-02 22:41:20 +01:00
|
|
|
$boxlist .= $lastcreatedbox;
|
|
|
|
|
$boxlist .= $lastgroupbox;
|
2021-01-02 20:20:22 +01:00
|
|
|
$boxlist .= $resultboxes['boxlistb'];
|
|
|
|
|
$boxlist .= '</div>'."\n";
|
|
|
|
|
|
|
|
|
|
$boxlist .= '</div>';
|
|
|
|
|
|
|
|
|
|
print $boxlist;
|
|
|
|
|
|
|
|
|
|
print '</div>';
|
|
|
|
|
|
2024-06-30 21:02:50 +02:00
|
|
|
// Initialize a technical object to manage hooks. Note that conf->hooks_modules contains array
|
2019-06-18 14:07:52 +02:00
|
|
|
$parameters = array('user' => $user);
|
|
|
|
|
$reshook = $hookmanager->executeHooks('dashboardUsersGroups', $parameters, $object); // Note that $action and $object may have been modified by hook
|
|
|
|
|
|
2018-08-04 15:58:05 +02:00
|
|
|
// End of page
|
2011-08-27 16:24:16 +02:00
|
|
|
llxFooter();
|
2013-03-16 14:53:15 +01:00
|
|
|
$db->close();
|