Application du nouveau style des boutons d'actions sur la page de fiche des produits.
This commit is contained in:
parent
2a54957048
commit
f997632b1e
@ -270,7 +270,7 @@ else
|
|||||||
print "<tr><td>Libellé</td><td>$product->libelle</td>";
|
print "<tr><td>Libellé</td><td>$product->libelle</td>";
|
||||||
print '<td><a href="stats/fiche.php?id='.$id.'">Statistiques</a></td></tr>';
|
print '<td><a href="stats/fiche.php?id='.$id.'">Statistiques</a></td></tr>';
|
||||||
print '<tr><td>Prix de vente</td><td>'.price($product->price).'</td>';
|
print '<tr><td>Prix de vente</td><td>'.price($product->price).'</td>';
|
||||||
print '<td valign="top" rowspan="4">';
|
print '<td valign="top" rowspan="3">';
|
||||||
print 'Fournisseurs [<a href="fiche.php?id='.$id.'&action=ajout_fourn">Ajouter</a>]';
|
print 'Fournisseurs [<a href="fiche.php?id='.$id.'&action=ajout_fourn">Ajouter</a>]';
|
||||||
|
|
||||||
$sql = "SELECT s.nom, s.idp";
|
$sql = "SELECT s.nom, s.idp";
|
||||||
@ -350,7 +350,7 @@ else
|
|||||||
|
|
||||||
if ($action == 'edit_price' && $user->rights->produit->creer)
|
if ($action == 'edit_price' && $user->rights->produit->creer)
|
||||||
{
|
{
|
||||||
print '<hr><div class="titre">Nouveau prix</div><br>';
|
print '<br><div class="titre">Nouveau prix</div>';
|
||||||
print "<form action=\"$PHP_SELF?id=$id\" method=\"post\">\n";
|
print "<form action=\"$PHP_SELF?id=$id\" method=\"post\">\n";
|
||||||
print '<input type="hidden" name="action" value="update_price">';
|
print '<input type="hidden" name="action" value="update_price">';
|
||||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
||||||
@ -496,50 +496,31 @@ else
|
|||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
print '<br><table id="actions" width="100%" cellspacing="0" cellpadding="3">';
|
print "<br><div class=\"tabsAction\">\n";
|
||||||
if ($action == '')
|
|
||||||
{
|
|
||||||
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>';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print '<td width="20%" align="center">-</td>';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print '<td width="20%" align="center">-</td>';
|
|
||||||
}
|
|
||||||
print '<td width="20%" align="center">-</td>';
|
|
||||||
|
|
||||||
if ($action == '')
|
if ($action == '')
|
||||||
{
|
{
|
||||||
if ($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&id='.$id.'">Editer</a></td>';
|
print '<a class="tabAction" href="fiche.php?action=edit_price&id='.$id.'">Changer le prix</a>';
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print '<td width="20%" align="center">-</td>';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
if ($action == '')
|
||||||
{
|
{
|
||||||
print '<td width="20%" align="center">-</td>';
|
if ($user->rights->produit->modifier || $user->rights->produit->creer)
|
||||||
|
{
|
||||||
|
print '<a class="tabAction" href="fiche.php?action=edit&id='.$id.'">Editer</a>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
print '<td width="20%" align="center">-</td>';
|
|
||||||
if ($product->type == 0 && defined("MAIN_MODULE_STOCK"))
|
if ($product->type == 0 && defined("MAIN_MODULE_STOCK"))
|
||||||
{
|
{
|
||||||
print '<td width="20%" align="center"><a href="stock/product.php?id='.$id.'&action=correction">Correction stock</a></td>';
|
print '<a class="tabAction" href="stock/product.php?id='.$id.'&action=correction">Correction stock</a>';
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print '<td width="20%" align="center">-</td>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</table><br>';
|
print "</div>";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($id && $action == '' && $product->envente)
|
if ($id && $action == '' && $product->envente)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user