';
+
$db->close();
diff --git a/htdocs/product/index.php3 b/htdocs/product/index.php3
index 15ffffbff0e..aa31b633a56 100644
--- a/htdocs/product/index.php3
+++ b/htdocs/product/index.php3
@@ -1,8 +1,5 @@
- *
- * $Id$
- * $Source$
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -18,6 +15,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
+ * $Id$
+ * $Source$
+ *
*/
require("./pre.inc.php3");
@@ -44,37 +44,38 @@ if ($page == -1) { $page = 0 ; }
$limit = $conf->liste_limit;
$offset = $limit * $page ;
-print '
Liste des produits
';
+print_barre_liste("Liste des produits", $page, $PHP_SELF);
- $sql = "SELECT p.rowid, p.label, p.price, p.duration,p.ref FROM llx_product as p";
+$sql = "SELECT p.rowid, p.label, p.price, p.ref FROM llx_product as p";
- $sql .= " ORDER BY $sortfield $sortorder ";
- $sql .= $db->plimit( $limit ,$offset);
+$sql .= " ORDER BY $sortfield $sortorder ";
+$sql .= $db->plimit( $limit ,$offset);
- if ( $db->query($sql) ) {
- $num = $db->num_rows();
- $i = 0;
- print "
";
+ $db->free();
+}
$db->close();
diff --git a/htdocs/product/pre.inc.php3 b/htdocs/product/pre.inc.php3
index e345a14f005..c53743a7e7f 100644
--- a/htdocs/product/pre.inc.php3
+++ b/htdocs/product/pre.inc.php3
@@ -1,8 +1,5 @@
- *
- * $Id$
- * $Source$
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -18,6 +15,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
+ * $Id$
+ * $Source$
+ *
*/
require("../main.inc.php3");
@@ -33,21 +33,21 @@ function llxHeader($head = "", $urlp = "") {
$menu = new Menu();
$menu->add("/product/index.php3", "Produits");
-
+ $menu->add_submenu("fiche.php3?&action=create","Nouveau produit");
$menu->add("/service/index.php3", "Services");
- $menu->add("/comm/index.php3", "Clients");
+ $menu->add("/comm/clients.php3", "Clients");
$menu->add("/fourn/index.php3", "Fournisseurs");
-
$menu->add_submenu("/soc.php3?&action=create","Nouvelle sociétée");
$menu->add_submenu("contact.php3","Contacts");
-
left_menu($menu->liste);
-
-
+ /*
+ *
+ *
+ */
}
?>
diff --git a/htdocs/service/fiche.php3 b/htdocs/service/fiche.php3
index 510a69954a8..1d9babf159c 100644
--- a/htdocs/service/fiche.php3
+++ b/htdocs/service/fiche.php3
@@ -1,8 +1,5 @@
- *
- * $Id$
- * $Source$
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -18,6 +15,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
+ * $Id$
+ * $Source$
+ *
*/
require("./pre.inc.php3");
diff --git a/htdocs/service/index.php3 b/htdocs/service/index.php3
index a3f5a20970a..7f102e1ee8b 100644
--- a/htdocs/service/index.php3
+++ b/htdocs/service/index.php3
@@ -1,8 +1,5 @@
- *
- * $Id$
- * $Source$
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -18,6 +15,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
+ * $Id$
+ * $Source$
+ *
*/
require("./pre.inc.php3");