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