From c52a7948ecf1bbcf40d5f6b9b43348066d71888c Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 3 Nov 2011 22:17:25 +0000 Subject: [PATCH] cosmetic : save card : close button in the top --- html/ajax_card.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/html/ajax_card.php b/html/ajax_card.php index a87cf6e89..46526de6c 100644 --- a/html/ajax_card.php +++ b/html/ajax_card.php @@ -137,13 +137,13 @@ case 'dc': $card=$f->Display(false); else $card=$f->Display(true); - if ( $card == 'FNT' ) + if ( $card == 'FNT' ) { $html.='

'._('Fiche non trouvée').'

'; } else { - + if ($can_modify==1) { $html.='
'; @@ -164,7 +164,7 @@ case 'dc': } } } - else + else { $html.='

'._('Aucune fiche demandée').'

'; $html.=HtmlInput::button('close_'.$ctl,'Fermer',"onclick=\"removeDiv('$ctl')\""); @@ -305,7 +305,7 @@ case 'fs': require_once('class_acc_ledger.php'); $r=''; $r.='
'; - $r.= 'Fermer'; + $r.= 'Fermer'; $r.='
'; $r.='
'.h2info(_('Recherche de fiche')).'
'; @@ -468,13 +468,13 @@ case 'scc': } break; case 'upc': - $html=HtmlInput::button_close($ctl); + $html=HtmlInput::anchor_close($ctl); $html.=h2info('Détail fiche'); - + if ( $user->check_action(FICADD)==0 ) { $html.=alert(_('Action interdite'),true); - } + } else { if ($cn->get_value('select count(*) from fiche where f_id=$1',array($_GET['f_id'])) == '0' ) @@ -484,7 +484,7 @@ case 'upc': else { - $html=HtmlInput::button_close($ctl); + $html=HtmlInput::anchor_close($ctl); $html.=h2info('Détail fiche (sauvée)'); $f=new Fiche($cn,$_GET['f_id']);