From d0b680ecd7d07e5c0da802e9ca875b0fca2f1ffb Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sat, 19 Oct 2013 13:23:30 +0000 Subject: [PATCH] Card_detail without history --- include/class_html_input.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/class_html_input.php b/include/class_html_input.php index 2ad7e687d..a90e5d5f4 100755 --- a/include/class_html_input.php +++ b/include/class_html_input.php @@ -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('%s [%s]', - $p_style,$p_qcode,$pname,$p_qcode); + $histo=($p_nohistory==true)?' ,nohistory:1':""; + $r.=sprintf('%s [%s]', + $p_style,$p_qcode,$histo,$pname,$p_qcode); return $r; } /**