SL::Template::Plugin::L::select_tag und SL::Template::Plugin::L::options_for_select...
[kivitendo-erp.git] / templates / webpages / ct / search.html
1 [%- USE T8 %]
2 [%- USE L %]
3 [% USE HTML %]<body onload="fokus()">
4
5  <form method="post" action="ct.pl" name="Form">
6
7   <input type="hidden" name="db" value="[% HTML.escape(db) %]">
8
9   <div class="listtop">[% title %]</div>
10
11   <table>
12    <tr>
13     <th align="right" nowrap>[% IF IS_CUSTOMER %][% 'Customer Number' | $T8 %][% ELSE %][% 'Vendor Number' | $T8 %][% END %]</th>
14     <td><input name="[% IF IS_CUSTOMER %]customer[% ELSE %]vendor[% END %]number" size="35"></td>
15    </tr>
16
17    <tr>
18     <th align="right" nowrap>[% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][%- ELSE %][% 'Vendor Name' | $T8 %][%- END %]</th>
19     <td><input name="name" size="35"></td>
20    </tr>
21
22    <tr>
23     <th align="right" nowrap>[% 'Contact' | $T8 %]</th>
24     <td><input name="contact" size="35"></td>
25    </tr>
26
27    <tr>
28     <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
29     <td><input name="email" size="35"></td>
30    </tr>
31    <tr>
32     <th align="right" nowrap>[% 'Contact person (surname)' | $T8 %]</th>
33     <td><input name="cp_name" size="35"></td>
34    </tr>
35    </tr>
36     <th align="right" nowrap>[% 'Billing/shipping address (street)' | $T8 %]</th>
37     <td><input name="addr_street" size="35"></td>
38    </tr>
39  <tr>
40     <th align="right" nowrap>[% 'Billing/shipping address (zipcode)' | $T8 %]</th>
41     <td><input name="addr_zipcode" size="35"></td>
42  </tr>
43    <tr>
44     <th align="right" nowrap>[% 'Billing/shipping address (city)' | $T8 %]</th>
45     <td><input name="addr_city" size="35"></td>
46    </tr>
47    [% IF SHOW_BUSINESS_TYPES %]
48    <tr>
49     <th align="right" nowrap>[% IF IS_CUSTOMER %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</th>
50     <td>
51      [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1) %]
52     </td>
53    </tr>
54    [% END %]
55
56    [% CUSTOM_VARIABLES_FILTER_CODE %]
57
58    <tr>
59     <td></td>
60     <td>
61      <input name="status" class="radio" type="radio" value="all" checked> [% 'All' | $T8 %]
62      <input name="status" class="radio" type="radio" value="orphaned"> [% 'Orphaned' | $T8 %]
63     </td>
64    </tr>
65
66    <tr>
67     <td></td>
68     <td><input name="obsolete" class="radio" type="radio" value="all"> [% 'All' | $T8 %]
69      <input name="obsolete" class="radio" type="radio" value="Y"> [% 'Obsolete' | $T8 %]
70      <input name="obsolete" class="radio" type="radio" value="N" checked> [% 'Not obsolete' | $T8 %]
71     </td>
72    </tr>
73
74    <tr>
75     <th align="right" nowrap>[% 'Include in Report' | $T8 %]</th>
76     <td>
77      <table border="0">
78       <tr>
79        <td>
80         <input name="l_id" id="l_id" type="checkbox" class="checkbox" value="Y">
81         <label for="l_id">[% 'ID' | $T8 %]</label>
82        </td>
83        <td>
84         <input name="l_[% db %]number" id="l_[% db %]number" type="checkbox" class="checkbox" value="Y" checked>
85         <label for="l_[% db %]number">[% IF IS_CUSTOMER %][% 'Customer Number' | $T8 %][% ELSE %][% 'Vendor Number' | $T8 %][% END %]</label>
86        </td>
87        <td>
88         <input name="l_name" id="l_name" type="checkbox" class="checkbox" value="Y" checked>
89         <label for="l_name">[% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][%- ELSE %][% 'Vendor Name' | $T8 %][%- END %]</label>
90        </td>
91        <td>
92         <input name="l_street" id="l_street" type="checkbox" class="checkbox" value="Y" checked>
93         <label for="l_street">[% 'Street' | $T8 %]</label>
94        </td>
95       </tr>
96
97       <tr>
98        <td>
99         <input name="l_contact" id="l_contact" type="checkbox" class="checkbox" value="Y" checked>
100         <label for="l_contact">[% 'Contact' | $T8 %]</label>
101        </td>
102        <td>
103         <input name="l_phone" id="l_phone" type="checkbox" class="checkbox" value="Y" checked>
104         <label for="l_phone">[% 'Phone' | $T8 %]</label>
105        </td>
106        <td>
107         <input name="l_fax" id="l_fax" type="checkbox" class="checkbox" value="Y">
108         <label for="l_fax">[% 'Fax' | $T8 %]</label>
109        </td>
110        <td>
111         <input name="l_zipcode" id="l_zipcode" type="checkbox" class="checkbox" value="Y" checked>
112         <label for="l_zipcode">[% 'Zipcode' | $T8 %]</label>
113        </td>
114       </tr>
115
116       <tr>
117        <td>
118         <input name="l_taxnumber" id="l_taxnumber" type="checkbox" class="checkbox" value="Y">
119         <label for="l_taxnumber">[% 'Tax Number' | $T8 %]</label>
120        </td>
121        <td>
122         <input name="l_email" id="l_email" type="checkbox" class="checkbox" value="Y" checked>
123         <label for="l_email">[% 'E-mail' | $T8 %]</label>
124        </td>
125        <td>
126         <input name="l_business" id="l_business" type="checkbox" class="checkbox" value="Y">
127         <label for="l_business">[% IF IS_CUSTOMER %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</label>
128        </td>
129        <td>
130         <input name="l_city" id="l_city" type="checkbox" class="checkbox" value="Y" checked>
131         <label for="l_city">[% 'City' | $T8 %]</label>
132       </td>
133       </tr>
134
135       <tr>
136        <td>
137         <input name="l_invnumber" id="l_invnumber" type="checkbox" class="checkbox" value="Y">
138         <label for="l_invnumber">[% 'Invoices' | $T8 %]</label>
139        </td>
140        <td>
141         <input name="l_ordnumber" id="l_ordnumber" type="checkbox" class="checkbox" value="Y">
142         <label for="l_ordnumber">[% IF IS_CUSTOMER %][% 'Sales Orders' | $T8 %][% ELSE %][% 'Purchase Orders' | $T8 %][% END %]</label>
143        </td>
144        <td>
145         <input name="l_quonumber" id="l_quonumber" type="checkbox" class="checkbox" value="Y">
146         <label for="l_quonumber">[% IF IS_CUSTOMER %][% 'Quotations' | $T8 %][% ELSE %][% 'RFQs' | $T8 %][% END %]</label>
147        </td>
148        <td>
149        </td>
150       </tr>
151
152       [% CUSTOM_VARIABLES_INCLUSION_CODE %]
153
154      </table>
155     </td>
156    </tr>
157   </table>
158
159   <input type="hidden" name="nextsub" value="list_names">
160
161   <input type="submit" class="submit" name="action" value="[% 'Continue' | $T8 %]">
162  </form>
163
164 </body>
165 </html>