Revision 35182445
Von Sven Schöling vor etwa 17 Jahren hinzugefügt
bin/mozilla/ct.pl | ||
---|---|---|
272 | 272 |
sub form_footer { |
273 | 273 |
$lxdebug->enter_sub(); |
274 | 274 |
|
275 |
$label = ucfirst $form->{db}; |
|
276 |
$quotation = |
|
277 |
($form->{db} eq 'customer') |
|
278 |
? $locale->text('Save and Quotation') |
|
279 |
: $locale->text('Save and RFQ'); |
|
280 |
$arap = |
|
281 |
($form->{db} eq 'customer') |
|
282 |
? $locale->text('Save and AR Transaction') |
|
283 |
: $locale->text('Save and AP Transaction'); |
|
284 |
|
|
285 |
##<input class=submit type=submit name=action value="|.$locale->text("Save and Quotation").qq|"> |
|
286 |
##<input class=submit type=submit name=action value="|.$locale->text("Save and RFQ").qq|"> |
|
287 |
##<input class=submit type=submit name=action value="|.$locale->text("Save and AR Transaction").qq|"> |
|
288 |
##<input class=submit type=submit name=action value="|.$locale->text("Save and AP Transaction").qq|"> |
|
289 |
|
|
290 |
print qq| |
|
291 |
<input name=id type=hidden id=cvid value=$form->{id}> |
|
292 |
<input name=business_save type=hidden value="$form->{selectbusiness}"> |
|
293 |
<input name=title_save type=hidden value="$form->{title}"> |
|
294 |
|
|
295 |
<input type=hidden name=login value=$form->{login}> |
|
296 |
<input type=hidden name=password value=$form->{password}> |
|
297 |
|
|
298 |
<input type=hidden name=callback value="$form->{callback}"> |
|
299 |
<input type=hidden name=db id=db value=$form->{db}> |
|
300 |
|
|
301 |
|
|
302 |
|
|
303 |
<br> |
|
304 |
<input class=submit type=submit name=action accesskey="s" value="| |
|
305 |
. $locale->text("Save") . qq|"> |
|
306 |
<input class=submit type=submit name=action accesskey="s" value="| |
|
307 |
. $locale->text("Save and Close") . qq|"> |
|
308 |
<input class=submit type=submit name=action value="$arap"> |
|
309 |
<input class=submit type=submit name=action value="| |
|
310 |
. $locale->text("Save and Invoice") . qq|"> |
|
311 |
<input class=submit type=submit name=action value="| |
|
312 |
. $locale->text("Save and Order") . qq|"> |
|
313 |
<input class=submit type=submit name=action value="$quotation"> |
|
314 |
|; |
|
315 |
|
|
316 |
if ($form->{id} && $form->{status} eq 'orphaned') { |
|
317 |
print qq|<input class=submit type=submit name=action value="| |
|
318 |
. $locale->text('Delete') |
|
319 |
. qq|">\n|; |
|
320 |
} |
|
321 |
|
|
322 |
# button for saving history |
|
323 |
if($form->{id} ne "") { |
|
324 |
print qq| |
|
325 |
<input type=button class=submit onclick=set_history_window(| |
|
326 |
. $form->{id} |
|
327 |
. qq|); name=history id=history value=| |
|
328 |
. $locale->text('history') |
|
329 |
. qq|>|; |
|
330 |
} |
|
331 |
# /button for saving history |
|
332 |
|
|
333 |
print qq| |
|
334 |
|
|
335 |
</form> |
|
336 |
<script type="text/javascript"> |
|
337 |
//Start Tab Content script for UL with id="maintab" Separate multiple ids each with a comma. |
|
338 |
initializetabcontent("maintab") |
|
339 |
</script> |
|
340 |
</body> |
|
341 |
</html> |
|
342 |
|; |
|
343 |
|
|
275 |
print $form->parse_html_template('ct/form_footer', { is_orphaned => $form->{status} eq 'orphaned', |
|
276 |
is_customer => $form->{db} eq 'customer' }); |
|
344 | 277 |
$lxdebug->leave_sub(); |
345 | 278 |
} |
346 | 279 |
|
locale/de/ct | ||
---|---|---|
28 | 28 |
'DUNNING STARTED' => 'Mahnprozess gestartet', |
29 | 29 |
'Dataset upgrade' => 'Datenbankaktualisierung', |
30 | 30 |
'Date' => 'Datum', |
31 |
'Delete' => 'L?schen', |
|
32 | 31 |
'Dependency loop detected:' => 'Schleife in den Abhängigkeiten entdeckt:', |
33 | 32 |
'Description' => 'Beschreibung', |
34 | 33 |
'Directory' => 'Verzeichnis', |
... | ... | |
92 | 91 |
'SCREENED' => 'Angezeigt', |
93 | 92 |
'SIC' => 'SIC', |
94 | 93 |
'Sales Order' => 'Kundenauftrag', |
95 |
'Save' => 'Speichern', |
|
96 |
'Save and AP Transaction' => 'Speichern und Kreditorenbuchung erfassen', |
|
97 |
'Save and AR Transaction' => 'Speichern und Debitorenbuchung erfassen', |
|
98 |
'Save and Close' => 'Speichern und schlie?en', |
|
99 |
'Save and Invoice' => 'Speichern und Rechnung erfassen', |
|
100 |
'Save and Order' => 'Speichern und Auftrag erfassen', |
|
101 |
'Save and Quotation' => 'Speichern und Angebot', |
|
102 |
'Save and RFQ' => 'Speichern und Lieferantenanfrage', |
|
103 | 94 |
'Select a Customer' => 'Endkunde ausw?hlen', |
104 | 95 |
'Select a customer' => 'Einen Kunden auswählen', |
105 | 96 |
'Select a part' => 'Artikel auswählen', |
... | ... | |
136 | 127 |
'customer' => 'Kunde', |
137 | 128 |
'customer_list' => 'kundenliste', |
138 | 129 |
'customernumber not unique!' => 'Die Kundennummer ist schon vergeben', |
139 |
'history' => 'Historie', |
|
140 | 130 |
'invoice' => 'Rechnung', |
141 | 131 |
'no' => 'nein', |
142 | 132 |
'packing_list' => 'Versandliste', |
... | ... | |
215 | 205 |
'weiter' => 'continue', |
216 | 206 |
'l?schen' => 'delete', |
217 | 207 |
'speichern' => 'save', |
218 |
'speichern_und_kreditorenbuchung_erfassen' => 'save_and_ap_transaction', |
|
219 | 208 |
'speichern_und_debitorenbuchung_erfassen' => 'save_and_ar_transaction', |
220 | 209 |
'speichern_und_schlie?en' => 'save_and_close', |
221 | 210 |
'speichern_und_rechnung_erfassen' => 'save_and_invoice', |
222 | 211 |
'speichern_und_auftrag_erfassen' => 'save_and_order', |
223 | 212 |
'speichern_und_angebot' => 'save_and_quotation', |
224 |
'speichern_und_lieferantenanfrage' => 'save_and_rfq', |
|
225 | 213 |
}; |
226 | 214 |
|
227 | 215 |
1; |
templates/webpages/ct/form_footer_de.html | ||
---|---|---|
1 |
|
|
2 |
<input name=id type=hidden id=cvid value=[% id %]> |
|
3 |
<input name=business_save type=hidden value="[% selectbusiness %]"> |
|
4 |
<input name=title_save type=hidden value="[% title %]"> |
|
5 |
|
|
6 |
<input type=hidden name=login value=[% login %]> |
|
7 |
<input type=hidden name=password value=[% password %]> |
|
8 |
|
|
9 |
<input type=hidden name=callback value="[% callback %]"> |
|
10 |
<input type=hidden name=db id=db value=[% db %]> |
|
11 |
|
|
12 |
<br> |
|
13 |
<input class=submit type=submit name=action accesskey="s" value="Speichern"> |
|
14 |
<input class=submit type=submit name=action accesskey="s" value="Speichern und schlie?en"> |
|
15 |
<input class=submit type=submit name=action value=" [% IF is_cumstomer %]Speichern und Debitorenbuchung erfassen[% ELSE %]Speichern und Kreditorenbuchung erfassen[% END %]"> |
|
16 |
<input class=submit type=submit name=action value="Speichern und Rechnung erfassen"> |
|
17 |
<input class=submit type=submit name=action value="Speichern und Auftrag erfassen"> |
|
18 |
<input class=submit type=submit name=action value="[% IF is_customer %]Speichern und Angebot[% ELSE %]Speichern und Lieferantenanfrage[% END %]"> |
|
19 |
[%- IF id AND is_orphaned %] |
|
20 |
<input class=submit type=submit name=action value="L?schen"> |
|
21 |
[%- END %] |
|
22 |
[%- IF id %] |
|
23 |
<input type=button class=submit onclick=set_history_window([% id %]); name=history id=history value=Historie>|; |
|
24 |
[%- END %] |
|
25 |
|
|
26 |
</form> |
|
27 |
<script type="text/javascript"> |
|
28 |
//Start Tab Content script for UL with id="maintab" Separate multiple ids each with a comma. |
|
29 |
initializetabcontent("maintab") |
|
30 |
</script> |
|
31 |
</body> |
|
32 |
</html> |
templates/webpages/ct/form_footer_master.html | ||
---|---|---|
1 |
|
|
2 |
<input name=id type=hidden id=cvid value=[% id %]> |
|
3 |
<input name=business_save type=hidden value="[% selectbusiness %]"> |
|
4 |
<input name=title_save type=hidden value="[% title %]"> |
|
5 |
|
|
6 |
<input type=hidden name=login value=[% login %]> |
|
7 |
<input type=hidden name=password value=[% password %]> |
|
8 |
|
|
9 |
<input type=hidden name=callback value="[% callback %]"> |
|
10 |
<input type=hidden name=db id=db value=[% db %]> |
|
11 |
|
|
12 |
<br> |
|
13 |
<input class=submit type=submit name=action accesskey="s" value="<translate>Save</translate>"> |
|
14 |
<input class=submit type=submit name=action accesskey="s" value="<translate>Save and Close</translate>"> |
|
15 |
<input class=submit type=submit name=action value=" [% IF is_cumstomer %]<translate>Save and AR Transaction</translate>[% ELSE %]<translate>Save and AP Transaction</translate>[% END %]"> |
|
16 |
<input class=submit type=submit name=action value="<translate>Save and Invoice</translate>"> |
|
17 |
<input class=submit type=submit name=action value="<translate>Save and Order</translate>"> |
|
18 |
<input class=submit type=submit name=action value="[% IF is_customer %]<translate>Save and Quotation</translate>[% ELSE %]<translate>Save and RFQ</translate>[% END %]"> |
|
19 |
[%- IF id AND is_orphaned %] |
|
20 |
<input class=submit type=submit name=action value="<translate>Delete</translate>"> |
|
21 |
[%- END %] |
|
22 |
[%- IF id %] |
|
23 |
<input type=button class=submit onclick=set_history_window([% id %]); name=history id=history value=<translate>history</translate>>|; |
|
24 |
[%- END %] |
|
25 |
|
|
26 |
</form> |
|
27 |
<script type="text/javascript"> |
|
28 |
//Start Tab Content script for UL with id="maintab" Separate multiple ids each with a comma. |
|
29 |
initializetabcontent("maintab") |
|
30 |
</script> |
|
31 |
</body> |
|
32 |
</html> |
Auch abrufbar als: Unified diff
CT form_footer auf Templates umgestellt