Revision a731cd26
Von Moritz Bunkus vor mehr als 17 Jahren hinzugefügt
amtemplates.pl | ||
---|---|---|
1 |
am.pl |
bin/mozilla/am.pl | ||
---|---|---|
2434 | 2434 |
$lxdebug->leave_sub(); |
2435 | 2435 |
} |
2436 | 2436 |
|
2437 |
sub display_template { |
|
2438 |
$lxdebug->enter_sub(); |
|
2439 |
|
|
2440 |
$form->{edit} = 0; |
|
2441 |
display_template_form(); |
|
2442 |
|
|
2443 |
$lxdebug->leave_sub(); |
|
2444 |
} |
|
2445 |
|
|
2446 |
sub edit_template { |
|
2447 |
$lxdebug->enter_sub(); |
|
2448 |
|
|
2449 |
$form->{edit} = 1; |
|
2450 |
display_template_form(); |
|
2451 |
|
|
2452 |
$lxdebug->leave_sub(); |
|
2453 |
} |
|
2454 |
|
|
2455 |
sub save_template { |
|
2456 |
$lxdebug->enter_sub(); |
|
2457 |
|
|
2458 |
$form->isblank("formname", $locale->text("You're not editing a file.")) unless ($form->{type} eq "stylesheet"); |
|
2459 |
|
|
2460 |
my ($filename) = AM->prepare_template_filename(\%myconfig, $form); |
|
2461 |
if (my $error = AM->save_template($filename, $form->{content})) { |
|
2462 |
$form->error(sprintf($locale->text("Saving the file '%s' failed. OS error message: %s"), $filename, $error)); |
|
2463 |
} |
|
2464 |
|
|
2465 |
$form->{edit} = 0; |
|
2466 |
display_template_form(); |
|
2467 |
|
|
2468 |
$lxdebug->leave_sub(); |
|
2469 |
} |
|
2470 |
|
|
2471 |
sub display_template_form { |
|
2472 |
$lxdebug->enter_sub(); |
|
2473 |
|
|
2474 |
$form->{formname} =~ s|.*/||; |
|
2475 |
my $format = $form->{format} eq "html" ? "html" : "tex"; |
|
2476 |
|
|
2477 |
my $title = $form->{type} eq "stylesheet" ? $locale->text("Edit the stylesheet") : $locale->text("Edit templates"); |
|
2478 |
$form->{title} = $title; |
|
2479 |
|
|
2480 |
my $edit_options; |
|
2481 |
|
|
2482 |
my @hidden = qw(login path password type format); |
|
2483 |
|
|
2484 |
if (($form->{type} ne "stylesheet") && !$form->{edit}) { |
|
2485 |
$edit_options = "<p>"; |
|
2486 |
|
|
2487 |
my %formname_setup = |
|
2488 |
( |
|
2489 |
"balance_sheet" => { "translation" => $locale->text('Balance Sheet'), "html" => 1 }, |
|
2490 |
"bin_list" => $locale->text('Bin List'), |
|
2491 |
"bwa" => { "translation" => $locale->text('BWA'), "html" => 1 }, |
|
2492 |
"check" => { "translation" => $locale->text('Check'), "html" => 1 }, |
|
2493 |
"credit_note" => $locale->text('Credit Note'), |
|
2494 |
"income_statement" => { "translation" => $locale->text('Income Statement'), "html" => 1 }, |
|
2495 |
"invoice" => $locale->text('Invoice'), |
|
2496 |
"packing_list" => $locale->text('Packing List'), |
|
2497 |
"pick_list" => $locale->text('Pick List'), |
|
2498 |
"proforma" => $locale->text('Proforma Invoice'), |
|
2499 |
"purchase_order" => $locale->text('Purchase Order'), |
|
2500 |
"receipt" => { "translation" => $locale->text('Receipt'), "tex" => 1 }, |
|
2501 |
"request_quotation" => $locale->text('RFQ'), |
|
2502 |
"sales_order" => $locale->text('Confirmation'), |
|
2503 |
"sales_quotation" => $locale->text('Quotation'), |
|
2504 |
"statement" => $locale->text('Statement'), |
|
2505 |
"storno_invoice" => $locale->text('Storno Invoice'), |
|
2506 |
"storno_packing_list" => $locale->text('Storno Packing List'), |
|
2507 |
"ustva-2004" => { "translation" => $locale->text("USTVA 2004"), "tex" => 1 }, |
|
2508 |
"ustva-2005" => { "translation" => $locale->text("USTVA 2005"), "tex" => 1 }, |
|
2509 |
"ustva-2006" => { "translation" => $locale->text("USTVA 2006"), "tex" => 1 }, |
|
2510 |
"ustva-2007" => { "translation" => $locale->text("USTVA 2007"), "tex" => 1 }, |
|
2511 |
"ustva" => $locale->text("USTVA"), |
|
2512 |
"zahlungserinnerung" => $locale->text('Payment Reminder'), |
|
2513 |
); |
|
2514 |
|
|
2515 |
my (@values, %labels, $file, $setup); |
|
2516 |
|
|
2517 |
while (($file, $setup) = each(%formname_setup)) { |
|
2518 |
next unless (!ref($setup) || $setup->{$format}); |
|
2519 |
|
|
2520 |
push(@values, $file); |
|
2521 |
$labels{$file} = ref($setup) ? $setup->{translation} : $setup; |
|
2522 |
} |
|
2523 |
@values = sort({ $labels{$a} cmp $labels{$b} } @values); |
|
2524 |
|
|
2525 |
$edit_options .= |
|
2526 |
$locale->text("Template") . " " . |
|
2527 |
NTI($cgi->popup_menu("-name" => "formname", "-default" => $form->{formname}, |
|
2528 |
"-values" => \@values, "-labels" => \%labels)); |
|
2529 |
|
|
2530 |
$form->get_lists("printers" => "ALL_PRINTERS", |
|
2531 |
"languages" => "ALL_LANGUAGES"); |
|
2532 |
|
|
2533 |
@values = (""); |
|
2534 |
%labels = (); |
|
2535 |
|
|
2536 |
foreach my $item (@{ $form->{ALL_LANGUAGES} }) { |
|
2537 |
next unless ($item->{template_code}); |
|
2538 |
my $key = "$item->{id}--$item->{template_code}"; |
|
2539 |
push(@values, $key); |
|
2540 |
$labels{$key} = $item->{description}; |
|
2541 |
} |
|
2542 |
|
|
2543 |
if (1 != scalar(@values)) { |
|
2544 |
$edit_options .= |
|
2545 |
" " . $locale->text("Language") . " " . |
|
2546 |
NTI($cgi->popup_menu("-name" => "language", "-default" => $form->{language}, |
|
2547 |
"-values" => \@values, "-labels" => \%labels)); |
|
2548 |
} |
|
2549 |
|
|
2550 |
@values = (""); |
|
2551 |
%labels = (); |
|
2552 |
|
|
2553 |
foreach my $item (@{ $form->{ALL_PRINTERS} }) { |
|
2554 |
next unless ($item->{template_code}); |
|
2555 |
my $key = "$item->{id}--$item->{template_code}"; |
|
2556 |
push(@values, $key); |
|
2557 |
$labels{$key} = $item->{printer_description}; |
|
2558 |
} |
|
2559 |
|
|
2560 |
if (1 != scalar(@values)) { |
|
2561 |
$edit_options .= |
|
2562 |
" " . $locale->text("Printer") . " " . |
|
2563 |
NTI($cgi->popup_menu("-name" => "printer", "-default" => $form->{printer}, |
|
2564 |
"-values" => \@values, "-labels" => \%labels)); |
|
2565 |
} |
|
2566 |
|
|
2567 |
$edit_options .= qq| |
|
2568 |
|
|
2569 |
<input type="hidden" name="display_nextsub" value="display_template"> |
|
2570 |
|
|
2571 |
<input name="action" type="submit" class="submit" value="| |
|
2572 |
. $locale->text('Display') . qq|"> |
|
2573 |
|
|
2574 |
</p> |
|
2575 |
|
|
2576 |
<hr> |
|
2577 |
|; |
|
2578 |
|
|
2579 |
} else { |
|
2580 |
push(@hidden, qw(formname language printer)); |
|
2581 |
} |
|
2582 |
|
|
2583 |
if ($form->{formname} || ($form->{type} eq "stylesheet")) { |
|
2584 |
my ($filename, $display_filename) = AM->prepare_template_filename(\%myconfig, $form); |
|
2585 |
my ($content, $lines) = AM->load_template($filename); |
|
2586 |
|
|
2587 |
$body = qq| |
|
2588 |
|; |
|
2589 |
|
|
2590 |
if ($form->{edit}) { |
|
2591 |
$form->{fokus} = "Form.content"; |
|
2592 |
$body = qq|\n<p><div class="listtop">| . $locale->text('Edit file') . " '" . H($display_filename) . qq|'</div></p>\n<p>| |
|
2593 |
. NTI($cgi->textarea("-name" => "content", |
|
2594 |
"-id" => "content", |
|
2595 |
"-default" => $content, |
|
2596 |
"-columns" => 100, |
|
2597 |
"-rows" => 25)) |
|
2598 |
. qq|</p> |
|
2599 |
|
|
2600 |
<p> |
|
2601 |
<input type="hidden" name="save_nextsub" value="save_template"> |
|
2602 |
|
|
2603 |
<input type="submit" name="action" value="| . $locale->text('Save') . qq|"> |
|
2604 |
</p> |
|
2605 |
|; |
|
2606 |
|
|
2607 |
} else { |
|
2608 |
$content = "\n\n" unless ($content); |
|
2609 |
|
|
2610 |
$body = qq| |
|
2611 |
<p><div class="listtop">| . $locale->text('Display file') . " '" . H($display_filename) . qq|'</div></p> |
|
2612 |
|
|
2613 |
<input type="hidden" name="edit_nextsub" value="edit_template"> |
|
2614 |
|
|
2615 |
<p><input name="action" type="submit" class="submit" value="| . $locale->text('Edit') . qq|"></p> |
|
2616 |
|
|
2617 |
<p> |
|
2618 |
<pre class="filecontent">| . H($content) . qq|</pre> |
|
2619 |
</p> |
|
2620 |
|; |
|
2621 |
|
|
2622 |
if ($lines > 25) { |
|
2623 |
$body .= qq| |
|
2624 |
<input name="action" type="submit" class="submit" value="| |
|
2625 |
. $locale->text('Edit') . qq|"> |
|
2626 |
|; |
|
2627 |
} |
|
2628 |
} |
|
2629 |
} |
|
2630 |
|
|
2631 |
$form->header; |
|
2632 |
|
|
2633 |
print qq| |
|
2634 |
<body> |
|
2635 |
|
|
2636 |
<div class="listheading">$title</div> |
|
2637 |
|
|
2638 |
<form method="post" name="Form" action="am.pl"> |
|
2639 |
|
|
2640 |
|; |
|
2641 |
$form->hide_form(@hidden); |
|
2642 |
|
|
2643 |
print qq| |
|
2644 |
$edit_options |
|
2645 |
|
|
2646 |
$body |
|
2647 |
|
|
2648 |
</form> |
|
2649 |
|
|
2650 |
</body> |
|
2651 |
</html> |
|
2652 |
|; |
|
2653 |
|
|
2654 |
$lxdebug->leave_sub(); |
|
2655 |
} |
|
2656 |
|
|
2657 | 2437 |
sub config { |
2658 | 2438 |
$lxdebug->enter_sub(); |
2659 | 2439 |
|
bin/mozilla/amtemplates.pl | ||
---|---|---|
1 |
#===================================================================== |
|
2 |
# LX-Office ERP |
|
3 |
# Copyright (C) 2004 |
|
4 |
# Based on SQL-Ledger Version 2.1.9 |
|
5 |
# Web http://www.lx-office.org |
|
6 |
# |
|
7 |
#===================================================================== |
|
8 |
# SQL-Ledger Accounting |
|
9 |
# Copyright (c) 1998-2002 |
|
10 |
# |
|
11 |
# Author: Dieter Simader |
|
12 |
# Email: dsimader@sql-ledger.org |
|
13 |
# Web: http://www.sql-ledger.org |
|
14 |
# |
|
15 |
# |
|
16 |
# This program is free software; you can redistribute it and/or modify |
|
17 |
# it under the terms of the GNU General Public License as published by |
|
18 |
# the Free Software Foundation; either version 2 of the License, or |
|
19 |
# (at your option) any later version. |
|
20 |
# |
|
21 |
# This program is distributed in the hope that it will be useful, |
|
22 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
23 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
24 |
# GNU General Public License for more details. |
|
25 |
# You should have received a copy of the GNU General Public License |
|
26 |
# along with this program; if not, write to the Free Software |
|
27 |
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|
28 |
#====================================================================== |
|
29 |
# |
|
30 |
# administration |
|
31 |
# |
|
32 |
#====================================================================== |
|
33 |
|
|
34 |
use SL::AM; |
|
35 |
use SL::Form; |
|
36 |
|
|
37 |
use Data::Dumper; |
|
38 |
|
|
39 |
1; |
|
40 |
|
|
41 |
require "$form->{path}/common.pl"; |
|
42 |
|
|
43 |
# end of main |
|
44 |
|
|
45 |
sub display { |
|
46 |
if ($form->{display_nextsub}) { |
|
47 |
&{ $form->{display_nextsub} }(); |
|
48 |
} else { |
|
49 |
die "display_nextsub not defined"; |
|
50 |
} |
|
51 |
} |
|
52 |
|
|
53 |
sub save { |
|
54 |
if ($form->{save_nextsub}) { |
|
55 |
&{ $form->{save_nextsub} }(); |
|
56 |
} else { |
|
57 |
die "save_nextsub not defined"; |
|
58 |
} |
|
59 |
} |
|
60 |
|
|
61 |
sub edit { |
|
62 |
if ($form->{edit_nextsub}) { |
|
63 |
&{ $form->{edit_nextsub} }(); |
|
64 |
} else { |
|
65 |
die "edit_nextsub not defined"; |
|
66 |
} |
|
67 |
} |
|
68 |
|
|
69 |
sub display_template { |
|
70 |
$lxdebug->enter_sub(); |
|
71 |
|
|
72 |
$form->{edit} = 0; |
|
73 |
display_template_form(); |
|
74 |
|
|
75 |
$lxdebug->leave_sub(); |
|
76 |
} |
|
77 |
|
|
78 |
sub edit_template { |
|
79 |
$lxdebug->enter_sub(); |
|
80 |
|
|
81 |
$form->{edit} = 1; |
|
82 |
display_template_form(); |
|
83 |
|
|
84 |
$lxdebug->leave_sub(); |
|
85 |
} |
|
86 |
|
|
87 |
sub save_template { |
|
88 |
$lxdebug->enter_sub(); |
|
89 |
|
|
90 |
$form->isblank("formname", $locale->text("You're not editing a file.")) unless ($form->{type} eq "stylesheet"); |
|
91 |
|
|
92 |
my ($filename) = AM->prepare_template_filename(\%myconfig, $form); |
|
93 |
if (my $error = AM->save_template($filename, $form->{content})) { |
|
94 |
$form->error(sprintf($locale->text("Saving the file '%s' failed. OS error message: %s"), $filename, $error)); |
|
95 |
} |
|
96 |
|
|
97 |
$form->{edit} = 0; |
|
98 |
display_template_form(); |
|
99 |
|
|
100 |
$lxdebug->leave_sub(); |
|
101 |
} |
|
102 |
|
|
103 |
sub display_template_form { |
|
104 |
$lxdebug->enter_sub(); |
|
105 |
|
|
106 |
$form->{"formname"} =~ s|.*/||; |
|
107 |
my $format = $form->{"format"} eq "html" ? "html" : "tex"; |
|
108 |
|
|
109 |
$form->{"title"} = $form->{"type"} eq "stylesheet" ? $locale->text("Edit the stylesheet") : $locale->text("Edit templates"); |
|
110 |
|
|
111 |
my %options; |
|
112 |
|
|
113 |
my @hidden = qw(login path password type format); |
|
114 |
|
|
115 |
if (($form->{"type"} ne "stylesheet") && !$form->{"edit"}) { |
|
116 |
$options{"SHOW_EDIT_OPTIONS"} = 1; |
|
117 |
|
|
118 |
# |
|
119 |
# Setup "formname" selection |
|
120 |
# |
|
121 |
|
|
122 |
my %formname_setup = |
|
123 |
( |
|
124 |
"balance_sheet" => { "translation" => $locale->text('Balance Sheet'), "html" => 1 }, |
|
125 |
"bin_list" => $locale->text('Bin List'), |
|
126 |
"bwa" => { "translation" => $locale->text('BWA'), "html" => 1 }, |
|
127 |
"check" => { "translation" => $locale->text('Check'), "html" => 1 }, |
|
128 |
"credit_note" => $locale->text('Credit Note'), |
|
129 |
"income_statement" => { "translation" => $locale->text('Income Statement'), "html" => 1 }, |
|
130 |
"invoice" => $locale->text('Invoice'), |
|
131 |
"packing_list" => $locale->text('Packing List'), |
|
132 |
"pick_list" => $locale->text('Pick List'), |
|
133 |
"proforma" => $locale->text('Proforma Invoice'), |
|
134 |
"purchase_order" => $locale->text('Purchase Order'), |
|
135 |
"receipt" => { "translation" => $locale->text('Receipt'), "tex" => 1 }, |
|
136 |
"request_quotation" => $locale->text('RFQ'), |
|
137 |
"sales_order" => $locale->text('Confirmation'), |
|
138 |
"sales_quotation" => $locale->text('Quotation'), |
|
139 |
"statement" => $locale->text('Statement'), |
|
140 |
"storno_invoice" => $locale->text('Storno Invoice'), |
|
141 |
"storno_packing_list" => $locale->text('Storno Packing List'), |
|
142 |
"ustva-2004" => { "translation" => $locale->text("USTVA 2004"), "tex" => 1 }, |
|
143 |
"ustva-2005" => { "translation" => $locale->text("USTVA 2005"), "tex" => 1 }, |
|
144 |
"ustva-2006" => { "translation" => $locale->text("USTVA 2006"), "tex" => 1 }, |
|
145 |
"ustva-2007" => { "translation" => $locale->text("USTVA 2007"), "tex" => 1 }, |
|
146 |
"ustva" => $locale->text("USTVA"), |
|
147 |
"zahlungserinnerung" => $locale->text('Payment Reminder'), |
|
148 |
); |
|
149 |
|
|
150 |
my (@values, $file, $setup); |
|
151 |
|
|
152 |
while (($file, $setup) = each(%formname_setup)) { |
|
153 |
next unless (!ref($setup) || $setup->{$format}); |
|
154 |
|
|
155 |
push(@values, |
|
156 |
{ "value" => $file, |
|
157 |
"label" => ref($setup) ? $setup->{"translation"} : $setup, |
|
158 |
"default" => $file eq $form->{"formname"} }); |
|
159 |
} |
|
160 |
|
|
161 |
@values = sort({ $a->{"label"} cmp $b->{"label"} } @values); |
|
162 |
|
|
163 |
$options{"FORMNAME"} = [ @values ]; |
|
164 |
|
|
165 |
# |
|
166 |
# Setup "language" selection |
|
167 |
# |
|
168 |
|
|
169 |
$form->get_lists("printers" => "ALL_PRINTERS", |
|
170 |
"languages" => "ALL_LANGUAGES"); |
|
171 |
|
|
172 |
@values = ( { "value" => "", "label" => "", "default" => 0 } ); |
|
173 |
|
|
174 |
foreach my $item (@{ $form->{"ALL_LANGUAGES"} }) { |
|
175 |
next unless ($item->{"template_code"}); |
|
176 |
|
|
177 |
my $key = "$item->{id}--$item->{template_code}"; |
|
178 |
|
|
179 |
push(@values, |
|
180 |
{ "value" => $key, |
|
181 |
"label" => $item->{"description"}, |
|
182 |
"default" => $key eq $form->{"language"} }); |
|
183 |
} |
|
184 |
|
|
185 |
$options{"LANGUAGE"} = [ @values ]; |
|
186 |
$options{"SHOW_LANGUAGE"} = scalar(@values) > 1; |
|
187 |
|
|
188 |
@values = ( { "value" => "", "label" => "", "default" => 0 } ); |
|
189 |
|
|
190 |
# |
|
191 |
# Setup "printer" selection |
|
192 |
# |
|
193 |
|
|
194 |
foreach my $item (@{ $form->{"ALL_PRINTERS"} }) { |
|
195 |
next unless ($item->{"template_code"}); |
|
196 |
|
|
197 |
my $key = "$item->{id}--$item->{template_code}"; |
|
198 |
|
|
199 |
push(@values, |
|
200 |
{ "value" => $key, |
|
201 |
"label" => $item->{"printer_description"}, |
|
202 |
"default" => $key eq $form->{"printer"} }); |
|
203 |
} |
|
204 |
|
|
205 |
$options{"PRINTER"} = [ @values ]; |
|
206 |
$options{"SHOW_PRINTER"} = scalar(@values) > 1; |
|
207 |
|
|
208 |
} else { |
|
209 |
push(@hidden, qw(formname language printer)); |
|
210 |
} |
|
211 |
|
|
212 |
if ($form->{formname} || ($form->{type} eq "stylesheet")) { |
|
213 |
$options{"SHOW_CONTENT"} = 1; |
|
214 |
|
|
215 |
($options{"filename"}, $options{"display_filename"}) |
|
216 |
= AM->prepare_template_filename(\%myconfig, $form); |
|
217 |
|
|
218 |
($options{"content"}, $options{"lines"}) |
|
219 |
= AM->load_template($options{"filename"}); |
|
220 |
|
|
221 |
$options{"CAN_EDIT"} = $form->{"edit"}; |
|
222 |
|
|
223 |
if ($form->{edit}) { |
|
224 |
$form->{fokus} = "Form.content"; |
|
225 |
|
|
226 |
} else { |
|
227 |
$options{"content"} = "\n\n" if (!$options{"content"}); |
|
228 |
$options{"SHOW_SECOND_EDIT_BUTTON"} = $options{"lines"} > 25; |
|
229 |
} |
|
230 |
} |
|
231 |
|
|
232 |
$options{"HIDDEN"} = [ map(+{ "name" => $_, "value" => $form->{$_} }, @hidden) ]; |
|
233 |
|
|
234 |
$form->header; |
|
235 |
print($form->parse_html_template("am/edit_templates", \%options)); |
|
236 |
|
|
237 |
$lxdebug->leave_sub(); |
|
238 |
} |
|
239 |
|
|
240 |
1; |
locale/de/am | ||
---|---|---|
64 | 64 |
'Aufwand EU o. UStId' => 'Aufwand EU o. UStId', |
65 | 65 |
'Aufwand Inland' => 'Aufwand Inland', |
66 | 66 |
'BWA' => 'BWA', |
67 |
'Balance Sheet' => 'Bilanz', |
|
68 | 67 |
'Bestandskonto' => 'Bestandskonto', |
69 | 68 |
'Bilanz' => 'Bilanz', |
70 |
'Bin List' => 'Lagerliste', |
|
71 | 69 |
'Books are open' => 'Die B?cher sind ge?ffnet.', |
72 | 70 |
'Buchungsgruppe' => 'Buchungsgruppe', |
73 | 71 |
'Buchungsgruppe bearbeiten' => 'Buchungsgruppe bearbeiten', |
... | ... | |
83 | 81 |
'Cannot save account!' => 'Konto kann nicht gespeichert werden!', |
84 | 82 |
'Cannot save preferences!' => 'Benutzereinstellungen k?nnen nicht gespeichert werden!', |
85 | 83 |
'Chart of Accounts' => 'Konten?bersicht', |
86 |
'Check' => 'Check', |
|
87 | 84 |
'Close Books up to' => 'Die B?cher abschlie?en bis zum', |
88 | 85 |
'Company' => 'Firma', |
89 |
'Confirmation' => 'Auftragsbest?tigung', |
|
90 | 86 |
'Continue' => 'Weiter', |
91 | 87 |
'Cost Center' => 'Kostenstelle', |
92 | 88 |
'Costs' => 'Kosten', |
93 |
'Credit Note' => 'Gutschrift', |
|
94 | 89 |
'Customer Number' => 'Kundennummer', |
95 | 90 |
'Customernumberinit' => 'Kunden-/Lieferantennummernkreis', |
96 | 91 |
'DELETED' => 'Gel?scht', |
... | ... | |
109 | 104 |
'Description' => 'Beschreibung', |
110 | 105 |
'Description missing!' => 'Beschreibung fehlt.', |
111 | 106 |
'Discount' => 'Rabatt', |
112 |
'Display' => 'Anzeigen', |
|
113 |
'Display file' => 'Datei anzeigen', |
|
114 | 107 |
'Dropdown Limit' => 'Auswahllistenbegrenzung', |
115 | 108 |
'E-mail' => 'eMail', |
116 | 109 |
'ELSE' => 'Zusatz', |
117 | 110 |
'EUER' => 'Einnahmen-/?berschussrechnung', |
118 |
'Edit' => 'Bearbeiten', |
|
119 | 111 |
'Edit Account' => 'Kontodaten bearbeiten', |
120 | 112 |
'Edit Buchungsgruppe' => 'Buchungsgruppe bearbeiten', |
121 | 113 |
'Edit Business' => 'Kunden-/Lieferantentyp bearbeiten', |
... | ... | |
125 | 117 |
'Edit Payment Terms' => 'Zahlungskonditionen bearbeiten', |
126 | 118 |
'Edit Preferences for' => 'Benutzereinstellungen f?r', |
127 | 119 |
'Edit Printer' => 'Drucker bearbeiten', |
128 |
'Edit file' => 'Datei bearbeiten', |
|
129 |
'Edit templates' => 'Vorlage bearbeiten', |
|
130 |
'Edit the stylesheet' => 'Stilvorlage bearbeiten', |
|
131 | 120 |
'Enforce transaction reversal for all dates' => 'Gegenbuchungen f?r jeden Zeitraum aktualisieren', |
132 | 121 |
'Enter longdescription' => 'Langtext eingeben', |
133 | 122 |
'Enter up to 3 letters separated by a colon (i.e CAD:USD:EUR) for your native and foreign currencies' => 'Geben Sie Ihre und weitere W?hrungen mit bis zu drei Buchstaben pro W?hrung und W?hrungen durch Doppelpunkte getrennt ein (z.B. EUR:USD:CAD)', |
... | ... | |
151 | 140 |
'History' => 'Historie', |
152 | 141 |
'History Search' => 'Historien Suche', |
153 | 142 |
'Include in drop-down menus' => 'In Aufklappmen? aufnehmen', |
154 |
'Income Statement' => 'GuV', |
|
155 | 143 |
'Inventory' => 'Inventar', |
156 | 144 |
'Inventory Account' => 'Warenbestand', |
157 |
'Invoice' => 'Rechnung', |
|
158 | 145 |
'Is this a summary account to record' => 'Buchungskonto in', |
159 | 146 |
'Language' => 'Sprache', |
160 | 147 |
'Language deleted!' => 'Sprache gel?scht!', |
... | ... | |
201 | 188 |
'POSTED' => 'Gebucht', |
202 | 189 |
'POSTED AS NEW' => 'Als neu gebucht', |
203 | 190 |
'PRINTED' => 'Gedruckt', |
204 |
'Packing List' => 'Lieferschein', |
|
205 | 191 |
'Part Number' => 'Artikelnummer', |
206 | 192 |
'Part description' => 'Artikelbeschreibung', |
207 | 193 |
'Parts Inventory' => 'Warenliste', |
208 | 194 |
'Password' => 'Passwort', |
209 | 195 |
'Payables' => 'Verbindlichkeiten', |
210 | 196 |
'Payment' => 'Zahlungsausgang', |
211 |
'Payment Reminder' => 'Zahlungserinnerung', |
|
212 | 197 |
'Payment Terms' => 'Zahlungskonditionen', |
213 | 198 |
'Payment Terms saved!' => 'Zahlungskonditionen gespeichert!', |
214 | 199 |
'Payment terms deleted!' => 'Zahlungskonditionen gel?scht!', |
215 | 200 |
'Phone' => 'Telefon', |
216 |
'Pick List' => 'Sammelliste', |
|
217 | 201 |
'Please enter values' => 'Bitte Werte eingeben', |
218 | 202 |
'Postscript' => 'Postscript', |
219 | 203 |
'Preferences saved!' => 'Einstellungen gespeichert!', |
... | ... | |
225 | 209 |
'Printer deleted!' => 'Drucker gel?scht!', |
226 | 210 |
'Printer saved!' => 'Drucker gespeichert!', |
227 | 211 |
'Profit Center' => 'Erfolgsbereich', |
228 |
'Proforma Invoice' => 'Proformarechnung', |
|
229 | 212 |
'Project Number' => 'Projektnummer', |
230 | 213 |
'Project description' => 'Projektbeschreibung', |
231 |
'Purchase Order' => 'Lieferantenauftrag', |
|
232 | 214 |
'Queue' => 'Warteschlange', |
233 |
'Quotation' => 'Angebot', |
|
234 |
'RFQ' => 'Anfrage', |
|
235 | 215 |
'Rate' => 'Rate', |
236 | 216 |
'Receipt' => 'Zahlungseingang', |
237 | 217 |
'Receivables' => 'Forderungen', |
... | ... | |
241 | 221 |
'SAVED FOR DUNNING' => 'Gespeichert', |
242 | 222 |
'SCREENED' => 'Angezeigt', |
243 | 223 |
'Save' => 'Speichern', |
244 |
'Saving the file \'%s\' failed. OS error message: %s' => 'Das Speichern der Datei \'%s\' schlug fehl. Fehlermeldung des Betriebssystems: %s', |
|
245 | 224 |
'Screen' => 'Bildschirm', |
246 | 225 |
'Select a Customer' => 'Endkunde ausw?hlen', |
247 | 226 |
'Select a part' => 'Artikel auswählen', |
... | ... | |
253 | 232 |
'Signature' => 'Unterschrift', |
254 | 233 |
'Skonto' => 'Skonto', |
255 | 234 |
'Skonto Terms' => 'Zahlungsziel Skonto', |
256 |
'Statement' => 'Sammelrechnung', |
|
257 | 235 |
'Steuersatz' => 'Steuersatz', |
258 |
'Storno Invoice' => 'Stornorechnung', |
|
259 |
'Storno Packing List' => 'Stornolieferschein', |
|
260 | 236 |
'Stylesheet' => 'Stilvorlage', |
261 | 237 |
'Tax' => 'Steuer', |
262 | 238 |
'Tax Accounts' => 'Steuerkonto', |
263 |
'Template' => 'Druckvorlage', |
|
264 | 239 |
'Template Code' => 'Vorlagenk?rzel', |
265 | 240 |
'Template Code missing!' => 'Vorlagenk?rzel fehlt!', |
266 | 241 |
'The \'tag\' field must only consist of alphanumeric characters or the carachters - _ ( )' => 'Das Feld \'tag\' darf nur aus alphanumerischen Zeichen und den Zeichen - _ ( ) bestehen.', |
... | ... | |
282 | 257 |
'Transaction reversal enforced up to' => 'Fehleintragungen k?nnen bis zu dem angegebenen Zeitraum nur mit einer Kontraeintragung ausgebessert werden!', |
283 | 258 |
'Translation (%s)' => 'Übersetzung (%s)', |
284 | 259 |
'Type of Business' => 'Kunden-/Lieferantentyp', |
285 |
'USTVA' => 'USTVA', |
|
286 |
'USTVA 2004' => 'USTVA 2004', |
|
287 |
'USTVA 2005' => 'USTVA 2005', |
|
288 |
'USTVA 2006' => 'USTVA 2006', |
|
289 |
'USTVA 2007' => 'USTVA 2007', |
|
290 | 260 |
'UStVA-Nr. 35' => 'Kz. 35', |
291 | 261 |
'UStVA-Nr. 36' => 'Kz. 36', |
292 | 262 |
'UStVA-Nr. 39' => 'Kz. 37', |
... | ... | |
343 | 313 |
'Year End' => 'Jahresende', |
344 | 314 |
'Yes' => 'Ja', |
345 | 315 |
'You can use the following strings in the long description and all translations. They will be replaced by their actual values by Lx-Office before they\'re output.' => 'Sie können im Langtext und allen ?bersetzungen die folgenden Variablen benutzen, die vor der Ausgabe von Lx-Office automatisch ersetzt werden:', |
346 |
'You\'re not editing a file.' => 'Sie bearbeiten momentan keine Datei.', |
|
347 | 316 |
'bin_list' => 'Lagerliste', |
348 | 317 |
'dimension units' => 'Maßeinheiten', |
349 | 318 |
'down' => 'runter', |
... | ... | |
397 | 366 |
'delivery_customer_selection' => 'delivery_customer_selection', |
398 | 367 |
'department_header' => 'department_header', |
399 | 368 |
'display' => 'display', |
400 |
'display_template' => 'display_template', |
|
401 |
'display_template_form' => 'display_template_form', |
|
402 | 369 |
'doclose' => 'doclose', |
403 | 370 |
'edit' => 'edit', |
404 | 371 |
'edit_account' => 'edit_account', |
... | ... | |
409 | 376 |
'edit_lead' => 'edit_lead', |
410 | 377 |
'edit_payment' => 'edit_payment', |
411 | 378 |
'edit_printer' => 'edit_printer', |
412 |
'edit_template' => 'edit_template', |
|
413 | 379 |
'edit_units' => 'edit_units', |
414 | 380 |
'employee_selection_internal' => 'employee_selection_internal', |
415 | 381 |
'form_footer' => 'form_footer', |
... | ... | |
442 | 408 |
'save_payment' => 'save_payment', |
443 | 409 |
'save_preferences' => 'save_preferences', |
444 | 410 |
'save_printer' => 'save_printer', |
445 |
'save_template' => 'save_template', |
|
446 | 411 |
'save_unit' => 'save_unit', |
447 | 412 |
'select_employee' => 'select_employee', |
448 | 413 |
'select_employee_internal' => 'select_employee_internal', |
... | ... | |
461 | 426 |
'konto_erfassen' => 'add_account', |
462 | 427 |
'weiter' => 'continue', |
463 | 428 |
'l?schen' => 'delete', |
464 |
'anzeigen' => 'display', |
|
465 |
'bearbeiten' => 'edit', |
|
466 | 429 |
'kontodaten_bearbeiten' => 'edit_account', |
467 | 430 |
'speichern' => 'save', |
468 | 431 |
'abschicken' => 'abschicken', |
locale/de/amtemplates | ||
---|---|---|
1 |
$self->{texts} = { |
|
2 |
'ADDED' => 'Hinzugef?gt', |
|
3 |
'Address' => 'Adresse', |
|
4 |
'BWA' => 'BWA', |
|
5 |
'Balance Sheet' => 'Bilanz', |
|
6 |
'Bin List' => 'Lagerliste', |
|
7 |
'Check' => 'Check', |
|
8 |
'Confirmation' => 'Auftragsbest?tigung', |
|
9 |
'Credit Note' => 'Gutschrift', |
|
10 |
'Customer Number' => 'Kundennummer', |
|
11 |
'DELETED' => 'Gel?scht', |
|
12 |
'DUNNING STARTED' => 'DUNNING STARTED', |
|
13 |
'Dataset upgrade' => 'Datenbankaktualisierung', |
|
14 |
'Dependency loop detected:' => 'Schleife in den Abhängigkeiten entdeckt:', |
|
15 |
'ELSE' => 'Zusatz', |
|
16 |
'Edit templates' => 'Vorlage bearbeiten', |
|
17 |
'Edit the stylesheet' => 'Stilvorlage bearbeiten', |
|
18 |
'Enter longdescription' => 'Langtext eingeben', |
|
19 |
'Error in database control file \'%s\': %s' => 'Fehler in Datenbankupgradekontrolldatei \'%s\': %s', |
|
20 |
'History' => 'Historie', |
|
21 |
'Income Statement' => 'GuV', |
|
22 |
'Invoice' => 'Rechnung', |
|
23 |
'MAILED' => 'Gesendet', |
|
24 |
'Missing \'description\' field.' => 'Fehlendes Feld \'description\'.', |
|
25 |
'Missing \'tag\' field.' => 'Fehlendes Feld \'tag\'.', |
|
26 |
'More than one control file with the tag \'%s\' exist.' => 'Es gibt mehr als eine Kontrolldatei mit dem Tag \'%s\'.', |
|
27 |
'Name' => 'Name', |
|
28 |
'No Customer was found matching the search parameters.' => 'Zu dem Suchbegriff wurde kein Endkunde gefunden', |
|
29 |
'No Vendor was found matching the search parameters.' => 'Zu dem Suchbegriff wurde kein H?ndler gefunden', |
|
30 |
'No employee was found matching the search parameters.' => 'Es wurde kein Angestellter gefunden, auf den die Suchparameter zutreffen.', |
|
31 |
'No part was found matching the search parameters.' => 'Es wurde kein Artikel gefunden, auf den die Suchparameter zutreffen.', |
|
32 |
'No project was found matching the search parameters.' => 'Es wurde kein Projekt gefunden, auf das die Suchparameter zutreffen.', |
|
33 |
'PAYMENT POSTED' => 'Rechung gebucht', |
|
34 |
'POSTED' => 'Gebucht', |
|
35 |
'POSTED AS NEW' => 'Als neu gebucht', |
|
36 |
'PRINTED' => 'Gedruckt', |
|
37 |
'Packing List' => 'Lieferschein', |
|
38 |
'Part Number' => 'Artikelnummer', |
|
39 |
'Part description' => 'Artikelbeschreibung', |
|
40 |
'Payment Reminder' => 'Zahlungserinnerung', |
|
41 |
'Pick List' => 'Sammelliste', |
|
42 |
'Please enter values' => 'Bitte Werte eingeben', |
|
43 |
'Proforma Invoice' => 'Proformarechnung', |
|
44 |
'Project Number' => 'Projektnummer', |
|
45 |
'Project description' => 'Projektbeschreibung', |
|
46 |
'Purchase Order' => 'Lieferantenauftrag', |
|
47 |
'Quotation' => 'Angebot', |
|
48 |
'RFQ' => 'Anfrage', |
|
49 |
'Receipt' => 'Zahlungseingang', |
|
50 |
'SAVED' => 'Gespeichert', |
|
51 |
'SAVED FOR DUNNING' => 'Gespeichert', |
|
52 |
'SCREENED' => 'Angezeigt', |
|
53 |
'Saving the file \'%s\' failed. OS error message: %s' => 'Das Speichern der Datei \'%s\' schlug fehl. Fehlermeldung des Betriebssystems: %s', |
|
54 |
'Select a Customer' => 'Endkunde ausw?hlen', |
|
55 |
'Select a part' => 'Artikel auswählen', |
|
56 |
'Select a project' => 'Projekt auswählen', |
|
57 |
'Select an employee' => 'Angestellten auswählen', |
|
58 |
'Statement' => 'Sammelrechnung', |
|
59 |
'Storno Invoice' => 'Stornorechnung', |
|
60 |
'Storno Packing List' => 'Stornolieferschein', |
|
61 |
'The \'tag\' field must only consist of alphanumeric characters or the carachters - _ ( )' => 'Das Feld \'tag\' darf nur aus alphanumerischen Zeichen und den Zeichen - _ ( ) bestehen.', |
|
62 |
'USTVA' => 'USTVA', |
|
63 |
'USTVA 2004' => 'USTVA 2004', |
|
64 |
'USTVA 2005' => 'USTVA 2005', |
|
65 |
'USTVA 2006' => 'USTVA 2006', |
|
66 |
'USTVA 2007' => 'USTVA 2007', |
|
67 |
'Unit' => 'Einheit', |
|
68 |
'Unknown dependency \'%s\'.' => 'Unbekannte Abhängigkeit \'%s\'.', |
|
69 |
'Value' => 'Wert', |
|
70 |
'Variable' => 'Variable', |
|
71 |
'You\'re not editing a file.' => 'Sie bearbeiten momentan keine Datei.', |
|
72 |
'bin_list' => 'Lagerliste', |
|
73 |
'invoice' => 'Rechnung', |
|
74 |
'packing_list' => 'Versandliste', |
|
75 |
'pick_list' => 'Entnahmeliste', |
|
76 |
'proforma' => 'Proforma', |
|
77 |
'purchase_order' => 'Auftrag', |
|
78 |
'request_quotation' => 'Angebotsanforderung', |
|
79 |
'sales_order' => 'Kundenauftrag', |
|
80 |
'sales_quotation' => 'Verkaufsangebot', |
|
81 |
}; |
|
82 |
|
|
83 |
$self->{subs} = { |
|
84 |
'E' => 'E', |
|
85 |
'H' => 'H', |
|
86 |
'NTI' => 'NTI', |
|
87 |
'Q' => 'Q', |
|
88 |
'build_std_url' => 'build_std_url', |
|
89 |
'calculate_qty' => 'calculate_qty', |
|
90 |
'delivery_customer_selection' => 'delivery_customer_selection', |
|
91 |
'display' => 'display', |
|
92 |
'display_template' => 'display_template', |
|
93 |
'display_template_form' => 'display_template_form', |
|
94 |
'edit' => 'edit', |
|
95 |
'edit_template' => 'edit_template', |
|
96 |
'employee_selection_internal' => 'employee_selection_internal', |
|
97 |
'format_dates' => 'format_dates', |
|
98 |
'part_selection_internal' => 'part_selection_internal', |
|
99 |
'project_selection_internal' => 'project_selection_internal', |
|
100 |
'reformat_numbers' => 'reformat_numbers', |
|
101 |
'restore_form' => 'restore_form', |
|
102 |
'save' => 'save', |
|
103 |
'save_form' => 'save_form', |
|
104 |
'save_template' => 'save_template', |
|
105 |
'select_employee' => 'select_employee', |
|
106 |
'select_employee_internal' => 'select_employee_internal', |
|
107 |
'select_part' => 'select_part', |
|
108 |
'select_part_internal' => 'select_part_internal', |
|
109 |
'set_longdescription' => 'set_longdescription', |
|
110 |
'show_history' => 'show_history', |
|
111 |
'vendor_selection' => 'vendor_selection', |
|
112 |
'weiter' => 'continue', |
|
113 |
'anzeigen' => 'display', |
|
114 |
'bearbeiten' => 'edit', |
|
115 |
'speichern' => 'save', |
|
116 |
}; |
|
117 |
|
|
118 |
1; |
menu.ini | ||
---|---|---|
574 | 574 |
submenu=1 |
575 | 575 |
|
576 | 576 |
[System--Templates--HTML Templates] |
577 |
module=am.pl |
|
577 |
module=amtemplates.pl
|
|
578 | 578 |
action=display_template_form |
579 | 579 |
type=templates |
580 | 580 |
format=html |
581 | 581 |
|
582 | 582 |
[System--Templates--LaTeX Templates] |
583 |
module=am.pl |
|
583 |
module=amtemplates.pl
|
|
584 | 584 |
action=display_template_form |
585 | 585 |
type=templates |
586 | 586 |
format=tex |
587 | 587 |
|
588 | 588 |
[System--Templates--Stylesheet] |
589 |
module=am.pl |
|
589 |
module=amtemplates.pl
|
|
590 | 590 |
action=display_template_form |
591 | 591 |
type=stylesheet |
592 | 592 |
|
templates/webpages/am/edit_templates_de.html | ||
---|---|---|
1 |
<body> |
|
2 |
|
|
3 |
<div class="listheading"><TMPL_VAR title></div> |
|
4 |
|
|
5 |
<form method="post" name="Form" action="amtemplates.pl"> |
|
6 |
|
|
7 |
<TMPL_LOOP HIDDEN><input type="hidden" name="<TMPL_VAR name ESCAPE=HTML>" value="<TMPL_VAR value ESCAPE=HTML>"></TMPL_LOOP> |
|
8 |
|
|
9 |
<TMPL_IF SHOW_EDIT_OPTIONS> |
|
10 |
<p> |
|
11 |
Druckvorlage |
|
12 |
<select name="formname"> |
|
13 |
<TMPL_LOOP FORMNAME><option value="<TMPL_VAR value ESCAPE=HTML>" <TMPL_IF default>selected</TMPL_IF>><TMPL_VAR label ESCAPE=HTML></option></TMPL_LOOP> |
|
14 |
</select> |
|
15 |
|
|
16 |
<TMPL_IF SHOW_LANGUAGE> |
|
17 |
Sprache |
|
18 |
<select name="language"> |
|
19 |
<TMPL_LOOP LANGUAGE><option value="<TMPL_VAR value ESCAPE=HTML>" <TMPL_IF default>selected</TMPL_IF>><TMPL_VAR label ESCAPE=HTML></option></TMPL_LOOP> |
|
20 |
</select> |
|
21 |
</TMPL_IF> |
|
22 |
|
|
23 |
<TMPL_IF SHOW_PRINTER> |
|
24 |
Drucker |
|
25 |
<select name="printer"> |
|
26 |
<TMPL_LOOP PRINTER><option value="<TMPL_VAR value ESCAPE=HTML>" <TMPL_IF default>selected</TMPL_IF>><TMPL_VAR label ESCAPE=HTML></option></TMPL_LOOP> |
|
27 |
</select> |
|
28 |
</TMPL_IF> |
|
29 |
|
|
30 |
<input type="hidden" name="display_nextsub" value="display_template"> |
|
31 |
|
|
32 |
<input name="action" type="submit" class="submit" value="Anzeigen"> |
|
33 |
|
|
34 |
</p> |
|
35 |
|
|
36 |
<hr> |
|
37 |
</TMPL_IF> |
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
<TMPL_IF SHOW_CONTENT> |
|
42 |
<p> |
|
43 |
<div class="listtop"> |
|
44 |
<TMPL_IF CAN_EDIT>Datei bearbeiten<TMPL_ELSE>Datei anzeigen</TMPL_IF> <TMPL_VAR display_filename ESCAPE=HTML> |
|
45 |
</div> |
|
46 |
</p> |
|
47 |
|
|
48 |
<TMPL_IF CAN_EDIT> |
|
49 |
<p><textarea name="content" id="content" cols="100" rows="25"><TMPL_VAR content ESCAPE=HTML></textarea></p> |
|
50 |
|
|
51 |
<p> |
|
52 |
<input type="hidden" name="save_nextsub" value="save_template"> |
|
53 |
<input type="submit" name="action" value="Speichern"> |
|
54 |
</p> |
|
55 |
|
|
56 |
<TMPL_ELSE> |
|
57 |
|
|
58 |
<input type="hidden" name="edit_nextsub" value="edit_template"> |
|
59 |
|
|
60 |
<p><input name="action" type="submit" class="submit" value="Bearbeiten"></p> |
|
61 |
|
|
62 |
<p><pre class="filecontent"><TMPL_VAR content ESCAPE=HTML></pre></p> |
|
63 |
|
|
64 |
<TMPL_IF SHOW_SECOND_EDIT_BUTTON> |
|
65 |
<p><input name="action" type="submit" class="submit" value="Bearbeiten"></p> |
|
66 |
</TMPL_IF> |
|
67 |
|
|
68 |
</TMPL_IF> <!-- CAN_EDIT --> |
|
69 |
|
|
70 |
</TMPL_IF> <!-- SHOW_CONTENT --> |
|
71 |
|
|
72 |
</form> |
|
73 |
|
|
74 |
</body> |
|
75 |
</html> |
templates/webpages/am/edit_templates_master.html | ||
---|---|---|
1 |
<body> |
|
2 |
|
|
3 |
<div class="listheading"><TMPL_VAR title></div> |
|
4 |
|
|
5 |
<form method="post" name="Form" action="amtemplates.pl"> |
|
6 |
|
|
7 |
<TMPL_LOOP HIDDEN><input type="hidden" name="<TMPL_VAR name ESCAPE=HTML>" value="<TMPL_VAR value ESCAPE=HTML>"></TMPL_LOOP> |
|
8 |
|
|
9 |
<TMPL_IF SHOW_EDIT_OPTIONS> |
|
10 |
<p> |
|
11 |
<translate>Template</translate> |
|
12 |
<select name="formname"> |
|
13 |
<TMPL_LOOP FORMNAME><option value="<TMPL_VAR value ESCAPE=HTML>" <TMPL_IF default>selected</TMPL_IF>><TMPL_VAR label ESCAPE=HTML></option></TMPL_LOOP> |
|
14 |
</select> |
|
15 |
|
|
16 |
<TMPL_IF SHOW_LANGUAGE> |
|
17 |
<translate>Language</translate> |
|
18 |
<select name="language"> |
|
19 |
<TMPL_LOOP LANGUAGE><option value="<TMPL_VAR value ESCAPE=HTML>" <TMPL_IF default>selected</TMPL_IF>><TMPL_VAR label ESCAPE=HTML></option></TMPL_LOOP> |
|
20 |
</select> |
|
21 |
</TMPL_IF> |
|
22 |
|
|
23 |
<TMPL_IF SHOW_PRINTER> |
|
24 |
<translate>Printer</translate> |
|
25 |
<select name="printer"> |
|
26 |
<TMPL_LOOP PRINTER><option value="<TMPL_VAR value ESCAPE=HTML>" <TMPL_IF default>selected</TMPL_IF>><TMPL_VAR label ESCAPE=HTML></option></TMPL_LOOP> |
|
27 |
</select> |
|
28 |
</TMPL_IF> |
|
29 |
|
|
30 |
<input type="hidden" name="display_nextsub" value="display_template"> |
|
31 |
|
|
32 |
<input name="action" type="submit" class="submit" value="<translate>Display</translate>"> |
|
33 |
|
|
34 |
</p> |
|
35 |
|
|
36 |
<hr> |
|
37 |
</TMPL_IF> |
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
<TMPL_IF SHOW_CONTENT> |
|
42 |
<p> |
|
43 |
<div class="listtop"> |
|
44 |
<TMPL_IF CAN_EDIT><translate>Edit file</translate><TMPL_ELSE><translate>Display file</translate></TMPL_IF> <TMPL_VAR display_filename ESCAPE=HTML> |
|
45 |
</div> |
|
46 |
</p> |
|
47 |
|
|
48 |
<TMPL_IF CAN_EDIT> |
|
49 |
<p><textarea name="content" id="content" cols="100" rows="25"><TMPL_VAR content ESCAPE=HTML></textarea></p> |
|
50 |
|
|
51 |
<p> |
|
52 |
<input type="hidden" name="save_nextsub" value="save_template"> |
|
53 |
<input type="submit" name="action" value="<translate>Save</translate>"> |
|
54 |
</p> |
|
55 |
|
|
56 |
<TMPL_ELSE> |
|
57 |
|
|
58 |
<input type="hidden" name="edit_nextsub" value="edit_template"> |
|
59 |
|
|
60 |
<p><input name="action" type="submit" class="submit" value="<translate>Edit</translate>"></p> |
|
61 |
|
|
62 |
<p><pre class="filecontent"><TMPL_VAR content ESCAPE=HTML></pre></p> |
|
63 |
|
|
64 |
<TMPL_IF SHOW_SECOND_EDIT_BUTTON> |
|
65 |
<p><input name="action" type="submit" class="submit" value="<translate>Edit</translate>"></p> |
|
66 |
</TMPL_IF> |
|
67 |
|
|
68 |
</TMPL_IF> <!-- CAN_EDIT --> |
|
69 |
|
|
70 |
</TMPL_IF> <!-- SHOW_CONTENT --> |
|
71 |
|
|
72 |
</form> |
|
73 |
|
|
74 |
</body> |
|
75 |
</html> |
Auch abrufbar als: Unified diff
Den Code für das Bearbeiten von Vorlagen in eine eigene Datei ausgelagert. Zusätzlich den HTML-Code in eine HTML-Vorlage ausgelagert.