From c9cf9c390cbd6aa172604dad2eac2af70b5adbab Mon Sep 17 00:00:00 2001 From: erics Date: Mon, 13 Jun 2005 20:54:14 +0000 Subject: [PATCH] =?UTF-8?q?la=20recherche=20ne=20marchait=20pas,=20j'ai=20?= =?UTF-8?q?rajout=C3=A9=20ce=20qu'il=20manquait?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/categories/index.php | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/htdocs/categories/index.php b/htdocs/categories/index.php index 8a1b885c1ec..96827faac7d 100644 --- a/htdocs/categories/index.php +++ b/htdocs/categories/index.php @@ -1,5 +1,6 @@ + * Copyright (C) 2005 Éric Seigne * * 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 @@ -36,13 +37,13 @@ $c = new Categorie ($db); /* * Zone recherche produit/service */ -print '
'; +print ''; print ''; print ''; print ''; print ''; print ''; +print $langs->trans("Name").' :'; print '
'.$langs->trans("Search").'
'; -print $langs->trans("Name").' :
'; print $langs->trans("SubCatOf").' :
'; print ''; + +/* + * Catégories trouvées + */ + +if($_POST['catname']) { + $cats = $c->rechercher_par_nom ($_POST['catname']); + print ''; + print ''; + + foreach ($cats as $cat) + { + $i = !$i; + print "\t\n"; + print "\t\t\n"; + print "\t\t\n"; + print "\t\n"; + } + print "
'.$langs->trans("FoundCats").'
".$cat->label."".$cat->description."
"; + +} + /* * Catégories principales */ @@ -84,6 +107,7 @@ else dolibarr_print_error(); } + print ''; $db->close();