elseif ($fgroup->values->rights->$perm) print '<a href="' . $_SERVER['PHP_SELF'] . '?id=' . $fgroup->id . '&pid=' . $aRow->value->id . '&action=remove#' . $aRow->value->id . '">' . img_edit_remove() . '</a>'; else print '<a href="' . $_SERVER['PHP_SELF'] . '?id=' . $fgroup->id . '&pid=' . $aRow->value->id . '&action=add#' . $aRow->value->id . '">' . img_edit_add() . '</a>'; } else { print $object->getLibStatus(); } print '</td>'; print'</tr>'; } } print'</tbody>'; print'</table>'; $obj->aaSorting = array(array(1, 'asc')); $obj->sDom = 'l<fr>t<\"clear\"rtip>'; $obj->iDisplayLength = -1; print $object->datatablesCreate($obj, "rights"); } print end_box(); print '</div>'; $db->close(); llxFooter(); ?>
print '<td>'; if ($aRow->value->Status) { print '<a href="' . $_SERVER['PHP_SELF'] . '?id=' . $aRow->value->_id . '&pid=' . $aRow->value->idx . '&action=remove#' . $aRow->value->id . '">' . img_edit_remove() . '</a>'; } else { print '<a href="' . $_SERVER['PHP_SELF'] . '?id=' . $aRow->value->_id . '&pid=' . $aRow->value->idx . '&action=add#' . $aRow->value->id . '">' . img_edit_add() . '</a>'; } print '</td>'; print '</tr>'; } } print '</tbody>'; print '</table>'; $obj->aaSorting = array(array(1, 'asc')); $obj->sDom = 'l<fr>t<\\"clear\\"rtip>'; $obj->iDisplayLength = -1; print $object->datatablesCreate($obj, "default_right"); /* // Break found, it's a new module to catch if ($oldmod <> $obj->module) { $oldmod = $obj->module; $objMod = $modules[$obj->module]; $picto = ($objMod->picto ? $objMod->picto : 'generic'); print '<tr class="liste_titre">'; print '<td>' . $langs->trans("Module") . '</td>'; print '<td>' . $langs->trans("Permission") . '</td>'; print '<td align="center">' . $langs->trans("Default") . '</td>'; print "</tr>\n"; } $var = !$var;
} else { print '<td><a href="' . $objMod->config_page_url . '" title="' . $langs->trans("Setup") . '">' . img_picto($langs->trans("Setup"), "setup") . '</a></td>'; } } } else { print "<td> </td>"; } } else { print "<td>"; if ($objMod->version == 'dolibarr') { print "</td>\n <td> </td>\n"; } else { // Module non actif print '<a href="' . $_SERVER['PHP_SELF'] . '?id=module:' . $objMod->name . '&action=set&value=' . $key . '">'; print img_picto($langs->trans("Disabled"), 'switch_off'); print "</a></td>\n <td> </td>\n"; } } print "</tr>\n"; } print '</tbody>'; print '</table>'; $obj->aaSorting = array(array(1, 'asc')); $obj->sDom = 'l<fr>t<\\"clear\\"rtip>'; $obj->iDisplayLength = 100; $obj->bServerSide = false; print $object->datatablesCreate($obj, "list_modules"); print end_box(); print '</div>'; llxFooter(); $db->close();