From 82d59277f923dccc714b2b10277a7446bb2a3544 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 20 Aug 2005 16:45:41 +0000 Subject: [PATCH] =?UTF-8?q?Qual:=20La=20totalit=E9=20du=20code=20javascrip?= =?UTF-8?q?t=20de=20l'autoremplissage=20de=20ville=20est=20mis=20dans=20so?= =?UTF-8?q?c.js.php=20Look:=20Uniformisation=20du=20look=20de=20la=20popup?= =?UTF-8?q?=20de=20remplissage=20automatique=20de=20ville?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/master.inc.php | 8 -------- htdocs/searchpostalcode.php | 2 +- htdocs/soc.js.php | 4 ++++ htdocs/soc.php | 8 ++------ 4 files changed, 7 insertions(+), 15 deletions(-) diff --git a/htdocs/master.inc.php b/htdocs/master.inc.php index aebe9a4be9a..297ea6d8297 100644 --- a/htdocs/master.inc.php +++ b/htdocs/master.inc.php @@ -171,14 +171,6 @@ define('FPDF_FONTPATH', FPDF_PATH . 'font/'); require_once(FPDF_PATH . "fpdf.php"); -/* - * Active fonction remplissage ville depuis cp - */ -if (defined('MAIN_AUTO_FILLTOWNFROMZIP') && MAIN_AUTO_FILLTOWNFROMZIP == 1) -{ -$conf->filltownfromzip=MAIN_AUTO_FILLTOWNFROMZIP; -} - /* * Autres paramètres globaux de configurations */ diff --git a/htdocs/searchpostalcode.php b/htdocs/searchpostalcode.php index 1f05ca22623..af1f5b266e3 100644 --- a/htdocs/searchpostalcode.php +++ b/htdocs/searchpostalcode.php @@ -80,7 +80,7 @@ if ($user->societe_id > 0) -top_htmlhead($head, $title, $target); +top_htmlhead("", $langs->trans("SearchTown"), ""); print " diff --git a/htdocs/soc.js.php b/htdocs/soc.js.php index 719a3d70a68..313bb01167d 100644 --- a/htdocs/soc.js.php +++ b/htdocs/soc.js.php @@ -10,4 +10,8 @@ $js_OpenPopupWindow = "function PopupPostalCode(postalcode,objectville) } "; +print '\n"; + ?> diff --git a/htdocs/soc.php b/htdocs/soc.php index f229e88c2c3..8b44fed1eb3 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -173,10 +173,6 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create') include("./soc.js.php"); - print '\n"; - print '
'; print ''; @@ -260,9 +256,9 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create') print ''; print ''.$langs->trans('Zip').'filltownfromzip) print ' onblur="PopupPostalCode(cp.value,ville)"'; + if ($conf->global->MAIN_AUTO_FILLTOWNFROMZIP) print ' onblur="PopupPostalCode(cp.value,ville)"'; print '>'; - if ($conf->filltownfromzip) print ' '; + if ($conf->global->MAIN_AUTO_FILLTOWNFROMZIP) print ' '; print ''; print ''.$langs->trans('Town').'';