Lieferschein: Bei der Maske zum Auslagern automatisch die Lieferscheinmenge eintragen...
[kivitendo-erp.git] / templates / webpages / do / search_master.html
1 [% USE HTML %][% USE LxERP %]<body onload="on_load();">
2
3  [%- IF vc == 'customer' %]
4  [%- SET is_customer = '1' %]
5  [%- ELSE %]
6  [%- SET is_customer = '0' %]
7  [%- END %]
8
9  <script type="text/javascript">
10   <!--
11       function on_load() {
12         Calendar.setup({ inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "transdatefrom_trigger" });
13         Calendar.setup({ inputField : "transdateto",   ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "transdateto_trigger" });
14         document.Form.donumber.focus();
15       }
16     -->
17  </script>
18
19  <style type="text/css">
20   .fixed_width {
21     width: 250px;
22   }
23  </style>
24
25  <form method="post" action="do.pl" name="Form">
26
27   <div class="listtop">[% title %]</div>
28
29   <p>
30    <table>
31     <tr>
32      <th align="right">[% IF is_customer %]<translate>Customer</translate>[% ELSE %]<translate>Vendor</translate>[% END %]</th>
33      <td colspan="3">
34       [%- UNLESS SHOW_VC_DROP_DOWN %]
35       <input type="text" name="[% HTML.escape(vc) %]" class="fixed_width">
36       [%- ELSE %]
37       <select name="[% vc %]" class="fixed_width">
38        <option></option>
39        [%- FOREACH row = ALL_VC %]
40        <option>[% HTML.escape(row.name) %]--[% HTML.escape(row.id) %]</option>
41        [%- END %]
42       </select>
43       <input type="hidden" name="select[% vc %]" value="1">
44       [%- END %]
45      </td>
46     </tr>
47
48     <tr>
49      <th align="right"><translate>Delivery Order Number</translate></th>
50      <td colspan="3"><input name="donumber" class="fixed_width"></td>
51     </tr>
52
53     <tr>
54      <th align="right"><translate>Order Number</translate></th>
55      <td colspan="3"><input name="ordnumber" class="fixed_width"></td>
56     </tr>
57
58     [%- IF ALL_DEPARTMENTS.size %]
59     <tr>
60      <th align="right" nowrap><translate>Department</translate></th>
61      <td colspan="3">
62       <select name="department" class="fixed_width">
63        <option></option>
64        [%- FOREACH row = ALL_DEPARTMENTS %]
65        <option[% IF department == row.value %] selected[% END %]>[% HTML.escape(row.description) %]--[% HTML.escape(row.id) %]</option>
66        [%- END %]
67       </select>
68      </td>
69     </tr>
70     [%- END %]
71
72     <tr>
73      <th align="right"><translate>Employee</translate></th>
74      <td>
75       <select name="employee_id" class="fixed_width">
76        <option></option>
77        [%- FOREACH row = ALL_EMPLOYEES %]
78        <option value="[% HTML.escape(row.id) %]">[% IF row.name %][% HTML.escape(row.name) %][% ELSE %][% HTML.escape(row.login) %][% END %]</option>
79        [%- END %]
80       </select>
81      </td>
82     </tr>
83
84     [%- IF is_customer %]
85     <tr>
86      <th align="right"><translate>Salesman</translate></th>
87      <td>
88       <select name="salesman_id" class="fixed_width">
89        <option></option>
90        [%- FOREACH row = ALL_SALESMEN %]
91        <option value="[% HTML.escape(row.id) %]">[% IF row.name %][% HTML.escape(row.name) %][% ELSE %][% HTML.escape(row.login) %][% END %]</option>
92        [%- END %]
93       </select>
94      </td>
95     </tr>
96     [%- END %]
97
98     <tr>
99      <th align="right"><translate>Transaction description</translate></th>
100      <td colspan="3"><input name="transaction_description" class="fixed_width"></td>
101     </tr>
102
103     <tr>
104      <th align="right"><translate>Customer Order Number</translate></th>
105      <td colspan="3"><input name="cusordnumber" class="fixed_width"></td>
106     </tr>
107
108     <tr>
109      <th align="right"><translate>Project Number</translate></th>
110      <td colspan="3">
111       <select name="project_id" class="fixed_width">
112        <option></option>
113        [%- FOREACH row = ALL_PROJECTS %]
114        <option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.projectnumber) %]</option>
115        [%- END %]
116       </select>
117      </td>
118     </tr>
119
120     <tr>
121      <th align="right"><translate>From</translate></th>
122      <td>
123       <input name="transdatefrom" id="transdatefrom" size="11" title="[% myconfig_dateformat %]" onBlur="check_right_date_format(this)">
124       <input type="button" name="transdatefrom_button" id="transdatefrom_trigger" value="?">
125      </td>
126      <th align="right"><translate>Bis</translate></th>
127      <td>
128       <input name="transdateto" id="transdateto" size="11" title="[% myconfig_dateformat %]" onBlur="check_right_date_format(this)">
129       <input type="button" name="transdateto_button" id="transdateto_trigger" value="?">
130      </td>
131     </tr>
132
133     <tr>
134      <th align="right"><translate>Include in Report</translate></th>
135      <td colspan="5">
136       <table>
137        <tr>
138         <td>
139          <input type="checkbox" name="open" value="1" id="open" checked>
140          <label for="open"><translate>Open</translate></label>
141         </td>
142         <td>
143          <input type="checkbox" name="closed" value="1" id="closed">
144          <label for="closed"><translate>Closed</translate></label>
145         </td>
146        </tr>
147
148        <tr>
149         <td>
150          <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
151          <label for="notdelivered"><translate>Not delivered</translate></label>
152         </td>
153         <td>
154          <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
155          <label for="delivered"><translate>Delivered</translate></label></td>
156        </tr>
157
158        <tr>
159         <td>
160          <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
161          <label for="l_id"><translate>ID</translate></label>
162         </td>
163
164         <td>
165          <input name="l_donumber" id="l_donumber" class="checkbox" type="checkbox" value="Y" checked>
166          <label for="l_donumber"><translate>Delivery Order Number</translate></label>
167         </td>
168        </tr>
169
170        <tr>
171         <td>
172          <input name="l_ordnumber" id="l_ordnumber" class="checkbox" type="checkbox" value="Y" checked>
173          <label for="l_ordnumber"><translate>Order Number</translate></label>
174         </td>
175
176         <td>
177          <input name="l_cusordnumber" id="l_cusordnumber" class="checkbox" type="checkbox" value="Y">
178          <label for="l_cusordnumber"><translate>Customer Order Number</translate></label>
179         </td>
180        </tr>
181
182        <tr>
183         <td>
184          <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
185          <label for="l_transdate"><translate>Date</translate></label>
186         </td>
187
188         <td>
189          <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
190          <label for="l_name">[% IF is_customer %]<translate>Customer</translate>[% ELSE %]<translate>Vendor</translate>[% END %]</label>
191         </td>
192        </tr>
193
194        <tr>
195         <td>
196          <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
197          <label for="l_employee"><translate>Employee</translate></label>
198         </td>
199
200         <td>
201          <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
202          <label for="l_salesman"><translate>Salesman</translate></label>
203         </td>
204
205         <td>
206          <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
207          <label for="l_shipvia"><translate>Ship via</translate></label>
208         </td>
209        </tr>
210
211        <tr>
212         <td>
213          <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
214          <label for="l_globalprojectnumber"><translate>Project Number</translate></label>
215         </td>
216
217         <td>
218          <input name="l_transaction_description" id="l_transaction_description" class="checkbox" type="checkbox" value="Y">
219          <label for="l_transaction_description"><translate>Transaction description</translate></label>
220         </td>
221        </tr>
222
223       </table>
224      </td>
225     </tr>
226    </table>
227   </p>
228
229   <hr size="3" noshade>
230
231   <p>
232    <input type="hidden" name="nextsub" value="orders">
233    <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
234    <input type="hidden" name="type" value="[% HTML.escape(type) %]">
235
236    <input class="submit" type="submit" name="action" value="<translate>Continue</translate>">
237   </p>
238  </form>
239
240 </body>
241 </html>
242