Lines 18-23
Link Here
|
18 |
var zipcode = $('#' + id + 'zipcode').text(); |
18 |
var zipcode = $('#' + id + 'zipcode').text(); |
19 |
var country = $('#' + id + 'country').text(); |
19 |
var country = $('#' + id + 'country').text(); |
20 |
var branchcode = $('#' + id + 'branchcode').text(); |
20 |
var branchcode = $('#' + id + 'branchcode').text(); |
|
|
21 |
var phone = $('#' + id + 'phone').text(); |
22 |
var phonepro = $('#' + id + 'phonepro').text(); |
23 |
var mobile = $('#' + id + 'mobile').text(); |
24 |
var email = $('#' + id + 'email').text(); |
25 |
var emailpro = $('#' + id + 'emailpro').text(); |
26 |
var fax = $('#' + id + 'fax').text(); |
27 |
|
28 |
$('.' + id + 'extra_field').each(function() { |
29 |
var spanId = $(this).attr('id'); |
30 |
spanId = spanId.replace(id,''); |
31 |
var spanElement = window.opener.document.getElementById(spanId); |
32 |
if (spanElement) |
33 |
window.opener.document.getElementById(spanId).value = $(this).text(); |
34 |
}); |
21 |
|
35 |
|
22 |
var $ = window.opener.$; |
36 |
var $ = window.opener.$; |
23 |
var form = $('#entryform').get(0); |
37 |
var form = $('#entryform').get(0); |
Lines 48-53
Link Here
|
48 |
form.zipcode.value = zipcode; |
62 |
form.zipcode.value = zipcode; |
49 |
form.country.value = country; |
63 |
form.country.value = country; |
50 |
form.branchcode.value = branchcode; |
64 |
form.branchcode.value = branchcode; |
|
|
65 |
form.phone.value = phone; |
66 |
form.phonepro.value = phonepro; |
67 |
form.mobile.value = mobile; |
68 |
form.email.value = email; |
69 |
form.emailpro.value = emailpro; |
70 |
form.fax.value = fax; |
51 |
|
71 |
|
52 |
form.guarantorsearch.value = 'Change'; |
72 |
form.guarantorsearch.value = 'Change'; |
53 |
self.close(); |
73 |
self.close(); |
Lines 103-109
Link Here
|
103 |
<span id="[% borrowernumber %]zipcode">[% zipcode %]</span> |
123 |
<span id="[% borrowernumber %]zipcode">[% zipcode %]</span> |
104 |
<span id="[% borrowernumber %]country">[% country %]</span> |
124 |
<span id="[% borrowernumber %]country">[% country %]</span> |
105 |
<span id="[% borrowernumber %]branchcode">[% branchcode %]</span> |
125 |
<span id="[% borrowernumber %]branchcode">[% branchcode %]</span> |
106 |
</span> |
126 |
<span id="[% borrowernumber %]phone">[% phone %]</span> |
|
|
127 |
<span id="[% borrowernumber %]phonepro">[% phonepro %]</span> |
128 |
<span id="[% borrowernumber %]mobile">[% mobile %]</span> |
129 |
<span id="[% borrowernumber %]email">[% email %]</span> |
130 |
<span id="[% borrowernumber %]emailpro">[% emailpro %]</span> |
131 |
<span id="[% borrowernumber %]fax">[% fax %]</span> |
132 |
|
133 |
[% FOREACH extrafield IN extrafields %] |
134 |
<span class="[% borrowernumber %]extra_field" id="[% borrowernumber %][% extrafield.field %]">[% extrafield.value %]</span> |
135 |
[% END %] |
136 |
|
137 |
</span> |
107 |
|
138 |
|
108 |
<form action=""> |
139 |
<form action=""> |
109 |
<input type="button" onclick="fillguarantor('[% borrowernumber %]'); return false;" value="Select"/> |
140 |
<input type="button" onclick="fillguarantor('[% borrowernumber %]'); return false;" value="Select"/> |