Ajout variable $user

This commit is contained in:
Rodolphe Quiedeville 2007-05-04 08:50:02 +00:00
parent e644ba7454
commit 80445dad52

View File

@ -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);