Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5b8ff438

Von Hans Peter Schlaepfer vor etwa 5 Jahren hinzugefügt

  • ID 5b8ff438672be40b321bbe27e01ae852a3bb9045
  • Vorgänger 99621954
  • Nachfolger 867b69c4

Neues kivitendo Design restliche Aenderungen in templates/webpages/c*

Dateien in ca/* chart/* cp/* ct/* cti/* custom_variable_config/*

Unterschiede anzeigen:

templates/webpages/ct/search.html
1
[%- USE T8 %]
2
[%- USE L %]
3
[%- USE HTML %]
4
<h1>[% title %]</h1>
5

  
6
 <form method="post" action="ct.pl" name="Form" id="form">
7

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

  
10
  <table>
11
   <tr>
12
    <th align="right" nowrap>[% IF IS_CUSTOMER %][% 'Customer Number' | $T8 %][% ELSE %][% 'Vendor Number' | $T8 %][% END %]</th>
13
    <td><input name="[% IF IS_CUSTOMER %]customer[% ELSE %]vendor[% END %]number" size="35"></td>
14
   </tr>
15

  
16
   <tr>
17
    <th align="right" nowrap>[% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][%- ELSE %][% 'Vendor Name' | $T8 %][%- END %]</th>
18
    <td><input id="name" name="name" size="35" class="initial_focus"></td>
19
   </tr>
20

  
21
   <tr>
22
    <th align="right" nowrap>[% 'Contact' | $T8 %]</th>
23
    <td><input name="contact" size="35"></td>
24
   </tr>
25

  
26
   <tr>
27
    <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
28
    <td><input name="email" size="35"></td>
29
   </tr>
30
   <tr>
31
    <th align="right" nowrap>[% 'Contact person (surname)' | $T8 %]</th>
32
    <td><input name="cp_name" size="35"></td>
33
   </tr>
34
   <tr>
35
    <th align="right" nowrap>[% 'Billing/shipping address (street)' | $T8 %]</th>
36
    <td><input name="addr_street" size="35"></td>
37
   </tr>
38
   <tr>
39
    <th align="right" nowrap>[% 'Billing/shipping address (zipcode)' | $T8 %]</th>
40
    <td><input name="addr_zipcode" size="35"></td>
41
   </tr>
42
   <tr>
43
    <th align="right" nowrap>[% 'Billing/shipping address (city)' | $T8 %]</th>
44
    <td><input name="addr_city" size="35"></td>
45
   </tr>
46
   <tr>
47
    <th align="right" nowrap>[% 'Billing/shipping address (country)' | $T8 %]</th>
48
    <td><input name="addr_country" size="35"></td>
49
   </tr>
50
   <tr>
51
    <th align="right" nowrap>[% 'Billing/shipping address (GLN)' | $T8 %]</th>
52
    <td><input name="addr_gln" size="35"></td>
53
   </tr>
54

  
55
   [% IF SHOW_BUSINESS_TYPES %]
56
   <tr>
57
    <th align="right" nowrap>[% IF IS_CUSTOMER %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</th>
58
    <td>
59
     [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1) %]
60
    </td>
61
   </tr>
62
   [% END %]
63

  
64
   [% IF IS_CUSTOMER && ALL_SALESMEN.size %]
65
   <tr>
66
    <th align="right" nowrap>[% 'Salesman' | $T8 %]</th>
67
    <td>
68
     [% L.select_tag('salesman_id', ALL_SALESMEN, title_key = 'name', with_empty = 1) %]
69
    </td>
70
   </tr>
71
   [% END %]
72

  
73
   <tr>
74
    <th align="right">[% 'Insert Date' | $T8 %] [% 'From' | $T8 %]</th>
75
    <td>
76
      [% L.date_tag('insertdatefrom') %]
77
    </td>
78
    <th align="right">[% 'Bis' | $T8 %]</th>
79
    <td>
80
      [% L.date_tag('insertdateto') %]
81
    </td>
82
   </tr>
83

  
84
   [% CUSTOM_VARIABLES_FILTER_CODE %]
85

  
86
   <tr>
87
    <td></td>
88
    <td>
89
     <input name="status" class="radio" type="radio" value="all" checked> [% 'All' | $T8 %]
90
     <input name="status" class="radio" type="radio" value="orphaned"> [% 'Orphaned' | $T8 %]
91
    </td>
92
   </tr>
93

  
94
   <tr>
95
    <td></td>
96
    <td><input name="obsolete" class="radio" type="radio" value="all"> [% 'All' | $T8 %]
97
     <input name="obsolete" class="radio" type="radio" value="Y"> [% 'Obsolete' | $T8 %]
98
     <input name="obsolete" class="radio" type="radio" value="N" checked> [% 'Not obsolete' | $T8 %]
99
    </td>
100
   </tr>
101

  
102
   <tr>
103
    <th align="right" nowrap>[% 'Include in Report' | $T8 %]</th>
104
    <td colspan="5">
105
     <table border="0">
106
      <tr>
107
       <td>
108
        <input name="l_id" id="l_id" type="checkbox" class="checkbox" value="Y">
109
        <label for="l_id">[% 'ID' | $T8 %]</label>
110
       </td>
111
       <td>
112
        <input name="l_[% db %]number" id="l_[% db %]number" type="checkbox" class="checkbox" value="Y" checked>
113
        <label for="l_[% db %]number">[% IF IS_CUSTOMER %][% 'Customer Number' | $T8 %][% ELSE %][% 'Vendor Number' | $T8 %][% END %]</label>
114
       </td>
115
       <td>
116
        <input name="l_name" id="l_name" type="checkbox" class="checkbox" value="Y" checked>
117
        <label for="l_name">[% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][%- ELSE %][% 'Vendor Name' | $T8 %][%- END %]</label>
118
       </td>
119
       <td>
120
        <input name="l_street" id="l_street" type="checkbox" class="checkbox" value="Y" checked>
121
        <label for="l_street">[% 'Street' | $T8 %]</label>
122
       </td>
123
      </tr>
1
[% USE T8 %]
2
[% USE L %]
3
[% USE HTML %]
124 4

  
125
      <tr>
126
       <td>
127
        <input name="l_contact" id="l_contact" type="checkbox" class="checkbox" value="Y" checked>
128
        <label for="l_contact">[% 'Contact' | $T8 %]</label>
129
       </td>
130
       <td>
131
        <input name="l_phone" id="l_phone" type="checkbox" class="checkbox" value="Y" checked>
132
        <label for="l_phone">[% 'Phone' | $T8 %]</label>
133
       </td>
134
       <td>
135
        <input name="l_fax" id="l_fax" type="checkbox" class="checkbox" value="Y">
136
        <label for="l_fax">[% 'Fax' | $T8 %]</label>
137
       </td>
138
       <td>
139
        <input name="l_zipcode" id="l_zipcode" type="checkbox" class="checkbox" value="Y" checked>
140
        <label for="l_zipcode">[% 'Zipcode' | $T8 %]</label>
141
       </td>
142
      </tr>
143

  
144
      <tr>
145
       <td>
146
        <input name="l_taxnumber" id="l_taxnumber" type="checkbox" class="checkbox" value="Y">
147
        <label for="l_taxnumber">[% 'Tax Number' | $T8 %]</label>
148
       </td>
149
       <td>
150
        <input name="l_email" id="l_email" type="checkbox" class="checkbox" value="Y" checked>
151
        <label for="l_email">[% 'E-mail' | $T8 %]</label>
152
       </td>
153
       <td>
154
        <input name="l_business" id="l_business" type="checkbox" class="checkbox" value="Y">
155
        <label for="l_business">[% IF IS_CUSTOMER %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</label>
156
       </td>
157
       <td>
158
        <input name="l_city" id="l_city" type="checkbox" class="checkbox" value="Y" checked>
159
        <label for="l_city">[% 'City' | $T8 %]</label>
160
       </td>
161
      </tr>
5
<h1>[% title %]</h1>
162 6

  
7
<form method="post" action="ct.pl" name="Form" id="form">
8
<input type="hidden" name="db" value="[% HTML.escape(db) %]">
9

  
10
<div class="wrapper">
11

  
12
    <table class="tbl-horizontal">
13
      <caption> [% 'Customer & Contact' | $T8 %] </caption>
14
      <tbody>
15
        <tr>
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>
18
        </tr>
19
        <tr>
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>
22
        </tr>
23
        <tr>
24
          <th>[% 'Contact' | $T8 %] </th>
25
          <td><input type="text" name="contact" class="wi-normal"></td>
26
        </tr>
27
        <tr>
28
          <th>[% 'Contact person (surname)' | $T8 %] </th>
29
          <td><input type="text" name="cp_name" class="wi-normal"></td>
30
        </tr>
31
        <tr>
32
          <th>[% 'E-mail' | $T8 %] </th>
33
          <td><input type="text" name="email" class="wi-normal"></td>
34
        </tr>
35
      </tbody>
36
    </table>
37

  
38
    <table class="tbl-horizontal">
39
      <caption> [% 'Billing/shipping address' | $T8 %] </caption>
40
      <tbody>
41
        <tr>
42
          <th>[% 'Street' | $T8 %] </th>
43
          <td><input type="text" name="addr_street" class="wi-normal"></td>
44
        </tr>
45
        <tr>
46
          <th>[% 'ZIPcode' | $T8 %] </th>
47
          <td><input type="text" name="addr_zipcode" class="wi-normal"></td>
48
        </tr>
49
        <tr>
50
          <th>[% 'City' | $T8 %] </th>
51
          <td><input type="text" name="addr_city" class="wi-normal"></td>
52
        </tr>
53
        <tr>
54
          <th>[% 'Country' | $T8 %] </th>
55
          <td><input type="text" name="addr_country" class="wi-normal"></td>
56
        </tr>
57
        <tr>
58
          <th>[% 'GLN' | $T8 %] </th>
59
          <td><input type="text" name="addr_gln" class="wi-number"></td>
60
        </tr>
61
      </tbody>
62
    </table>
63

  
64

  
65
  <table class="tbl-horizontal">
66
    <caption> [% 'Handling & Scope' | $T8 %] </caption>
67
    <tbody>
68
      [% IF SHOW_BUSINESS_TYPES %]
163 69
      <tr>
164
       <td>
165
        <input name="l_invnumber" id="l_invnumber" type="checkbox" class="checkbox" value="Y">
166
        <label for="l_invnumber">[% 'Invoices' | $T8 %]</label>
167
       </td>
168
       <td>
169
        <input name="l_ordnumber" id="l_ordnumber" type="checkbox" class="checkbox" value="Y">
170
        <label for="l_ordnumber">[% IF IS_CUSTOMER %][% 'Sales Orders' | $T8 %][% ELSE %][% 'Purchase Orders' | $T8 %][% END %]</label>
171
       </td>
172
       <td>
173
        <input name="l_quonumber" id="l_quonumber" type="checkbox" class="checkbox" value="Y">
174
        <label for="l_quonumber">[% IF IS_CUSTOMER %][% 'Quotations' | $T8 %][% ELSE %][% 'RFQs' | $T8 %][% END %]</label>
175
       </td>
176
       <td>
177
        <input name="l_country" id="l_country" type="checkbox" class="checkbox" value="Y" checked>
178
        <label for="l_country">[% 'Country' | $T8 %]</label>
179
       </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>
180 72
      </tr>
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 %]
181 85
      <tr>
182
       <td>
183
        <input name="l_discount" id="l_discount" type="checkbox" class="checkbox" value="Y">
184
        <label for="l_discount">[% 'Discount' | $T8 %]</label>
185
       </td>
186
       <td>
187
        <input name="l_payment" id="l_payment" type="checkbox" class="checkbox" value="Y">
188
        <label for="l_payment">[% 'Payment Terms' | $T8 %]</label>
189
       </td>
190
       <td>
191
        <input name="l_insertdate" id="l_insertdate" class="checkbox" type="checkbox" value="Y">
192
        <label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
193
       </td>
194
       <td>
195
        <input name="l_gln" id="l_gln" type="checkbox" class="checkbox" value="Y" checked>
196
        <label for="l_gln">[% 'GLN' | $T8 %]</label>
197
       </td>
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>
90
        </td>
198 91
      </tr>
199
      [% IF IS_CUSTOMER %]
200 92
      <tr>
201
       <td>
202
        <input name="l_salesman" id="l_salesman" type="checkbox" class="checkbox" value="Y">
203
        <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
204
       </td>
205
       <td>
206
        <input name="l_pricegroup" id="l_pricegroup" type="checkbox" class="checkbox" value="Y">
207
        <label for="l_pricegroup">[% 'Pricegroup' | $T8 %]</label>
208
       </td>
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>
98
        </td>
209 99
      </tr>
210
      [% END %]
211

  
212
      [% CUSTOM_VARIABLES_INCLUSION_CODE %]
213

  
214
     </table>
215
    </td>
216
   </tr>
100
    </tbody>
217 101
  </table>
218
 </form>
102

  
103
</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>
224

  
225

  
226
</div>
227

  
228
</form>

Auch abrufbar als: Unified diff