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