Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1213b27a

Von Hans Peter Schlaepfer vor etwa 5 Jahren hinzugefügt

  • ID 1213b27a2c4abdafd1490186f257a157fdbb4459
  • Vorgänger c641a47a
  • Nachfolger b2978890

Design-4.0: Kosmetik: templates/webpages/wh/..: Einrückung/HTML

Neues kivitendo Design Aenderungen in templates/webpages/wh/..

Unterschiede anzeigen:

templates/webpages/wh/journal_filter.html
6 6

  
7 7
<h1>[% 'Report about warehouse transactions' | $T8 %]</h1>
8 8

  
9
 <script type="text/javascript">
10
   <!--
11
      warehouses = new Array();
12
      warehouses[0] = new Array();
13
      warehouses[0]['id'] = "0";
14
      warehouses[0]['bins'] = new Array();
15
      warehouses[0]['bins'][0] = new Array();
16
      warehouses[0]['bins'][0]['description'] = "---";
17
      warehouses[0]['bins'][0]['id'] = "";
18
      [%- USE WAREHOUSES_it = Iterator(WAREHOUSES) %][%- FOREACH warehouse = WAREHOUSES_it %]
9
<script type="text/javascript"><!--
10
    warehouses = new Array();
11
    warehouses[0] = new Array();
12
    warehouses[0]['id'] = "0";
13
    warehouses[0]['bins'] = new Array();
14
    warehouses[0]['bins'][0] = new Array();
15
    warehouses[0]['bins'][0]['description'] = "---";
16
    warehouses[0]['bins'][0]['id'] = "";
17
    [% USE WAREHOUSES_it = Iterator(WAREHOUSES) %]
18
    [% FOREACH warehouse = WAREHOUSES_it %]
19 19
      warehouses[[% WAREHOUSES_it.count %]] = new Array();
20 20
      warehouses[[% WAREHOUSES_it.count %]]['id'] = [% warehouse.id %];
21 21
      warehouses[[% WAREHOUSES_it.count %]]['bins'] = new Array();
22 22
      warehouses[[% WAREHOUSES_it.count %]]['bins'][0] = new Array();
23 23
      warehouses[[% WAREHOUSES_it.count %]]['bins'][0]['description'] = "---";
24 24
      warehouses[[% WAREHOUSES_it.count %]]['bins'][0]['id'] = "";
25
      [% USE BINS_it = Iterator(warehouse.BINS) %][% FOREACH bin = BINS_it %]
26
      warehouses[[% WAREHOUSES_it.count %]]['bins'][[% BINS_it.count %]] = new Array();
27
      warehouses[[% WAREHOUSES_it.count %]]['bins'][[% BINS_it.count %]]['description'] = "[% JavaScript.escape(bin.description) %]";
28
      warehouses[[% WAREHOUSES_it.count %]]['bins'][[% BINS_it.count %]]['id'] = [% bin.id %];
25
      [% USE BINS_it = Iterator(warehouse.BINS) %]
26
      [% FOREACH bin = BINS_it %]
27
        warehouses[[% WAREHOUSES_it.count %]]['bins'][[% BINS_it.count %]] = new Array();
28
        warehouses[[% WAREHOUSES_it.count %]]['bins'][[% BINS_it.count %]]['description'] = "[% JavaScript.escape(bin.description) %]";
29
        warehouses[[% WAREHOUSES_it.count %]]['bins'][[% BINS_it.count %]]['id'] = [% bin.id %];
29 30
      [% END %]
30
      [% END %]
31

  
32
      function warehouse_selected(warehouse_id, bin_id) {
33
        var control = document.getElementById("bin_id");
31
    [% END %]
34 32

  
35
        for (var i = control.options.length - 1; i >= 0; i--) {
36
          control.options[i] = null;
37
        }
33
    function warehouse_selected(warehouse_id, bin_id) {
34
      var control = document.getElementById("bin_id");
38 35

  
39
        var warehouse_index = 0;
36
      for (var i = control.options.length - 1; i >= 0; i--) {
37
        control.options[i] = null;
38
      }
40 39

  
41
        for (i = 0; i < warehouses.length; i++)
42
          if (warehouses[i]['id'] == warehouse_id) {
43
            warehouse_index = i;
44
            break;
45
          }
40
      var warehouse_index = 0;
46 41

  
47
        var warehouse = warehouses[warehouse_index];
48
        var bin_index = 0;
42
      for (i = 0; i < warehouses.length; i++)
43
        if (warehouses[i]['id'] == warehouse_id) {
44
          warehouse_index = i;
45
          break;
46
        }
49 47

  
50
        for (i = 0; i < warehouse['bins'].length; i++)
51
          if (warehouse['bins'][i]['id'] == bin_id) {
52
            bin_index = i;
53
            break;
54
          }
48
      var warehouse = warehouses[warehouse_index];
49
      var bin_index = 0;
55 50

  
56
        for (i = 0; i < warehouse['bins'].length; i++) {
57
          control.options[i] = new Option(warehouse['bins'][i]['description'], warehouse['bins'][i]['id']);
51
      for (i = 0; i < warehouse['bins'].length; i++)
52
        if (warehouse['bins'][i]['id'] == bin_id) {
53
          bin_index = i;
54
          break;
58 55
        }
59 56

  
60

  
61
        control.options[bin_index].selected = true;
57
      for (i = 0; i < warehouse['bins'].length; i++) {
58
        control.options[i] = new Option(warehouse['bins'][i]['description'], warehouse['bins'][i]['id']);
62 59
      }
63 60

  
64
      $(function() {
65
        warehouse_selected(0, 0);
66
        document.Form.partnumber.focus();
67
      })
68
     -->
69
 </script>
70 61

  
71
 <form method="post" name="Form" action="wh.pl" id="form">
62
      control.options[bin_index].selected = true;
63
    }
72 64

  
73
   <table>
74
    <tr>
75
     <th class="listheading" align="left" valign="top" colspan="6" nowrap>[% 'Filter' | $T8 %]</th>
76
    </tr>
65
    $(function() {
66
      warehouse_selected(0, 0);
67
      document.Form.partnumber.focus();
68
    })
69
   --></script>
70

  
71
<form method="post" name="Form" action="wh.pl" id="form">
72
<div class="wrapper">
77 73

  
78 74
    <tr>
79 75
     <td>
......
153 149
    <tr>
154 150
     <th class="listheading" align="left" valign="top" colspan="6" nowrap>[% 'Include in Report' | $T8 %]</th>
155 151
    </tr>
156

  
157 152
    <tr>
158 153
     <td>
159 154
      <table>

Auch abrufbar als: Unified diff