';
-print '
';
+// Boutons actions
+print '
';
+print '';
print '
';
print '';
diff --git a/htdocs/product/document.php b/htdocs/product/document.php
index 0a4bab631c8..1d7e5d5ff50 100755
--- a/htdocs/product/document.php
+++ b/htdocs/product/document.php
@@ -34,9 +34,9 @@ require_once(DOL_DOCUMENT_ROOT."/core/class/html.formfile.class.php");
$langs->load("other");
$langs->load("products");
-$id = GETPOST('id', 'int');
-$ref = GETPOST('ref', 'alpha');
-$action=GETPOST('action','alpha');
+$id = GETPOST('id', 'int');
+$ref = GETPOST('ref', 'alpha');
+$action=GETPOST('action','alpha');
$confirm=GETPOST('confirm','alpha');
// Security check
diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php
index e7670f77974..5a06d6fae25 100644
--- a/htdocs/product/fournisseurs.php
+++ b/htdocs/product/fournisseurs.php
@@ -304,8 +304,8 @@ if ($id || $ref)
print '';
print '';
- // Vat rate
- print '
| '.$langs->trans("VATRate").' | ';
+ // Vat rate
+ print '
| '.$langs->trans("VATRate").' | ';
print ''.$form->load_tva('tva_tx',$product->tva_tx,$supplier,$mysoc).' |
';
// Availability
@@ -421,9 +421,9 @@ if ($id || $ref)
print $productfourn->fourn_qty;
print '';
- // VAT rate
- print '
';
- print vatrate($productfourn->fourn_tva_tx,true);
+ // VAT rate
+ print ' | ';
+ print vatrate($productfourn->fourn_tva_tx,true);
print ' | ';
// Price quantity
diff --git a/htdocs/product/photos.php b/htdocs/product/photos.php
index e5aa4bf123d..eeaebbc448e 100644
--- a/htdocs/product/photos.php
+++ b/htdocs/product/photos.php
@@ -46,10 +46,10 @@ $result=restrictedArea($user,'produit|service',$fieldvalue,'product&product','',
$mesg = '';
$object = new Product($db);
-if ($id > 0 || ! empty($ref))
-{
+if ($id > 0 || ! empty($ref))
+{
$result = $object->fetch($id, $ref);
- $dir = (! empty($conf->product->multidir_output[$object->entity])?$conf->product->multidir_output[$object->entity]:$conf->service->multidir_output[$object->entity]);
+ $dir = (! empty($conf->product->multidir_output[$object->entity])?$conf->product->multidir_output[$object->entity]:$conf->service->multidir_output[$object->entity]);
}
@@ -83,107 +83,107 @@ if ($object->id)
{
llxHeader("","",$langs->trans("CardProduct".$object->type));
- /*
- * En mode visu
- */
- $head=product_prepare_head($object, $user);
- $titre=$langs->trans("CardProduct".$object->type);
- $picto=($object->type==1?'service':'product');
- dol_fiche_head($head, 'photos', $titre, 0, $picto);
-
- /*
- * Confirmation de la suppression de photo
- */
- if ($_GET['action'] == 'delete')
- {
- $ret=$form->form_confirm($_SERVER["PHP_SELF"].'?id='.$object->id.'&file='.$_GET["file"], $langs->trans('DeletePicture'), $langs->trans('ConfirmDeletePicture'), 'confirm_delete', '', 0, 1);
- if ($ret == 'html') print '
';
- }
-
- print($mesg);
-
- print '
';
-
- // Reference
- print '';
- print '| '.$langs->trans("Ref").' | ';
- print $form->showrefnav($object,'ref','',1,'ref');
- print ' | ';
- print '
';
-
- // Libelle
- print '| '.$langs->trans("Label").' | '.$object->libelle.' | ';
- print '
';
-
- // Status (to sell)
- print '| '.$langs->trans("Status").' ('.$langs->trans("Sell").') | ';
- print $object->getLibStatut(2,0);
- print ' |
';
-
- // Status (to buy)
- print '| '.$langs->trans("Status").' ('.$langs->trans("Buy").') | ';
- print $object->getLibStatut(2,1);
- print ' |
';
-
- print "
\n";
-
- print "
\n";
-
-
-
- /* ************************************************************************** */
- /* */
- /* Barre d'action */
- /* */
- /* ************************************************************************** */
-
- print "\n