Report-Generator: Spaltenüberschriften in HTML- und PDF-Ausgaben nicht erneut HTML...
[kivitendo-erp.git] / templates / webpages / common / show_history_master.html
1 [% USE HTML %]<form>
2 <input type="hidden" name="login" value="[% HTML.escape(login) %]">
3 <input type="hidden" name="password" value="[% HTML.escape(password) %]">
4 </form>
5 [% IF SUCCESS %]
6 <script type="text/javascript">
7   function orderBy(order,desc) {
8     var reg = /\&order\=(.+)\-\-(\d)$/;
9     reg.exec(document.location.href);
10     if(RegExp.$1 == order) {
11       document.location.href = document.location.href.substring(0,document.location.href.lastIndexOf("&order=")) + "&order=" + order + "--" + desc;
12     }
13     else {
14       if(reg.test(document.location.href)) {
15         document.location.href = document.location.href.substring(0,document.location.href.lastIndexOf("&order=")) + "&order=" + order + "--" + desc;
16       }
17       else {
18         document.location.href = document.location.href + "&order=" + order + "--" + desc;
19       }
20     }
21   }
22 </script>
23 <div style="position: absolute; top:10px; left:10px; clip:rect(0px, 700px, 407px, 0px);">
24 <table style="width: 700px; height: 360px;">
25         <tr>
26                 <th class="listtop">
27       <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" border="0">
28         <tr>
29           <td align="center" valign="middle">
30                              &nbsp;<translate>Zeitpunkt</translate>&nbsp;
31           </td>
32           <td valign="top">
33             <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" valign="top" border="0">
34               [% IF ITIME %]
35                 [% IF ITIMEBY %]
36                   <tr><td><a href="javascript:orderBy('h.itime',0);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&and;</a></td></tr>
37                   <tr><td><a title="<translate>order</translate>" style="background: #ccccff; border: solid 1px #aaaade;">&or;</a></td></tr>
38                 [% ELSE %]
39                   <tr><td><a title="<translate>order</translate>" style="background: #ccccff; border: solid 1px #aaaade;">&and;</a></td></tr>
40                   <tr><td><a href="javascript:orderBy('h.itime',1);" style="border: solid 1px #aaaade;">&or;</a></td></tr>
41                 [% END %]
42               [% ELSE %]
43                 <tr><td><a href="javascript:orderBy('h.itime',0);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&and;</a></td></tr>
44                 <tr><td><a href="javascript:orderBy('h.itime',1);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&or;</a></td></tr>
45               [% END %]
46             </table>
47           </td>
48         </tr>
49       </table>
50                 </th>
51                 <th class=listtop>
52       <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" border="0">
53         <tr>
54           <td align="center" valign="middle">
55             &nbsp;<translate>Mitarbeiter</translate>&nbsp;
56           </td>
57           <td valign="top">
58             <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" valign="top" border="0">
59               [% IF NAME %]
60                 [% IF NAMEBY %]
61                   <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>
62                   <tr><td height="0" width="0"><a title="<translate>order</translate>" style="background: #ccccff; border: solid 1px #aaaade;">&or;</a></td></tr>
63                 [% ELSE %]
64                   <tr><td><a title="<translate>order</translate>" style="background: #ccccff; border: solid 1px #aaaade;">&and;</a></td></tr>
65                   <tr><td><a href="javascript:orderBy('emp.name',1);" style="border: solid 1px #aaaade;">&or;</a></td></tr>
66                 [% END %]
67               [% ELSE %]
68                 <tr><td><a href="javascript:orderBy('emp.name',0);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&and;</a></td></tr>
69                 <tr><td><a href="javascript:orderBy('emp.name',1);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&or;</a></td></tr>
70               [% END %]
71             </table>
72           </td>
73         </tr>
74       </table>
75                 </th>
76                 <th class=listtop>
77       <table>
78         <tr>
79           <td>
80                               &nbsp;<translate>Aktion</translate>&nbsp;
81           </td>
82         </tr>
83       </table>
84                 </th>
85                 <th class=listtop>
86       <table>
87         <tr>
88           <td>
89             &nbsp;<translate>Zusatz</translate>&nbsp;
90           </td>
91         </tr>
92       </table>
93     </th>
94     <th class=listtop>
95       <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" border="0">
96         <tr>
97           <td align="center" valign="middle">
98            &nbsp;<translate>ID-Nummer</translate>&nbsp;
99           </td>
100           <td valign="top">
101             <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" valign="top" border="0">
102               [% IF TRANS_ID %]
103                 [% IF TRANS_IDBY %]
104                   <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>
105                   <tr><td height="0" width="0"><a title="<translate>order</translate>" style="background: #ccccff; border: solid 1px #aaaade;">&or;</a></td></tr>
106                 [% ELSE %]
107                   <tr><td><a title="<translate>order</translate>" style="background: #ccccff; border: solid 1px #aaaade;">&and;</a></td></tr>
108                   <tr><td><a href="javascript:orderBy('h.trans_id',1);" style="border: solid 1px #aaaade;">&or;</a></td></tr>
109                 [% END %]
110               [% ELSE %]
111                 <tr><td><a href="javascript:orderBy('h.trans_id',0);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&and;</a></td></tr>
112                 <tr><td><a href="javascript:orderBy('h.trans_id',1);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&or;</a></td></tr>
113               [% END %]
114             </table>
115           </td>
116         </tr>
117       </table>
118     </th>
119     <th class=listtop>
120       <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" border="0">
121         <tr>
122           <td align="center" valign="middle">
123            &nbsp;<translate>Belegnummer</translate>&nbsp;
124           </td>
125           <td valign="top">
126             <table height="0" width="0" cellpadding="0" cellspacing="0" marginheight="0" marginwidth="0" valign="top" border="0" >
127               [% IF SNUMBERS %]
128                 [% IF SNUMBERSBY %]
129                   <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>
130                   <tr><td height="0" width="0"><a title="<translate>order</translate>" style="background: #ccccff; border: solid 1px #aaaade;">&or;</a></td></tr>
131                 [% ELSE %]
132                   <tr><td><a title="<translate>order</translate>" style="background: #ccccff; border: solid 1px #aaaade;">&and;</a></td></tr>
133                   <tr><td><a href="javascript:orderBy('h.snumbers',1);" style="border: solid 1px #aaaade;">&or;</a></td></tr>
134                 [% END %]
135               [% ELSE %]
136                 <tr><td><a href="javascript:orderBy('h.snumbers',0);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&and;</a></td></tr>
137                 <tr><td><a href="javascript:orderBy('h.snumbers',1);" title="<translate>order</translate>" style="border: solid 1px #aaaade;">&or;</a></td></tr>
138               [% END %]
139             </table>
140           </td>
141         </tr>
142       </table>
143     </th>
144         </tr>
145   <tbody height="380px" width="580px" style="overflow:auto;">
146 [% FOREACH row = DATEN %]
147   <tr class="listrow[% loop.count % 2 %]">
148                 <td nowrap>
149                         &nbsp;[% HTML.escape(row.itime) %]&nbsp;
150                 </td>
151                 <td nowrap>
152                         &nbsp;[% HTML.escape(row.name) %]&nbsp;
153                 </td>
154                 <td>
155                         &nbsp;[% HTML.escape(row.addition) %]&nbsp;
156                 </td>
157                 <td>
158       &nbsp;[% HTML.escape(row.what_done) %]&nbsp;
159     </td>
160     <td>
161       &nbsp;[% HTML.escape(row.id) %]&nbsp;
162     </td>
163     <td>
164       &nbsp;[% HTML.escape(row.snumbers) %]&nbsp;
165     </td>
166         </tr>
167 [% END %]
168 </tbody>
169 </table>
170 </div>
171 <div style="position:absolute; bottom:10px; left:10px;">
172 [% ELSE %]
173 <b><translate>Keine Suchergebnisse gefunden!</translate></b><br>
174 [% END %]
175 <p>
176 [% IF NONEWWINDOW %]
177 <input type="button" onclick="javascript:history.back(-1);" value="<translate>back</translate>">
178 [% ELSE %]
179 <input type="button" onclick="javascript:window.close();" value="<translate>close</translate>">
180 [% END %]
181 </p>
182 </div>