Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision fe619b7f

Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt

  • ID fe619b7fac1ec8d4a9c0ab215278012d3c55527e
  • Vorgänger 6e7948bf
  • Nachfolger ca247c82

Neues Design 2019 Standard-Code templates/webpages/do/search.html

Unterschiede anzeigen:

templates/webpages/do/search.html
5 5
[% USE P %]
6 6
<h1>[% title %]</h1>
7 7

  
8
 [%- IF vc == 'customer' %]
9
 [%- SET is_customer = '1' %]
10
 [%- ELSE %]
11
 [%- SET is_customer = '0' %]
12
 [%- END %]
8
[% IF vc == 'customer' %]
9
  [% SET is_customer = '1' %]
10
[% ELSE %]
11
  [% SET is_customer = '0' %]
12
[% END %]
13 13

  
14
 [%- SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]
14
[% SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]
15 15

  
16
 <style type="text/css">
17
  .fixed_width {
18
    width: 250px;
19
  }
20
 </style>
16
<form method="post" action="do.pl" name="Form" id="form">
21 17

  
22
 <form method="post" action="do.pl" name="Form" id="form">
18
<div class="wrapper">
23 19

  
24
  <p>
25
   <table>
20
<table class="tbl-horizontal">
21
  <caption>[% 'Customer' | $T8 %]</caption>
22
  <colgroup> <col class="wi-mediumsmall"><col class="wi-wide"> </colgroup>
23
  <tbody>
26 24
    <tr>
27
     <th align="right">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th>
28
     <td colspan="3">[% P.input_tag(vc, "", class="fixed_width initial_focus") %]</td>
25
      <th>[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th>
26
      <td>[% P.input_tag(vc, "", class="fixed_width initial_focus wi-normal") %]</td>
29 27
    </tr>
30

  
28
    [% IF ALL_BUSINESS_TYPES.size %]
31 29
    <tr>
32
     <th align="right" nowrap>[% 'Contact Person' | $T8 %]</th>
33
     <td colspan="3">[% L.input_tag("cp_name", '', class="fixed_width") %]</td>
30
      <th>[% vctypelabel %]</th>
31
      <td> [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key='description', with_empty=1, class='wi-normal') %] </td>
34 32
    </tr>
35

  
33
    [% END %]
36 34
    <tr>
37
     <th align="right">[% 'Delivery Order Number' | $T8 %]</th>
38
     <td colspan="3"><input name="donumber" class="fixed_width"></td>
35
      <th>[% 'Contact Person' | $T8 %]</th>
36
      <td>[% L.input_tag("cp_name", '', class="fixed_width wi-normal") %]</td>
39 37
    </tr>
40

  
41 38
    <tr>
42
     <th align="right">[% 'Order Number' | $T8 %]</th>
43
     <td colspan="3"><input name="ordnumber" class="fixed_width"></td>
39
      <th class="caption" colspan="2">[% 'Handling' | $T8 %]</th>
44 40
    </tr>
45

  
46 41
    <tr>
47
     <th align="right">[% 'Customer Order Number' | $T8 %]</th>
48
     <td colspan="3"><input name="cusordnumber" class="fixed_width"></td>
42
      <th>[% 'Employee' | $T8 %]</th>
43
      <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, class='fixed_width wi-normal') %]</td>
49 44
    </tr>
50

  
51
    [%- IF ALL_DEPARTMENTS.size %]
45
    [% IF is_customer %]
52 46
    <tr>
53
     <th align="right" nowrap>[% 'Department' | $T8 %]</th>
54
     <td colspan=3>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, class="fixed_width") %]</td>
47
      <th>[% 'Salesman' | $T8 %]</th>
48
      <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, class='fixed_width wi-normal') %]</td>
55 49
    </tr>
56
    [%- END %]
57

  
50
    [% END %] [% IF ALL_DEPARTMENTS.size %]
58 51
    <tr>
59
     <th align="right">[% 'Employee' | $T8 %]</th>
60
     <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, class = 'fixed_width') %]</td>
52
      <th>[% 'Department' | $T8 %]</th>
53
      <td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default=department_id, title_key='description', with_empty=1, class="fixed_width wi-normal") %]</td>
61 54
    </tr>
62

  
63
    [%- IF is_customer %]
55
    [% END %]
64 56
    <tr>
65
     <th align="right">[% 'Salesman' | $T8 %]</th>
66
     <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, class = 'fixed_width') %]</td>
57
      <th>[% 'Delivery Order Date' | $T8 %] [% #'From' | $T8 %]</th>
58
      <td><span class="wi-date">[% L.date_tag('transdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('transdateto') %]</span></td>
67 59
    </tr>
68
    [%- END %]
69

  
70 60
    <tr>
71
     <th align="right">[% 'Transaction description' | $T8 %]</th>
72
     <td><input name="transaction_description" class="fixed_width"></td>
73
     <th align="right">[% 'Part Description' | $T8 %]</th>
74
     <td><input name="parts_description" size="20" class="fixed_width"></td>
61
      <th>[% 'Reqdate' | $T8 %] [% #'From' | $T8 %]</th>
62
      <td><span class="wi-date">[% L.date_tag('reqdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('reqdateto') %]</span></td>
75 63
    </tr>
76

  
77 64
    <tr>
78
     <th align="right">[% 'Project Number' | $T8 %]</th>
79
     <td>
80
      <select name="project_id" class="fixed_width">
81
       <option></option>
82
       [%- FOREACH row = ALL_PROJECTS %]
83
       <option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.projectnumber) %]</option>
84
       [%- END %]
85
      </select>
86
     </td>
87
     <th align="right">[% 'Part Number' | $T8 %]</th>
88
     <td><input name="parts_partnumber" size="20", class="fixed_width"></td>
65
      <th>[% 'Insert Date' | $T8 %] [% #'From' | $T8 %]</th>
66
      <td><span class="wi-date">[% L.date_tag('insertdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('insertdateto') %]</span></td>
89 67
    </tr>
68
  </tbody>
69
</table>
90 70

  
71
<table class="tbl-horizontal">
72
  <caption>[% 'Order & Numbers' | $T8 %]</caption>
73
  <colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup>
74
  <tbody>
91 75
    <tr>
92
     <th align="right">[% 'Serial Number' | $T8 %]</th>
93
     <td colspan="3"><input name="serialnumber" class="fixed_width"></td>
76
      <th>[% 'Delivery Order Number' | $T8 %]</th>
77
      <td> <input type="text" name="donumber" class="fixed_width wi-mediumsmall">
78
      </td>
94 79
    </tr>
95

  
96
    [%- IF ALL_BUSINESS_TYPES.size %]
97 80
    <tr>
98
     <th align="right" nowrap>[% vctypelabel %]</th>
99
     <td colspan="3">
100
      [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, style='width:250px') %]
101
     </td>
81
      <th>[% 'Order Number' | $T8 %]</th>
82
      <td> <input type="text" name="ordnumber" class="fixed_width wi-mediumsmall">
83
      </td>
102 84
    </tr>
103
    [%- END %]
104

  
105
    <tr>
106
     <th align="right">[% 'Delivery Order Date' | $T8 %] [% 'From' | $T8 %]</th>
107
     <td>
108
      [% L.date_tag('transdatefrom') %]
109
      [% 'Bis' | $T8 %]
110
      [% L.date_tag('transdateto') %]
111
     </td>
112
    </tr>
113

  
114 85
    <tr>
115
     <th align="right">[% 'Reqdate' | $T8 %] [% 'From' | $T8 %]</th>
116
     <td>
117
      [% L.date_tag('reqdatefrom') %]
118
      [% 'Bis' | $T8 %]
119
      [% L.date_tag('reqdateto') %]
120
     </td>
86
      <th>[% 'Customer Order Number' | $T8 %]</th>
87
      <td> <input type="text" name="cusordnumber" class="fixed_width wi-mediumsmall">
88
      </td>
121 89
    </tr>
122

  
123
    <tr>
124
     <th align="right">[% 'Insert Date' | $T8 %] [% 'From' | $T8 %]</th>
125
     <td>
126
       [% L.date_tag('insertdatefrom') %]
127
       [% 'Bis' | $T8 %]
128
       [% L.date_tag('insertdateto') %]
129
     </td>
130
    </tr>
131

  
132 90
    <tr>
133
     <th align="right">[% 'Include in Report' | $T8 %]</th>
134
     <td colspan="5">
135
      <table>
136
       <tr>
137
        <td>
138
         <input type="checkbox" name="open" value="1" id="open" checked>
139
         <label for="open">[% 'Open' | $T8 %]</label>
140
        </td>
141
        <td>
142
         <input type="checkbox" name="closed" value="1" id="closed">
143
         <label for="closed">[% 'Closed' | $T8 %]</label>
144
        </td>
145
       </tr>
146

  
147
       <tr>
148
        <td>
149
         <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
150
         <label for="notdelivered">[% 'Not delivered' | $T8 %]</label>
151
        </td>
152
        <td>
153
         <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
154
         <label for="delivered">[% 'Delivered' | $T8 %]</label></td>
155
       </tr>
156

  
157
       <tr>
158
        <td>
159
         <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
160
         <label for="l_id">[% 'ID' | $T8 %]</label>
161
        </td>
162

  
163
        <td>
164
         <input name="l_donumber" id="l_donumber" class="checkbox" type="checkbox" value="Y" checked>
165
         <label for="l_donumber">[% 'Delivery Order Number' | $T8 %]</label>
166
        </td>
167
       </tr>
168

  
169
       <tr>
170
        <td>
171
         <input name="l_ordnumber" id="l_ordnumber" class="checkbox" type="checkbox" value="Y" checked>
172
         <label for="l_ordnumber">[% 'Order Number' | $T8 %]</label>
173
        </td>
174

  
175
        <td>
176
         <input name="l_cusordnumber" id="l_cusordnumber" class="checkbox" type="checkbox" value="Y" checked>
177
         <label for="l_cusordnumber">[% 'Customer Order Number' | $T8 %]</label>
178
        </td>
179
       </tr>
180

  
181
       <tr>
182
        <td>
183
         <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
184
         <label for="l_transdate">[% 'Delivery Order Date' | $T8 %]</label>
185
        </td>
186
        <td>
187
         <input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
188
         <label for="l_reqdate">[% 'Reqdate' | $T8 %]</label>
189
        </td>
190
        [% IF is_customer %]
191
        <td>
192
         <input name="l_insertdate" id="l_insertdate" class="checkbox" type="checkbox" value="Y">
193
         <label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
194
        </td>
195
        [%- END %]
196
       </tr>
197

  
198
       <tr>
199
        <td>
200
         <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
201
         <label for="l_name">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</label>
202
        </td>
203

  
204
        [% IF is_customer %]
205
        <td>
206
         <input name="l_customernumber" id="l_customernumber" class="checkbox" type="checkbox" value="Y">
207
         <label for="l_customernumber">[% 'Customer Number' | $T8 %]</label>
208
        </td>
91
      <th>[% 'Project Number' | $T8 %]</th>
92
      <td>
93
      <select name="project_id" class="fixed_width wi-mediumsmall">
94
        <option></option>
95
        [% FOREACH row = ALL_PROJECTS %]
96
        <option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.projectnumber) %]</option>
209 97
        [% END %]
210
       </tr>
211

  
212
       <tr>
213
        <td>
214
         <input name="l_department" id="l_department" class="checkbox" type="checkbox" value="Y">
215
         <label for="l_department">[% "Department" | $T8 %]</label>
216
        </td>
217

  
218
        <td>
219
         <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
220
         <label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
221
        </td>
222
       </tr>
223

  
224
       <tr>
225
        <td>
226
         <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
227
         <label for="l_employee">[% 'Employee' | $T8 %]</label>
228
        </td>
229

  
230
        <td>
231
         <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
232
         <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
233
        </td>
234
       </tr>
235

  
236
       <tr>
237
        <td>
238
         <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
239
         <label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
240
        </td>
241

  
242
        <td>
243
         <input name="l_transaction_description" id="l_transaction_description" class="checkbox" type="checkbox" value="Y"[% IF INSTANCE_CONF.get_require_transaction_description_ps %] checked[% END %]>
244
         <label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
245
        </td>
246
       </tr>
247

  
248
      </table>
249
     </td>
250
    </tr>
251
   </table>
252
  </p>
253

  
254
   <input type="hidden" name="action" value="orders">
255
   <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
256
   <input type="hidden" name="type" value="[% HTML.escape(type) %]">
257
 </form>
98
      </select>
99
      </td>
100
    </tr>
101
    <tr>
102
      <th>[% 'Transaction description' | $T8 %]</th>
103
      <td> <input type="text" name="transaction_description" class="fixed_width wi-mediumsmall">
104
      </td>
105
    </tr>
106
    <tr>
107
      <th class="caption" colspan="2">[% 'Article data' | $T8 %]</th>
108
    </tr>
109
    <tr>
110
      <th>[% 'Part Description' | $T8 %]</th>
111
      <td> <input type="text" name="parts_description" class="fixed_width wi-mediumsmall">
112
      </td>
113
    </tr>
114
    <tr>
115
      <th>[% 'Part Number' | $T8 %]</th>
116
      <td> <input type="text" name="parts_partnumber" class="fixed_width wi-mediumsmall">
117
      </td>
118
    </tr>
119
    <tr>
120
      <th>[% 'Serial Number' | $T8 %]</th>
121
      <td> <input type="text" name="serialnumber" class="fixed_width wi-mediumsmall">
122
      </td>
123
    </tr>
124
  </tbody>
125
</table>
126

  
127

  
128
</div><!-- ./wrapper -->
129

  
130
<div class="form-addition control-panel wrapper">
131
  <h3>[% 'Include in Report' | $T8 %]</h3>
132
  <div class="list col wi-small">
133
    <h4>[% 'Status' | $T8 %]</h4>
134
    <div>
135
      <input type="checkbox" name="open" value="1" id="open" checked>
136
      <label for="open">[% 'Open' | $T8 %]</label>
137
    </div>
138
    <div>
139
      <input type="checkbox" name="closed" value="1" id="closed">
140
      <label for="closed">[% 'Closed' | $T8 %]</label>
141
    </div>
142
    <div>
143
      <input name="notdelivered" id="notdelivered" type="checkbox" value="1" checked>
144
      <label for="notdelivered">[% 'Not delivered' | $T8 %]</label>
145
    </div>
146
    <div>
147
      <input name="delivered" id="delivered" type="checkbox" value="1" checked>
148
      <label for="delivered">[% 'Delivered' | $T8 %]</label>
149
    </div>
150
  </div>
151
  <div class="list col">
152
    <h4>[% 'IDs & Numbers' | $T8 %]</h4>
153
    <div>
154
      <input name="l_id" id="l_id" type="checkbox" value="Y">
155
      <label for="l_id">[% 'ID' | $T8 %]</label>
156
    </div>
157
    <div>
158
      <input name="l_donumber" id="l_donumber" type="checkbox" value="Y" checked>
159
      <label for="l_donumber">[% 'Delivery Order Number' | $T8 %]</label>
160
    </div>
161
    <div>
162
      <input name="l_ordnumber" id="l_ordnumber" type="checkbox" value="Y" checked>
163
      <label for="l_ordnumber">[% 'Order Number' | $T8 %]</label>
164
    </div>
165
    <div>
166
      <input name="l_cusordnumber" id="l_cusordnumber" type="checkbox" value="Y" checked>
167
      <label for="l_cusordnumber">[% 'Customer Order Number' | $T8 %]</label>
168
    </div>
169
    [% IF is_customer %]
170
    <div>
171
      <input name="l_customernumber" id="l_customernumber" type="checkbox" value="Y">
172
      <label for="l_customernumber">[% 'Customer Number' | $T8 %]</label>
173
    </div>
174
    [% END %]
175
    <div>
176
      <input name="l_globalprojectnumber" id="l_globalprojectnumber" type="checkbox" value="Y">
177
      <label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
178
    </div>
179
  </div>
180
  <div class="list col">
181
    <h4>[% 'Dates' | $T8 %]</h4>
182
    <div>
183
      <input name="l_transdate" id="l_transdate" type="checkbox" value="Y" checked>
184
      <label for="l_transdate">[% 'Delivery Order Date' | $T8 %]</label>
185
    </div>
186
    <div>
187
      <input name="l_reqdate" id="l_reqdate" type="checkbox" value="Y" checked>
188
      <label for="l_reqdate">[% 'Reqdate' | $T8 %]</label>
189
    </div>
190
    [% IF is_customer %]
191
    <div>
192
      <input name="l_insertdate" id="l_insertdate" type="checkbox" value="Y">
193
      <label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
194
    </div>
195
    [% END %]
196
  </div>
197
  <div class="list col">
198
    <h4>[% 'Order data' | $T8 %]</h4>
199
    <div>
200
      <input name="l_name" id="l_name" type="checkbox" value="Y" checked>
201
      <label for="l_name">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</label>
202
    </div>
203
    <div>
204
      <input name="l_transaction_description" id="l_transaction_description" type="checkbox" value="Y" [% IF (instance_conf.get_require_transaction_description_ps) %] checked[% END %]>
205
      <label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
206
    </div>
207
  </div>
208
  <div class="list col">
209
    <h4>[% 'Handling' | $T8 %]</h4>
210
    <div>
211
      <input name="l_employee" id="l_employee" type="checkbox" value="Y" checked>
212
      <label for="l_employee">[% 'Employee' | $T8 %]</label>
213
    </div>
214
    <div>
215
      <input name="l_salesman" id="l_salesman" type="checkbox" value="Y">
216
      <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
217
    </div>
218
    <div>
219
      <input name="l_department" id="l_department" type="checkbox" value="Y">
220
      <label for="l_department">[% "Department" | $T8 %]</label>
221
    </div>
222
    <div>
223
      <input name="l_shipvia" id="l_shipvia" type="checkbox" value="Y">
224
      <label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
225
    </div>
226
  </div>
227
</div><!-- /.form-addition /.wrapper -->
228

  
229

  
230

  
231
<input type="hidden" name="action" value="orders">
232
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
233
<input type="hidden" name="type" value="[% HTML.escape(type) %]">
234

  
235
</form>

Auch abrufbar als: Unified diff