forked from Wavyzz/dolibarr
30 lines
775 B
PHP
30 lines
775 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;
|
|
}
|
|
";
|
|
|
|
print '<script language="javascript" type="text/javascript">'."\n";
|
|
print "<!--\n";
|
|
print "\n";
|
|
|
|
print $js_OpenPopupWindow;
|
|
|
|
print "function save_refresh()\n";
|
|
print "{\n";
|
|
print "document.formsoc.action.value=\"edit\";\n";
|
|
print "document.formsoc.submit();\n";
|
|
print "}\n";
|
|
|
|
print "\n";
|
|
print "-->\n";
|
|
print "</script>\n";
|
|
|
|
?>
|