diff --git a/html/ajax_history.php b/html/ajax_history.php
index 96b013682..921293e9f 100644
--- a/html/ajax_history.php
+++ b/html/ajax_history.php
@@ -93,10 +93,14 @@ if ( isset($_GET['f_id']))
ob_start();
require_once('template/history_top.php');
- if ( $fiche->HtmlTable($array)==-1){
- echo h2info( $fiche->getName().'['.$fiche->strAttribut(ATTR_DEF_QUICKCODE).']');
+ $detail_card=HtmlInput::card_detail($fiche->strAttribut(ATTR_DEF_QUICKCODE),$fiche->getName());
+ echo h2info( $fiche->getName().'['.$fiche->strAttribut(ATTR_DEF_QUICKCODE).']');
+ echo $detail_card;
+
+ if ( $fiche->HtmlTable($array,0,0)==-1){
echo h2("Aucun opération pour l'exercice courant",'class="error"');
}
+
echo $old;
$html=ob_get_contents();
diff --git a/include/class_html_input.php b/include/class_html_input.php
index 627e4c0f7..f41e6899c 100755
--- a/include/class_html_input.php
+++ b/include/class_html_input.php
@@ -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('%s[%s]',
+ $p_qcode,$pname,$p_qcode);
+ return $r;
+ }
}