3 <body onload="[%- onload %]">
7 <input type="hidden" name="input_name" value="[% HTML.escape(input_name) %]">
8 <input type="hidden" name="input_id" value="[% HTML.escape(input_id) %]">
10 <div class="listtop">[% title %]</div>
15 <tr><td>[% 'Please select a customer from the list below.' | $T8 %]</td></tr>
21 <tr class="listheading">
22 <th class="listheading"> </th>
23 [%- FOREACH col = HEADER %]
24 <th nowrap class="listheading"><a href="[% HTML.escape(col.callback) %]">[% col.column_title %]</a></th>
28 [%- FOREACH row = DELIVERY %]
29 <tr class="listrow[% loop.count % 2 %]">
30 <td><button type="button" onclick="customer_selected('[% loop.count %]')">Auswahl</button></td>
32 <input type="hidden" id="id_[% loop.count %]" name="id_[% loop.count %]" value="[% HTML.escape(row.id) %]">
33 <input type="hidden" id="name_[% loop.count %]" name="name_[% loop.count %]" value="[% HTML.escape(row.name) %]">
34 [% HTML.escape(row.name) %]
36 <td>[% HTML.escape(row.customernumber) %]</td>
37 <td>[% HTML.escape(row.address) %]</td>
39 <!-- <input type="hidden" id="description_[% loop.count %]" name="description_[% loop.count %]" value="[% HTML.escape(row.description) %]"> -->
40 <!-- [% HTML.escape(row.description) %] -->
52 <script type="text/javascript">
54 function customer_selected(selected) {
55 var name = document.getElementsByName("name_" + selected)[0].value
56 var id = document.getElementsByName("id_" + selected)[0].value
57 window.opener.document.getElementsByName(document.Form.input_name.value)[0].value = name;
58 if (document.Form.input_id.value != "") {
59 window.opener.document.getElementsByName(document.Form.input_id.value)[0].value = id;