From cba8d47f0914222e950810dd480112bd2587cd63 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 15 Feb 2004 02:59:02 +0000 Subject: [PATCH] =?UTF-8?q?Application=20du=20nouveau=20style=20des=20bout?= =?UTF-8?q?ons=20d'actions.=20Conditionnement=20de=20l'acc=E8s=20=E0=20cer?= =?UTF-8?q?taines=20actions=20en=20fonction=20de=20leurs=20droits.=20Corre?= =?UTF-8?q?ction=20faute=20de=20style=20border=3D"0"=20en=20class=3D"nobor?= =?UTF-8?q?der".?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/bank/budget.php | 12 ++++++------ htdocs/compta/bank/config.php | 32 +++++++++----------------------- htdocs/compta/bank/index.php | 13 ------------- 3 files changed, 15 insertions(+), 42 deletions(-) diff --git a/htdocs/compta/bank/budget.php b/htdocs/compta/bank/budget.php index 8a39404a3b9..d5c292a5aea 100644 --- a/htdocs/compta/bank/budget.php +++ b/htdocs/compta/bank/budget.php @@ -38,10 +38,10 @@ if ($_GET["bid"] == 0) */ print_titre("Budgets"); - print ''; - print ""; + print '
'; + print ""; echo ''; - print "\n"; + print "\n"; $sql = "SELECT sum(d.amount) as somme, count(*) as nombre, c.label, c.rowid "; $sql .= " FROM ".MAIN_DB_PREFIX."bank_categ as c, ".MAIN_DB_PREFIX."bank_class as l, ".MAIN_DB_PREFIX."bank as d"; @@ -96,10 +96,10 @@ else print_titre("Budget : $budget_name"); - print '
DescriptionNbTotalMoyenne
'; - print ""; + print '
'; + print ""; echo ''; - print "\n"; + print "\n"; $sql = "SELECT d.amount, d.label, ".$db->pdate("d.dateo")." as do, d.rowid"; $sql .= " FROM ".MAIN_DB_PREFIX."bank_class as l, ".MAIN_DB_PREFIX."bank as d"; diff --git a/htdocs/compta/bank/config.php b/htdocs/compta/bank/config.php index 98d176e8ec8..043327fd307 100644 --- a/htdocs/compta/bank/config.php +++ b/htdocs/compta/bank/config.php @@ -30,12 +30,12 @@ llxHeader(); print_titre("Configuration"); -print '
DateDescriptionMontant 
'; -print ""; +print '
'; +print ""; print ""; print ""; print ""; -print "\n"; +print "\n"; $sql = "SELECT rowid, label,number,bank,clos from ".MAIN_DB_PREFIX."bank_account"; @@ -61,27 +61,13 @@ if ($result) print "
idLabelDescriptionNumberClos
"; -print '

'.""; - -/* - * Case 1 - */ - -print ''; -/* - * Case 2 - */ - -print ''; -print ''; -print ''; -print ''; - -print "
'; -print 'Nouveau compte--'; -print 'Catégories-
"; - +print "

\n"; +if ($user->rights->banque->configurer) { + print 'Nouveau compte'; + print 'Catégories'; +} +print "
"; $db->close(); diff --git a/htdocs/compta/bank/index.php b/htdocs/compta/bank/index.php index 5435aff3d06..457ede38a1d 100644 --- a/htdocs/compta/bank/index.php +++ b/htdocs/compta/bank/index.php @@ -134,19 +134,6 @@ for ($i = 0 ; $i < sizeof($accounts) ; $i++) { print ""; -print "
\n"; - -if ($user->rights->banque->configurer) { - print 'Nouveau compte'; - print 'Configurer'; -} -if ($user->rights->banque->modifier) { - print 'Catégories'; -} - -print "
"; - - $db->close(); llxFooter("Dernière modification $Date$ révision $Revision$");