Card_detail without history

This commit is contained in:
Dany De Bontridder 2013-10-19 13:23:30 +00:00
parent b46ea797d5
commit d0b680ecd7

View file

@ -456,12 +456,13 @@ class HtmlInput
/**
*show the detail of a card
*/
static function card_detail($p_qcode,$pname='',$p_style="")
static function card_detail($p_qcode,$pname='',$p_style="",$p_nohistory=false)
{
//if ($pname=='')$pname=$p_qcode;
$r="";
$r.=sprintf('<a href="javascript:void(0)" %s onclick="fill_ipopcard({qcode:\'%s\'})">%s [%s]</a>',
$p_style,$p_qcode,$pname,$p_qcode);
$histo=($p_nohistory==true)?' ,nohistory:1':"";
$r.=sprintf('<a href="javascript:void(0)" %s onclick="fill_ipopcard({qcode:\'%s\' %s})">%s [%s]</a>',
$p_style,$p_qcode,$histo,$pname,$p_qcode);
return $r;
}
/**