From 0c2be9979d3c323a8f88ca372c0e1314774d7293 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 22 Nov 2011 18:32:30 +0100 Subject: [PATCH] rp.pl::print_options auf template umgestellt. --- bin/mozilla/rp.pl | 79 +++++------------------- templates/webpages/rp/print_options.html | 36 +++++++++++ 2 files changed, 50 insertions(+), 65 deletions(-) create mode 100644 templates/webpages/rp/print_options.html diff --git a/bin/mozilla/rp.pl b/bin/mozilla/rp.pl index b6266b4c9..01ae84fdb 100644 --- a/bin/mozilla/rp.pl +++ b/bin/mozilla/rp.pl @@ -1738,79 +1738,28 @@ sub list_payments { } sub print_options { - $main::lxdebug->enter_sub(); + $::lxdebug->enter_sub; my ($dont_print) = @_; - my $form = $main::form; - my %myconfig = %main::myconfig; - my $locale = $main::locale; - - $form->{sendmode} = "attachment"; - - $form->{"format"} = - $form->{"format"} ? $form->{"format"} : - $myconfig{"template_format"} ? $myconfig{"template_format"} : - "pdf"; + $::form->{sendmode} = "attachment"; + $::form->{format} ||= $::myconfig{template_format} || "pdf"; + $::form->{copies} ||= $::myconfig{copies} || 2; - $form->{"copies"} = - $form->{"copies"} ? $form->{"copies"} : - $myconfig{"copies"} ? $myconfig{"copies"} : - 2; + $::form->{PD}{ $::form->{type} } = "selected"; + $::form->{DF}{ $::form->{format} } = "selected"; + $::form->{OP}{ $::form->{media} } = "selected"; + $::form->{SM}{ $::form->{sendmode} } = "selected"; - $form->{PD}{ $form->{type} } = "selected"; - $form->{DF}{ $form->{format} } = "selected"; - $form->{OP}{ $form->{media} } = "selected"; - $form->{SM}{ $form->{sendmode} } = "selected"; - - my ($media); - my $type = qq| -