Revision 96ca0b88
Von Thomas Heck vor fast 11 Jahren hinzugefügt
bin/mozilla/ct.pl | ||
---|---|---|
65 | 65 |
|
66 | 66 |
# end of main |
67 | 67 |
|
68 |
sub add { |
|
69 |
$main::lxdebug->enter_sub(); |
|
70 |
|
|
71 |
my $url = 'controller.pl?action=CustomerVendor/add&db='. ($::form->{db} eq 'vendor' ? 'vendor' : 'customer'); |
|
72 |
|
|
73 |
if ( $::form->{callback} ) { |
|
74 |
$url .= '&callback='. uri_encode($::form->{callback}); |
|
75 |
} |
|
76 |
|
|
77 |
print $::form->redirect_header($url); |
|
78 |
|
|
79 |
$main::lxdebug->leave_sub(); |
|
80 |
} |
|
81 |
|
|
82 | 68 |
sub search { |
83 | 69 |
$main::lxdebug->enter_sub(); |
84 | 70 |
|
templates/webpages/ct/list_names_bottom.html | ||
---|---|---|
1 |
[% USE T8 %][% USE HTML %]<form method="post" action="dispatcher.pl?M=ct">
|
|
1 |
[% USE T8 %][% USE HTML %] |
|
2 | 2 |
|
3 |
<input name="callback" type="hidden" value="[% HTML.escape(callback) %]"> |
|
4 |
<input name="db" type="hidden" value="[% HTML.escape(db) %]"> |
|
3 |
<form method="post" action="controller.pl?action=CustomerVendor/add"> |
|
4 |
<input name="callback" type="hidden" value="[% HTML.escape(callback) %]"> |
|
5 |
<input name="db" type="hidden" value="[% HTML.escape(db) %]"> |
|
5 | 6 |
|
6 |
[% IF IS_CUSTOMER %][% 'New customer' | $T8 %][% ELSE %][% 'New vendor' | $T8 %][% END %]<br> |
|
7 |
|
|
8 |
<input class="submit" type="submit" name="A_add" value="[%- 'Add' | $T8 %]"> |
|
7 |
[% IF IS_CUSTOMER %][% 'New customer' | $T8 %][% ELSE %][% 'New vendor' | $T8 %][% END %]<br> |
|
9 | 8 |
|
9 |
<input class="submit" type="submit" value="[%- 'Add' | $T8 %]"> |
|
10 | 10 |
</form> |
Auch abrufbar als: Unified diff
Kunden/Lieferanten-Suche: Erfassen-Button überarbeitet