171 |
print '</div>'; |
print '</div>'; |
172 |
} |
} |
173 |
|
|
174 |
include("./soc.js.php"); |
if ($conf->global->MAIN_AUTO_FILLTOWNFROMZIP) |
175 |
|
{ |
176 |
|
include("./soc.js.php"); |
177 |
|
} |
178 |
|
|
179 |
print '<form action="soc.php" method="post" name="formsoc">'; |
print '<form action="soc.php" method="post" name="formsoc">'; |
180 |
|
|
322 |
|
|
323 |
if ($_GET["socid"]) |
if ($_GET["socid"]) |
324 |
{ |
{ |
325 |
|
|
326 |
|
if ($conf->global->MAIN_AUTO_FILLTOWNFROMZIP) |
327 |
|
{ |
328 |
|
include("./soc.js.php"); |
329 |
|
} |
330 |
|
|
331 |
if ($no_reload <> 1) |
if ($no_reload <> 1) |
332 |
{ |
{ |
333 |
$soc = new Societe($db); |
$soc = new Societe($db); |
342 |
print '</div>'; |
print '</div>'; |
343 |
} |
} |
344 |
|
|
345 |
print '<form action="soc.php?socid='.$soc->id.'" method="post">'; |
print '<form action="soc.php?socid='.$soc->id.'" method="post" name="formsoc">'; |
346 |
print '<input type="hidden" name="action" value="update">'; |
print '<input type="hidden" name="action" value="update">'; |
347 |
print '<input type="hidden" name="codeclient_modifiable" value="'.$soc->codeclient_modifiable.'">'; |
print '<input type="hidden" name="codeclient_modifiable" value="'.$soc->codeclient_modifiable.'">'; |
348 |
print '<input type="hidden" name="codefournisseur_modifiable" value="'.$soc->codefournisseur_modifiable.'">'; |
print '<input type="hidden" name="codefournisseur_modifiable" value="'.$soc->codefournisseur_modifiable.'">'; |
392 |
print $soc->adresse; |
print $soc->adresse; |
393 |
print '</textarea></td></tr>'; |
print '</textarea></td></tr>'; |
394 |
|
|
395 |
print '<tr><td>'.$langs->trans('Zip').'</td><td><input size="6" type="text" name="cp" value="'.$soc->cp.'"></td>'; |
print '<tr><td>'.$langs->trans('Zip').'</td><td><input size="6" type="text" name="cp" value="'.$soc->cp.'"'; |
396 |
|
if ($conf->global->MAIN_AUTO_FILLTOWNFROMZIP) print ' onblur="PopupPostalCode(cp.value,ville)"'; |
397 |
|
print '>'; |
398 |
|
if ($conf->global->MAIN_AUTO_FILLTOWNFROMZIP) print ' <input class="button" type="button" name="searchpostalcode" value="'.$langs->trans('FillTownFromZip').'" onclick="PopupPostalCode(cp.value,ville)">'; |
399 |
|
print '</td>'; |
400 |
|
|
401 |
print '<td>'.$langs->trans('Town').'</td><td><input type="text" name="ville" value="'.$soc->ville.'"></td></tr>'; |
print '<td>'.$langs->trans('Town').'</td><td><input type="text" name="ville" value="'.$soc->ville.'"></td></tr>'; |
402 |
|
|
403 |
print '<tr><td>'.$langs->trans('State').'</td><td colspan="3">'; |
print '<tr><td>'.$langs->trans('State').'</td><td colspan="3">'; |