1 <body <TMPL_IF NAME=onload>onload="<TMPL_VAR NAME=onload>"</TMPL_IF>>
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>">
10 <th class="listtop"><TMPL_VAR NAME=title></th>
14 <tr><td><translate>Please select a vendor from the list below.</translate></td></tr>
20 <tr class="listheading">
21 <th class="listheading"> </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>
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> -->
47 <script type="text/javascript">
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;