diff --git a/html/ajax_card.php b/html/ajax_card.php index 46445eb5b..4d9cfd9aa 100644 --- a/html/ajax_card.php +++ b/html/ajax_card.php @@ -126,9 +126,7 @@ case 'rmfa': case 'dc': $f=new Fiche($cn); /* add title + close */ - $html=""; - $html=HtmlInput::anchor_close($ctl); - $html.=h2info('Détail fiche'); + $html=HtmlInput::title_box("Détail fiche", $ctl); if ( $qcode != '') { $f->get_by_qcode($qcode); @@ -180,12 +178,10 @@ case 'dc': case 'bc': if ( $g_user->check_action(FICADD)==1 ) { - $r=''; - $r=HtmlInput::anchor_close($ctl); + $r=HtmlInput::title_box("Nouvelle fiche", $ctl); /* get cat. name */ $cat_name=$cn->get_value('select fd_label from fiche_def where fd_id=$1', array($fd_id)); - $r.=h2info(_('Nouvelle fiche ').$cat_name); $f=new Fiche($cn); $r.='