diff --git a/htdocs/ajaxresponse.php b/htdocs/ajaxresponse.php index eef429f5dd3..c6d2dca6959 100644 --- a/htdocs/ajaxresponse.php +++ b/htdocs/ajaxresponse.php @@ -1,6 +1,5 @@ - + * * 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 @@ -16,12 +15,19 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * $Id$ + * $Source$ */ + +/** + \file htdocs/ajaxresponse.php + \brief Fichier de reponse sur evenement ajax pour generation liste produits + \version $Revision$ +*/ + require('./pre.inc.php'); $form = new Form($db); $form->select_produits_do("","","","","",$_GET["keyref"],$_GET["keylabel"]); // print $_GET["key"]; - - - ?> +?> diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 6ff4549deed..8b807d0a634 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -1,4 +1,4 @@ - * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2004 Benoit Mortier @@ -617,40 +617,35 @@ class Form global $langs,$conf,$user; if($conf->use_ajax) { - ?> - -
- trans("Ref")?>  - trans("Label")?> -
-
- - - '; + print '
'; + print $langs->trans("Ref").' '; + print $langs->trans("Label").''; + print '
'; + print '
'; + print ''; + print ''; } else { - $this -> select_produits_do($selected,$htmlname,$filtretype,$limit,$price_level); + $this->select_produits_do($selected,$htmlname,$filtretype,$limit,$price_level); } } + /** - * \brief Retourne la liste des produits - * \param selected Produit présélectionné - * \param htmlname Nom de la zone select - * \param filtretype Pour filtre sur type de produit - * \param limit Limite sur le nombre de lignes retournées - */ + * \brief Retourne la liste des produits + * \param selected Produit présélectionné + * \param htmlname Nom de la zone select + * \param filtretype Pour filtre sur type de produit + * \param limit Limite sur le nombre de lignes retournées + */ function select_produits_do($selected='',$htmlname='productid',$filtretype='',$limit=20,$price_level=0,$ajaxkeyref='',$ajaxkeylabel='') { global $langs,$conf,$user;