From 8fec487ccf9481077a1c2931ca544652afbfc8dc Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 12 Feb 2007 09:18:34 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20s=E9paration=20des=20diff=E9rents=20trai?= =?UTF-8?q?tements=20Ajax?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/html.form.class.php | 4 +- htdocs/product/ajaxproducts.php | 50 ++++++++++++++++++ .../ajaxcountries.php} | 22 ++------ htdocs/theme/eldy/img/ajaxworking.gif | Bin 0 -> 2483 bytes 4 files changed, 57 insertions(+), 19 deletions(-) create mode 100644 htdocs/product/ajaxproducts.php rename htdocs/{ajaxresponse.php => societe/ajaxcountries.php} (74%) create mode 100644 htdocs/theme/eldy/img/ajaxworking.gif diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index e58eabd5db8..556f8651791 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -332,7 +332,7 @@ class Form print ''; print '
'; print ''; } else @@ -741,7 +741,7 @@ class Form print $langs->trans("Label").':'; print ''; print ''; diff --git a/htdocs/product/ajaxproducts.php b/htdocs/product/ajaxproducts.php new file mode 100644 index 00000000000..fb3f9609758 --- /dev/null +++ b/htdocs/product/ajaxproducts.php @@ -0,0 +1,50 @@ + + * Copyright (C) 2005-2007 Regis Houssin + * + * 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 + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * 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/product/ajaxproducts.php + \brief Fichier de reponse sur evenement Ajax + \version $Revision$ +*/ + +require('../master.inc.php'); + +$langs->load("products"); +$langs->load("main"); + +//header("Content-type: text/html; charset=UTF-8"); +header("Content-type: text/html; charset=iso-8859-1"); +print ''; +print "\n"; +print "\n"; + + +// Generation liste de produits +if(isset($_GET['keyref']) && !empty($_GET['keyref']) || isset($_GET['keylabel']) && !empty($_GET['keylabel'])) +{ + $form = new Form($db); + $form->select_produits_do("",$_GET["htmlname"],"","",$_GET["price_level"],$_GET["keyref"],$_GET["keylabel"]); +} + +print ""; +print ""; +?> diff --git a/htdocs/ajaxresponse.php b/htdocs/societe/ajaxcountries.php similarity index 74% rename from htdocs/ajaxresponse.php rename to htdocs/societe/ajaxcountries.php index 68b9ef7e908..12dc6c7802e 100644 --- a/htdocs/ajaxresponse.php +++ b/htdocs/societe/ajaxcountries.php @@ -21,15 +21,12 @@ */ /** - \file htdocs/ajaxresponse.php + \file htdocs/societe/ajaxcountries.php \brief Fichier de reponse sur evenement Ajax \version $Revision$ */ -require('./master.inc.php'); - -$langs->load("products"); -$langs->load("main"); +require('../master.inc.php'); //header("Content-type: text/html; charset=UTF-8"); header("Content-type: text/html; charset=iso-8859-1"); @@ -37,15 +34,6 @@ print '"; print "\n"; - -// Generation liste de produits -if(isset($_GET['keyref']) && !empty($_GET['keyref']) || isset($_GET['keylabel']) && !empty($_GET['keylabel'])) -{ - $form = new Form($db); - $form->select_produits_do("",$_GET["htmlname"],"","",$_GET["price_level"],$_GET["keyref"],$_GET["keylabel"]); -} - - // Generation liste des pays if(isset($_POST['pays']) && !empty($_POST['pays'])) { @@ -59,11 +47,11 @@ if(isset($_POST['pays']) && !empty($_POST['pays'])) if ($resql) { print ''; diff --git a/htdocs/theme/eldy/img/ajaxworking.gif b/htdocs/theme/eldy/img/ajaxworking.gif new file mode 100644 index 0000000000000000000000000000000000000000..1e421c3113fbe4f3ddc96bb743cecc8530fd4c21 GIT binary patch literal 2483 zcmeH|@oyVv8ONXZeece1&S&?vbM3s$lyl~-*J8@i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