Ajout de la photo

This commit is contained in:
Rodolphe Quiedeville 2005-04-14 12:04:53 +00:00
parent dbc5e14307
commit a442af7c6b

View File

@ -90,7 +90,7 @@ if ($_GET["id"])
if ($conf->categorie->enabled) if ($conf->categorie->enabled)
{ {
print '<tr id="ways">'; print '<tr id="ways">';
print '<td colspan="2">'; print '<td colspan="3">';
$cat = new Categorie ($db); $cat = new Categorie ($db);
$way = $cat->print_primary_way($product->id," &gt; ",'fourn/product/liste.php'); $way = $cat->print_primary_way($product->id," &gt; ",'fourn/product/liste.php');
if ($way == "") if ($way == "")
@ -105,10 +105,14 @@ if ($_GET["id"])
print '</td></tr>'; print '</td></tr>';
} }
print "<tr>"; print '<tr><td>'.$langs->trans("Label").'</td><td colspan="2">'.$product->libelle.'</td></tr>';
print '<td width="20%">'.$langs->trans("InternalRef").'</td><td width="40%">'.$product->ref.'</td>';
print '</tr>'; print '<tr><td width="20%">'.$langs->trans("InternalRef").'</td><td width="40%">'.$product->ref.'</td>';
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$product->libelle.'</td></tr>';
print '<td class="photo" valign="top" rowspan="6">';
$product->show_photo($conf->produit->dir_output);
print '</td></tr>';
print "<tr>"; print "<tr>";
print '<td width="20%">'.$langs->trans("Supplier").'</td><td width="40%">'.$product->fourn->nom_url.'</td>'; print '<td width="20%">'.$langs->trans("Supplier").'</td><td width="40%">'.$product->fourn->nom_url.'</td>';
print '</tr><tr>'; print '</tr><tr>';
@ -117,25 +121,9 @@ if ($_GET["id"])
print '<td width="20%">'.$langs->trans("BuiingPrice").'</td><td width="40%">'.price($product->buyprice).'</td>'; print '<td width="20%">'.$langs->trans("BuiingPrice").'</td><td width="40%">'.price($product->buyprice).'</td>';
print '</tr>'; print '</tr>';
print '<tr><td colspan="2">'.$langs->trans("Description").'</td></tr>';
print '<tr><td valign="top" colspan="2">'.nl2br($product->description).'&nbsp;</td></tr>';
print '<tr><td valign="top">'.$langs->trans("Description").'</td><td>'.nl2br($product->description).'</td></tr>';
if ($product->type == 1)
{
print '<tr><td>'.$langs->trans("Duration").'</td><td>'.$product->duration_value.'&nbsp;';
if ($product->duration_value > 1)
{
$dur=array("d"=>$langs->trans("Days"),"w"=>$langs->trans("Weeks"),"m"=>$langs->trans("Months"),"y"=>$langs->trans("Years"));
}
else
{
$dur=array("d"=>$langs->trans("Day"),"w"=>$langs->trans("Week"),"m"=>$langs->trans("Month"),"y"=>$langs->trans("Year"));
}
print $langs->trans($dur[$product->duration_unit])."&nbsp;";
print '</td></tr>';
}
print "</table><br>\n"; print "</table><br>\n";
print '<table class="border" width="100%">'; print '<table class="border" width="100%">';
@ -175,8 +163,6 @@ if ($_GET["id"])
} }
print '</table>'; print '</table>';
/* /*
* *
* Fiche en mode edition * Fiche en mode edition