Application du nouveau look sur la barre d'action des entrepots.

This commit is contained in:
Laurent Destailleur 2004-03-14 16:40:46 +00:00
parent 089ed3c2d7
commit 532e256314

View File

@ -1,5 +1,6 @@
<?PHP <?PHP
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -167,42 +168,19 @@ else
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
print '<br><table id="actions" width="100%" cellspacing="0" cellpadding="3">'; print "<br><div class=\"tabsAction\">\n";
if ($action == '')
{ if ($action == '' && ($user->rights->produit->modifier || $user->rights->produit->creer))
if ($user->rights->produit->modifier || $user->rights->produit->creer)
{ {
print '<td width="20%" align="center">[<a href="fiche.php?action=edit_price&id='.$id.'">Changer le prix</a>]</td>'; print "<a class=\"tabAction\" href=\"$PHP_SELF?action=edit_price&id=$id\">Changer le prix</a>";
} }
else
{
print '<td width="20%" align="center">-</td>';
}
}
else
{
print '<td width="20%" align="center">-</td>';
}
print '<td width="20%" align="center">-</td>';
print '<td width="20%" align="center">-</td>';
if ($action == '') if ($action == '')
{ {
if (1) print "<a class=\"tabAction\" href=\"$PHP_SELF?action=edit&id=$id\">Editer</a>";
{ }
print '<td width="20%" align="center">[<a href="fiche.php?action=edit&id='.$id.'">Editer</a>]</td>';
} print "</div>";
else
{
print '<td width="20%" align="center">-</td>';
}
}
else
{
print '<td width="20%" align="center">-</td>';
}
print '<td width="20%" align="center">-</td>';
print '</table><br>';