mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-16 06:21:28 +01:00
14 lines
450 B
PHP
14 lines
450 B
PHP
<?php
|
|
|
|
$js_OpenPopupWindow = "function PopupPostalCode(postalcode,objectville)
|
|
{
|
|
var url = 'searchpostalcode.php?cp=' + postalcode + '&targetobject=window.opener.document.formsoc.' + objectville.name;
|
|
// alert(url);
|
|
var hWnd = window.open(url, \"SearchPostalCodeWindow\", \"width=\" + 300 + \",height=\" + 150 + \",resizable=yes,scrollbars=yes\");
|
|
if((document.window != null) && (!hWnd.opener))
|
|
hWnd.opener = document.window;
|
|
}
|
|
";
|
|
|
|
?>
|