Ajout droits

This commit is contained in:
Rodolphe Quiedeville 2003-08-06 09:25:40 +00:00
parent 28512b927d
commit f171e8a954
2 changed files with 44 additions and 39 deletions

View File

@ -189,6 +189,7 @@ if ($socid > 0)
print '<td align="center"><a href="../comm/fiche.php3?socid='.$objsoc->idp.'">Commercial</a></td>'; print '<td align="center"><a href="../comm/fiche.php3?socid='.$objsoc->idp.'">Commercial</a></td>';
print "<td align=\"center\"><a href=\"../comm/docsoc.php?socid=$objsoc->idp\">Documents</a></td>"; print "<td align=\"center\"><a href=\"../comm/docsoc.php?socid=$objsoc->idp\">Documents</a></td>";
print "<td align=\"center\"><a href=\"index.php3?socidp=$objsoc->idp&action=add\">[Bookmark]</a></td>"; print "<td align=\"center\"><a href=\"index.php3?socidp=$objsoc->idp&action=add\">[Bookmark]</a></td>";
if ($user->rights->facture->creer)
print "<td>[<a href=\"facture.php3?action=create&socidp=$objsoc->idp\">".translate("Facture")."</a>]</td>"; print "<td>[<a href=\"facture.php3?action=create&socidp=$objsoc->idp\">".translate("Facture")."</a>]</td>";
print "<td><a href=\"socnote.php3?socid=$objsoc->idp\">Notes</a></td>"; print "<td><a href=\"socnote.php3?socid=$objsoc->idp\">Notes</a></td>";
print "<td align=\"center\">[<a href=\"../soc.php3?socid=$objsoc->idp&action=edit\">Editer</a>]</td>"; print "<td align=\"center\">[<a href=\"../soc.php3?socid=$objsoc->idp&action=edit\">Editer</a>]</td>";
@ -231,6 +232,8 @@ if ($socid > 0)
/* /*
* Factures * Factures
*/ */
if ($user->rights->facture->lire)
{
print "<TABLE border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"1\">"; print "<TABLE border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"1\">";
$var=!$var; $var=!$var;
$sql = "SELECT s.nom, s.idp, f.facnumber, f.amount, ".$db->pdate("f.datef")." as df, f.paye, f.rowid as facid "; $sql = "SELECT s.nom, s.idp, f.facnumber, f.amount, ".$db->pdate("f.datef")." as df, f.paye, f.rowid as facid ";
@ -272,7 +275,7 @@ if ($socid > 0)
print $db->error(); print $db->error();
} }
print "</table>"; print "</table>";
}
/* /*

View File

@ -51,6 +51,7 @@ function llxHeader($head = "") {
$menu->add_submenu(DOL_URL_ROOT."/comm/clients.php3", "Clients"); $menu->add_submenu(DOL_URL_ROOT."/comm/clients.php3", "Clients");
if ($user->rights->propale->lire)
$menu->add_submenu(DOL_URL_ROOT."/comm/propal.php3", "Propales"); $menu->add_submenu(DOL_URL_ROOT."/comm/propal.php3", "Propales");
} }
@ -58,6 +59,7 @@ function llxHeader($head = "") {
{ {
$menu->add(DOL_URL_ROOT."/compta/", "Comptabilité"); $menu->add(DOL_URL_ROOT."/compta/", "Comptabilité");
if ($user->rights->facture->lire)
$menu->add_submenu(DOL_URL_ROOT."/compta/facture.php3", "Factures"); $menu->add_submenu(DOL_URL_ROOT."/compta/facture.php3", "Factures");
} }