Templates werden nicht mehr übersetzt gespeichert.
[kivitendo-erp.git] / templates / webpages / generic / select_vendor_master.html
1 [%- USE T8 %]
2 [% USE HTML %]<body onload="[% onload %]">
3
4  <form name="Form">
5
6   <input type="hidden" name="input_name" value="[% HTML.escape(input_name) %]">
7   <input type="hidden" name="input_id" value="[% HTML.escape(input_id) %]">
8
9   <div class="listtop">[% title %]</div>
10
11   <table width="100%">
12    <tr height="5"></tr>
13
14    <tr><td>[% 'Please select a vendor from the list below.' | $T8 %]</td></tr>
15
16    <tr>
17     <td>
18
19      <table>
20       <tr class="listheading">
21        <th class="listheading">&nbsp;</th>
22        [%- FOREACH col = HEADER %]
23        <th nowrap class="listheading"><a href="[% HTML.escape(col.callback) %]">[% col.column_title %]</a></th>
24        [%- END %]
25       </tr>
26
27       [%- FOREACH row = VENDOR %]
28       <tr class="listrow[% loop.count % 2 %]">
29        <td><button type="button" onclick="vendor_selected('[% loop.count %]')">Auswahl</button></td>
30        <td>
31         <input type="hidden" id="id_[% loop.count %]" name="id_[% loop.count %]" value="[% HTML.escape(row.id) %]">
32         <input type="hidden" id="name_[% loop.count %]" name="name_[% loop.count %]" value="[% HTML.escape(row.name) %]">
33         [% HTML.escape(name) %]
34        </td>
35        <td>[% HTML.escape(row.customernumber) %]</td>
36        <td>[% HTML.escape(row.address) %]</td>
37 <!--        <td> -->
38 <!--         <input type="hidden" id="description_[% loop.count %]" name="description_[% loop.count %]" value="[% HTML.escape(row.description) %]"> -->
39 <!--         [% HTML.escape(row.description) %] -->
40 <!--        </td> -->
41       </tr>
42       [%- END %]
43      </table>
44
45     </td>
46    </tr>
47   </table>
48
49  </form>
50
51  <script type="text/javascript">
52   <!--
53       function vendor_selected(selected) {
54         var name = document.getElementsByName("name_" + selected)[0].value
55         var id = document.getElementsByName("id_" + selected)[0].value
56         window.opener.document.getElementsByName(document.Form.input_name.value)[0].value = name;
57         if (document.Form.input_id.value != "") {
58           window.opener.document.getElementsByName(document.Form.input_id.value)[0].value = id;
59         }
60         self.close();
61       }
62       //-->
63  </script>
64
65 </body>
66 </html>