Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3fc38171

Von Andreas Rudin vor etwa 6 Jahren hinzugefügt

  • ID 3fc381717c5e7f0f657f604880fac7b7be4e492b
  • Vorgänger 9439c4f2
  • Nachfolger a58ef474

HP Aenderungen bis Oktober 2018

Unterschiede anzeigen:

templates/webpages/ct/search.html
1 1
[% USE T8 %]
2 2
[% USE L %]
3
[% USE HTML %] 
3
[% USE HTML %]
4 4

  
5 5
<h1>[% title %]</h1>
6 6

  
......
8 8
<input type="hidden" name="db" value="[% HTML.escape(db) %]">
9 9

  
10 10
<div class="wrapper">
11
 
11

  
12 12
    <table class="tbl-horizontal">
13 13
      <caption> [% 'Customer & Contact' | $T8 %] </caption>
14 14
      <tbody>
15 15
        <tr>
16
          <th> [% IF IS_CUSTOMER %][% 'Customer Number' | $T8 %][% ELSE %][% 'Vendor Number' | $T8 %][% END %] </th>
17
          <td> 
18
          <input type="text" name="[% IF IS_CUSTOMER %]customer[% ELSE %]vendor[% END %]number">
19
          </td>
16
          <th>[% IF IS_CUSTOMER %][% 'Customer Number' | $T8 %][% ELSE %][% 'Vendor Number' | $T8 %][% END %] </th>
17
          <td><input type="text" name="[% IF IS_CUSTOMER %]customer[% ELSE %]vendor[% END %]number" class="wi-normal"></td>
20 18
        </tr>
21 19
        <tr>
22
          <th> [% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][% ELSE %][% 'Vendor Name' | $T8 %][% END %] </th>
23
          <td> 
24
          <input type="text" id="name" name="name" class="initial_focus wi-normal">
25
          </td>
20
          <th>[% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][% ELSE %][% 'Vendor Name' | $T8 %][% END %] </th>
21
          <td><input type="text" id="name" name="name" class="initial_focus wi-normal"></td>
26 22
        </tr>
27 23
        <tr>
28
          <th> [% 'Contact' | $T8 %] </th>
29
          <td> 
30
          <input type="text" name="contact" class="wi-normal">
31
          </td>
24
          <th>[% 'Contact' | $T8 %] </th>
25
          <td><input type="text" name="contact" class="wi-normal"></td>
32 26
        </tr>
33 27
        <tr>
34
          <th> [% 'Contact person (surname)' | $T8 %] </th>
35
          <td> 
36
          <input type="text" name="cp_name" class="wi-normal">
37
          </td>
28
          <th>[% 'Contact person (surname)' | $T8 %] </th>
29
          <td><input type="text" name="cp_name" class="wi-normal"></td>
38 30
        </tr>
39 31
        <tr>
40
          <th> [% 'E-mail' | $T8 %] </th>
41
          <td> 
42
          <input type="text" name="email" class="wi-normal">
43
          </td>
32
          <th>[% 'E-mail' | $T8 %] </th>
33
          <td><input type="text" name="email" class="wi-normal"></td>
44 34
        </tr>
45 35
      </tbody>
46 36
    </table>
47
 
37

  
48 38
    <table class="tbl-horizontal">
49 39
      <caption> [% 'Billing/shipping address' | $T8 %] </caption>
50 40
      <tbody>
51 41
        <tr>
52
          <th> [% 'Street' | $T8 %] </th>
53
          <td> 
54
          <input type="text" name="addr_street" class="wi-normal">
55
          </td>
42
          <th>[% 'Street' | $T8 %] </th>
43
          <td><input type="text" name="addr_street" class="wi-normal"></td>
56 44
        </tr>
57 45
        <tr>
58
          <th> [% 'ZIPcode' | $T8 %] </th>
59
          <td> 
60
          <input type="text" name="addr_zipcode" class="wi-normal">
61
          </td>
46
          <th>[% 'ZIPcode' | $T8 %] </th>
47
          <td><input type="text" name="addr_zipcode" class="wi-normal"></td>
62 48
        </tr>
63 49
        <tr>
64
          <th> [% 'City' | $T8 %] </th>
65
          <td> 
66
          <input type="text" name="addr_city" class="wi-normal">
67
          </td>
50
          <th>[% 'City' | $T8 %] </th>
51
          <td><input type="text" name="addr_city" class="wi-normal"></td>
68 52
        </tr>
69 53
        <tr>
70
          <th> [% 'Country' | $T8 %] </th>
71
          <td> 
72
          <input type="text" name="addr_country" class="wi-normal">
73
          </td>
54
          <th>[% 'Country' | $T8 %] </th>
55
          <td><input type="text" name="addr_country" class="wi-normal"></td>
74 56
        </tr>
75 57
        <tr>
76
          <th> [% 'GLN' | $T8 %] </th>
77
          <td> 
78
          <input type="text" name="addr_gln" class="wi-number">
79
          </td>
58
          <th>[% 'GLN' | $T8 %] </th>
59
          <td><input type="text" name="addr_gln" class="wi-number"></td>
80 60
        </tr>
81 61
      </tbody>
82 62
    </table>
83 63

  
84
 
64

  
85 65
  <table class="tbl-horizontal">
86 66
    <caption> [% 'Handling & Scope' | $T8 %] </caption>
87 67
    <tbody>
88
      [% IF SHOW_BUSINESS_TYPES %] 
89
      <tr>
90
        <th> [% IF IS_CUSTOMER %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %] </th>
91
        <td> [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, class='wi-normal') %] </td>
92
      </tr>
93
      [% END %] 
94
      [% IF IS_CUSTOMER && ALL_SALESMEN.size %] 
68
      [% IF SHOW_BUSINESS_TYPES %]
95 69
      <tr>
96
        <th> [% 'Salesman' | $T8 %] </th>
97
        <td> [% L.select_tag('salesman_id', ALL_SALESMEN, title_key = 'name', with_empty = 1, class='wi-normal') %] </td>
70
        <th>[% IF IS_CUSTOMER %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %] </th>
71
        <td>[% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, class='wi-lightwide') %] </td>
98 72
      </tr>
99
      [% END %] 
73
      [% END %]
74
      [% IF IS_CUSTOMER && ALL_SALESMEN.size %]
75
        <tr>
76
          <th>[% 'Salesman' | $T8 %] </th>
77
          <td>[% L.select_tag('salesman_id', ALL_SALESMEN, title_key = 'name', with_empty = 1, class='wi-lightwide') %] </td>
78
        </tr>
79
      [% END %]
80
        <tr>
81
          <th>[% 'Insert Date' | $T8 %] [% 'From' | $T8 %] </th>
82
          <td>[% L.date_tag('insertdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('insertdateto') %] <!-- PENDENT: Klassen implementieren in Funktion --></td>
83
        </tr>
84
      [% CUSTOM_VARIABLES_FILTER_CODE %]
100 85
      <tr>
101
        <th> [% 'Insert Date' | $T8 %] [% 'From' | $T8 %] </th>
102
        <td> 
103
          [% L.date_tag('insertdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('insertdateto') %] 
104
          <!-- PENDENT: Klassen einfuegen -->
86
        <th>[% 'Scope' | $T8 %] </th>
87
        <td>
88
          <input name="status" type="radio" value="all" checked id="chckb1"> <label for="chckb1">[% 'All' | $T8 %]</label>
89
          <input name="status" type="radio" value="orphaned" id="chckb2"> <label for="chckb2">[% 'Orphaned' | $T8 %]</label>
105 90
        </td>
106 91
      </tr>
107
      [% CUSTOM_VARIABLES_FILTER_CODE %] 
108 92
      <tr>
109
        <td> [% 'Scope' | $T8 %] </td>
110
        <td> 
111
            <input name="status" type="radio" value="all" checked> [% 'All' | $T8 %] 
112
            <input name="status" type="radio" value="orphaned">[% 'Orphaned' | $T8 %] 
93
        <th>[% 'Validity' | $T8 %] </th>
94
        <td>
95
          <input name="obsolete" type="radio" value="all" id="rd1"> <label for="rd1">[% 'All' | $T8 %]</label>
96
          <input name="obsolete" type="radio" value="Y" id="rd2"> <label for="rd2">[% 'Obsolete' | $T8 %]</label>
97
          <input name="obsolete" type="radio" value="N" checked id="rd3"> <label for="rd3">[% 'Not obsolete' | $T8 %]</label>
113 98
        </td>
114 99
      </tr>
115
      <tr>
116
        <td> [% 'Validity' | $T8 %] </td>
117
        <td> 
118
          <input name="obsolete" type="radio" value="all">[% 'All' | $T8 %] 
119
          <input name="obsolete" type="radio" value="Y">[% 'Obsolete' | $T8 %] 
120
          <input name="obsolete" type="radio" value="N" checked>[% 'Not obsolete' | $T8 %] </td>
121
      </tr>
122 100
    </tbody>
123 101
  </table>
124 102

  
125 103
</div>
126
	
127
	
128
<div class="form-addition">
129
	<h3 class="h4">[% 'Include in Report' | $T8 %]</h3>
130
	
131
	<div class="list col">
132
		<h4> [% 'Numbers & IDs' | $T8 %] </h4>
133
		<div>
134
			<input name="l_id" id="l_id" type="checkbox" value="Y">
135
			<label for="l_id"> [% 'ID' | $T8 %] </label> 
136
		</div>
137
		<div>
138
			<input name="l_[% db %]number" id="l_[% db %]number" type="checkbox" value="Y" checked>
139
			<label for="l_[% db %]number"> [% IF IS_CUSTOMER %][% 'Customer Number' | $T8 %][% ELSE %][% 'Vendor Number' | $T8 %][% END %] </label> 
140
		</div>
141
		<div>
142
			<input name="l_taxnumber" id="l_taxnumber" type="checkbox" value="Y">
143
			<label for="l_taxnumber"> [% 'Tax Number' | $T8 %] </label> 
144
		</div>
145
		<div>
146
			<input name="l_invnumber" id="l_invnumber" type="checkbox" value="Y">
147
			<label for="l_invnumber"> [% 'Invoices' | $T8 %] </label> 
148
		</div>
149
	</div>
150
	
151
	<div class="list col">
152
		<h4> [% 'Customer' | $T8 %] </h4>
153
		<div>
154
			<input name="l_name" id="l_name" type="checkbox" value="Y" checked>
155
			<label for="l_name"> [% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][% ELSE %][% 'Vendor Name' | $T8 %][% END %] </label> 
156
		</div>
157
		<div>
158
			<input name="l_contact" id="l_contact" type="checkbox" value="Y" checked>
159
			<label for="l_contact"> [% 'Contact' | $T8 %] </label> 
160
		</div>
161
	</div>
162
	
163
	<div class="list col">
164
		<h4> [% 'Address' | $T8 %] </h4>
165
		<div>
166
			<input name="l_street" id="l_street" type="checkbox" value="Y" checked>
167
			<label for="l_street"> [% 'Street' | $T8 %] </label> 
168
		</div>
169
		<div>
170
			<input name="l_zipcode" id="l_zipcode" type="checkbox" value="Y" checked>
171
			<label for="l_zipcode"> [% 'Zipcode' | $T8 %] </label> 
172
		</div>
173
		<div>
174
			<input name="l_city" id="l_city" type="checkbox" value="Y" checked>
175
			<label for="l_city"> [% 'City' | $T8 %] </label> 
176
		</div>
177
		<div>
178
			<input name="l_country" id="l_country" type="checkbox" value="Y" checked>
179
			<label for="l_country"> [% 'Country' | $T8 %] </label> 
180
		</div>
181
		<div>
182
			<input name="l_gln" id="l_gln" type="checkbox" value="Y" checked>
183
			<label for="l_gln"> [% 'GLN' | $T8 %] </label> 
184
		</div>
185
	</div>
186
	
187
	<div class="list col">
188
		<h4> [% 'Contact' | $T8 %] </h4>
189
		<div>
190
			<input name="l_phone" id="l_phone" type="checkbox" value="Y" checked>
191
			<label for="l_phone"> [% 'Phone' | $T8 %] </label> 
192
		</div>
193
		<div>
194
			<input name="l_fax" id="l_fax" type="checkbox" value="Y">
195
			<label for="l_fax"> [% 'Fax' | $T8 %] </label> 
196
		</div>
197
		<div>
198
			<input name="l_email" id="l_email" type="checkbox" value="Y" checked>
199
			<label for="l_email"> [% 'E-mail' | $T8 %] </label> 
200
		</div>
201
	</div>
202
	
203
	<div class="list col">
204
		<h4> [% 'Orders' | $T8 %] </h4>
205
		<div>
206
			<input name="l_ordnumber" id="l_ordnumber" type="checkbox" value="Y">
207
			<label for="l_ordnumber"> [% IF IS_CUSTOMER %][% 'Sales Orders' | $T8 %][% ELSE %][% 'Purchase Orders' | $T8 %][% END %] </label> 
208
		</div>
209
		<div>
210
			<input name="l_quonumber" id="l_quonumber" type="checkbox" value="Y">
211
			<label for="l_quonumber"> [% IF IS_CUSTOMER %][% 'Quotations' | $T8 %][% ELSE %][% 'RFQs' | $T8 %][% END %] </label> 
212
		</div>
213
		<div>
214
			<input name="l_discount" id="l_discount" type="checkbox" value="Y">
215
			<label for="l_discount"> [% 'Discount' | $T8 %] </label> 
216
		</div>
217
		<div>
218
			<input name="l_payment" id="l_payment" type="checkbox" value="Y">
219
			<label for="l_payment"> [% 'Payment Terms' | $T8 %] </label> 
220
		</div>
221
	</div>
222
	
223
	<div class="list col">
224
		<h4> [% 'Handling & Scope' | $T8 %] </h4>
225
		<div>
226
			<input name="l_insertdate" id="l_insertdate" type="checkbox" value="Y">
227
			<label for="l_insertdate"> [% 'Insert Date' | $T8 %] </label> 
228
		</div>
229
		[% IF IS_CUSTOMER %] 
230
		<div>
231
			<input name="l_salesman" id="l_salesman" type="checkbox" value="Y">
232
			<label for="l_salesman"> [% 'Salesman' | $T8 %] </label> 
233
		</div>
234
		<div>
235
			<input name="l_pricegroup" id="l_pricegroup" type="checkbox" value="Y">
236
			<label for="l_pricegroup"> [% 'Pricegroup' | $T8 %] </label> 
237
		</div>
238
		[% END %] 
239
	</div>
240

  
241
	<div class="list col">
242
		<h4> [% 'Custom Variables' | $T8 %] </h4>
243
		<!-- PENDENT: bessere Loesung suchen -->
244
		[% CUSTOM_VARIABLES_INCLUSION_CODE %] 
245
	</div>
104

  
105

  
106
<div class="form-addition control-panel">
107
  <h3>[% 'Include in Report' | $T8 %]</h3>
108

  
109
  <div class="list col">
110
    <h4> [% 'Numbers & IDs' | $T8 %] </h4>
111
    <div>
112
      <input name="l_id" id="l_id" type="checkbox" value="Y">
113
      <label for="l_id"> [% 'ID' | $T8 %] </label>
114
    </div>
115
    <div>
116
      <input name="l_[% db %]number" id="l_[% db %]number" type="checkbox" value="Y" checked>
117
      <label for="l_[% db %]number"> [% IF IS_CUSTOMER %][% 'Customer Number' | $T8 %][% ELSE %][% 'Vendor Number' | $T8 %][% END %] </label>
118
    </div>
119
    <div>
120
      <input name="l_taxnumber" id="l_taxnumber" type="checkbox" value="Y">
121
      <label for="l_taxnumber"> [% 'Tax Number' | $T8 %] </label>
122
    </div>
123
    <div>
124
      <input name="l_invnumber" id="l_invnumber" type="checkbox" value="Y">
125
      <label for="l_invnumber"> [% 'Invoices' | $T8 %] </label>
126
    </div>
127
  </div>
128

  
129
  <div class="list col">
130
    <h4> [% 'Customer' | $T8 %] </h4>
131
    <div>
132
      <input name="l_name" id="l_name" type="checkbox" value="Y" checked>
133
      <label for="l_name"> [% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][% ELSE %][% 'Vendor Name' | $T8 %][% END %] </label>
134
    </div>
135
    <div>
136
      <input name="l_contact" id="l_contact" type="checkbox" value="Y" checked>
137
      <label for="l_contact"> [% 'Contact' | $T8 %] </label>
138
    </div>
139
  </div>
140

  
141
  <div class="list col">
142
    <h4> [% 'Address' | $T8 %] </h4>
143
    <div>
144
      <input name="l_street" id="l_street" type="checkbox" value="Y" checked>
145
      <label for="l_street"> [% 'Street' | $T8 %] </label>
146
    </div>
147
    <div>
148
      <input name="l_zipcode" id="l_zipcode" type="checkbox" value="Y" checked>
149
      <label for="l_zipcode"> [% 'Zipcode' | $T8 %] </label>
150
    </div>
151
    <div>
152
      <input name="l_city" id="l_city" type="checkbox" value="Y" checked>
153
      <label for="l_city"> [% 'City' | $T8 %] </label>
154
    </div>
155
    <div>
156
      <input name="l_country" id="l_country" type="checkbox" value="Y" checked>
157
      <label for="l_country"> [% 'Country' | $T8 %] </label>
158
    </div>
159
    <div>
160
      <input name="l_gln" id="l_gln" type="checkbox" value="Y" checked>
161
      <label for="l_gln"> [% 'GLN' | $T8 %] </label>
162
    </div>
163
  </div>
164

  
165
  <div class="list col">
166
    <h4> [% 'Contact' | $T8 %] </h4>
167
    <div>
168
      <input name="l_phone" id="l_phone" type="checkbox" value="Y" checked>
169
      <label for="l_phone"> [% 'Phone' | $T8 %] </label>
170
    </div>
171
    <div>
172
      <input name="l_fax" id="l_fax" type="checkbox" value="Y">
173
      <label for="l_fax"> [% 'Fax' | $T8 %] </label>
174
    </div>
175
    <div>
176
      <input name="l_email" id="l_email" type="checkbox" value="Y" checked>
177
      <label for="l_email"> [% 'E-mail' | $T8 %] </label>
178
    </div>
179
  </div>
180

  
181
  <div class="list col">
182
    <h4> [% 'Orders' | $T8 %] </h4>
183
    <div>
184
      <input name="l_ordnumber" id="l_ordnumber" type="checkbox" value="Y">
185
      <label for="l_ordnumber"> [% IF IS_CUSTOMER %][% 'Sales Orders' | $T8 %][% ELSE %][% 'Purchase Orders' | $T8 %][% END %] </label>
186
    </div>
187
    <div>
188
      <input name="l_quonumber" id="l_quonumber" type="checkbox" value="Y">
189
      <label for="l_quonumber"> [% IF IS_CUSTOMER %][% 'Quotations' | $T8 %][% ELSE %][% 'RFQs' | $T8 %][% END %] </label>
190
    </div>
191
    <div>
192
      <input name="l_discount" id="l_discount" type="checkbox" value="Y">
193
      <label for="l_discount"> [% 'Discount' | $T8 %] </label>
194
    </div>
195
    <div>
196
      <input name="l_payment" id="l_payment" type="checkbox" value="Y">
197
      <label for="l_payment"> [% 'Payment Terms' | $T8 %] </label>
198
    </div>
199
  </div>
200

  
201
  <div class="list col">
202
    <h4> [% 'Handling & Scope' | $T8 %] </h4>
203
    <div>
204
      <input name="l_insertdate" id="l_insertdate" type="checkbox" value="Y">
205
      <label for="l_insertdate"> [% 'Insert Date' | $T8 %] </label>
206
    </div>
207
    [% IF IS_CUSTOMER %]
208
    <div>
209
      <input name="l_salesman" id="l_salesman" type="checkbox" value="Y">
210
      <label for="l_salesman"> [% 'Salesman' | $T8 %] </label>
211
    </div>
212
    <div>
213
      <input name="l_pricegroup" id="l_pricegroup" type="checkbox" value="Y">
214
      <label for="l_pricegroup"> [% 'Pricegroup' | $T8 %] </label>
215
    </div>
216
    [% END %]
217
  </div>
218

  
219
  <div class="list col">
220
    <h4> [% 'Custom Variables' | $T8 %] </h4>
221
    <!-- PENDENT: bessere Loesung suchen -->
222
    [% CUSTOM_VARIABLES_INCLUSION_CODE %]
223
  </div>
246 224

  
247 225

  
248 226
</div>

Auch abrufbar als: Unified diff