From 80445dad52e4fb0ce4d8fc5e5c31373538d70c25 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 4 May 2007 08:50:02 +0000 Subject: [PATCH] Ajout variable $user --- htdocs/product/canvas/product.livre.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/product/canvas/product.livre.class.php b/htdocs/product/canvas/product.livre.class.php index fd07b6a6aad..63c1b0f603c 100644 --- a/htdocs/product/canvas/product.livre.class.php +++ b/htdocs/product/canvas/product.livre.class.php @@ -43,10 +43,11 @@ class ProductLivre extends Product * \param DB Handler accès base de données * \param id Id produit (0 par defaut) */ - function ProductLivre($DB=0, $id=0) + function ProductLivre($DB=0, $id=0, $user=0) { $this->db = $DB; $this->id = $id ; + $this->user = $user; $this->canvas = "livre"; $this->name = "livre"; $this->description = "Gestion des livres"; @@ -387,6 +388,8 @@ class ProductLivre extends Product $smarty->assign('class_focus_ref', 'focus'); } + $smarty->assign('user', $this->user->prenom.' '.$this->user->nom); + $smarty->assign('prod_id', $this->id); $smarty->assign('prod_ref', $this->ref); $smarty->assign('prod_label', $this->libelle);