|
@@ -1,9 +1,9 @@
|
|
|
<?php
|
|
|
-/* Copyright (C) 2002-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
|
- * Copyright (C) 2004-2021 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
|
- * Copyright (C) 2005-2017 Regis Houssin <regis.houssin@inodbox.com>
|
|
|
- * Copyright (C) 2015 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
|
|
- * Copyright (C) 2016 Marcos García <marcosgdf@gmail.com>
|
|
|
+/* Copyright (C) 2002-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
|
+ * Copyright (C) 2004-2021 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
|
+ * Copyright (C) 2005-2017 Regis Houssin <regis.houssin@inodbox.com>
|
|
|
+ * Copyright (C) 2015-2024 Alexandre Spangaro <alexandre@inovea-conseil.com>
|
|
|
+ * Copyright (C) 2016 Marcos García <marcosgdf@gmail.com>
|
|
|
*
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
@@ -135,9 +135,9 @@ $arrayfields = array(
|
|
|
'u.email'=>array('label'=>"EMail", 'checked'=>1, 'position'=>35),
|
|
|
'u.api_key'=>array('label'=>"ApiKey", 'checked'=>0, 'position'=>40, "enabled"=>(isModEnabled('api') && $user->admin)),
|
|
|
'u.fk_soc'=>array('label'=>"Company", 'checked'=>($contextpage == 'employeelist' ? 0 : 1), 'position'=>45),
|
|
|
- 'u.ref_employee'=>array('label'=>"RefEmployee", 'checked'=>-1, 'position'=>60, 'enabled'=>(isModEnabled('hrm') && $permissiontoreadhr)),
|
|
|
- 'u.national_registration_number'=>array('label'=>"NationalRegistrationNumber", 'checked'=>-1, 'position'=>61, 'enabled'=>(isModEnabled('hrm') && $permissiontoreadhr)),
|
|
|
- 'u.job'=>array('label'=>"PostOrFunction", 'checked'=>-1, 'position'=>50),
|
|
|
+ 'u.ref_employee'=>array('label'=>"RefEmployee", 'checked'=>-1, 'position'=>50, 'enabled'=>(isModEnabled('hrm') && $permissiontoreadhr)),
|
|
|
+ 'u.national_registration_number'=>array('label'=>"NationalRegistrationNumber", 'checked'=>-1, 'position'=>51, 'enabled'=>(isModEnabled('hrm') && $permissiontoreadhr)),
|
|
|
+ 'u.job'=>array('label'=>"PostOrFunction", 'checked'=>-1, 'position'=>60),
|
|
|
'u.salary'=>array('label'=>"Salary", 'checked'=>-1, 'position'=>80, 'enabled'=>(isModEnabled('salaries') && $user->hasRight("salaries", "readall")), 'isameasure'=>1),
|
|
|
'u.datelastlogin'=>array('label'=>"LastConnexion", 'checked'=>1, 'position'=>100),
|
|
|
'u.datepreviouslogin'=>array('label'=>"PreviousConnexion", 'checked'=>0, 'position'=>110),
|
|
@@ -913,10 +913,6 @@ if (!empty($arrayfields['u.entity']['checked'])) {
|
|
|
print_liste_field_titre($arrayfields['u.entity']['label'], $_SERVER['PHP_SELF'], "u.entity", $param, "", "", $sortfield, $sortorder);
|
|
|
$totalarray['nbfield']++;
|
|
|
}
|
|
|
-if (!empty($arrayfields['u.job']['checked'])) {
|
|
|
- print_liste_field_titre($arrayfields['u.job']['label'], $_SERVER['PHP_SELF'], "u.job", $param, "", "", $sortfield, $sortorder);
|
|
|
- $totalarray['nbfield']++;
|
|
|
-}
|
|
|
if (!empty($arrayfields['u.ref_employee']['checked'])) {
|
|
|
print_liste_field_titre("RefEmployee", $_SERVER['PHP_SELF'], "u.ref_employee", $param, "", "", $sortfield, $sortorder);
|
|
|
$totalarray['nbfield']++;
|
|
@@ -925,6 +921,10 @@ if (!empty($arrayfields['u.national_registration_number']['checked'])) {
|
|
|
print_liste_field_titre("NationalRegistrationNumber", $_SERVER['PHP_SELF'], "u.national_registration_number", $param, "", "", $sortfield, $sortorder);
|
|
|
$totalarray['nbfield']++;
|
|
|
}
|
|
|
+if (!empty($arrayfields['u.job']['checked'])) {
|
|
|
+ print_liste_field_titre($arrayfields['u.job']['label'], $_SERVER['PHP_SELF'], "u.job", $param, "", "", $sortfield, $sortorder);
|
|
|
+ $totalarray['nbfield']++;
|
|
|
+}
|
|
|
if (!empty($arrayfields['u.salary']['checked'])) {
|
|
|
print_liste_field_titre("Salary", $_SERVER['PHP_SELF'], "u.salary", $param, "", "", $sortfield, $sortorder, 'right ');
|
|
|
$totalarray['nbfield']++;
|