Ejemplo n.º 1
0
				elseif ($fgroup->values->rights->$perm)
					print '<a href="' . $_SERVER['PHP_SELF'] . '?id=' . $fgroup->id . '&pid=' . $aRow->value->id . '&amp;action=remove#' . $aRow->value->id . '">' . img_edit_remove() . '</a>';
				else
					print '<a href="' . $_SERVER['PHP_SELF'] . '?id=' . $fgroup->id . '&pid=' . $aRow->value->id . '&amp;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();
?>
Ejemplo n.º 2
0
        print '<td>';
        if ($aRow->value->Status) {
            print '<a href="' . $_SERVER['PHP_SELF'] . '?id=' . $aRow->value->_id . '&pid=' . $aRow->value->idx . '&amp;action=remove#' . $aRow->value->id . '">' . img_edit_remove() . '</a>';
        } else {
            print '<a href="' . $_SERVER['PHP_SELF'] . '?id=' . $aRow->value->_id . '&pid=' . $aRow->value->idx . '&amp;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;
Ejemplo n.º 3
0
                } else {
                    print '<td><a href="' . $objMod->config_page_url . '" title="' . $langs->trans("Setup") . '">' . img_picto($langs->trans("Setup"), "setup") . '</a></td>';
                }
            }
        } else {
            print "<td>&nbsp;</td>";
        }
    } else {
        print "<td>";
        if ($objMod->version == 'dolibarr') {
            print "</td>\n  <td>&nbsp;</td>\n";
        } else {
            // Module non actif
            print '<a href="' . $_SERVER['PHP_SELF'] . '?id=module:' . $objMod->name . '&amp;action=set&amp;value=' . $key . '">';
            print img_picto($langs->trans("Disabled"), 'switch_off');
            print "</a></td>\n  <td>&nbsp;</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();