Correction register_global
This commit is contained in:
parent
61b31bf309
commit
15309ab34c
@ -24,6 +24,10 @@ require("../propal.class.php");
|
|||||||
require("../facture.class.php");
|
require("../facture.class.php");
|
||||||
require("../commande/commande.class.php");
|
require("../commande/commande.class.php");
|
||||||
|
|
||||||
|
$user->getrights('projet');
|
||||||
|
if (!$user->rights->projet->lire)
|
||||||
|
accessforbidden();
|
||||||
|
|
||||||
if ($HTTP_POST_VARS["action"] == 'update')
|
if ($HTTP_POST_VARS["action"] == 'update')
|
||||||
{
|
{
|
||||||
$projet = new Project($db);
|
$projet = new Project($db);
|
||||||
@ -117,7 +121,7 @@ if ($_GET["action"] == 'create')
|
|||||||
|
|
||||||
dolibarr_fiche_head($head, 0);
|
dolibarr_fiche_head($head, 0);
|
||||||
|
|
||||||
if ($action == 'edit')
|
if ($_GET["action"] == 'edit')
|
||||||
{
|
{
|
||||||
print '<form method="post" action="fiche.php?id='.$id.'">';
|
print '<form method="post" action="fiche.php?id='.$id.'">';
|
||||||
print '<input type="hidden" name="action" value="update">';
|
print '<input type="hidden" name="action" value="update">';
|
||||||
@ -137,22 +141,24 @@ if ($_GET["action"] == 'create')
|
|||||||
print '</table>';
|
print '</table>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print '</div>';
|
||||||
|
|
||||||
print '</div><div class="tabsAction">';
|
if ($user->rights->projet->creer == 1)
|
||||||
|
|
||||||
|
|
||||||
if ($action == "edit")
|
|
||||||
{
|
{
|
||||||
print '<a class="tabAction" href="fiche.php?id='.$id.'">Annuler</a>';
|
print '<div class="tabsAction">';
|
||||||
|
if ($_GET["action"] == "edit")
|
||||||
|
{
|
||||||
|
print '<a class="tabAction" href="fiche.php?id='.$projet->id.'">Annuler</a>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<a class="tabAction" href="fiche.php?id='.$id.'&action=edit">Editer</a>';
|
print '<a class="tabAction" href="fiche.php?id='.$projet->id.'&action=edit">Editer</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<a class="tabAction" href="fiche.php?id='.$id.'&action=delete">Supprimer</a>';
|
print '<a class="tabAction" href="fiche.php?id='.$projet->id.'&action=delete">Supprimer</a>';
|
||||||
|
|
||||||
print "</div>";
|
print "</div>";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user