e87c7290aa7f1ed769b4f8072ca6ee5a43530133
[kivitendo-erp.git] / templates / webpages / generic / select_vendor_de.html
1 <body <TMPL_IF NAME=onload>onload="<TMPL_VAR NAME=onload>"</TMPL_IF>>
2
3  <form name="Form">
4
5   <input type="hidden" name="input_name" value="<TMPL_VAR NAME=input_name ESCAPE=HTML>">
6   <input type="hidden" name="input_id" value="<TMPL_VAR NAME=input_id ESCAPE=HTML>">
7
8   <table width="100%">
9    <tr>
10     <th class="listtop"><TMPL_VAR NAME=title></th>
11    </tr>
12    <tr height="5"></tr>
13
14    <tr><td>Bitte einen Händler aus der Liste auswählen</td></tr>
15
16    <tr>
17     <td>
18
19      <table>
20       <tr class="listheading">
21        <th class="listheading">&nbsp;</th>
22        <TMPL_LOOP NAME=HEADER>
23         <th nowrap class="listheading"><a href="<TMPL_VAR NAME=callback ESCAPE=HTML>"><TMPL_VAR NAME=column_title></a></th>
24        </TMPL_LOOP>
25       </tr>
26
27       <TMPL_LOOP NAME=VENDOR>
28        <tr class="listrow<TMPL_IF NAME=__odd__>1<TMPL_ELSE>0</TMPL_IF>">
29         <td><button type="button" onclick="vendor_selected('<TMPL_VAR NAME=__counter__>')">Auswahl</button></td>
30         <td><input type="hidden" id="id_<TMPL_VAR NAME=__counter__>" name="id_<TMPL_VAR NAME=__counter__>" value="<TMPL_VAR NAME=id ESCAPE=HTML>">
31          <input type="hidden" id="name_<TMPL_VAR NAME=__counter__>" name="name_<TMPL_VAR NAME=__counter__>" value="<TMPL_VAR NAME=name ESCAPE=HTML>">
32          <TMPL_VAR NAME=name ESCAPE=HTML></td>
33          <td><TMPL_VAR NAME=customernumber ESCAPE=HTML></td>
34          <td><TMPL_VAR NAME=address ESCAPE=HTML></td>
35 <!--         <td><input type="hidden" id="description_<TMPL_VAR NAME=__counter__>" name="description_<TMPL_VAR NAME=__counter__>" value="<TMPL_VAR NAME=description ESCAPE=HTML>"> -->
36 <!--          <TMPL_VAR NAME=description ESCAPE=HTML></td> -->
37        </tr>
38       </TMPL_LOOP>
39      </table>
40
41     </td>
42    </tr>
43   </table>
44
45  </form>
46
47  <script type="text/javascript">
48   <!--
49       function vendor_selected(selected) {
50         var name = document.getElementsByName("name_" + selected)[0].value
51         var id = document.getElementsByName("id_" + selected)[0].value
52         window.opener.document.getElementsByName(document.Form.input_name.value)[0].value = name;
53         if (document.Form.input_id.value != "") {
54           window.opener.document.getElementsByName(document.Form.input_id.value)[0].value = id;
55         }
56         self.close();
57       }
58       //-->
59  </script>
60
61 </body>
62 </html>