New: Rend activable la fonction de remplissage de ville depuis code postal en option.
This commit is contained in:
parent
eebcd386b9
commit
f7375eb9de
@ -228,4 +228,5 @@ ReportPeriod=Report period
|
||||
ReportDescription=Description
|
||||
Report=Report
|
||||
Keyword=Mot clé
|
||||
Legend=Legend
|
||||
Legend=Legend
|
||||
FillTownFromZip=Fill town from zip
|
||||
@ -228,4 +228,5 @@ ReportPeriod=P
|
||||
ReportDescription=Description
|
||||
Report=Rapport
|
||||
Keyword=Mot clé
|
||||
Legend=Légende
|
||||
Legend=Légende
|
||||
FillTownFromZip=Renseigner ville
|
||||
@ -178,8 +178,17 @@ setlocale(LC_ALL, $conf->langage);
|
||||
require_once(DOL_DOCUMENT_ROOT ."/translate.class.php");
|
||||
$langs = new Translate(DOL_DOCUMENT_ROOT ."/langs", $conf->langage);
|
||||
|
||||
/*
|
||||
* 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
|
||||
*/
|
||||
$conf->users->dir_output=DOL_DATA_ROOT."/users";
|
||||
|
||||
/*
|
||||
|
||||
@ -236,7 +236,11 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create')
|
||||
print $soc->adresse;
|
||||
print '</textarea></td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans('Zip').'</td><td><input size="6" type="text" name="cp" value="'.$soc->cp.'" onblur="PopupPostalCode(cp.value,ville)"><input type="button" name="searchpostalcode" value="'.$langs->trans('Search').'" onclick="PopupPostalCode(cp.value,ville)"></td>';
|
||||
print '<tr><td>'.$langs->trans('Zip').'</td><td><input size="6" type="text" name="cp" value="'.$soc->cp.'"';
|
||||
if ($conf->filltownfromzip) print ' onblur="PopupPostalCode(cp.value,ville)"';
|
||||
print '>';
|
||||
if ($conf->filltownfromzip) print ' <input type="button" name="searchpostalcode" value="'.$langs->trans('FillTownFromZip').'" onclick="PopupPostalCode(cp.value,ville)">';
|
||||
print '</td>';
|
||||
print '<td>'.$langs->trans('Town').'</td><td><input type="text" name="ville" value="'.$soc->ville.'"></td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans('State').'</td><td colspan="3">';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user