Modif assign_values

This commit is contained in:
Rodolphe Quiedeville 2006-12-15 14:58:52 +00:00
parent 2c3641567c
commit cdfd7e0e8b

View File

@ -340,6 +340,18 @@ class ProductLivre extends Product
*/
function assign_values(&$smarty)
{
if ($this->errno == 257)
{
$smarty->assign('class_normal_ref', 'error');
$smarty->assign('class_focus_ref', 'focuserr');
}
else
{
$smarty->assign('class_normal_ref', 'normal');
$smarty->assign('class_focus_ref', 'focus');
}
$smarty->assign('prod_id', $this->id);
$smarty->assign('prod_ref', $this->ref);
$smarty->assign('prod_label', $this->libelle);