2
0
forked from Wavyzz/dolibarr

Fix: Respect W3C

This commit is contained in:
Laurent Destailleur
2005-10-14 21:05:13 +00:00
parent 13ff44a6d0
commit 573bd4f625
7 changed files with 91 additions and 89 deletions

View File

@@ -37,23 +37,23 @@ if (!$user->admin)
if ($_GET["action"] == 'add')
{
$sql = "UPDATE ".MAIN_DB_PREFIX."rights_def SET bydefault=1 WHERE id =".$_GET["pid"];
$db->query($sql);
$sql = "UPDATE ".MAIN_DB_PREFIX."rights_def SET bydefault=1 WHERE id =".$_GET["pid"];
$db->query($sql);
}
if ($_GET["action"] == 'remove')
{
$sql = "UPDATE ".MAIN_DB_PREFIX."rights_def SET bydefault=0 WHERE id =".$_GET["pid"];
$db->query($sql);
$sql = "UPDATE ".MAIN_DB_PREFIX."rights_def SET bydefault=0 WHERE id =".$_GET["pid"];
$db->query($sql);
}
llxHeader();
print_titre($langs->trans("DefaultRights"));
print_fiche_titre($langs->trans("DefaultRights"));
print "<br>".$langs->trans("DefaultRightsDesc")."<br><br>\n";
print $langs->trans("DefaultRightsDesc")."<br><br>\n";
print '<table class="noborder" width="100%">';