From 966494fed00c865af2acbc5c8b93f6a2cc375fcc Mon Sep 17 00:00:00 2001 From: Andre Cianfarani Date: Thu, 11 May 2006 09:00:11 +0000 Subject: [PATCH] debug ajax --- htdocs/ajaxresponse.php | 3 +-- htdocs/html.form.class.php | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/htdocs/ajaxresponse.php b/htdocs/ajaxresponse.php index c6d2dca6959..c35868f33b8 100644 --- a/htdocs/ajaxresponse.php +++ b/htdocs/ajaxresponse.php @@ -27,7 +27,6 @@ require('./pre.inc.php'); $form = new Form($db); -$form->select_produits_do("","","","","",$_GET["keyref"],$_GET["keylabel"]); -// print $_GET["key"]; +$form->select_produits_do("",$_GET["htmlname"],"","","",$_GET["keyref"],$_GET["keylabel"]); ?> diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 4675fcea063..534c5423de3 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -655,19 +655,22 @@ class Form if($conf->use_ajax) { print ''; - print '
'; + // print ''; print $langs->trans("Ref").' '; print $langs->trans("Label").''; - print '
'; - print '
'; + // print ''; + print ''; print ''; print ''; + print '
'; + print '
'; } else { @@ -723,7 +726,10 @@ class Form if ($result) { - print ''; + else + print '