#201 add the details

This commit is contained in:
Dany De Bontridder 2011-01-19 19:28:44 +00:00
parent b2978696ae
commit 86da140ad1
2 changed files with 17 additions and 2 deletions

View file

@ -414,5 +414,16 @@ class HtmlInput
$r.=HtmlInput::button('print','Imprimer','onclick="window.print();"');
return $r;
}
/**
*show the detail of a card
*/
static function card_detail($p_qcode,$pname='')
{
if ($pname=='')$pname=$p_qcode;
$r="";
$r.=sprintf('<a href="javascript:void(0)" onclick="fill_ipopcard({qcode:\'%s\'})">%s[%s]</a>',
$p_qcode,$pname,$p_qcode);
return $r;
}
}