Patch aus Bug 1343: csv in ../users speichern
[kivitendo-erp.git] / templates / webpages / oe / search_de.html
1 [%- USE HTML %]
2 [%- USE T8 %]
3 [%- SET vclabel = vc == 'customer' ? 'Kunde' : 'Lieferant' %]
4 [%- SET vcnumberlabel = vc == 'customer' ? 'Kundennummer' : 'Lieferantennummer' %]
5 <body>
6
7 <form method="post" action="oe.pl">
8
9  <p><div class="listtop">[% HTML.escape(title) %]</div></p>
10
11 <table width="100%">
12  <tr>
13   <td>
14    <table>
15     <tr>
16      <th align="right">[% HTML.escape(vclabel) %]</th>
17      <td colspan="3">
18             [%- INCLUDE 'generic/multibox.html'
19                  name          = vc,
20                  default       = vc == 'customer' ? oldcustomer : oldvendor,
21                  style         = 'width: 250px',
22                  DATA          = ALL_VC,
23                  id_sub        = 'vc_keys',
24                  label_key     = 'name',
25                  select        = vc_select,
26                  limit         = vclimit,
27                  show_empty    = 1,
28                  allow_textbox = 1,
29                  -%]
30      </td>
31     </tr>
32 [%- IF ALL_DEPARTMENTS.size %]
33     <tr>
34      <th align="right" nowrap>Abteilung</th>
35      <td colspan="3">
36             [%- INCLUDE 'generic/multibox.html'
37                  name          = 'department_id',
38                  style         = 'width: 250px',
39                  DATA          = ALL_DEPARTMENTS,
40                  id_key        = 'id',
41                  label_key     = 'description',
42                  limit         = vclimit,
43                  show_empty    = 1,
44                  allow_textbox = 1,
45             -%]
46      </td>
47     </tr>
48 [%- END %]
49     <tr>
50      <th align="right">[% HTML.escape(ordlabel) %]</th>
51      <td colspan="3"><input name="[% HTML.escape(ordnrname) %]" style="width: 250px"></td>
52     </tr>
53     <tr>
54      <th align="right">Bearbeiter</th>
55      <td>
56             [%- INCLUDE 'generic/multibox.html'
57                  name          = 'employee_id',
58                  style         = 'width: 250px',
59                  DATA          =  ALL_EMPLOYEES,
60                  id_key        = 'id',
61                  label_sub     = 'employee_labels',
62                  limit         = vclimit,
63                  show_empty    = 1,
64                  allow_textbox = 0,
65                  default       = ' ',
66             -%]
67      </td>
68     </tr>
69     <tr>
70      <th align="right">Verkäufer/in</th>
71      <td>
72             [%- INCLUDE 'generic/multibox.html'
73                  name          = 'salesman_id',
74                  style         = 'width: 250px',
75                  DATA          =  ALL_SALESMEN,
76                  id_key        = 'id',
77                  label_sub     = 'salesman_labels',
78                  limit         = vclimit,
79                  show_empty    = 1,
80                  allow_textbox = 0,
81             -%]
82      </td>
83     </tr>
84     <tr>
85      <th align="right">Vorgangsbezeichnung</th>
86      <td colspan="3"><input name="transaction_description" style="width: 250px"></td>
87     </tr>
88     <tr>
89      <th align="right">Projektnummer</th>
90      <td colspan="3">
91             [%- INCLUDE 'generic/multibox.html'
92                  name          =  vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id',
93                  style         = "width: 250px",
94                  DATA          =  ALL_PROJECTS,
95                  id_key        = 'id',
96                  label_key     = 'projectnumber',
97                  limit         = vclimit,
98                  show_empty    = 1,
99                  allow_textbox = 1,
100             -%]
101      </td>
102     </tr>
103     <tr>
104      <th align="right">[% IF is_order %][% 'Order Date' | $T8 %][% ELSE %][% 'Quotation Date' | $T8 %][% END %] [% 'From' | $T8 %]</th>
105      <td>
106       <input name="transdatefrom" id="transdatefrom" size="11" title="[% dateformat | html %]" onBlur="check_right_date_format(this)">
107       <input type="button" name="transdatefrom" id="trigger3" value="?">
108      </td>
109      <th align="right">bis</th>
110      <td>
111       <input name="transdateto" id="transdateto" size="11" title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
112       <input type="button" name="transdateto" name="transdateto" id="trigger4" value="?">
113      </td>
114     </tr>
115     <tr>
116      <th align="right">[% IF is_order %][% 'Delivery Date' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %] [% 'From' | $T8 %]</th>
117      <td>
118       <input name=reqdatefrom id=reqdatefrom size=11 title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
119       <input type=button name=reqdatefrom id="trigger5" value=?>
120      </td>
121      <th align="right">bis</th>
122      <td>
123       <input name=reqdateto id=reqdateto size=11 title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
124       <input type=button name=reqdateto name=reqdateto id="trigger6" value=?>
125      </td>
126     </tr>
127     <tr>
128      <th align="right">In Bericht aufnehmen</th>
129      <td colspan="5">
130       <table>
131        <tr>
132         <td>
133          <input type="checkbox" name="open" value="1" id="open" checked>
134          <label for="open">Offen</label>
135         </td>
136         <td>
137          <input type="checkbox" name="closed" value="1" id="closed">
138          <label for="closed">Geschlossen</label>
139         </td>
140        </tr>
141 [%- IF type == 'sales_order' OR type == 'purchase_order' %]
142        <tr>
143         <td>
144          <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
145          <label for="notdelivered">Nicht geliefert</label>
146         </td>
147         <td>
148          <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
149          <label for="delivered">Geliefert</label>
150         </td>
151        </tr>
152 [%- END %]
153        <tr>
154         <td>
155          <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
156          <label for="l_id">Buchungsnummer</label>
157         </td>
158         <td>
159          <input name="l_[% HTML.escape(ordnrname) %]" id="l_[% HTML.escape(ordnrname) %]" class="checkbox" type="checkbox" value="Y" checked>
160          <label for="l_[% HTML.escape(ordnrname) %]">[% HTML.escape(ordlabel) %]</label>
161         </td>
162        </tr>
163        <tr>
164         <td>
165          <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
166          <label for="l_transdate">Datum</label>
167         </td>
168         <td>
169          <input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
170          <label for="l_reqdate">[% IF is_order %][% 'Required by' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %]</label>
171         </td>
172        </tr>
173        <tr>
174         <td>
175          <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
176          <label for="l_name">[% HTML.escape(vclabel) %]
177         </td>
178         <td>
179          <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
180          <label for="l_employee">Bearbeiter</label>
181         </td>
182         <td>
183          <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
184          <label for="l_shipvia">Transportmittel</label>
185         </td>
186        </tr>
187        <tr>
188         <td>
189          <input name="l_netamount" id="l_netamount" class="checkbox" type="checkbox" value="Y">
190          <label for="l_netamount">Betrag</label>
191         </td>
192         <td>
193          <input name="l_tax" id="l_tax" class="checkbox" type="checkbox" value="Y">
194          <label for="l_tax">Steuer</label>
195         </td>
196         <td>
197          <input name="l_amount" id="l_amount" class="checkbox" type="checkbox" value="Y" checked>
198          <label for="l_amount">Summe</label>
199         </td>
200        </tr>
201        <tr>
202         <td>
203          <input name="l_marge_total" id="l_marge_total" class="checkbox" type="checkbox" value="Y">
204          <label for="l_marge_total">Ertrag</label>
205         </td>
206         <td>
207          <input name="l_marge_percent" id="l_marge_percent" class="checkbox" type="checkbox" value="Y">
208          <label for="l_marge_percent">Ertrag prozentual</label>
209         </td>
210        </tr>
211        <tr>
212         <td>
213          <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
214          <label for="l_globalprojectnumber">Projektnummer</label>
215         </td>
216         <td>
217          <input name="l_transaction_description" id="l_transaction_description" class="checkbox" type="checkbox" value="Y">
218          <label for="l_transaction_description">Vorgangsbezeichnung</label>
219         </td>
220        </tr>
221        <tr>
222         <td>
223          <input name="l_subtotal" id="l_subtotal" class="checkbox" type="checkbox" value="Y">
224          <label for="l_subtotal">Zwischensumme</label>
225         </td>
226         <td>
227          <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
228          <label for="l_salesman">Verkäufer/in</label>
229         </td>
230        </tr>
231        <tr>
232         <td colspan=4 align=left><b>[% HTML.escape(vclabel) %]</td>
233        </tr>
234        <tr>
235         <td>
236          <input name="l_vcnumber" id="l_vcnumber" class="checkbox" type="checkbox" value="Y">
237          <label for="l_vcnumber">[% HTML.escape(vcnumberlabel) %]</label>
238         </td>
239         <td>
240          <input name="l_country" id="l_country" class="checkbox" type="checkbox" value="Y">
241          <label for="l_country">Land</label>
242         </td>
243         <td>
244          <input name="l_ustid"  id="l_ustid" class="checkbox" type="checkbox" value="Y">
245          <label for="l_ustid">USt-IdNr.</label>
246         </td>
247        </tr>
248 [%- IF type == 'sales_order' %]
249        <tr><td colspan="3"><hr></td></tr>
250 [%- END %]
251       </table>
252      </td>
253     </tr>
254    </table>
255   </td>
256  </tr>
257 </table>
258
259 <script type="text/javascript">
260  <!--
261    Calendar.setup({ inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger3" });
262    Calendar.setup({ inputField : "transdateto",   ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger4" });
263    Calendar.setup({ inputField : "reqdatefrom",   ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger5" });
264    Calendar.setup({ inputField : "reqdateto",     ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger6" });
265  //-->
266 </script>
267
268 <br>
269 <input type="hidden" name="nextsub" value="orders">
270 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
271 <input type="hidden" name="type" value="[% HTML.escape(type) %]">
272 <input class="submit" type="submit" name="action" value="Weiter">
273 </form>
274
275 </body>
276 </html>