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