From 01760772fc13d1fea2d285ffddb2d750a1c78352 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 22 Aug 2005 19:52:22 +0000 Subject: [PATCH] =?UTF-8?q?New:=20Affiche=20prochaine=20valeur=20de=20num?= =?UTF-8?q?=E9rotation=20dans=20le=20alt=20du=20tick=20de=20la=20page=20de?= =?UTF-8?q?=20configuration=20(si=20disponible).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/facture.php | 10 ++++++---- htdocs/admin/propale.php | 18 ++++++++++-------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/htdocs/admin/facture.php b/htdocs/admin/facture.php index be729112cbf..1ff2760f8bb 100644 --- a/htdocs/admin/facture.php +++ b/htdocs/admin/facture.php @@ -116,7 +116,6 @@ print ''.$langs->trans("Name").''; print ''.$langs->trans("Description").''; print ''.$langs->trans("Example").''; print ''.$langs->trans("Default").''; -print ''.$langs->trans("NextValue").''; print ''."\n"; clearstatcache(); @@ -150,13 +149,16 @@ while (($file = readdir($handle))!==false) print ''; if ($facture_addon_var == "$file") { - print img_tick(); - print "".$obj->getNextValue()."\n"; + $title=''; + if ($obj->getNextValue() != $langs->trans("NotAvailable")) + { + $title=$langs->trans("NextValue").': '.$obj->getNextValue(); + } + print img_tick($title); } else { print ''.$langs->trans("Default").''; - print " \n"; } print "\n"; } diff --git a/htdocs/admin/propale.php b/htdocs/admin/propale.php index 45fb77ef62b..93ae71185a0 100644 --- a/htdocs/admin/propale.php +++ b/htdocs/admin/propale.php @@ -127,8 +127,7 @@ print ''; print ''.$langs->trans("Name")."\n"; print ''.$langs->trans("Description")."\n"; print ''.$langs->trans("Example")."\n"; -print ''.$langs->trans("Activated")."\n"; -print ''.$langs->trans("NextValue")."\n"; +print ''.$langs->trans("Activated").''; print ''."\n"; clearstatcache(); @@ -152,18 +151,21 @@ if ($handle) print "\n ".$modPropale->info()."\n"; print "\n ".$modPropale->getExample()."\n"; + print ''; if ($propale_addon_var == "$file") { - print ''; - print img_tick(); - print ''; - print "\n ".$modPropale->getNextValue()."\n"; + $title=''; + if ($modPropale->getNextValue() != $langs->trans("NotAvailable")) + { + $title=$langs->trans("NextValue").': '.$modPropale->getNextValue(); + } + print img_tick($title); } else { - print "".$langs->trans("Activate")."\n"; - print "\n  \n"; + print "".$langs->trans("Activate").""; } + print ''; print "\n";