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