Modif assign_values
This commit is contained in:
parent
2c3641567c
commit
cdfd7e0e8b
@ -340,6 +340,18 @@ class ProductLivre extends Product
|
|||||||
*/
|
*/
|
||||||
function assign_values(&$smarty)
|
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_id', $this->id);
|
||||||
$smarty->assign('prod_ref', $this->ref);
|
$smarty->assign('prod_ref', $this->ref);
|
||||||
$smarty->assign('prod_label', $this->libelle);
|
$smarty->assign('prod_label', $this->libelle);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user