5 <input type="hidden" name="input_name" value="[% HTML.escape(input_name) %]">
6 <input type="hidden" name="input_id" value="[% HTML.escape(input_id) %]">
8 <div class="listtop">[% title %]</div>
13 <tr><td>[% 'Please select a customer from the list below.' | $T8 %]</td></tr>
19 <tr class="listheading">
20 <th class="listheading"> </th>
21 [%- FOREACH col = HEADER %]
22 <th nowrap class="listheading"><a href="[% HTML.escape(col.callback) %]">[% col.column_title %]</a></th>
26 [%- FOREACH row = DELIVERY %]
27 <tr class="listrow[% loop.count % 2 %]">
28 <td><button type="button" onclick="customer_selected('[% loop.count %]')">Auswahl</button></td>
30 <input type="hidden" id="id_[% loop.count %]" name="id_[% loop.count %]" value="[% HTML.escape(row.id) %]">
31 <input type="hidden" id="name_[% loop.count %]" name="name_[% loop.count %]" value="[% HTML.escape(row.name) %]">
32 [% HTML.escape(row.name) %]
34 <td>[% HTML.escape(row.customernumber) %]</td>
35 <td>[% HTML.escape(row.address) %]</td>
37 <!-- <input type="hidden" id="description_[% loop.count %]" name="description_[% loop.count %]" value="[% HTML.escape(row.description) %]"> -->
38 <!-- [% HTML.escape(row.description) %] -->
50 <script type="text/javascript">
52 function customer_selected(selected) {
53 var name = document.getElementsByName("name_" + selected)[0].value
54 var id = document.getElementsByName("id_" + selected)[0].value
55 window.opener.document.getElementsByName(document.Form.input_name.value)[0].value = name;
56 if (document.Form.input_id.value != "") {
57 window.opener.document.getElementsByName(document.Form.input_id.value)[0].value = id;