mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Debug v20
This commit is contained in:
parent
e5742de49d
commit
c62183ba49
|
|
@ -73,9 +73,13 @@ if (GETPOST('addbox')) {
|
|||
}
|
||||
}
|
||||
|
||||
$max = getDolGlobalInt('MAIN_SIZE_SHORTLIST_LIMIT', 5);
|
||||
|
||||
|
||||
/*
|
||||
* View
|
||||
*/
|
||||
|
||||
$title = $langs->trans("MenuUsersAndGroups");
|
||||
$help_url = '';
|
||||
llxHeader('', $title, $help_url);
|
||||
|
|
@ -108,7 +112,7 @@ $searchbox .= '</form>';
|
|||
/*
|
||||
* Latest created users
|
||||
*/
|
||||
$max = 10;
|
||||
|
||||
$lastcreatedbox = '';
|
||||
$sql = "SELECT DISTINCT u.rowid, u.lastname, u.firstname, u.admin, u.login, u.fk_soc, u.datec, u.statut";
|
||||
$sql .= ", u.entity";
|
||||
|
|
@ -141,8 +145,15 @@ if ($resql) {
|
|||
|
||||
$lastcreatedbox .= '<div class="div-table-responsive-no-min">';
|
||||
$lastcreatedbox .= '<table class="noborder centpercent">';
|
||||
$lastcreatedbox .= '<tr class="liste_titre"><td colspan="3">'.$langs->trans("LastUsersCreated", min($num, $max)).'</td>';
|
||||
$lastcreatedbox .= '<td class="right" colspan="2"><a class="commonlink" href="'.DOL_URL_ROOT.'/user/list.php?sortfield=u.datec&sortorder=DESC">'.$langs->trans("FullList").'</td>';
|
||||
$lastcreatedbox .= '<tr class="liste_titre"><td colspan="3" class="valignmiddle">';
|
||||
$lastcreatedbox .= '<span class="valignmiddle">'.$langs->trans("LastUsersCreated", min($num, $max)).'</span>';
|
||||
$lastcreatedbox .= '<a class="valignmiddle" href="'.DOL_URL_ROOT.'/user/list.php?sortfield=u.datec&sortorder=DESC" title="'.$langs->trans("FullList").'">';
|
||||
$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>';
|
||||
$lastcreatedbox .= '</tr>'."\n";
|
||||
$i = 0;
|
||||
|
||||
|
|
@ -220,8 +231,6 @@ if ($resql) {
|
|||
*/
|
||||
$lastgroupbox = '';
|
||||
if ($canreadperms) {
|
||||
$max = 5;
|
||||
|
||||
$sql = "SELECT g.rowid, g.nom as name, g.note, g.entity, g.datec";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."usergroup as g";
|
||||
if (isModEnabled('multicompany') && $conf->entity == 1 && (getDolGlobalInt('MULTICOMPANY_TRANSVERSE_MODE') || ($user->admin && !$user->entity))) {
|
||||
|
|
@ -242,8 +251,16 @@ if ($canreadperms) {
|
|||
|
||||
$lastgroupbox .= '<div class="div-table-responsive-no-min">';
|
||||
$lastgroupbox .= '<table class="noborder centpercent">';
|
||||
$lastgroupbox .= '<tr class="liste_titre"><td colspan="'.$colspan.'">'.$langs->trans("LastGroupsCreated", ($num ? $num : $max)).'</td>';
|
||||
$lastgroupbox .= '<td class="right"><a class="commonlink" href="'.DOL_URL_ROOT.'/user/group/list.php?sortfield=g.datec&sortorder=DESC">'.$langs->trans("FullList").'</td>';
|
||||
$lastgroupbox .= '<tr class="liste_titre"><td colspan="'.$colspan.'">';
|
||||
$lastgroupbox .= '<span class="valignmiddle">'.$langs->trans("LastGroupsCreated", ($num ? $num : $max)).'</span>';
|
||||
$lastgroupbox .= '<a class="valignmiddle" href="'.DOL_URL_ROOT.'/user/group/list.php?sortfield=g.datec&sortorder=DESC" title="'.$langs->trans("FullList").'">';
|
||||
$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>';
|
||||
$lastgroupbox .= '</tr>';
|
||||
$i = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user