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 00000000000..1e421c3113f Binary files /dev/null and b/htdocs/theme/eldy/img/ajaxworking.gif differ