dolibarr-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-cvs] dolibarr/htdocs/product document.php fiche.php ...


From: Regis Houssin
Subject: [Dolibarr-cvs] dolibarr/htdocs/product document.php fiche.php ...
Date: Sat, 10 Jun 2006 09:27:34 +0000

CVSROOT:        /cvsroot/dolibarr
Module name:    dolibarr
Changes by:     Regis Houssin <hregis>  06/06/10 09:27:34

Modified files:
        htdocs/product : document.php fiche.php fournisseurs.php 
                         photos.php price.php 
        htdocs/product/sousproduits: fiche.php 
        htdocs/product/stats: commande.php contrat.php facture.php 
                              fiche.php propal.php 
        htdocs/product/stock: product.php 

Log message:
        Fix: affichage du header en fonction du produit/service

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/product/document.php?cvsroot=dolibarr&r1=1.15&r2=1.16
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/product/fiche.php?cvsroot=dolibarr&r1=1.149&r2=1.150
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/product/fournisseurs.php?cvsroot=dolibarr&r1=1.34&r2=1.35
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/product/photos.php?cvsroot=dolibarr&r1=1.25&r2=1.26
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/product/price.php?cvsroot=dolibarr&r1=1.36&r2=1.37
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/product/sousproduits/fiche.php?cvsroot=dolibarr&r1=1.12&r2=1.13
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/product/stats/commande.php?cvsroot=dolibarr&r1=1.12&r2=1.13
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/product/stats/contrat.php?cvsroot=dolibarr&r1=1.10&r2=1.11
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/product/stats/facture.php?cvsroot=dolibarr&r1=1.44&r2=1.45
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/product/stats/fiche.php?cvsroot=dolibarr&r1=1.59&r2=1.60
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/product/stats/propal.php?cvsroot=dolibarr&r1=1.22&r2=1.23
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/product/stock/product.php?cvsroot=dolibarr&r1=1.42&r2=1.43

Patches:
Index: document.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/product/document.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- document.php        26 May 2006 14:07:44 -0000      1.15
+++ document.php        10 Jun 2006 09:27:34 -0000      1.16
@@ -19,7 +19,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: document.php,v 1.15 2006/05/26 14:07:44 hregis Exp $
+ * $Id: document.php,v 1.16 2006/06/10 09:27:34 hregis Exp $
  * $Source: /cvsroot/dolibarr/dolibarr/htdocs/product/document.php,v $
  */
  
@@ -27,13 +27,14 @@
         \file       htdocs/product/document.php
         \ingroup    product
         \brief      Page des documents joints sur les produits
-        \version    $Revision: 1.15 $
+        \version    $Revision: 1.16 $
 */
 
 require('./pre.inc.php');
 require_once(DOL_DOCUMENT_ROOT."/product.class.php");
 
 $langs->load("other");
+$langs->load("products");
 
 $user->getrights('produit');
 
@@ -81,7 +82,7 @@
 
 
 
-llxHeader();
+llxHeader("","",$langs->trans("CardProduct".$product->type));
 
 
 if ($product->id)
@@ -317,5 +318,5 @@
 
 $db->close();
 
-llxFooter('$Date: 2006/05/26 14:07:44 $ - $Revision: 1.15 $');
+llxFooter('$Date: 2006/06/10 09:27:34 $ - $Revision: 1.16 $');
 ?>

Index: fiche.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/product/fiche.php,v
retrieving revision 1.149
retrieving revision 1.150
diff -u -b -r1.149 -r1.150
--- fiche.php   8 Jun 2006 20:25:44 -0000       1.149
+++ fiche.php   10 Jun 2006 09:27:34 -0000      1.150
@@ -19,7 +19,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: fiche.php,v 1.149 2006/06/08 20:25:44 eldy Exp $
+ * $Id: fiche.php,v 1.150 2006/06/10 09:27:34 hregis Exp $
  * $Source: /cvsroot/dolibarr/dolibarr/htdocs/product/fiche.php,v $
  */
 
@@ -27,7 +27,7 @@
         \file       htdocs/product/fiche.php
         \ingroup    product
         \brief      Page de la fiche produit
-        \version    $Revision: 1.149 $
+        \version    $Revision: 1.150 $
 */
 
 require("./pre.inc.php");
@@ -314,8 +314,6 @@
 }
 
 
-
-llxHeader("","",$langs->trans("ProductServiceCard"));
 $html = new Form($db);
 
 
@@ -333,6 +331,8 @@
         $product = $e_product;
     }
 
+    llxHeader("","",$langs->trans("CardProduct".$product->type));
+    
     print '<form action="fiche.php" method="post">';
     print '<input type="hidden" name="action" value="add">';
     print '<input type="hidden" name="type" value="'.$_GET["type"].'">'."\n";
@@ -421,6 +421,7 @@
         $product = new Product($db);
         if ($_GET["ref"]) $result = $product->fetch('',$_GET["ref"]);
         if ($_GET["id"]) $result = $product->fetch($_GET["id"]);
+        llxHeader("","",$langs->trans("CardProduct".$product->type));
     }
 
     if ( $result )
@@ -1113,5 +1114,5 @@
 
 $db->close();
 
-llxFooter('$Date: 2006/06/08 20:25:44 $ - $Revision: 1.149 $');
+llxFooter('$Date: 2006/06/10 09:27:34 $ - $Revision: 1.150 $');
 ?>

Index: fournisseurs.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/product/fournisseurs.php,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -b -r1.34 -r1.35
--- fournisseurs.php    2 Jun 2006 17:40:03 -0000       1.34
+++ fournisseurs.php    10 Jun 2006 09:27:34 -0000      1.35
@@ -18,7 +18,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: fournisseurs.php,v 1.34 2006/06/02 17:40:03 hregis Exp $
+ * $Id: fournisseurs.php,v 1.35 2006/06/10 09:27:34 hregis Exp $
  * $Source: /cvsroot/dolibarr/dolibarr/htdocs/product/fournisseurs.php,v $
  */
 
@@ -26,7 +26,7 @@
         \file       htdocs/product/fournisseurs.php
         \ingroup    product
         \brief      Page de l'onglet fournisseur de produits
-        \version    $Revision: 1.34 $
+        \version    $Revision: 1.35 $
 */
 
 require("./pre.inc.php");
@@ -135,8 +135,6 @@
 }
 
 
-llxHeader("","",$langs->trans("CardProduct".$product->type));
-
 
 /*
  * Fiche produit
@@ -148,6 +146,7 @@
         $product = new Product($db);
         if ($_GET["ref"]) $result = $product->fetch('',$_GET["ref"]);
         if ($_GET["id"]) $result = $product->fetch($_GET["id"]);
+        llxHeader("","",$langs->trans("CardProduct".$product->type));
     }
 
     if ( $result )
@@ -433,5 +432,5 @@
 
 $db->close();
 
-llxFooter('$Date: 2006/06/02 17:40:03 $ - $Revision: 1.34 $');
+llxFooter('$Date: 2006/06/10 09:27:34 $ - $Revision: 1.35 $');
 ?>

Index: photos.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/product/photos.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -r1.25 -r1.26
--- photos.php  21 Mar 2006 23:47:02 -0000      1.25
+++ photos.php  10 Jun 2006 09:27:34 -0000      1.26
@@ -18,7 +18,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: photos.php,v 1.25 2006/03/21 23:47:02 eldy Exp $
+ * $Id: photos.php,v 1.26 2006/06/10 09:27:34 hregis Exp $
  * $Source: /cvsroot/dolibarr/dolibarr/htdocs/product/photos.php,v $
  */
 
@@ -26,7 +26,7 @@
         \file       htdocs/product/photos.php
         \ingroup    product
         \brief      Onglet photos de la fiche produit
-        \version    $Revision: 1.25 $
+        \version    $Revision: 1.26 $
 */
 
 require("./pre.inc.php");
@@ -77,8 +77,6 @@
  *
  */
 
-llxHeader("","",$langs->trans("CardProduct0"));
-
 
 if ($_GET["id"] || $_GET["ref"])
 {
@@ -87,6 +85,8 @@
     if ($_GET["ref"]) $result = $product->fetch('',$_GET["ref"]);
     if ($_GET["id"]) $result = $product->fetch($_GET["id"]);
 
+    llxHeader("","",$langs->trans("CardProduct".$product->type));
+
     if ($result)
     {
         /*
@@ -316,5 +316,5 @@
 
 $db->close();
 
-llxFooter('$Date: 2006/03/21 23:47:02 $ - $Revision: 1.25 $');
+llxFooter('$Date: 2006/06/10 09:27:34 $ - $Revision: 1.26 $');
 ?>

Index: price.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/product/price.php,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -b -r1.36 -r1.37
--- price.php   21 Mar 2006 23:47:02 -0000      1.36
+++ price.php   10 Jun 2006 09:27:34 -0000      1.37
@@ -19,7 +19,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: price.php,v 1.36 2006/03/21 23:47:02 eldy Exp $
+ * $Id: price.php,v 1.37 2006/06/10 09:27:34 hregis Exp $
  * $Source: /cvsroot/dolibarr/dolibarr/htdocs/product/price.php,v $
  */
 
@@ -27,7 +27,7 @@
         \file       htdocs/product/price.php
         \ingroup    product
         \brief      Page de la fiche produit
-        \version    $Revision: 1.36 $
+        \version    $Revision: 1.37 $
 */
 
 require("./pre.inc.php");
@@ -88,12 +88,11 @@
  * Affiche historique prix
  */
 
-llxHeader("","",$langs->trans("Price"));
-
 $product = new Product($db);
 if ($_GET["ref"]) $result = $product->fetch('',$_GET["ref"]);
 if ($_GET["id"]) $result = $product->fetch($_GET["id"]);
 
+llxHeader("","",$langs->trans("CardProduct".$product->type));
 
 $h=0;
 
@@ -373,5 +372,5 @@
 
 $db->close();
 
-llxFooter('$Date: 2006/03/21 23:47:02 $ - $Revision: 1.36 $');
+llxFooter('$Date: 2006/06/10 09:27:34 $ - $Revision: 1.37 $');
 ?>

Index: sousproduits/fiche.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/product/sousproduits/fiche.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- sousproduits/fiche.php      22 Mar 2006 06:25:28 -0000      1.12
+++ sousproduits/fiche.php      10 Jun 2006 09:27:34 -0000      1.13
@@ -19,7 +19,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: fiche.php,v 1.12 2006/03/22 06:25:28 andre Exp $
+ * $Id: fiche.php,v 1.13 2006/06/10 09:27:34 hregis Exp $
  * $Source: /cvsroot/dolibarr/dolibarr/htdocs/product/sousproduits/fiche.php,v 
$
  */
 
@@ -27,7 +27,7 @@
         \file       htdocs/product/fiche.php
         \ingroup    product
         \brief      Page de la fiche produit
-        \version    $Revision: 1.12 $
+        \version    $Revision: 1.13 $
 */
 
 require("./pre.inc.php");
@@ -39,7 +39,7 @@
 
 
 $langs->load("bills");
-$langs->load("product");
+$langs->load("products");
 
 
 $mesg = '';
@@ -134,7 +134,7 @@
     exit;
 }
 
-llxHeader("","",$langs->trans("ProductServiceCard"));
+llxHeader("","",$langs->trans("CardProduct".$product->type));
 $html = new Form($db);
 
 
@@ -447,5 +447,5 @@
 
 $db->close();
 
-llxFooter('$Date: 2006/03/22 06:25:28 $ - $Revision: 1.12 $');
+llxFooter('$Date: 2006/06/10 09:27:34 $ - $Revision: 1.13 $');
 ?>

Index: stats/commande.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/product/stats/commande.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- stats/commande.php  8 Apr 2006 23:46:35 -0000       1.12
+++ stats/commande.php  10 Jun 2006 09:27:34 -0000      1.13
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: commande.php,v 1.12 2006/04/08 23:46:35 eldy Exp $
+ * $Id: commande.php,v 1.13 2006/06/10 09:27:34 hregis Exp $
  * $Source: /cvsroot/dolibarr/dolibarr/htdocs/product/stats/commande.php,v $
  */
 
@@ -25,7 +25,7 @@
         \file       htdocs/product/stats/commande.php
         \ingroup    product, service, commande
         \brief      Page des stats des commandes pour un produit
-        \version    $Revision: 1.12 $
+        \version    $Revision: 1.13 $
 */
 
 
@@ -34,6 +34,7 @@
 require_once(DOL_DOCUMENT_ROOT."/product.class.php");
 
 $langs->load("orders");
+$langs->load("products");
 
 $mesg = '';
 
@@ -66,8 +67,6 @@
  *
  */
 
-llxHeader();
-
 
 if ($_GET["id"] || $_GET["ref"])
 {
@@ -75,6 +74,8 @@
     if ($_GET["ref"]) $result = $product->fetch('',$_GET["ref"]);
     if ($_GET["id"]) $result = $product->fetch($_GET["id"]);
 
+    llxHeader("","",$langs->trans("CardProduct".$product->type));
+
     if ($result > 0)
     {
         /*
@@ -339,5 +340,5 @@
 
 $db->close();
 
-llxFooter('$Date: 2006/04/08 23:46:35 $ - $Revision: 1.12 $');
+llxFooter('$Date: 2006/06/10 09:27:34 $ - $Revision: 1.13 $');
 ?>

Index: stats/contrat.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/product/stats/contrat.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- stats/contrat.php   8 Apr 2006 23:46:35 -0000       1.10
+++ stats/contrat.php   10 Jun 2006 09:27:34 -0000      1.11
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: contrat.php,v 1.10 2006/04/08 23:46:35 eldy Exp $
+ * $Id: contrat.php,v 1.11 2006/06/10 09:27:34 hregis Exp $
  * $Source: /cvsroot/dolibarr/dolibarr/htdocs/product/stats/contrat.php,v $
  */
 
@@ -25,7 +25,7 @@
         \file       htdocs/product/stats/contrat.php
         \ingroup    product, service, contrat
         \brief      Page des stats des contrats pour un produit
-        \version    $Revision: 1.10 $
+        \version    $Revision: 1.11 $
 */
 
 
@@ -34,6 +34,7 @@
 require_once(DOL_DOCUMENT_ROOT."/product.class.php");
 
 $langs->load("contracts");
+$langs->load("products");
 
 $mesg = '';
 
@@ -65,8 +66,6 @@
  *
  */
 
-llxHeader();
-
 
 if ($_GET["id"] || $_GET["ref"])
 {
@@ -74,6 +73,8 @@
     if ($_GET["ref"]) $result = $product->fetch('',$_GET["ref"]);
     if ($_GET["id"]) $result = $product->fetch($_GET["id"]);
 
+    llxHeader("","",$langs->trans("CardProduct".$product->type));
+
     if ($result > 0)
     {
         /*
@@ -338,5 +339,5 @@
 
 $db->close();
 
-llxFooter('$Date: 2006/04/08 23:46:35 $ - $Revision: 1.10 $');
+llxFooter('$Date: 2006/06/10 09:27:34 $ - $Revision: 1.11 $');
 ?>

Index: stats/facture.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/product/stats/facture.php,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -b -r1.44 -r1.45
--- stats/facture.php   8 Apr 2006 23:46:35 -0000       1.44
+++ stats/facture.php   10 Jun 2006 09:27:34 -0000      1.45
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: facture.php,v 1.44 2006/04/08 23:46:35 eldy Exp $
+ * $Id: facture.php,v 1.45 2006/06/10 09:27:34 hregis Exp $
  * $Source: /cvsroot/dolibarr/dolibarr/htdocs/product/stats/facture.php,v $
  */
 
@@ -25,7 +25,7 @@
         \file       htdocs/product/stats/facture.php
         \ingroup    product, service, facture
         \brief      Page des stats des factures pour un produit
-        \version    $Revision: 1.44 $
+        \version    $Revision: 1.45 $
 */
 
 
@@ -34,6 +34,7 @@
 require_once(DOL_DOCUMENT_ROOT."/product.class.php");
 
 $langs->load("bills");
+$langs->load("products");
 
 $mesg = '';
 
@@ -60,8 +61,6 @@
  *
  */
 
-llxHeader();
-
 
 if ($_GET["id"] || $_GET["ref"])
 {
@@ -69,6 +68,8 @@
     if ($_GET["ref"]) $result = $product->fetch('',$_GET["ref"]);
     if ($_GET["id"]) $result = $product->fetch($_GET["id"]);
 
+    llxHeader("","",$langs->trans("CardProduct".$product->type));
+
     if ($result > 0)
     {
         /*
@@ -339,5 +340,5 @@
 
 $db->close();
 
-llxFooter('$Date: 2006/04/08 23:46:35 $ - $Revision: 1.44 $');
+llxFooter('$Date: 2006/06/10 09:27:34 $ - $Revision: 1.45 $');
 ?>

Index: stats/fiche.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/product/stats/fiche.php,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -b -r1.59 -r1.60
--- stats/fiche.php     8 Apr 2006 23:42:32 -0000       1.59
+++ stats/fiche.php     10 Jun 2006 09:27:34 -0000      1.60
@@ -18,7 +18,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: fiche.php,v 1.59 2006/04/08 23:42:32 eldy Exp $
+ * $Id: fiche.php,v 1.60 2006/06/10 09:27:34 hregis Exp $
  * $Source: /cvsroot/dolibarr/dolibarr/htdocs/product/stats/fiche.php,v $
  */
 
@@ -26,7 +26,7 @@
         \file       htdocs/product/stats/fiche.php
         \ingroup    product
         \brief      Page des stats produits
-        \version    $Revision: 1.59 $
+        \version    $Revision: 1.60 $
 */
 
 require("./pre.inc.php");
@@ -50,8 +50,6 @@
 }
 
 
-llxHeader('',$langs->trans("Statistics"));
-
 $mesg = '';
 
 
@@ -64,6 +62,8 @@
     if ($_GET["ref"]) $result = $product->fetch('',$_GET["ref"]);
     if ($_GET["id"]) $result = $product->fetch($_GET["id"]);
 
+    llxHeader("","",$langs->trans("CardProduct".$product->type));
+
     if ($result)
     {
         // Efface rep obsolete
@@ -388,6 +388,6 @@
 
 $db->close();
 
-llxFooter('$Date: 2006/04/08 23:42:32 $ - $Revision: 1.59 $');
+llxFooter('$Date: 2006/06/10 09:27:34 $ - $Revision: 1.60 $');
 
 ?>

Index: stats/propal.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/product/stats/propal.php,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- stats/propal.php    8 Apr 2006 23:46:35 -0000       1.22
+++ stats/propal.php    10 Jun 2006 09:27:34 -0000      1.23
@@ -16,7 +16,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: propal.php,v 1.22 2006/04/08 23:46:35 eldy Exp $
+ * $Id: propal.php,v 1.23 2006/06/10 09:27:34 hregis Exp $
  * $Source: /cvsroot/dolibarr/dolibarr/htdocs/product/stats/propal.php,v $
  */
 
@@ -24,7 +24,7 @@
            \file       htdocs/product/stats/propal.php
         \ingroup    product, service, propal
                \brief      Page des stats des propals pour un produit
-               \version    $Revision: 1.22 $
+               \version    $Revision: 1.23 $
 */
 
 
@@ -32,6 +32,8 @@
 require_once(DOL_DOCUMENT_ROOT."/propal.class.php");
 require_once(DOL_DOCUMENT_ROOT."/product.class.php");
 
+$langs->load("products");
+
 $mesg = '';
 
 $page = $_GET["page"];
@@ -63,7 +65,6 @@
  *
  */
 
-llxHeader();
 
 if ($_GET["id"] || $_GET["ref"])
 {
@@ -71,6 +72,8 @@
     if ($_GET["ref"]) $result = $product->fetch('',$_GET["ref"]);
     if ($_GET["id"]) $result = $product->fetch($_GET["id"]);
 
+    llxHeader("","",$langs->trans("CardProduct".$product->type));
+
     if ( $result > 0)
     {
         /*
@@ -332,5 +335,5 @@
 
 $db->close();
 
-llxFooter('$Date: 2006/04/08 23:46:35 $ - $Revision: 1.22 $');
+llxFooter('$Date: 2006/06/10 09:27:34 $ - $Revision: 1.23 $');
 ?>

Index: stock/product.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/product/stock/product.php,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -b -r1.42 -r1.43
--- stock/product.php   21 Mar 2006 23:47:02 -0000      1.42
+++ stock/product.php   10 Jun 2006 09:27:34 -0000      1.43
@@ -19,7 +19,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: product.php,v 1.42 2006/03/21 23:47:02 eldy Exp $
+ * $Id: product.php,v 1.43 2006/06/10 09:27:34 hregis Exp $
  * $Source: /cvsroot/dolibarr/dolibarr/htdocs/product/stock/product.php,v $
  */
 
@@ -27,7 +27,7 @@
         \file       htdocs/product/stock/product.php
         \ingroup    product
         \brief      Page de la fiche produit
-        \version    $Revision: 1.42 $
+        \version    $Revision: 1.43 $
 */
 
 require("./pre.inc.php");
@@ -49,8 +49,6 @@
 $types[1] = $langs->trans("Service");
 
 
-llxHeader("","",$langs->trans("CardProduct0"));
-
 if ($_POST["action"] == "create_stock")
 {
   $product = new Product($db);
@@ -105,6 +103,8 @@
     if ($_GET["ref"]) $result = $product->fetch('',$_GET["ref"]);
     if ($_GET["id"]) $result = $product->fetch($_GET["id"]);
 
+    llxHeader("","",$langs->trans("CardProduct".$product->type));
+
     if ($result > 0)
     {
         $h=0;
@@ -435,5 +435,5 @@
 $db->close();
 
 
-llxFooter('$Date: 2006/03/21 23:47:02 $ - $Revision: 1.42 $');
+llxFooter('$Date: 2006/06/10 09:27:34 $ - $Revision: 1.43 $');
 ?>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]