La zone fournisseur de la fiche produit est mal dimensionnée si le produit est de type service.
This commit is contained in:
parent
f997632b1e
commit
e52d97d82b
@ -182,6 +182,8 @@ if ($cancel == 'Annuler')
|
|||||||
*/
|
*/
|
||||||
if ($action == 'create')
|
if ($action == 'create')
|
||||||
{
|
{
|
||||||
|
$nbligne=0;
|
||||||
|
|
||||||
print "<form action=\"$PHP_SELF?type=$type\" method=\"post\">\n";
|
print "<form action=\"$PHP_SELF?type=$type\" method=\"post\">\n";
|
||||||
print "<input type=\"hidden\" name=\"action\" value=\"add\">\n";
|
print "<input type=\"hidden\" name=\"action\" value=\"add\">\n";
|
||||||
print '<input type="hidden" name="type" value="'.$type.'">'."\n";
|
print '<input type="hidden" name="type" value="'.$type.'">'."\n";
|
||||||
@ -270,7 +272,12 @@ 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="3">';
|
if ($product->type == 1) {
|
||||||
|
$nblignefour=4;
|
||||||
|
} else {
|
||||||
|
$nblignefour=3;
|
||||||
|
}
|
||||||
|
print '<td valign="top" rowspan="'.$nblignefour.'">';
|
||||||
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";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user