From c7cbacc132fd0ac153e9d7c67cd2fd7516fa8b15 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 25 Oct 2005 19:32:04 +0000 Subject: [PATCH] Fix: Respect W3C --- htdocs/compta/bank/fiche.php | 155 ++++++++++++++++++----------------- 1 file changed, 78 insertions(+), 77 deletions(-) diff --git a/htdocs/compta/bank/fiche.php b/htdocs/compta/bank/fiche.php index 969ca94493c..1bd7a8759fa 100644 --- a/htdocs/compta/bank/fiche.php +++ b/htdocs/compta/bank/fiche.php @@ -108,7 +108,7 @@ if ($_POST["action"] == 'update' && ! $_POST["cancel"]) $result = $account->update($user); if (! $result) { - $message=$account->error(); + $message='
'.$account->error().'
'; $_GET["action"]='edit'; // Force chargement page edition } else @@ -216,7 +216,7 @@ if ($_GET["action"] == 'create') /* ************************************************************************** */ else { - if ($_GET["id"] && $_GET["action"] != 'edit') + if ($_GET["id"] && $_GET["action"] != 'edit') { $account = new Account($db, $_GET["id"]); $account->fetch($_GET["id"]); @@ -314,84 +314,85 @@ else } - /* ************************************************************************** */ - /* */ - /* Edition */ - /* */ - /* ************************************************************************** */ + /* ************************************************************************** */ + /* */ + /* Edition */ + /* */ + /* ************************************************************************** */ - if ($_GET["id"] && $_GET["action"] == 'edit' && $user->rights->banque->configurer) + if ($_GET["id"] && $_GET["action"] == 'edit' && $user->rights->banque->configurer) { - - $account = new Account($db, $_GET["id"]); - $account->fetch($_GET["id"]); - - print_titre($langs->trans("EditFinancialAccount")); - print "
"; - - if ($message) { print "$message

\n"; } - - print '
'; - print ''; - print ''; - - print ''; - - print ''; - print ''; - - print ''; - print ''; - print ''; + $account = new Account($db, $_GET["id"]); + $account->fetch($_GET["id"]); + + print_titre($langs->trans("EditFinancialAccount")); + print "
"; + + if ($message) { print "$message
\n"; } + + print ''; + print ''; + print ''."\n\n"; + + print '
'.$langs->trans("Label").'
'.$langs->trans("AccountType").''.$account->type_lib[$account->type].'
'; + + print ''; + print ''; + + print ''; + print ''; + + print ''; + print ''; + + print ''; + print ''; + + if ($account->type == 0 || $account->type == 1) + { + print ''; + print ''; + + print ''; + print ''; + print ''; + print ''; + print ''; + + print ''; + print ''; + + print ''; + print ''; + + print '"; + + print ''; + print ''; + + print '"; + } + + print ''; + print '
'.$langs->trans("Label").'
'.$langs->trans("AccountType").''.$account->type_lib[$account->type]; + print ''; + print '
'.$langs->trans("Status").''; + $form->select_array("clos",array(0=>$account->status[0],1=>$account->status[1]),$account->clos); + print '
'.$langs->trans("Conciliable").''; + if ($account->type == 0 || $account->type == 1) print 'rappro?'':'checked="true"').'"> '.$langs->trans("DisableConciliation"); + if ($account->type == 2) print $langs->trans("No").' ('.$langs->trans("CashAccount").')'; + print '
'.$langs->trans("Bank").'
Code BanqueCode GuichetNuméroClé RIB
'.$langs->trans("IBAN").'
'.$langs->trans("BIC").'
'.$langs->trans("BankAccountDomiciliation").''; + print "
'.$langs->trans("BankAccountOwner").''; + print '
'.$langs->trans("BankAccountOwnerAddress").''; + print "
'; + print '   '; + print '
'; - print ''.$langs->trans("Status").''; - print ''; - $form->select_array("clos",array(0=>$account->status[0],1=>$account->status[1]),$account->clos); - print ''; - - print ''.$langs->trans("Conciliable").''; - print ''; - if ($account->type == 0 || $account->type == 1) print 'rappro?'':'checked="true"').'"> '.$langs->trans("DisableConciliation"); - if ($account->type == 2) print $langs->trans("No").' ('.$langs->trans("CashAccount").')'; - print ''; - - if ($account->type == 0 || $account->type == 1) { - - print ''.$langs->trans("Bank").''; - print ''; - - print 'Code BanqueCode GuichetNuméroClé RIB'; - print ''; - print ''; - print ''; - print ''; - - print ''.$langs->trans("IBAN").''; - print ''; - - print ''.$langs->trans("BIC").''; - print ''; - - print ''.$langs->trans("BankAccountDomiciliation").''; - print ""; - - print ''.$langs->trans("BankAccountOwner").''; - print ''; - print "\n"; - - print ''.$langs->trans("BankAccountOwnerAddress").''; - print ""; - } - - print ''; - print '   '; - print ''; - print '
'; - print ''; + print ''; } }