Autoconpletion für Kunden in Lieferscheinen.
[kivitendo-erp.git] / templates / webpages / do / search_de.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 %]Kunde[% ELSE %]Lieferant[% END %]</th>
33      <td colspan="3">
34       [%- UNLESS SHOW_VC_DROP_DOWN %]
35       <input type="text" name="[% HTML.escape(vc) %]" class="fixed_width">
36 [% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
37   { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
38 ]
39 %]
40       [%- ELSE %]
41       <select name="[% vc %]" class="fixed_width">
42        <option></option>
43        [%- FOREACH row = ALL_VC %]
44        <option>[% HTML.escape(row.name) %]--[% HTML.escape(row.id) %]</option>
45        [%- END %]
46       </select>
47       <input type="hidden" name="select[% vc %]" value="1">
48       [%- END %]
49      </td>
50     </tr>
51
52     <tr>
53      <th align="right">Lieferscheinnummer</th>
54      <td colspan="3"><input name="donumber" class="fixed_width"></td>
55     </tr>
56
57     <tr>
58      <th align="right">Auftragsnummer</th>
59      <td colspan="3"><input name="ordnumber" class="fixed_width"></td>
60     </tr>
61
62     [%- IF ALL_DEPARTMENTS.size %]
63     <tr>
64      <th align="right" nowrap>Abteilung</th>
65      <td colspan="3">
66       <select name="department" class="fixed_width">
67        <option></option>
68        [%- FOREACH row = ALL_DEPARTMENTS %]
69        <option[% IF department == row.value %] selected[% END %]>[% HTML.escape(row.description) %]--[% HTML.escape(row.id) %]</option>
70        [%- END %]
71       </select>
72      </td>
73     </tr>
74     [%- END %]
75
76     <tr>
77      <th align="right">Bearbeiter</th>
78      <td>
79       <select name="employee_id" class="fixed_width">
80        <option></option>
81        [%- FOREACH row = ALL_EMPLOYEES %]
82        <option value="[% HTML.escape(row.id) %]">[% IF row.name %][% HTML.escape(row.name) %][% ELSE %][% HTML.escape(row.login) %][% END %]</option>
83        [%- END %]
84       </select>
85      </td>
86     </tr>
87
88     [%- IF is_customer %]
89     <tr>
90      <th align="right">Verkäufer/in</th>
91      <td>
92       <select name="salesman_id" class="fixed_width">
93        <option></option>
94        [%- FOREACH row = ALL_SALESMEN %]
95        <option value="[% HTML.escape(row.id) %]">[% IF row.name %][% HTML.escape(row.name) %][% ELSE %][% HTML.escape(row.login) %][% END %]</option>
96        [%- END %]
97       </select>
98      </td>
99     </tr>
100     [%- END %]
101
102     <tr>
103      <th align="right">Vorgangsbezeichnung</th>
104      <td colspan="3"><input name="transaction_description" class="fixed_width"></td>
105     </tr>
106
107     <tr>
108      <th align="right">Bestellnummer des Kunden</th>
109      <td colspan="3"><input name="cusordnumber" class="fixed_width"></td>
110     </tr>
111
112     <tr>
113      <th align="right">Projektnummer</th>
114      <td colspan="3">
115       <select name="project_id" class="fixed_width">
116        <option></option>
117        [%- FOREACH row = ALL_PROJECTS %]
118        <option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.projectnumber) %]</option>
119        [%- END %]
120       </select>
121      </td>
122     </tr>
123
124     <tr>
125      <th align="right">Von</th>
126      <td>
127       <input name="transdatefrom" id="transdatefrom" size="11" title="[% myconfig_dateformat %]" onBlur="check_right_date_format(this)">
128       <input type="button" name="transdatefrom_button" id="transdatefrom_trigger" value="?">
129      </td>
130      <th align="right">bis</th>
131      <td>
132       <input name="transdateto" id="transdateto" size="11" title="[% myconfig_dateformat %]" onBlur="check_right_date_format(this)">
133       <input type="button" name="transdateto_button" id="transdateto_trigger" value="?">
134      </td>
135     </tr>
136
137     <tr>
138      <th align="right">In Bericht aufnehmen</th>
139      <td colspan="5">
140       <table>
141        <tr>
142         <td>
143          <input type="checkbox" name="open" value="1" id="open" checked>
144          <label for="open">Offen</label>
145         </td>
146         <td>
147          <input type="checkbox" name="closed" value="1" id="closed">
148          <label for="closed">Geschlossen</label>
149         </td>
150        </tr>
151
152        <tr>
153         <td>
154          <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
155          <label for="notdelivered">Nicht geliefert</label>
156         </td>
157         <td>
158          <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
159          <label for="delivered">Geliefert</label></td>
160        </tr>
161
162        <tr>
163         <td>
164          <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
165          <label for="l_id">Buchungsnummer</label>
166         </td>
167
168         <td>
169          <input name="l_donumber" id="l_donumber" class="checkbox" type="checkbox" value="Y" checked>
170          <label for="l_donumber">Lieferscheinnummer</label>
171         </td>
172        </tr>
173
174        <tr>
175         <td>
176          <input name="l_ordnumber" id="l_ordnumber" class="checkbox" type="checkbox" value="Y" checked>
177          <label for="l_ordnumber">Auftragsnummer</label>
178         </td>
179
180         <td>
181          <input name="l_cusordnumber" id="l_cusordnumber" class="checkbox" type="checkbox" value="Y">
182          <label for="l_cusordnumber">Bestellnummer des Kunden</label>
183         </td>
184        </tr>
185
186        <tr>
187         <td>
188          <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
189          <label for="l_transdate">Datum</label>
190         </td>
191
192         <td>
193          <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
194          <label for="l_name">[% IF is_customer %]Kunde[% ELSE %]Lieferant[% END %]</label>
195         </td>
196        </tr>
197
198        <tr>
199         <td>
200          <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
201          <label for="l_employee">Bearbeiter</label>
202         </td>
203
204         <td>
205          <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
206          <label for="l_salesman">Verkäufer/in</label>
207         </td>
208
209         <td>
210          <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
211          <label for="l_shipvia">Transportmittel</label>
212         </td>
213        </tr>
214
215        <tr>
216         <td>
217          <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
218          <label for="l_globalprojectnumber">Projektnummer</label>
219         </td>
220
221         <td>
222          <input name="l_transaction_description" id="l_transaction_description" class="checkbox" type="checkbox" value="Y">
223          <label for="l_transaction_description">Vorgangsbezeichnung</label>
224         </td>
225        </tr>
226
227       </table>
228      </td>
229     </tr>
230    </table>
231   </p>
232
233   <hr size="3" noshade>
234
235   <p>
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
240    <input class="submit" type="submit" name="action" value="Weiter">
241   </p>
242  </form>
243
244 </body>
245 </html>
246