Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 81ca8fc2

Von Hans Peter Schlaepfer vor fast 5 Jahren hinzugefügt

  • ID 81ca8fc26ca6798e357192e2ee72cece55d7f774
  • Vorgänger 1b0453c5
  • Nachfolger e98e07ec

Neues kivitendo Design Aenderungen in templates/webpages/generic*

Dateien in generic/* und generictranslations/*

Unterschiede anzeigen:

templates/webpages/generic/select_vendor.html
1
[%- USE T8 %]
2
[%- USE HTML %]
1
[% USE T8 %]
2
[% USE HTML %]
3 3
<h1>[% title %]</h1>
4 4

  
5
 <form name="Form">
5
<form name="Form">
6 6

  
7
  <input type="hidden" name="input_name" value="[% HTML.escape(input_name) %]">
8
  <input type="hidden" name="input_id" value="[% HTML.escape(input_id) %]">
7
<input type="hidden" name="input_name" value="[% HTML.escape(input_name) %]">
8
<input type="hidden" name="input_id" value="[% HTML.escape(input_id) %]">
9 9

  
10
  <table width="100%">
11
   <tr><td>[% 'Please select a vendor from the list below.' | $T8 %]</td></tr>
10
<p>[% 'Please select a vendor from the list below.' | $T8 %]</p>
12 11

  
13
   <tr>
14
    <td>
15

  
16
     <table>
17
      <tr class="listheading">
18
       <th class="listheading">&nbsp;</th>
19
       [%- FOREACH col = HEADER %]
20
       <th nowrap class="listheading"><a href="[% HTML.escape(col.callback) %]">[% col.column_title %]</a></th>
21
       [%- END %]
22
      </tr>
23

  
24
      [%- FOREACH row = VENDOR %]
12
<table class="tbl-list">
13
  <thead>
14
    <tr>
15
      <th>&nbsp;</th>
16
      [% FOREACH col = HEADER %]
17
        <th><a href="[% HTML.escape(col.callback) %]">[% col.column_title %]</a></th>
18
      [% END %]
19
    </tr>
20
  </thead>
21
  <tbody>
22
    [% FOREACH row = VENDOR %]
25 23
      <tr class="listrow[% loop.count % 2 %]">
26
       <td><button type="button" onclick="vendor_selected('[% loop.count %]')">Auswahl</button></td>
27
       <td>
28
        <input type="hidden" id="id_[% loop.count %]" name="id_[% loop.count %]" value="[% HTML.escape(row.id) %]">
29
        <input type="hidden" id="name_[% loop.count %]" name="name_[% loop.count %]" value="[% HTML.escape(row.name) %]">
30
        [% HTML.escape(name) %]
31
       </td>
32
       <td>[% HTML.escape(row.customernumber) %]</td>
33
       <td>[% HTML.escape(row.address) %]</td>
34
<!--        <td> -->
35
<!--         <input type="hidden" id="description_[% loop.count %]" name="description_[% loop.count %]" value="[% HTML.escape(row.description) %]"> -->
36
<!--         [% HTML.escape(row.description) %] -->
37
<!--        </td> -->
24
        <td><button type="button" onclick="vendor_selected('[% loop.count %]')">Auswahl</button></td>
25
        <td>[% HTML.escape(name) %]
26
          <input type="hidden" id="id_[% loop.count %]" name="id_[% loop.count %]" value="[% HTML.escape(row.id) %]">
27
          <input type="hidden" id="name_[% loop.count %]" name="name_[% loop.count %]" value="[% HTML.escape(row.name) %]">
28
        </td>
29
        <td>[% HTML.escape(row.customernumber) %]</td>
30
        <td>[% HTML.escape(row.address) %]</td>
31
  <!--        <td> -->
32
  <!--         <input type="hidden" id="description_[% loop.count %]" name="description_[% loop.count %]" value="[% HTML.escape(row.description) %]"> -->
33
  <!--         [% HTML.escape(row.description) %] -->
34
  <!--        </td> -->
38 35
      </tr>
39
      [%- END %]
40
     </table>
41

  
42
    </td>
43
   </tr>
44
  </table>
45

  
46
 </form>
47

  
48
 <script type="text/javascript">
49
  <!--
50
      function vendor_selected(selected) {
51
        var name = document.getElementsByName("name_" + selected)[0].value
52
        var id = document.getElementsByName("id_" + selected)[0].value
53
        window.opener.document.getElementsByName(document.Form.input_name.value)[0].value = name;
54
        if (document.Form.input_id.value != "") {
55
          window.opener.document.getElementsByName(document.Form.input_id.value)[0].value = id;
56
        }
57
        self.close();
36
    [% END %]
37
  </tbody>
38
</table>
39

  
40
</form>
41

  
42
<script type="text/javascript"><!--
43
    function vendor_selected(selected) {
44
      var name = document.getElementsByName("name_" + selected)[0].value
45
      var id = document.getElementsByName("id_" + selected)[0].value
46
      window.opener.document.getElementsByName(document.Form.input_name.value)[0].value = name;
47
      if (document.Form.input_id.value != "") {
48
        window.opener.document.getElementsByName(document.Form.input_id.value)[0].value = id;
58 49
      }
59
      //-->
60
 </script>
50
      self.close();
51
    }
52
--></script>
61 53

  

Auch abrufbar als: Unified diff