forked from science-ation/science-ation
Initial implementation of AddressComplete
This commit is contained in:
parent
afd0fc0067
commit
0fc464eb48
@ -369,6 +369,7 @@ function send_header($title = '', $nav = null, $icon = null, $titletranslated =
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<link rel="stylesheet" type="text/css" href="http://ws1.postescanada-canadapost.ca/css/addresscomplete-2.50.min.css?key=ej31-je29-tw29-bx75" /><script type="text/javascript" src="http://ws1.postescanada-canadapost.ca/js/addresscomplete-2.50.min.js?key=ej31-je29-tw29-bx75"></script>
|
||||
<!-- <? if ($title && !$titletranslated) echo i18n($title);
|
||||
else if ($title) echo $title;
|
||||
else echo i18n($config['fairname']); ?> -->
|
||||
@ -683,6 +684,7 @@ function send_header($title = '', $nav = null, $icon = null, $titletranslated =
|
||||
</head>
|
||||
|
||||
<body onLoad="window.focus()">
|
||||
<link rel="stylesheet" type="text/css" href="http://ws1.postescanada-canadapost.ca/css/addresscomplete-2.50.min.css?key=ej31-je29-tw29-bx75" /><script type="text/javascript" src="http://ws1.postescanada-canadapost.ca/js/addresscomplete-2.50.min.js?key=ej31-je29-tw29-bx75"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
|
||||
<script src="https://code.jquery.com/jquery-migrate-3.5.2.js"></script>
|
||||
<script src="https://code.jquery.com/ui/1.14.1/jquery-ui.min.js"></script>
|
||||
|
@ -63,7 +63,7 @@ $user_personal_fields = array(
|
||||
'fax' => array('name' => 'Fax',
|
||||
'regexp' => '/^[1-9][0-9]{2}-?[1-9][0-9]{2}-?[0-9]{4}$/',
|
||||
'format' => "'NNN-NNN-NNNN' OR 'NNNNNNNNNN'"),
|
||||
'postalcode' => array('name' => $config['postalzip'],
|
||||
'postalcode' => array('id' => $config['postalzip'], 'name' => $config['postalzip'],
|
||||
'regexp' => '/^(([A-Z][0-9][A-Z]( )?[0-9][A-Z][0-9])|([0-9]{5}))$/i',
|
||||
'format' => "'ANA NAN' or 'ANANAN' or 'NNNNN'"),
|
||||
);
|
||||
@ -242,7 +242,7 @@ function item($user, $fname, $subtext = '')
|
||||
echo "</select> $req";
|
||||
break;
|
||||
default:
|
||||
echo "<input onchange=\"fieldChanged()\" type=\"text\" name=\"$fname\" value=\"{$user[$fname]}\" />$req";
|
||||
echo "<input onchange=\"fieldChanged()\" type=\"text\" name=\"$fname\" id=\"$fname\" value=\"{$user[$fname]}\" />$req";
|
||||
break;
|
||||
}
|
||||
echo '</td>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user