diff --git a/htdocs/categories/liste.php b/htdocs/categories/liste.php index 3e8673d978a..aeb84f4ed36 100644 --- a/htdocs/categories/liste.php +++ b/htdocs/categories/liste.php @@ -1,6 +1,6 @@ - * Copyright (C) 2006 Laurent Destailleur +/* Copyright (C) 2005 Matthieu Valleton + * Copyright (C) 2006-2007 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,7 +17,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ - * $Source$ */ /** @@ -46,7 +45,11 @@ $cats = $c->get_all_categories (); if ($cats != -1) { print ''; - print ''; + print ''; + print ''; + print ''; + print ''; + print ''; $var=true; foreach ($cats as $cat) @@ -54,7 +57,13 @@ if ($cats != -1) $var = ! $var; print "\t\n"; print "\t\t\n"; - print "\t\t\n"; + print "\t\t\n"; + print '\n"; print "\t\n"; } print "
'.$langs->trans("AllCats").'
'.$langs->trans("Ref").''.$langs->trans("Description").''.$langs->trans("Type").'
".$cat->label."".$cat->description."".dolibarr_trunc($cat->description,36)."'; + if ($cat->type == 0) print $langs->trans("Product"); + elseif ($cat->type == 1) print $langs->trans("Supplier"); + elseif ($cat->type == 2) print $langs->trans("Customer"); + else print $cat->type; + print "
";