javascript in den footer verschoben
[kivitendo-erp.git] / templates / webpages / ar / search.html
1 [%- USE T8 %]
2 <body>
3
4  <form method=post name="search" action=[% script %]>
5
6   <table width=100% border="0">
7   <tr><th class=listtop>[% title %]</th></tr>
8   <tr height="5"></tr>
9   <tr>
10    <td>
11     <table>
12      <tr>
13       <th align=right>[% 'Customer' | $T8 %]</th>
14       <td colspan=3>
15             [%- INCLUDE 'generic/multibox.html'
16                  name          = 'customer',
17                  default       = oldcustomer,
18                  style         = 'width: 250px',
19                  DATA          = ALL_VC,
20                  id_sub        = 'vc_keys',
21                  label_key     = 'name',
22                  select        = vc_select,
23                  limit         = vclimit,
24                  show_empty    = 1,
25                  allow_textbox = 1,
26                  -%]
27       </td>
28      </tr>
29      <tr>
30       <th align=right nowrap>[% 'Department' | $T8 %]</th>
31       <td>
32             [%- INCLUDE 'generic/multibox.html'
33                  name          = 'department',
34                  select_name   = 'department_id',
35                  style         = 'width: 250px',
36                  DATA          = ALL_DEPARTMENTS,
37                  id_key        = 'id',
38                  label_key     = 'description',
39                  show_empty    = 1,
40                  allow_textbox = 0,
41             -%]
42       </td>
43      </tr>
44      <tr>
45       <th align=right nowrap>[% 'Invoice Number' | $T8 %]</th>
46       <td colspan=3><input name=invnumber size=20></td>
47      </tr>
48      <tr>
49       <th align=right nowrap>[% 'Order Number' | $T8 %]</th>
50       <td colspan=3><input name=ordnumber size=20></td>
51      </tr>
52      <tr>
53       <th align="right">[% 'Employee' | $T8 %]</th>
54       <td>
55              [%- INCLUDE 'generic/multibox.html'
56                   name          = 'employee_id',
57                   style         = 'width: 250px',
58                   DATA          =  ALL_EMPLOYEES,
59                   id_key        = 'id',
60                   label_sub     = 'employee_labels',
61                   limit         = vclimit,
62                   show_empty    = 1,
63                   allow_textbox = 0,
64                   default       = ' ',
65              -%]
66       </td>
67      </tr>
68     <tr>
69      <th align="right">[% 'Salesman' | $T8 %]</th>
70      <td>
71             [%- INCLUDE 'generic/multibox.html'
72                  name          = 'salesman_id',
73                  style         = 'width: 250px',
74                  DATA          =  ALL_SALESMEN,
75                  id_key        = 'id',
76                  label_sub     = 'salesman_labels',
77                  limit         = vclimit,
78                  show_empty    = 1,
79                  allow_textbox = 0,
80             -%]
81      </td>
82      </tr>
83      <tr>
84       <th align=right nowrap>[% 'Transaction description' | $T8 %]</th>
85       <td colspan=3><input name=transaction_description size=40></td>
86      </tr>
87      <tr>
88       <th align=right nowrap>[% 'Notes' | $T8 %]</th>
89       <td colspan=3><input name=notes size=40></td>
90      </tr>
91      <tr>
92       <th align="right">[% 'Project Number' | $T8 %]</th>
93       <td colspan="3">
94             [%- INCLUDE 'generic/multibox.html'
95                  name          =  'project_id',
96                  style         = "width: 250px",
97                  DATA          =  ALL_PROJECTS,
98                  id_key        = 'id',
99                  label_key     = 'projectnumber',
100                  limit         = vclimit,
101                  show_empty    = 1,
102                  allow_textbox = 0,
103             -%]
104       </td>
105      </tr>
106     [% IF SHOW_BUSINESS_TYPES %]
107      <tr>
108       <th align="right" nowrap>[% 'Customer type' | $T8 %]</th>
109       <td colspan="3">
110           [%- INCLUDE 'generic/multibox.html'
111                  name          =  'business_id',
112                  style         = "width: 250px",
113                  DATA          =  ALL_BUSINESS_TYPES,
114                  id_key        = 'id',
115                  label_key     = 'description',
116                  limit         = vclimit,
117                  show_empty    = 1,
118                  allow_textbox = 0,
119             -%]
120       </td>
121      </tr>
122     [% END %]
123      <tr>
124       <th align=right nowrap>[% 'From' | $T8 %]</th>
125       <td>
126        <input name=transdatefrom id=transdatefrom size=11 title="[% dateformat | html %]" onBlur="check_right_date_format(this)">
127        <input type=button name=transdatefrom id="trigger1" value=[% 'button' | $T8 %]>
128       </td>
129      <th align=right>[% 'Bis' | $T8 %]</th>
130      <td>
131       <input name=transdateto id=transdateto size=11 title="[% dateformat | html %]" onBlur="check_right_date_format(this)">
132       <input type=button name=transdateto name=transdateto id="trigger2" value=[% 'button' | $T8 %]>
133      </td>
134     </tr>
135    <input type=hidden name=sort value=transdate>
136    </table>
137     </td>
138     </tr>
139     <tr>
140      <td>
141       <table>
142        <tr>
143         <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
144         <td>
145          <table width=100%>
146           <tr>
147            <td align=right><input name=open class=checkbox type=checkbox value=Y checked></td>
148            <td nowrap>[% 'Open' | $T8 %]</td>
149            <td align=right><input name=closed class=checkbox type=checkbox value=Y></td>
150            <td nowrap>[% 'Closed' | $T8 %]</td>
151           </tr>
152           <tr>
153            <td align=right><input name="l_id" class=checkbox type=checkbox value=Y></td>
154            <td nowrap>[% 'ID' | $T8 %]</td>
155            <td align=right><input name="l_invnumber" class=checkbox type=checkbox value=Y checked></td>
156            <td nowrap>[% 'Invoice Number' | $T8 %]</td>
157            <td align=right><input name="l_ordnumber" class=checkbox type=checkbox value=Y></td>
158            <td nowrap>[% 'Order Number' | $T8 %]</td>
159            <td align=right><input name="l_transdate" class=checkbox type=checkbox value=Y checked></td>
160            <td nowrap>[% 'Invoice Date' | $T8 %]</td>
161           </tr>
162           <tr>
163            <td align=right><input name="l_name" class=checkbox type=checkbox value=Y checked></td>
164            <td nowrap>[% 'Customer' | $T8 %]</td>
165            <td align=right><input name="l_netamount" class=checkbox type=checkbox value="Y" checked></td>
166            <td nowrap>[% 'Amount' | $T8 %]</td>
167            <td align=right><input name="l_tax" class=checkbox type=checkbox value=Y></td>
168            <td nowrap>[% 'Tax' | $T8 %]</td>
169            <td align=right><input name="l_amount" class=checkbox type=checkbox value="Y" checked></td>
170            <td nowrap>[% 'Total' | $T8 %]</td>
171           </tr>
172           <tr>
173            <td align=right><input name="l_datepaid" class=checkbox type=checkbox value=Y></td>
174            <td nowrap>[% 'Date Paid' | $T8 %]</td>
175            <td align=right><input name="l_paid" class=checkbox type=checkbox value=Y checked></td>
176            <td nowrap>[% 'Paid' | $T8 %]</td>
177            <td align=right><input name="l_duedate" class=checkbox type=checkbox value=Y></td>
178            <td nowrap>[% 'Due Date' | $T8 %]</td>
179            <td align=right><input name="l_due" class=checkbox type=checkbox value=Y></td>
180            <td nowrap>[% 'Amount Due' | $T8 %]</td>
181           </tr>
182           <tr>
183            <td align=right><input name="l_notes" class=checkbox type=checkbox value=Y></td>
184            <td nowrap>[% 'Notes' | $T8 %]</td>
185            <td align=right><input name="l_salesman" class=checkbox type=checkbox value=Y></td>
186            <td nowrap>[% 'Salesperson' | $T8 %]</td>
187            <td align=right><input name="l_shippingpoint" class=checkbox type=checkbox value=Y></td>
188            <td nowrap>[% 'Shipping Point' | $T8 %]</td>
189            <td align=right><input name="l_shipvia" class=checkbox type=checkbox value=Y></td>
190            <td nowrap>[% 'Ship via' | $T8 %]</td>
191           </tr>
192           <tr>
193            <td align=right><input name="l_marge_total" class=checkbox type=checkbox value=Y></td>
194            <td nowrap> [% 'Ertrag' | $T8 %]</td>
195            <td align=right><input name="l_marge_percent" class=checkbox type=checkbox value=Y></td>
196            <td nowrap> [% 'Ertrag prozentual' | $T8 %]</td>
197            <td align=right><input name="l_employee" class=checkbox type=checkbox value=Y></td>
198            <td nowrap>[% 'Employee' | $T8 %]</td>
199           </tr>
200           <tr>
201            <td align=right><input name="l_subtotal" class=checkbox type=checkbox value=Y></td>
202            <td nowrap>[% 'Subtotal' | $T8 %]</td>
203            <td align=right><input name="l_globalprojectnumber" class=checkbox type=checkbox value=Y></td>
204            <td nowrap>[% 'Document Project Number' | $T8 %]</td>
205            <td align=right><input name="l_transaction_description" class=checkbox type=checkbox value=Y></td>
206            <td nowrap>[% 'Transaction description' | $T8 %]</td>
207           </tr>
208           <tr>
209            <td colspan=4 align=left><b>[% 'Customer' | $T8 %] </td>
210           </tr>
211           <tr>
212            <td align=right><input name="l_customernumber" class=checkbox type=checkbox value=Y></td>
213            <td nowrap>[% 'Customer Number' | $T8 %]</td>
214            <td align=right><input name="l_country" class=checkbox type=checkbox value=Y></td>
215            <td nowrap>[% 'Country' | $T8 %]</td>
216            <td align=right><input name="l_ustid" class=checkbox type=checkbox value=Y></td>
217            <td nowrap>[% 'USt-IdNr.' | $T8 %]</td>
218            <td align=right><input name="l_taxzone" class=checkbox type=checkbox value=Y></td>
219            <td nowrap>[% 'Steuersatz' | $T8 %]</td>
220           </tr>
221           <tr>
222            <td align=right><input name="l_payment_terms" class=checkbox type=checkbox value=Y></td>
223            <td nowrap>[% 'Payment Terms' | $T8 %]</td>
224            <td align=right><input name="l_charts" class=checkbox type=checkbox value=Y></td>
225            <td nowrap>[% 'Buchungskonto' | $T8 %]</td>
226           </tr>
227          </table>
228         </td>
229        </tr>
230       </table>
231      </td>
232     </tr>
233     <tr>
234      <td><hr size=3 noshade></td>
235     </tr>
236    </table>
237    <input type=hidden name=nextsub value=[% nextsub %]>
238    <br>
239    <input class=submit type=submit name=action value="[% 'Continue' | $T8 %]">
240   </form>
241  <script type="text/javascript">
242  <!--
243    Calendar.setup( { inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger1" });
244    Calendar.setup( { inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" });
245    $(document).ready(function(){
246     $('customer').focus();
247     setupDateFormat('[% dateformat | html %]','[% 'Falsches Datumsformat!' | $T8 %]');
248     setupPoints('[% numberformat | html %]','[% 'wrongformat' | $T8 %]');
249    })
250  //-->
251  </script>
252  </body>
253 </html>