Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 259775be

Von Thomas Kasulke vor mehr als 17 Jahren hinzugefügt

  • ID 259775be91430bf760db9f6cc8bcec0f710cf9cf
  • Vorgänger fac0e68e
  • Nachfolger ee8cd316

Verschönerung der Buttons für die Änderung der Suchreihenfolge

Unterschiede anzeigen:

templates/webpages/common/show_history_de.html
4 4
</form> 
5 5
<TMPL_IF NAME=SUCCESS>
6 6
<script type="text/javascript">
7
  function orderBy(order) {
8
    var desc = 0;
7
  function orderBy(order,desc) {
9 8
    var reg = /\&order\=(.+)\-\-(\d)$/;
10 9
    reg.exec(document.location.href);
11 10
    if(RegExp.$1 == order) {
12
      if(RegExp.$2 == 0) {
13
        document.location.href = document.location.href.substring(0,document.location.href.lastIndexOf("&order=")) + "&order=" + order + "--1";
14
      }
15
      else{  
16
        document.location.href = document.location.href.substring(0,document.location.href.lastIndexOf("&order=")) + "&order=" + order + "--0";
17
      }
11
      document.location.href = document.location.href.substring(0,document.location.href.lastIndexOf("&order=")) + "&order=" + order + "--" + desc;
18 12
    }
19 13
    else {
20 14
      if(reg.test(document.location.href)) {
21
        document.location.href = document.location.href.substring(0,document.location.href.lastIndexOf("&order=")) + "&order=" + order + "--0";
15
        document.location.href = document.location.href.substring(0,document.location.href.lastIndexOf("&order=")) + "&order=" + order + "--" + desc;
22 16
      }
23 17
      else {
24
        document.location.href = document.location.href + "&order=" + order + "--1";
18
        document.location.href = document.location.href + "&order=" + order + "--" + desc;
25 19
      }
26 20
    }
27 21
  }
28 22
</script>
29 23
<table>
30 24
	<tr>
31
		<th class=listtop>
32
			&nbsp;<a href="javascript:orderBy('h.itime');">Zeitpunkt</a>&nbsp;<TMPL_IF NAME=ITIME><a title="Reihenfolge"><TMPL_IF NAME=ITIMEBY>&or;<TMPL_ELSE>&and;</TMPL_IF></a></TMPL_IF>&nbsp;
25
		<th class="listtop">
26
      <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" border="0">
27
        <tr>
28
          <td align="center" valign="middle">
29
			     &nbsp;Zeitpunkt&nbsp;
30
          </td>
31
          <td valign="top">
32
            <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" valign="top" border="0">
33
              <TMPL_IF NAME=ITIME>
34
                <TMPL_IF NAME=ITIMEBY>
35
                  <tr><td><a href="javascript:orderBy('h.itime',0);" title="Reihenfolge" style="border: solid 1px #aaaade;">&and;</a></td></tr>
36
                  <tr><td><a title="Reihenfolge" style="background: #ccccff; border: solid 1px #aaaade;">&or;</a></td></tr>
37
                <TMPL_ELSE>
38
                  <tr><td><a title="Reihenfolge" style="background: #ccccff; border: solid 1px #aaaade;">&and;</a></td></tr>
39
                  <tr><td><a href="javascript:orderBy('h.itime',1);" style="border: solid 1px #aaaade;">&or;</a></td></tr>
40
                </TMPL_IF>
41
              <TMPL_ELSE>
42
                <tr><td><a href="javascript:orderBy('h.itime',0);" title="Reihenfolge" style="border: solid 1px #aaaade;">&and;</a></td></tr>
43
                <tr><td><a href="javascript:orderBy('h.itime',1);" title="Reihenfolge" style="border: solid 1px #aaaade;">&or;</a></td></tr>
44
              </TMPL_IF>
45
            </table>
46
          </td>
47
        </tr>
48
      </table>
33 49
		</th>
34 50
		<th class=listtop>
35
			&nbsp;<a href="javascript:orderBy('emp.name');">Mitarbeiter</a>&nbsp;<TMPL_IF NAME=NAME><a title="Reihenfolge"><TMPL_IF NAME=NAMEBY>&or;<TMPL_ELSE>&and;</TMPL_IF></a></TMPL_IF>&nbsp;
51
      <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" border="0">
52
        <tr>
53
          <td align="center" valign="middle">
54
            &nbsp;Mitarbeiter&nbsp;
55
          </td>
56
          <td valign="top">
57
            <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" valign="top" border="0">
58
              <TMPL_IF NAME=NAME>
59
                <TMPL_IF NAME=NAMEBY>
60
                  <tr><td height="0" width="0"><a href="javascript:orderBy('emp.name',0);" title="Reihenfolge" style="border: solid 1px #aaaade;">&and;</a></td></tr>
61
                  <tr><td height="0" width="0"><a title="Reihenfolge" style="background: #ccccff; border: solid 1px #aaaade;">&or;</a></td></tr>
62
                <TMPL_ELSE>
63
                  <tr><td><a title="Reihenfolge" style="background: #ccccff; border: solid 1px #aaaade;">&and;</a></td></tr>
64
                  <tr><td><a href="javascript:orderBy('emp.name',1);" style="border: solid 1px #aaaade;">&or;</a></td></tr>
65
                </TMPL_IF>
66
              <TMPL_ELSE>
67
                <tr><td><a href="javascript:orderBy('emp.name',0);" title="Reihenfolge" style="border: solid 1px #aaaade;">&and;</a></td></tr>
68
                <tr><td><a href="javascript:orderBy('emp.name',1);" title="Reihenfolge" style="border: solid 1px #aaaade;">&or;</a></td></tr>
69
              </TMPL_IF>
70
            </table>
71
          </td>
72
        </tr>
73
      </table>
36 74
		</th>
37 75
		<th class=listtop>
38
			&nbsp;<a href="">Aktion</a>&nbsp;
76
      <table>
77
        <tr>
78
          <td>
79
			      &nbsp;Aktion&nbsp;
80
          </td>
81
        </tr>
82
      </table>
39 83
		</th>
40 84
		<th class=listtop>
41
      &nbsp;<a href="">Zusatz</a>&nbsp;
85
      <table>
86
        <tr>
87
          <td>
88
            &nbsp;Zusatz&nbsp;
89
          </td>
90
        </tr>
91
      </table>
42 92
    </th>
43 93
    <th class=listtop>
44
      &nbsp;<a href="javascript:orderBy('h.trans_id');">ID-Nummer (intern)</a>&nbsp;<TMPL_IF NAME=TRANS_ID><a title="Reihenfolge"><TMPL_IF NAME=TRANS_IDBY>&or;<TMPL_ELSE>&and;</TMPL_IF></a></TMPL_IF>&nbsp;
94
      <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" border="0">
95
        <tr>
96
          <td align="center" valign="middle">
97
           &nbsp;ID-Nummer (intern)&nbsp;
98
          </td>
99
          <td valign="top">
100
            <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" valign="top" border="0">
101
              <TMPL_IF NAME=TRANS_ID>
102
                <TMPL_IF NAME=TRANS_IDBY>
103
                  <tr><td height="0" width="0"><a href="javascript:orderBy('h.trans_id',0);" title="Reihenfolge" style="border: solid 1px #aaaade;">&and;</a></td></tr>
104
                  <tr><td height="0" width="0"><a title="Reihenfolge" style="background: #ccccff; border: solid 1px #aaaade;">&or;</a></td></tr>
105
                <TMPL_ELSE>
106
                  <tr><td><a title="Reihenfolge" style="background: #ccccff; border: solid 1px #aaaade;">&and;</a></td></tr>
107
                  <tr><td><a href="javascript:orderBy('h.trans_id',1);" style="border: solid 1px #aaaade;">&or;</a></td></tr>
108
                </TMPL_IF>
109
              <TMPL_ELSE>
110
                <tr><td><a href="javascript:orderBy('h.trans_id',0);" title="Reihenfolge" style="border: solid 1px #aaaade;">&and;</a></td></tr>
111
                <tr><td><a href="javascript:orderBy('h.trans_id',1);" title="Reihenfolge" style="border: solid 1px #aaaade;">&or;</a></td></tr>
112
              </TMPL_IF>
113
            </table>
114
          </td>
115
        </tr>
116
      </table>
45 117
    </th>
46 118
    <th class=listtop>
47
      &nbsp;<a href="javascript:orderBy('h.snumbers');">Buchungsnummer</a>&nbsp;<TMPL_IF NAME=SNUMBERS><a title="Reihenfolge"><TMPL_IF NAME=SNUMBERSBY>&or;<TMPL_ELSE>&and;</TMPL_IF></a></TMPL_IF>&nbsp;
119
      <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" border="0">
120
        <tr>
121
          <td align="center" valign="middle">
122
           &nbsp;Buchungsnummer&nbsp;
123
          </td>
124
          <td valign="top">
125
            <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" valign="top" border="0" >
126
              <TMPL_IF NAME=SNUMBERS>
127
                <TMPL_IF NAME=SNUMBERSBY>
128
                  <tr><td height="0" width="0"><a href="javascript:orderBy('h.snumbers',0);" title="Reihenfolge" style="border: solid 1px #aaaade;">&and;</a></td></tr>
129
                  <tr><td height="0" width="0"><a title="Reihenfolge" style="background: #ccccff; border: solid 1px #aaaade;">&or;</a></td></tr>
130
                <TMPL_ELSE>
131
                  <tr><td><a title="Reihenfolge" style="background: #ccccff; border: solid 1px #aaaade;">&and;</a></td></tr>
132
                  <tr><td><a href="javascript:orderBy('h.snumbers',1);" style="border: solid 1px #aaaade;">&or;</a></td></tr>
133
                </TMPL_IF>
134
              <TMPL_ELSE>
135
                <tr><td><a href="javascript:orderBy('h.snumbers',0);" title="Reihenfolge" style="border: solid 1px #aaaade;">&and;</a></td></tr>
136
                <tr><td><a href="javascript:orderBy('h.snumbers',1);" title="Reihenfolge" style="border: solid 1px #aaaade;">&or;</a></td></tr>
137
              </TMPL_IF>
138
            </table>
139
          </td>
140
        </tr>
141
      </table>
48 142
    </th>
49 143
	</tr>
50 144
<TMPL_LOOP NAME=DATEN>
templates/webpages/common/show_history_master.html
4 4
</form> 
5 5
<TMPL_IF NAME=SUCCESS>
6 6
<script type="text/javascript">
7
  function orderBy(order) {
8
    var desc = 0;
7
  function orderBy(order,desc) {
9 8
    var reg = /\&order\=(.+)\-\-(\d)$/;
10 9
    reg.exec(document.location.href);
11 10
    if(RegExp.$1 == order) {
12
      if(RegExp.$2 == 0) {
13
        document.location.href = document.location.href.substring(0,document.location.href.lastIndexOf("&order=")) + "&order=" + order + "--1";
14
      }
15
      else{  
16
        document.location.href = document.location.href.substring(0,document.location.href.lastIndexOf("&order=")) + "&order=" + order + "--0";
17
      }
11
      document.location.href = document.location.href.substring(0,document.location.href.lastIndexOf("&order=")) + "&order=" + order + "--" + desc;
18 12
    }
19 13
    else {
20 14
      if(reg.test(document.location.href)) {
21
        document.location.href = document.location.href.substring(0,document.location.href.lastIndexOf("&order=")) + "&order=" + order + "--0";
15
        document.location.href = document.location.href.substring(0,document.location.href.lastIndexOf("&order=")) + "&order=" + order + "--" + desc;
22 16
      }
23 17
      else {
24
        document.location.href = document.location.href + "&order=" + order + "--1";
18
        document.location.href = document.location.href + "&order=" + order + "--" + desc;
25 19
      }
26 20
    }
27 21
  }
28 22
</script>
29 23
<table>
30 24
	<tr>
31
		<th class=listtop>
32
			&nbsp;<a href="javascript:orderBy('h.itime');"><translate>Zeitpunkt</translate></a>&nbsp;<TMPL_IF NAME=ITIME><a title="<translate>order</translate>"><TMPL_IF NAME=ITIMEBY>&or;<TMPL_ELSE>&and;</TMPL_IF></a></TMPL_IF>&nbsp;
25
		<th class="listtop">
26
      <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" border="0">
27
        <tr>
28
          <td align="center" valign="middle">
29
			     &nbsp;<translate>Zeitpunkt</translate>&nbsp;
30
          </td>
31
          <td valign="top">
32
            <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" valign="top" border="0">
33
              <TMPL_IF NAME=ITIME>
34
                <TMPL_IF NAME=ITIMEBY>
35
                  <tr><td><a href="javascript:orderBy('h.itime',0);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&and;</a></td></tr>
36
                  <tr><td><a title="<translate>order</translate>" style="background: #ccccff; border: solid 1px #aaaade;">&or;</a></td></tr>
37
                <TMPL_ELSE>
38
                  <tr><td><a title="<translate>order</translate>" style="background: #ccccff; border: solid 1px #aaaade;">&and;</a></td></tr>
39
                  <tr><td><a href="javascript:orderBy('h.itime',1);" style="border: solid 1px #aaaade;">&or;</a></td></tr>
40
                </TMPL_IF>
41
              <TMPL_ELSE>
42
                <tr><td><a href="javascript:orderBy('h.itime',0);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&and;</a></td></tr>
43
                <tr><td><a href="javascript:orderBy('h.itime',1);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&or;</a></td></tr>
44
              </TMPL_IF>
45
            </table>
46
          </td>
47
        </tr>
48
      </table>
33 49
		</th>
34 50
		<th class=listtop>
35
			&nbsp;<a href="javascript:orderBy('emp.name');"><translate>Mitarbeiter</translate></a>&nbsp;<TMPL_IF NAME=NAME><a title="<translate>order</translate>"><TMPL_IF NAME=NAMEBY>&or;<TMPL_ELSE>&and;</TMPL_IF></a></TMPL_IF>&nbsp;
51
      <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" border="0">
52
        <tr>
53
          <td align="center" valign="middle">
54
            &nbsp;<translate>Mitarbeiter</translate>&nbsp;
55
          </td>
56
          <td valign="top">
57
            <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" valign="top" border="0">
58
              <TMPL_IF NAME=NAME>
59
                <TMPL_IF NAME=NAMEBY>
60
                  <tr><td height="0" width="0"><a href="javascript:orderBy('emp.name',0);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&and;</a></td></tr>
61
                  <tr><td height="0" width="0"><a title="<translate>order</translate>" style="background: #ccccff; border: solid 1px #aaaade;">&or;</a></td></tr>
62
                <TMPL_ELSE>
63
                  <tr><td><a title="<translate>order</translate>" style="background: #ccccff; border: solid 1px #aaaade;">&and;</a></td></tr>
64
                  <tr><td><a href="javascript:orderBy('emp.name',1);" style="border: solid 1px #aaaade;">&or;</a></td></tr>
65
                </TMPL_IF>
66
              <TMPL_ELSE>
67
                <tr><td><a href="javascript:orderBy('emp.name',0);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&and;</a></td></tr>
68
                <tr><td><a href="javascript:orderBy('emp.name',1);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&or;</a></td></tr>
69
              </TMPL_IF>
70
            </table>
71
          </td>
72
        </tr>
73
      </table>
36 74
		</th>
37 75
		<th class=listtop>
38
			&nbsp;<a href=""><translate>Aktion</translate></a>&nbsp;
76
      <table>
77
        <tr>
78
          <td>
79
			      &nbsp;<translate>Aktion</translate>&nbsp;
80
          </td>
81
        </tr>
82
      </table>
39 83
		</th>
40 84
		<th class=listtop>
41
      &nbsp;<a href=""><translate>Zusatz</translate></a>&nbsp;
85
      <table>
86
        <tr>
87
          <td>
88
            &nbsp;<translate>Zusatz</translate>&nbsp;
89
          </td>
90
        </tr>
91
      </table>
42 92
    </th>
43 93
    <th class=listtop>
44
      &nbsp;<a href="javascript:orderBy('h.trans_id');"><translate>ID-Nummer</translate></a>&nbsp;<TMPL_IF NAME=TRANS_ID><a title="<translate>order</translate>"><TMPL_IF NAME=TRANS_IDBY>&or;<TMPL_ELSE>&and;</TMPL_IF></a></TMPL_IF>&nbsp;
94
      <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" border="0">
95
        <tr>
96
          <td align="center" valign="middle">
97
           &nbsp;<translate>ID-Nummer</translate>&nbsp;
98
          </td>
99
          <td valign="top">
100
            <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" valign="top" border="0">
101
              <TMPL_IF NAME=TRANS_ID>
102
                <TMPL_IF NAME=TRANS_IDBY>
103
                  <tr><td height="0" width="0"><a href="javascript:orderBy('h.trans_id',0);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&and;</a></td></tr>
104
                  <tr><td height="0" width="0"><a title="<translate>order</translate>" style="background: #ccccff; border: solid 1px #aaaade;">&or;</a></td></tr>
105
                <TMPL_ELSE>
106
                  <tr><td><a title="<translate>order</translate>" style="background: #ccccff; border: solid 1px #aaaade;">&and;</a></td></tr>
107
                  <tr><td><a href="javascript:orderBy('h.trans_id',1);" style="border: solid 1px #aaaade;">&or;</a></td></tr>
108
                </TMPL_IF>
109
              <TMPL_ELSE>
110
                <tr><td><a href="javascript:orderBy('h.trans_id',0);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&and;</a></td></tr>
111
                <tr><td><a href="javascript:orderBy('h.trans_id',1);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&or;</a></td></tr>
112
              </TMPL_IF>
113
            </table>
114
          </td>
115
        </tr>
116
      </table>
45 117
    </th>
46 118
    <th class=listtop>
47
      &nbsp;<a href="javascript:orderBy('h.snumbers');"><translate>Belegnummer</translate></a>&nbsp;<TMPL_IF NAME=SNUMBERS><a title="<translate>order</translate>"><TMPL_IF NAME=SNUMBERSBY>&or;<TMPL_ELSE>&and;</TMPL_IF></a></TMPL_IF>&nbsp;
119
      <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" border="0">
120
        <tr>
121
          <td align="center" valign="middle">
122
           &nbsp;<translate>Belegnummer</translate>&nbsp;
123
          </td>
124
          <td valign="top">
125
            <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" valign="top" border="0" >
126
              <TMPL_IF NAME=SNUMBERS>
127
                <TMPL_IF NAME=SNUMBERSBY>
128
                  <tr><td height="0" width="0"><a href="javascript:orderBy('h.snumbers',0);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&and;</a></td></tr>
129
                  <tr><td height="0" width="0"><a title="<translate>order</translate>" style="background: #ccccff; border: solid 1px #aaaade;">&or;</a></td></tr>
130
                <TMPL_ELSE>
131
                  <tr><td><a title="<translate>order</translate>" style="background: #ccccff; border: solid 1px #aaaade;">&and;</a></td></tr>
132
                  <tr><td><a href="javascript:orderBy('h.snumbers',1);" style="border: solid 1px #aaaade;">&or;</a></td></tr>
133
                </TMPL_IF>
134
              <TMPL_ELSE>
135
                <tr><td><a href="javascript:orderBy('h.snumbers',0);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&and;</a></td></tr>
136
                <tr><td><a href="javascript:orderBy('h.snumbers',1);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&or;</a></td></tr>
137
              </TMPL_IF>
138
            </table>
139
          </td>
140
        </tr>
141
      </table>
48 142
    </th>
49 143
	</tr>
50 144
<TMPL_LOOP NAME=DATEN>

Auch abrufbar als: Unified diff