X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Frp.pl;h=f6dc985ef86a7a47136a99526c0dbada9a8faa7d;hb=f2c923a10719d3a9e26448b7d83f38051466bf2c;hp=34b12848f12a1435e6f8cb69be581b95bb7d8996;hpb=72539cb39a3d19f930a8e0e41e46bf41afe9a8f1;p=kivitendo-erp.git diff --git a/bin/mozilla/rp.pl b/bin/mozilla/rp.pl index 34b12848f..f6dc985ef 100644 --- a/bin/mozilla/rp.pl +++ b/bin/mozilla/rp.pl @@ -1883,66 +1883,6 @@ sub select_all { $lxdebug->leave_sub(); } -sub print_options { - $lxdebug->enter_sub(); - - $form->{sendmode} = "attachment"; - $form->{copies} = 2 unless $form->{copies}; - - $form->{PD}{ $form->{type} } = "selected"; - $form->{DF}{ $form->{format} } = "selected"; - $form->{OP}{ $form->{media} } = "selected"; - $form->{SM}{ $form->{sendmode} } = "selected"; - - $type = qq| - {PD}{statement}>| - . $locale->text('Statement'); - - if ($form->{media} eq 'email') { - $media = qq| - {SM}{attachment}>| - . $locale->text('Attachment') . qq| - {SM}{inline}>| . $locale->text('In-line'); - } else { - $media = qq| - {OP}{screen}>| . $locale->text('Screen'); - if ($myconfig{printer} && $latex) { - $media .= qq| - {OP}{printer}>| - . $locale->text('Printer'); - } - } - - if ($latex) { - $format .= qq| - {DF}{postscript}>| - . $locale->text('Postscript') . qq| - {DF}{pdf}>| . $locale->text('PDF'); - } - - print qq| - - - $type - $format - $media -|; - - if ($myconfig{printer} && $latex && $form->{media} ne 'email') { - print qq| - | . $locale->text('Copies') . qq| - {copies}> -|; - } - - print qq| - - -|; - - $lxdebug->leave_sub(); -} - sub e_mail { $lxdebug->enter_sub(); @@ -2729,14 +2669,14 @@ sub print_options { } else { $media = qq| {OP}{screen}>| . $locale->text('Screen'); - if ($myconfig{printer} && $latex) { + if ($myconfig{printer} && $latex_templates) { $media .= qq| {OP}{printer}>| . $locale->text('Printer'); } } - if ($latex) { + if ($latex_templates) { $format .= qq| {DF}{html}>| . $locale->text('HTML') . qq| @@ -2756,7 +2696,7 @@ sub print_options { $media |; - if ($myconfig{printer} && $latex && $form->{media} ne 'email') { + if ($myconfig{printer} && $latex_templates && $form->{media} ne 'email') { print qq| | . $locale->text('Copies') . qq| {copies}>