Debug v17
This commit is contained in:
parent
ab7fe39274
commit
b605df1c72
@ -565,7 +565,10 @@ if ($result) {
|
|||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
}
|
}
|
||||||
print '<td class="center nowrap">';
|
print '<td class="center nowrap">';
|
||||||
print img_picto($langs->trans("Active"), 'tick');
|
if (!$caneditperms) {
|
||||||
|
print img_picto($langs->trans("Active"), 'switch_on', '', false, 0, 0, '', 'opacitymedium');
|
||||||
|
//print img_picto($langs->trans("Active"), 'tick');
|
||||||
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
} elseif (in_array($obj->id, $permsuser)) { // Permission granted by user
|
} elseif (in_array($obj->id, $permsuser)) { // Permission granted by user
|
||||||
if ($caneditperms) {
|
if ($caneditperms) {
|
||||||
@ -578,7 +581,10 @@ if ($result) {
|
|||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
}
|
}
|
||||||
print '<td class="center nowrap">';
|
print '<td class="center nowrap">';
|
||||||
print img_picto($langs->trans("Active"), 'tick');
|
if (!$caneditperms) {
|
||||||
|
print img_picto($langs->trans("Active"), 'switch_on', '', false, 0, 0, '', 'opacitymedium');
|
||||||
|
//print img_picto($langs->trans("Active"), 'tick');
|
||||||
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
} elseif (isset($permsgroupbyentity[$entity]) && is_array($permsgroupbyentity[$entity])) {
|
} elseif (isset($permsgroupbyentity[$entity]) && is_array($permsgroupbyentity[$entity])) {
|
||||||
if (in_array($obj->id, $permsgroupbyentity[$entity])) { // Permission granted by group
|
if (in_array($obj->id, $permsgroupbyentity[$entity])) { // Permission granted by group
|
||||||
@ -590,7 +596,8 @@ if ($result) {
|
|||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
}
|
}
|
||||||
print '<td class="center nowrap">';
|
print '<td class="center nowrap">';
|
||||||
print img_picto($langs->trans("Active"), 'tick');
|
print img_picto($langs->trans("Active"), 'switch_on', '', false, 0, 0, '', 'opacitymedium');
|
||||||
|
//print img_picto($langs->trans("Active"), 'tick');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
} else {
|
} else {
|
||||||
// Do not own permission
|
// Do not own permission
|
||||||
@ -601,7 +608,9 @@ if ($result) {
|
|||||||
print img_picto($langs->trans("Add"), 'switch_off');
|
print img_picto($langs->trans("Add"), 'switch_off');
|
||||||
print '</a></td>';
|
print '</a></td>';
|
||||||
} else {
|
} else {
|
||||||
print '<td> </td>';
|
print '<td>';
|
||||||
|
print ' ';
|
||||||
|
print '</td>';
|
||||||
}
|
}
|
||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
}
|
}
|
||||||
@ -616,7 +625,12 @@ if ($result) {
|
|||||||
} else {
|
} else {
|
||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
}
|
}
|
||||||
print '<td> </td>';
|
print '<td class="center">';
|
||||||
|
if (!$caneditperms) {
|
||||||
|
print img_picto($langs->trans("Disabled"), 'switch_off', '', false, 0, 0, '', 'opacitymedium');
|
||||||
|
}
|
||||||
|
//print ' ';
|
||||||
|
print '</td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Description of permission (2 columns)
|
// Description of permission (2 columns)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user