Ejemplo n.º 1
0
		$head[$h][0] = DOL_URL_ROOT."/fourn/product/fourn.php?id=".$product->id.'&id_fourn='.$_GET["id_fourn"];
		$head[$h][1] = $langs->trans("SupplierCard");
		$hselected = $h;
		$h++;

		dol_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);

		print '<table class="border" width="100%">';

		if ($conf->categorie->enabled)
		{
	  print '<tr id="ways">';
	  print '<td colspan="3">';
	  $cat = new Categorie ($db);
	  $way = $cat->print_primary_way($product->id," &gt; ",'fourn/product/liste.php', 1);
	  if ($way == "")
	  {
	  	print "Ce produit n'appartient a aucune categorie";
	  }
	  else
	  {
		  print $langs->trans("Category")." : ";
		  print $way;
	  }
	  print '</td></tr>';
		}

		print '<tr><td>'.$langs->trans("Label").'</td><td colspan="2">'.$product->libelle.'</td></tr>';

		print '<tr><td width="20%">'.$langs->trans("InternalRef").'</td><td width="40%">'.$product->ref.'</td>';